Java jstack Command detailed

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.