CMS GC Log

Y.S.Ramakrishna at Sun.COM Y.S.Ramakrishna at Sun.COM
Mon Oct 12 15:23:51 UTC 2009


On 10/11/09 17:58, Sujit.Das at cognizant.com wrote:
> Trying to understand CMS-IM and CMS-RM log messages.
>  
> *1. CMS Initial Mark*
> 7465.472: [GC [1 CMS-initial-mark: 1370720K(2739200K)] 1384764K(3058176K), 0.0995109 secs]
> In above log snippet, CMS IM was triggered at the old gen occupancy of 
> 1370720 K with total size of old gen size as 2739200 K. What does 

Right.

> 1384764 K and 3058176 K represent?

Current total heap occupancy and current total heap capacity. (excluding perm gen).

> *2. CMS Remark*
> 7475.403: [weak refs processing, 0.0024767 secs] [1 CMS-remark: 
> 1401865K(2739200K)] 1582866K(3058176K), 0.1290017 secs]
>  
> Similarly in above log snippet, CMS RM was triggered at the old gen 
> occupancy of 1401865 K with total size of old gen size as 2739200 K. 
> What does 1582866 K and 3058176 K represent?

Same as what i wrote above for CMS-IM.

>  
> Also, in GC output is there any way we can determine heap space used 
> before and after a CMS collection? This is printed for minor collection 
> but not sure if this is printed for CMS collection.

The above is basically all you get. Typically the free space peaks towards
the end of the CMS-sweep and reaches its minimum typically around or just
after the start of the sweep (i.e. around the CMS-remark phase).

-- ramki

>  
> Thanks,
> Sujit
>  
> This e-mail and any files transmitted with it are for the sole use of 
> the intended recipient(s) and may contain confidential and privileged 
> information.
> If you are not the intended recipient, please contact the sender by 
> reply e-mail and destroy all copies of the original message.
> Any unauthorized review, use, disclosure, dissemination, forwarding, 
> printing or copying of this email or any action taken in reliance on 
> this e-mail is strictly prohibited and may be unlawful.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use



More information about the hotspot-gc-dev mailing list