Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log is too verbose when GCViewer is run from the command line #214

Open
ebourg opened this issue Nov 21, 2018 · 0 comments
Open

Log is too verbose when GCViewer is run from the command line #214

ebourg opened this issue Nov 21, 2018 · 0 comments

Comments

@ebourg
Copy link

ebourg commented Nov 21, 2018

When GCViewer is invoked from the command line the output is too verbose and difficult to read:

$ xvfb-run java -jar target/gcviewer-1.36-SNAPSHOT.jar src/test/resources/openjdk/SampleSun1_8_0Series-Part1.txt summary.csv
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.GCViewer doMain
INFO: GCViewer command line mode
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderFacade loadModel
INFO: GCViewer version 1.36-SNAPSHOT (2018-11-21T11:55:10+0100)
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderFactory getDataReaderBySample
INFO: File format: Sun 1.6.x
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderSun1_6_0 read
INFO: Reading Sun / Oracle 1.4.x / 1.5.x / 1.6.x / 1.7.x / 1.8.x format...
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderSun1_6_0 read
INFO: Java HotSpot(TM) 64-Bit Server VM (25.45-b02) for windows-amd64 JRE (1.8.0_45-b15), built on Apr 30 2015 12:40:44 by "java_re" with MS VC++ 10.0 (VS2010)
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderSun1_6_0 read
INFO: Memory: 4k page, physical 16664956k(9830208k free), swap 20473812k(10916924k free)
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderSun1_6_0 read
INFO: CommandLine flags: -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark -XX:GCLogFileSize=20480 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs -XX:InitialHeapSize=838860800 -XX:MaxHeapSize=838860800 -XX:MaxNewSize=279621632 -XX:MaxTenuringThreshold=6 -XX:NewSize=279621632 -XX:NumberOfGCLogFiles=10 -XX:OldPLABSize=16 -XX:OldSize=559239168 -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+ScavengeBeforeFullGC -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseGCLogFileRotation -XX:-UseLargePagesIndividualAllocation -XX:+UseParNewGC
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.imp.DataReaderSun1_6_0 read
INFO: Done reading.
Nov 21, 2018 12:01:27 PM com.tagtraum.perf.gcviewer.GCViewer doMain
INFO: export completed successfully

I suggest simplifying the log format to something like this:

GCViewer version 1.36-SNAPSHOT (2018-11-21T11:55:10+0100)
File format: Sun 1.6.x
Reading Sun / Oracle 1.4.x / 1.5.x / 1.6.x / 1.7.x / 1.8.x format...
Java HotSpot(TM) 64-Bit Server VM (25.45-b02) for windows-amd64 JRE (1.8.0_45-b15), built on Apr 30 2015 12:40:44 by "java_re" with MS VC++ 10.0 (VS2010)
Memory: 4k page, physical 16664956k(9830208k free), swap 20473812k(10916924k free)
CommandLine flags: -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark -XX:GCLogFileSize=20480 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs -XX:InitialHeapSize=838860800 -XX:MaxHeapSize=838860800 -XX:MaxNewSize=279621632 -XX:MaxTenuringThreshold=6 -XX:NewSize=279621632 -XX:NumberOfGCLogFiles=10 -XX:OldPLABSize=16 -XX:OldSize=559239168 -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+ScavengeBeforeFullGC -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseGCLogFileRotation -XX:-UseLargePagesIndividualAllocation -XX:+UseParNewGC
Done reading.
Export completed successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant