首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用jconsole监测SAP commerce运行时

使用jconsole监测SAP commerce运行时

作者头像
Jerry Wang
发布2020-08-31 10:55:48
8980
发布2020-08-31 10:55:48
举报

It is known that we can use Hybris Administration Console to monitor the runtime behavior of installed Hybris Commerce instance such as Memory, CPU load and thread overview.

Meanwhile as Hybris Commerce is implemented in Java, there is another approach to achieve the same requirement with the help of JMX.

Java Management Extensions (JMX) is the Java specification for monitoring capabilities. JMX defines managed beans (MBeans for short). MBeans are Java objects which expose some metrics (such as memory usage for example) and implement some functionality (such as flushing the cache).

You can also find JMX definition in wikipedia. Here below is how to use jconsole( a built-in tool provided by JDK ) to monitor Hybris Commerce runtime behavior.

(1) find the port number of JMX Remote Listener for your Hybris instance. In my example it is 9003 observed in Hybris startup log displayed in the console.

(2) copy jmxremote.password.template to jmxremote.password,

and remove the # in front of monitorRole and controlRole to make both take effective. Once done, the content of this file looks like below:

(3) Launch jconsole.exe in /bin:

Once connected, we can use jconsole GUI to monitor runtime behavior.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-29 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档