GCViewer
GCViewer copied to clipboard
G1 (java 8) Full GC's not shown in CSV export
When exporting to CSV format, Full GC runs are not shown in the log file. They are present when exporting to SIMPLE. This is using Java 8 with G1GC.
SIMPLE:
YoungGC 97951.577000 0.004314
YoungGC 97951.584000 0.003936
FullGC 97951.591000 31.384688
YoungGC 97983.548000 0.101593
CSV:
97951.5800636,10477568,10485760,0.0039364,GC pause (G1 Evacuation Pause) (young)
97951.584,10477568,10485760,0,NONE
97983.4464066,9087693,10485760,0.1015934,GC pause (G1 Evacuation Pause) (young)
97983.548,7690752,10485760,0,NONE
Hi Gregor,
You are right, full GCs are missing from the CSV export format.
Uhm, maybe a strange question coming from my side: How do you use the CSV format? I have never really understood, why two lines are written for one compared to the SIMPLE format.
Best regards, Jörg
Sorry for the late reply. I haven't actually really started using the CSV output yet. I can't use SIMPLE because I'm interested in heap occupancy before and after the collection. The two lines in CSV aren't ideal though. Ideally, everything would be in a single line. Actually, I'd really like to see even more data (all in single line) :-). Everything that's in this input line:
[Eden: 480.0M(480.0M)->0.0B(2780.0M) Survivors: 32.0M->32.0M Heap: 6953.3M(10.0G)->6393.4M(10.0G)]
I think, currently, there is indeed no export format that exactly meets your requirements. It should be rather easy to implement it, though - would you like to give it a try?
Out of curiosity: What are you trying to achieve exporting the data to csv? Some kind of post processing?