Diagnostic commands [JEP 228]
The Java Enhancement Proposal 228, Add More Diagnostic Commands, defined seven additional diagnostic commands to enhance the ability to diagnose the JDK and the JVM. The new diagnostic commands are detailed here.
The print_codegenlist
command prints methods that are currently queued for compilation. Since c1 and c2 compilation modes are on separate queues, this command would need to be issued to a specific queue.
The dump_codelist
diagnostic command will print the following listed information for the compiled methods:
- Full signature
- Address range
- State
- Alive
- Nonentrant
- Zombie
In addition, the dump_codelist
diagnostic command allows the output to be directed to stdout
or to a specified file. Output can be in XML form or standard text.
The print_codeblocks
command allows us to print:
- Code cache size
- Code cache list
- List of blocks in the code cache
- Addresses for code blocks
Th datadump_request
diagnostic command sends a dump request to the Java Virtual Machine Tool Interface...