Understanding the GC Log for Java

Source: Internet
Author: User

Analyze the following GC logs:
[GC [psyounggen:9216k->1024k (9216K)] 1246196k->1246220k (1287040K), 0.2398360 secs] [times:user=0.29 sys=0.01, real=0.24 secs]
[Full GC [psyounggen:1024k->0k (9216K)] [paroldgen:1245196k->1245509k (1492992K)] 1246220k->1245509k ( 1502208K) [pspermgen:2402k->2402k (21248K)], 11.7459250 secs] [times:user=19.42 sys=0.03, real=11.75 secs]

  • The GC and full GC at the beginning of the log indicate the type of pause for garbage collection;
  • The first PS in the Psyounggen represents the garbage collector as the parallel scavenge collector, and the reclaimed area is the Cenozoic (Younggen)
  • The front par in Paroldgen represents the garbage collector as the Parnew collector, and the reclaimed area is the old age (Younggen).
  • 9216k->1024k (9216K) in square brackets indicates that the memory area uses capacity (the total capacity of the memory area) after the GC has used capacity->GC.
  • 1246196k->1246220k (1287040K) indicates that the GC before the Java heap has used capacity->GC after Java pair has used capacity (Java to total capacity).
  • 0.2398360 secs represents the time the GC occupies.


From for notes (Wiz)

Understanding the GC Log for Java

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.