If you want to develop a monitoring tool for JVM, what should you learn?

what should I learn if I want to develop a monitoring tool for JVM?

Apr.01,2021

jmap, jps, jinfo, jstat, jmx, etc.


JMX can achieve most functions.
calls the JMX interface regularly to send data through messages.
use a unified monitoring application for data statistics.


has not been developed, and the details are not very clear, but " in-depth understanding of the Java virtual machine "Section 4.1 has the following snippets:

JDK's command-line tools are mostly a thin wrapper of the java/lib/tools.jar class library, and their main functional code is implemented in the tools class library.
.
with the interface in the tools.jar class library, we can directly implement the powerful monitoring and analysis function in the application.

so maybe you can start with tools.jar.


look directly at the jconsole,jvisualvm source code

Menu