使用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的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2724667/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP Netweaver和Hybris Commerce啟動後執行的預設操作
- 使用 Recipe 安裝 SAP Commerce CloudCloud
- Elastic 使用Heartbeat監測服務執行狀態AST
- 一小時內在本地搭建SAP Commerce Cloud(電商雲)的前後臺執行環境Cloud
- 正常執行時間監控
- SAP Commerce Cloud 構建環境和最終執行環境的區別Cloud
- 使用 Azure SNAT 為 SAP Commerce Cloud 的 outbound connection 進行埠對映Cloud
- SAP Hybris使用recipe進行安裝時,是如何執行ant命令的?
- 使用SAP BSP應用執行VueVue
- SAP Commerce Cloud UI 的使用者會話管理CloudUI會話
- 什麼是 SAP Commerce yFormsORM
- SAP Commerce Cloud 架構概述Cloud架構
- SAP Commerce Cloud Build Manifest ComponentsCloudUI
- 智慧綜合交通執行監測平臺
- 使用SAP API portal進行SAP SuccessFactors的API測試API
- SAP Commerce(SAP Hybris)學習資料彙總
- 監控 Python 記憶體使用情況和程式碼執行時間!Python記憶體
- Linux命令執行時間測試Linux
- SAP Commerce Cloud SmartEdit 的安裝Cloud
- SAP Commerce Cloud 的 Security 策略概述Cloud
- SAP Commerce Accelerator和SAP Spartacus的技術對比
- 使用Splunk監控SAP Dump
- 編碼:執行緒執行監控執行緒
- 如何測試Linux命令執行時間?Linux
- 如何測量程式碼執行時間
- Java如何測量方法執行時間Java
- Create orders using SAP Commerce Cloud Restful APICloudRESTAPI
- 什麼是 SAP Commerce Cloud 的 catalogCloud
- SAP Commerce Cloud OCC API UnknownResourceError 錯誤CloudAPIError
- SAP Commerce Cloud OAuth 實現介紹CloudOAuth
- 給 SAP Commerce Cloud Storefront 設定 endpointCloud
- SAP Commerce Cloud SmartEdit 學習筆記Cloud筆記
- SAP Commerce Cloud 專案 Spartacus 入門Cloud
- SAP Commerce的路由實現(Route Implementation)路由
- SAP 電商雲 Spartacus UI 同 SAP Customer Data Cloud 整合執行時的 apiUICloudAPI
- 017、Vue3+TypeScript基礎,使用watch監視時透過deep和immediate進行深度監視和立即執行VueTypeScript
- 如何在 SAP Commerce Cloud Portal 構建和部署 SAP Spartacus StorefrontCloud
- JVM調優之JConsole和JVisualVM工具使用JVMLVM