使用jconsole监测SAP commerce运行时
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的原创文章,请关注公众号"汪子熙":
相关文章
- SAP UI5 sap.ui.core.Element 的概要介绍
- SAP UI5 sap.ui.layout.Grid 控件宽度百分比的设置原理
- SAP Spartacus 项目开发时需要注意的一些常见错误
- SAP UI5 sap.ui.base.ManagedObject 的构造函数参数讲解
- SAP UI5 sap.ui.Device.media 的使用介绍
- SAP Gateway 上的 Metadata Cache
- SAP UI5 加载本地并不存在的 PDF 文件的错误处理
- SAP QM QS41 不能创建Catalog为Usage Decision的Code Group
- SAP MIGO + 561初始化库存,系统报错 - There is no item category assigned to account 399999
- sap.ui.comp.smarttable.SmartTable 一些属性的用法阐述
- SAP UI5 sap.m.Table 实现响应式布局的两种配置模式
- 澄清一些对 SAP UI5 响应式表格 sap.m.Table 的常见理解误区试读版
- 关于 SAP UI5 接口 sap.ui.core.IAsyncContentCreation 的问题讨论
- 上载EXCEL到SAP系统的方法之一详解编程语言
- SAP Payment Terms 付款条件详解编程语言
- sap批量创建盘点凭证以及盘点凭证过账详解编程语言
- SAP Query 导入、导出详解编程语言
- SAP 发送邮件例子(内部)详解编程语言
- SAP在Linux下的完美适配——利用SAP优势迎接业务发展新时代(saplinux)
- Oracle与SAP在仓储领域的联姻(仓库oracle和sap)
- 深度比较:SAP vs Oracle(sap与oracle比较)
- Oracle从SAP抽取数据的简单方法(oracle从sap抽数)
- 数据库解决方案如何使用SAP创建Redis数据库(sap怎么创建redis)
- 缓存使用SAP创建Redis缓存,实现高效稳定加速(sap如何创建redis)
- 跨界合作新模式 Oracle与SAP实现合并(oracle与sap合并)
- Oracle和SAP教程一步一步学习(oracle sap教程)