Use of the JVM tuning JDK tool

Source: Internet
Author: User
JPS list the running virtual machine processes, using the following:
JPS [-option] [HostID]
Options function
Q Output only Lvmid, omit the name of the main class
M Output the parameters of Main method
L Output the full package name, apply the main class name, the full path name of the jar
V Output JVM Parameters
Jstat

To monitor the virtual machine health status information, how to use:

jstat-<option> <pid> [Interval[s|ms]] 
Options function
Gc The amount of time that the GC operation accumulates, the total number of times that the GC has been performed, and the amount of space that is currently available for each heap area.
Gccapactiy Outputs the minimum space limit (MS)/Maximum space limit (MX) for each heap area, the current size, and the number of times the GC is executed on top of each zone. (The current used space is not output and the GC execution time).
Gccause Outputs the information provided by-gcutil and why the GC was last executed and the reason for the GC that is currently executing.
Gcnew The GC performance data for the output generation space.
Gcnewcapacity Statistics on the size of the output Cenozoic space.
Gcold Output GC performance data for the old age space.
Gcoldcapacity Output statistics of the size of the old age space.
Gcpermcapacity Statistics that output the size of the persistent space.
Gcutil Outputs the usage ratio for each heap area, as well as the total number of GC executions and events spent by GC operations.

Like what:

JSTAT-GC 28389 1s

Output JVM Runtime information every 1 seconds:

s0c    s1c    s0u    s1u      EC       EU        OC         OU       PC     PU    ygc    ygct FGC FGCT     GCT   
52416.0 52416.0 4744.9  0.0   419456.0 28180.6  2621440.0 439372.6 131072.0 33564.8 160472 1760.603      2.731 1763.334
column Description jstat Parameters
s0c The size of the Survivor0 space. Unit KB. -gc-gccapacity-gcnew-gcnewcapacity
S1c The size of the Survivor1 space. Unit KB. -gc-gccapacity-gcnew-gcnewcapacity
s0u Survivor0 the size of the space already used. Unit KB. -gc-gcnew
s1u Survivor1 the size of the space already used. Unit KB. -gc-gcnew
EC The size of the Eden space. Unit KB. -gc-gccapacity-gcnew-gcnewcapacity
EU The size of Eden used space. Unit KB. -gc-gcnew
Oc The size of the old age space. Unit KB. -gc-gccapacity-gcold-gcoldcapacity
OU The old age has used the size of space. Unit KB. -gc-gcold
Pc The size of the persistent generation space. Unit KB. -gc-gccapacity-gcold-gcoldcapacity-gcpermcapacity
Pu The size of the space that is used for persistent generations. Unit KB. -gc-gcold
Ygc The number of times the generation of space GC time occurred. -gc-gccapacity-gcnew-gcnewcapacity-gcold-gcoldcapacity-gcpermcapacity-gcutil-gccause
Ygct The time taken by the new generation of GC processing. -gc-gcnew-gcutil-gccause
FGC The number of times the full GC occurred. -gc-gccapacity-gcnew-gcnewcapacity-gcold-gcoldcapacity-gcpermcapacity-gcutil-gccause
Fgct The time spent by the full GC operation. -gc-gcold-gcoldcapacity-gcpermcapacity-gcutil-gccause
GCT Total time spent by GC operations. -gc-gcold-gcoldcapacity-gcpermcapacity-gcutil-gccause
Ngcmn Cenozoic minimum space capacity, in kilobytes. -gccapacity-gcnewcapacity
Ngcmx Maximum space capacity in the Cenozoic, in kilobytes. -gccapacity-gcnewcapacity
Ngc Current space capacity in the new generation, in kilobytes. -gccapacity-gcnewcapacity
Ogcmn The minimum space capacity in the old age, in kilobytes. -gccapacity-gcoldcapacity
Ogcmx The maximum space capacity in the old age, in kilobytes. -gccapacity-gcoldcapacity
OGC The current space capacity system in the old age, in kilobytes. -gccapacity-gcoldcapacity
Pgcmn The minimum space capacity of a persistent generation, in kilobytes. -gccapacity-gcpermcapacity
Pgcmx The maximum space capacity, in kilobytes, for a persistent generation. -gccapacity-gcpermcapacity
Pgc The current space capacity, in kilobytes, for the persistent generation. -gccapacity-gcpermcapacity
Pc

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.