Display JVM flags only
Display system properties only
In practice, this is very rarely used—although it can occasionally be useful as a san‐
ity check that the expected program is actually what is executing.
jstack <process ID>
The jstack utility produces a stack trace for each Java thread in the process.
Force a thread dump
Long mode (contains additional information about locks)
Producing the stack trace does not stop or terminate the Java process. The files that
jstack produces can be very large, and some post-processing of the file is usually
jmap provides a view of memory allocation for a running Java process.
Produces a histogram of the current state of allocated memory.
This version of the histogram only displays information for live objects.