title: Is -XX:+UseG1GC the correct replacement for -Xincgc?
body: <p>Currently, we are using the incremental garbage collector by adding <code>-Xincgc</code> to the java command. In <strong><em>JDK 8</em></strong> this switch is deprecated. So what's the equivalent replacement for it? <code>-XX:+UseG1GC</code>?</p>
  
  <p>Background: The application has a heap of <strong><em>8GB</em></strong> and creates a lot of short living objects. I noticed that it often paused for some seconds to do garbage collection. Out of curiosity I added the <code>-Xincgc</code> and found that the pauses were gone and overall performance improved ~4 times.</p>
  
  <p>Unfortunately, I did not find any information about what type of garbage collector the <code>-Xincgc</code> triggers. There's the <strong><em>CMS</em></strong> (Concurrent mark and sweep) and the new <strong><em>G1</em></strong> (Garbage first). But what do I get with <code>-Xincgc</code>?</p>