G1 vs CMS memory footprint on no-load
Priyanka Perera
pcperera at gmail.com
Mon Sep 7 07:45:46 UTC 2020
Hi All,
Our application runs with below settings on
*java-11-openjdk-11.0.3.7-1.el7.x86_64*.
*-Xms 256m*
*-Xmx 2048m*
We noticed that *G1 *produces a large memory footprint *(175%)* compared to
*CMS* when the application is idle.
In the case of a sudden memory pressure, can *G1* recover memory
efficiently compared to *CMS *although *G1 *memory footprint is larger ?
*G1*
[image: Analysis - heap usage with G1.png]
*CMS*
[image: Analysis - heap usage with CMS.png]
Thanks
Priyanka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20200907/ef2c6fe9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Analysis - heap usage with G1.png
Type: image/png
Size: 19149 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20200907/ef2c6fe9/Analysis-heapusagewithG1-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Analysis - heap usage with CMS.png
Type: image/png
Size: 16750 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20200907/ef2c6fe9/Analysis-heapusagewithCMS-0001.png>
More information about the hotspot-gc-use
mailing list