Jmap, Jhat, Jstat, Jstack

Source: Internet
Author: User

Jmap

-heap

-histo

-dump

Jhat

Jstat

Jstat–gcutil 2721 Print Time print count

Jstack

Consumes high CPU process, this Java process PID is 3227

Jstack 3227

System consumption is high, whether it is an IO bottleneck (iostat, look at the queue), need to keep track of the kernel call (what to do: strace).

The User application causes the thread ID to be found. How to see which thread ID is higher (top–p 3227 at the command line by H, show threads, sort by P by CPU)

PS-MP 3227-o Thread,tid,time

printf "%x\n" 3324 converted to 16 binary

Online stacks jstack 3227 |grep 16jinzhi

State:

Runnable, wait, monitor

Jmap, Jhat, Jstat, Jstack

Related Article

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.