4632N/A." Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
4632N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4632N/A."
4632N/A." This code is free software; you can redistribute it and/or modify it
4632N/A." under the terms of the GNU General Public License version 2 only, as
4632N/A." published by the Free Software Foundation.
4632N/A."
4632N/A." This code is distributed in the hope that it will be useful, but WITHOUT
4632N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4632N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4632N/A." version 2 for more details (a copy is included in the LICENSE file that
4632N/A." accompanied this code).
4632N/A."
4632N/A." You should have received a copy of the GNU General Public License version
4632N/A." 2 along with this work; if not, write to the Free Software Foundation,
4632N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4632N/A."
4632N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4632N/A." or visit www.oracle.com if you need additional information or have any
4632N/A." questions.
4632N/A."
4632N/A.TH jstack 1 "10 May 2011"
4632N/A
4632N/A.LP
4632N/A.SH "Name"
4632N/Ajstack \- Stack Trace
4632N/A.br
4632N/A
4632N/A.LP
4632N/A.SH "SYNOPSIS"
4632N/A.LP
4632N/A.nf
4632N/A\f3
4632N/A.fl
4632N/A\fP\f3jstack\fP [ option ] pid
4632N/A.fl
4632N/A\f3jstack\fP [ option ] executable core
4632N/A.fl
4632N/A\f3jstack\fP [ option ] [server\-id@]remote\-hostname\-or\-IP
4632N/A.fl
4632N/A.fi
4632N/A
4632N/A.LP
4632N/A.SH "PARAMETERS"
4632N/A.LP
4632N/A.LP
4632N/AOptions are mutually exclusive. Option, if used, should follow immediately after the command name. See OPTIONS.
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 3
4632N/Apid
4632N/Aprocess id for which the stack trace is to be printed. The process must be a Java process. To get a list of Java processes running on a machine, jps(1) may be used.
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 3
4632N/Aexecutable
4632N/AJava executable from which the core dump was produced.
4632N/A.br
4632N/A.TP 3
4632N/Acore
4632N/Acore file for which the stack trace is to be printed.
4632N/A.br
4632N/A.TP 3
4632N/Aremote\-hostname\-or\-IP
4632N/Aremote debug server's (see jsadebugd(1)) hostname or IP address.
4632N/A.br
4632N/A.TP 3
4632N/Aserver\-id
4632N/Aoptional unique id, if multiple debug servers are running on the same remote host.
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A.SH "DESCRIPTION"
4632N/A.LP
4632N/A.LP
4632N/A\f3jstack\fP prints Java stack traces of Java threads for a given Java process or core file or a remote debug server. For each Java frame, the full class name, method name, 'bci' (byte code index) and line number, if available, are printed. With the \-m option, jstack prints both Java and native frames of all threads along with the 'pc' (program counter). For each native frame, the closest native symbol to 'pc', if available, is printed. C++ mangled names are not demangled. To demangle C++ names, the output of this command may be piped to \f3c++filt\fP. If the given process is running on a 64\-bit VM, you may need to specify the \f2\-J\-d64\fP option, e.g.:
4632N/A.br
4632N/A
4632N/A.LP
4632N/A.nf
4632N/A\f3
4632N/A.fl
4632N/Ajstack \-J\-d64 \-m pid
4632N/A.fl
4632N/A\fP
4632N/A.fi
4632N/A
4632N/A.LP
4632N/A.LP
4632N/A\f3NOTE\fP \- This utility is unsupported and may or may not be available in future versions of the JDK. In Windows Systems where dbgeng.dll is not present, 'Debugging Tools For Windows' needs to be installed to have these tools working. Also, \f2PATH\fP environment variable should contain the location of \f2jvm.dll\fP used by the target process or the location from which the Crash Dump file was produced.
4632N/A.LP
4632N/A.LP
4632N/AFor example, \f2set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP
4632N/A.LP
4632N/A.SH "OPTIONS"
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 3
4632N/A\-F
4632N/AForce a stack dump when 'jstack [\-l] pid' does not respond.
4632N/A.TP 3
4632N/A\-l
4632N/ALong listing. Prints additional information about locks such as list of owned java.util.concurrent
4632N/A.na
4632N/A\f2ownable synchronizers\fP @
4632N/A.fi
4632N/Ahttp://download.oracle.com/javase/7/docs/api/java/util/concurrent/locks/AbstractOwnableSynchronizer.html.
4632N/A.TP 3
4632N/A\-m
4632N/Aprints mixed mode (both Java and native C/C++ frames) stack trace.
4632N/A.TP 3
4632N/A\-h
4632N/Aprints a help message.
4632N/A.br
4632N/A.br
4632N/A.TP 3
4632N/A\-help
4632N/Aprints a help message
4632N/A.br
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A.SH "SEE ALSO"
4632N/A.LP
4632N/A.RS 3
4632N/A.TP 2
4632N/Ao
4632N/Apstack(1)
4632N/A.TP 2
4632N/Ao
4632N/Ac++filt(1)
4632N/A.TP 2
4632N/Ao
4632N/Ajps(1)
4632N/A.TP 2
4632N/Ao
4632N/Ajsadebugd(1)
4632N/A.RE
4632N/A
4632N/A.LP
4632N/A.SH "KNOWN BUGS"
4632N/A.LP
4632N/A.LP
4632N/AMixed mode stack trace, the \-m option, does not work with the remote debug server.
4632N/A.LP
4632N/A