Memory issues when using G1GC

Viewed 52

I am a beginner Java developer. My application is using Java 8.

I know that in Java 8, Parallel GC is the default. When no options are given, the memory is 500MB.

However, giving the G1 GC option increases the memory to 3GB.(-XX:+UseG1GC). I know the G1 GC is memory intensive by default, but does it make that much of a difference?

If I want to use G1 GC, do I have to give it a memory option?

0 Answers
Related