gctoolkit
gctoolkit copied to clipboard
GCToolKit cannot parse `G1Young` event from JDK8's gc log.
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:
- Download the reproduce code and gc log
- Compile and run the program.
This program will parse the events from the gc log ('g1_8.log'), and print their
GarbageCollectionTypes. - 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