Jstack:java Call stack for threads

Source: Internet
Author: User

The jstack provided by the JDK can be well understood by name, and this tool is inseparable from the stack.

Let's look at the command line for a set of JDK tools and use this command line to understand the most basic usage

Can be understood, roughly followed by several parameters, and our Java process

-F: Force print stack information, stack information for each thread, and status of the current stack

-M: not only to print the Java stack, but also to print the stack information of native/C + +, here should try a way to find a new era

-L: Print additional information about the lock, if the line threads lock is present, then try it

A basic use, we take care of other here, slowly in depth, after all, command the bottom or code!

Jstack:java Call stack for threads

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.