chewiebug / GCViewer

Fork of tagtraum industries' GCViewer. Tagtraum stopped development in 2008, I aim to improve support for Sun's / Oracle's java 1.6+ garbage collector logs (including G1 collector)
https://github.com/chewiebug/GCViewer/wiki
Other
4.47k stars 978 forks source link

Unknown gc event warnings when parsing #219

Open stubarlow opened 5 years ago

stubarlow commented 5 years ago

Hi. I found a number of WARNING messages after parsing my gc log. Version 1.36-SNAPSHOT jdk1.8.0_144

parser output

WARNING [DataReaderSun1_6_0]: could not find name of event before 56 WARNING [DataReaderSun1_6_0]: com.tagtraum.perf.gcviewer.imp.ParseException: com.tagtraum.perf.gcviewer.imp.UnknownGcTypeException: Unknown gc type: 'Preclean SoftR' Line 130170: 2019-03-15T21:47:02.331+0100: 277395.331: [Preclean SoftR2019-03-15T21:47:02.338+0100: 277395.339: [CMS-concurrent-preclean: 0.007/0.008 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]

gc log entry 2019-03-18T12:19:49.065+0100: 502562.066: [Preclean SoftReferences, 0.0001084 secs]2019-03-18T12:19:49.065+0100: 502562.066: [Preclean WeakReferences, 0.0000868 secs]2019-03-18T12:19:49.066+0100: 502562.066: [Preclean FinalReferences, 0.0000938 secs]2019-03-18T12:19:49.066+0100: 502562.066: [Preclean PhantomReferences, 0.0000054 secs]2019-03-18T12:19:49.073+0100: 502562.073: [CMS-concurrent-preclean: 0.008/0.008 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]

Great tool by the way. I've just started using it. Apologies if I inadvertently created this problem myself by setting incorrect JVM parameters.

JVM Parameters -XX:+PrintGCDetails -XX:+PrintReferenceGC -XX:+PrintGCApplicationStoppedTime -XX:+PrintTenuringDistribution -Xloggc:/path/to/log/gc.log -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=2 -XX:GCLogFileSize=10m

chewiebug commented 5 years ago

Hi Stubarlow,

It looks like the parser was confused by some part of the log output in your log file. Could you please attach a sample log file to this issue containing the offending line(s)?

Best regards, Jörg

stubarlow commented 5 years ago

gcviewer_219.zip

stubarlow commented 5 years ago

Hi Jörg. There were 7 occurrences of the offending event over a 3 day period. Each occurrence results in 4 separate log entries. There's one example in that sample I attached. Let me know if you need more data. Thanks!