Heap profiling agent [JEP 240]
Java Enhancement Proposal 240 is titled Remove the JVM TI hprof Agent. Here are the key terms associated with this JEP and referenced in the title that might be new to you:
- Tool Interface (TI): This is a native programming interface that allows tools to control the execution of applications that are being run inside the Java Virtual Machine. The interface also permits state inquiries. The full nomenclature for this tool is the Java Virtual Machine Tool Interface, or JVM TI.
- Heap Profiling (HPROF): This is an internal JDK tool used for profiling a JVM's use of CPUs and the heap. The most common exposure developers have to
hprof
is the file that is generated when following a crash. The generated file contains a heap dump.
The Java 9 JDK does not contain the hprof
agent. It was removed largely because there are superior alternatives available. Here is a table of the related functionality:
HPROF Functionality | Alternative |
Allocation Profiler (heap=sites) | Java VisualVM |
CPU... |