Java JVM性能指标

Java JVM性能指标,java,jvm,metrics,Java,Jvm,Metrics,我在考虑从JVM中获取一些指标,比如最大/最小/已用内存、cpu消耗以及以后可能更多的指标 我做了一些研究,但没有找到任何合适的 请告诉我正确的读数,从哪里开始 请注意,我不是在寻找任何一种市场上的软件,而是关于阅读材料,如何通过JMX编程获取指标,因此,我能够将这些存储在DB或文件中 查看,以及如何使用监控。默认情况下有很多统计信息可用(垃圾收集信息、内存池、线程统计信息)。CPU有点棘手,但请查看更多细节 注意,您不必只使用JConsole。您可以轻松编写自己的监视器来整理这些统计数据。查看

我在考虑从JVM中获取一些指标,比如最大/最小/已用内存、cpu消耗以及以后可能更多的指标

我做了一些研究,但没有找到任何合适的

请告诉我正确的读数,从哪里开始

请注意,我不是在寻找任何一种市场上的软件,而是关于阅读材料,如何通过JMX编程获取指标,因此,我能够将这些存储在DB或文件中

查看,以及如何使用监控。默认情况下有很多统计信息可用(垃圾收集信息、内存池、线程统计信息)。CPU有点棘手,但请查看更多细节

注意,您不必只使用JConsole。您可以轻松编写自己的监视器来整理这些统计数据。

查看以及如何使用来监视它们。默认情况下有很多统计信息可用(垃圾收集信息、内存池、线程统计信息)。CPU有点棘手,但请查看更多细节


注意,您不必只使用JConsole。您可以轻松编写自己的监视器来整理这些统计数据。

IBM有一篇非常好的文章:

它有三个部分,包含详细信息和说明

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.

IBM有一篇非常好的文章:

它有三个部分,包含详细信息和说明

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.