gctoolkit icon indicating copy to clipboard operation
gctoolkit copied to clipboard

GCToolKit cannot parse `G1Young` event from JDK8's gc log.

Open BurryPotter opened this issue 1 year ago • 3 comments
trafficstars

Describe the bug I first used JDK 8 and set -XX:+UseG1GC option to run a program, and exported the GC log (I will provide the link to the log file later). Then, when using GCToolKit to parse the log, I found that it could only parse some of the G1 events, such as ConcurrentRootRegionScan, ConcurrentMark, etc. But it could not parse G1Young and other PauseEvents.

To Reproduce Steps to reproduce the behavior:

  1. Download the reproduce code and gc log
  2. Compile and run the program. This program will parse the events from the gc log ('g1_8.log'), and print their GarbageCollectionTypes.
  3. Check the output of gc log parsing.

Expected behavior Print a series of events including G1Young

Actually behavior Print a series of events like this:

ConcurrentRootRegionScan
ConcurrentMark
G1GCRemark
G1GCCleanup
ConcurrentRootRegionScan
G1GCConcurrentMark
ConcurrentRootRegionScan
ConcurrentMark

BurryPotter avatar May 23 '24 12:05 BurryPotter