2020-09-24: Is the jvm monitoring system done through jmx?

Fu Ge's answer 2020-09-24: #福大Architects Daily One Question#

This answer comes from Zhihu:

Generally it is, but if you record more detailed performance positioning indicators, it will cause safepoint to enter, thereby reducing the performance of online applications.
For example, jstack, jmap print stack, print memory usage, will make jvm enter safepoint, in order to obtain the stable state of the thread to collect information.
At the same time, JMX exposes the external interface to collect information, such as using jvisualvm, it will also involve rpc and network consumption, and when the JVM is busy, information cannot be collected and there are indicator breakpoints. These are problems that are difficult to solve by external monitoring based on JMX.
Therefore, it is recommended to use JVM to collect JFR internally so that useful information can be collected even when the JVM is very busy.


comment

Guess you like

Origin blog.csdn.net/weixin_48502062/article/details/108783428