2

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?

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
Hanju Kim
  • 39
  • 1
  • 2
    I dont understand why would anyone upvote this, where are your numbers coming from, _exactly_ what have you measured, etc? – Eugene Nov 02 '21 at 18:17

0 Answers0