使用jconsole监测SAP commerce运行时

Spring 同时被 2 个专栏收录
20 篇文章 0 订阅
721 篇文章 4 订阅

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.


要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  • 0
    点赞
  • 1
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 博客之星2020 设计师:CY__ 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值