zoukankan      html  css  js  c++  java
  • 使用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的原创文章,请关注公众号"汪子熙":

  • 相关阅读:
    System.Collections.Generic.IEnumerable.cs
    System.Collections.IList.cs
    茶-保健茶:松针茶
    中药-中药名:松针
    植物:松树
    LDAP-常用命令
    dsadm-dsconf数据导入导出
    SUN-LDAP6.3_RHEL 5.0-卸载LDAP
    passwd-shadow文件
    文件及目录的权限
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13586347.html
Copyright © 2011-2022 走看看