Java In A Nutshell, 5th Edition

jstack Display stack traces for a Java process

Synopsis

jstack [ options ] pid // local process jstack [ options ] executable core // core file jstack [ options ] [ process-name @] hostname // remote process

Description

jstack prints stack traces for each of the Java threads running in the specified Java process. jstack can be started in three ways:

In Java 5.0, jstack is experimental, unsupported, and not available on all platforms.

Options

-help, -h

Prints a help message.

-m

Displays stack traces in "mixed mode," that is, displays both Java and native method stack frames. Without this option, the default is to display Java stack frames only.

See also

jps , jsadebugd

Категории