The JVM tool interface (JVM TI) is a native programming interface for
use by tools. It provides both a way to inspect the state and to
control the execution of applications running in the Java virtual
machine (JVM). JVM TI supports the full breadth of tools that need
access to JVM state, including but not limited to: profiling,
debugging, monitoring, thread analysis, and coverage analysis tools.
Note: JVM TI was introduced at JDK 5.0. JVM TI replaces the Java
Virtual Machine Profiler Interface (JVMPI) and the Java Virtual
Machine Debug Interface (JVMDI) which, as of JDK 6, are no longer
provided.
# 1 楼答案
你可能需要探索一下JVM TI APIs
像VisualVM这样的调试器使用这个接口来了解JVM和不同的统计信息