Java, Maven and Gradle 25 · Diagnostics
Show the flags a JVM is using
Print the JVM flags of a running process.
jcmd 12345 VM.flags
Official Java, Maven and Gradle 25 documentation
More diagnostics commands
- List running Java processes
- Take a thread dump
- Show heap usage
- Write a heap dump
- Dump the heap on OutOfMemoryError
All diagnostics commands · Java, Maven and Gradle 25 cheatsheet