Understanding G1 GC logs

In this section, we will have a look at the G1 GC logs in detail.

The following features are marked in the following screenshot:

  1. Each heap region is of the size, 1M.
  2. The JVM is using G1 as its GC.
  3. The G1 collector starts a young collection 0.309 seconds after starting the application execution.
  4. The G1 collector uses multiple threads for the young collection.

 

  1. The G1 collector moves live objects from 14 Eden regions to 2 Survivor regions:

Let's examine another section of the same GC log, as follows:

The logs in ...

Get Java 11 and 12 - New Features now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.