name Jstack: Stack Trace
Summary:
Jstack [ option ] pid
Jstack [ option ] executable core
Jstack [ option ] [server-id@]remote-hostname-or-ip
Function:
Jstack Prints the call stack information for the specified Java process, core file, or remote Debugging service. Includes class-wide, method name, byte code index, and code line number. Specifies that the-m parameter can also print out the local method call stack. You can quickly locate program issues.
Parameter description:
PID process ID for which the stacktrace are to be printed. The process must be a Java process. To get a list of Java processes running on a machine , JPS may be used.
executable Java executable from which, the core dump was produced.
Core core file for which the stack trace was to be printed.
Remote-hostname-or-ip Remote Debug Server ' s (see JSADEBUGD) hostname or IP address.
server-id Optional Unique ID, if multiple debug servers is running on the same remote HO St.
Option options:
-M print Java and local mixed call stacks.
-h-help Printing Help information
Example:
Java jstack Command detailed