Monitoring and troubleshooting tools in the JDK -03 (jstat)

Source: Internet
Author: User

JSTAT:JVM Statistics Monitoring Tool

The Jstat command monitors various runtime state information for the JVM virtual machine, including memory status, garbage collection, loading of classes, and so on.

Jstat command format: jstat [option Vmid [interval] [count]]

Jstat command Examples

Command: JSTAT-GC 1203 500 3

Command explanation: Check the status of garbage collection with process ID 1203 every 500 milliseconds, query 3 times

Command options

Options Role
-class Output class load, unload quantity, and time consumed by class load
-gc Monitor Java heap status, including edge Zone, Survivor Zone, old age, permanent generation capacity, used space, GC time, etc.
-gcnew Monitor New generation GC status
-gcold Monitor the status of GC in the old age
-gccause Basically the same as-GC, but output causes the last GC to produce
-compiler Output JIT compiler compiled methods, time-consuming and other information

Monitoring and troubleshooting tools in the JDK -03 (jstat)

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.