2012-11-14 60 views
0

我在考慮從JVM中捕獲一些度量標準,比如max/min/used memory,cpu消耗量,以後可能會更多。JVM性能指標

我做了一些研究,但找不到任何合適的東西。

請問一個人可以指導我閱讀正確的閱讀材料嗎?

請注意,我沒有在市場上尋找任何類型的軟件,而是閱讀materilas如何通過JMX以編程方式獲取指標,因此我可以將這些指標存儲在數據庫或文件中。

回答

1

有來自IBM的一個非常不錯的文章:http://www.ibm.com/developerworks/library/j-rtm1/index.html?ca=dgr-jw22javaruntime1&S_TACT=105AGX59&S_CMP=GR

它有三個部分,包含詳細的信息和解釋。

Part 1: 

Explores attributes of application performance management (APM) systems 
Describes common antipatterns for system monitoring 
Presents methods for monitoring the performance of JVMs 
Offers techniques for efficiently instrumenting application source code 

Part 2 will focus on methods of instrumenting Java classes and resources without modification of the originating source code. 
Part 3 will address methods for monitoring resources outside the JVM, including hosts and their operating systems and remote services such as databases and messaging systems. It will conclude with a discussion of additional APM issues such as data management, data visualization, reporting, and alerting. 
1

查看JMX stats available以及如何使用JConsole監視它們。許多統計信息默認可用(垃圾收集信息,內存池,線程統計信息)。 CPU有點棘手,但請查閱this SO question瞭解更多詳情。

請注意,您不必僅使用JConsole。您可以輕鬆編寫自己的監視器來整理這些統計數據。