Java Reference
In-Depth Information
Common switches
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.
Basic usage
jstack <process ID>
The jstack utility produces a stack trace for each Java thread in the process.
Common switches
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
Basic usage
jmap <process>
jmap provides a view of memory allocation for a running Java process.
Common switches
Produces a histogram of the current state of allocated memory.
This version of the histogram only displays information for live objects.
Search WWH ::

Custom Search