Java, Maven and Gradle 25 · Diagnostics
List running Java processes
Show Java process IDs with their main class or jar.
jps -l
Official Java, Maven and Gradle 25 documentation
More diagnostics commands
- Take a thread dump
- Show heap usage
- Write a heap dump
- Dump the heap on OutOfMemoryError
- Show the flags a JVM is using
All diagnostics commands · Java, Maven and Gradle 25 cheatsheet