Hello,

If you get overhead exceeded with default collector (I assume Java 8 Server 
class aka parallel collector) and small heaps you have a sizing or leak 
problem, G1 won’t help you there (it might actually make it worse).

Having said that, G1 can also be used for smaller heaps (as can be seen by it 
beeing default for java9+) but it isn’t that useful, as most of the GC activity 
should happen with stop the world new collections anyway. ParallelGC with small 
heaps is the easiest to use IMHO.

Gruß
Bernd

--
https://Bernd.eckenfels.net

________________________________
Von: hotspot-gc-use <hotspot-gc-use-boun...@openjdk.java.net> im Auftrag von 
mohd shaban <mohdshaban000...@gmail.com>
Gesendet: Sonntag, Dezember 15, 2019 11:09 AM
An: hotspot-gc-use@openjdk.java.net
Betreff: G1GC : Can we use this GC for low heap size

Hi Team,

We need help regarding G1GC Algorithm , can we use this GC for low heap size 
around 1GB or this is only for big heap size.

We want to use this GC because we are getting "GC overhead limit exceeds" and 
application using the default GC collector

Thanks,
Mohd Shaban
_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use@openjdk.java.net
https://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

Reply via email to