atsevan / garbagecat

Automatically exported from code.google.com/p/garbagecat
0 stars 0 forks source link

Parse logs created with -XX:+PrintGCDateStamps #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The JVM can log GC events with the date-time rather than a timestamp since the 
JVM started if you specify the -XX:+PrintGCDateStamps option rather than 
-XX:+PrintGCTimeStamps, which looks like

2012-04-24T22:01:01.703-0500: [GC [PSYoungGen: 786432K->100769K(917504K)] 
849627K->163964K(3014656K), 0.1332500 secs] [Times: user=0.71 sys=0.05, 
real=0.13 secs]

Garbage Cat should be able to handle these, as well as logs with both options 
which look like

2012-04-24T22:01:01.703-0500: 10.153: [GC [PSYoungGen: 
786432K->100769K(917504K)] 849627K->163964K(3014656K), 0.1332500 secs] [Times: 
user=0.71 sys=0.05, real=0.13 secs]

Original issue reported on code.google.com by li...@sunsetutopia.com on 26 Apr 2012 at 12:48

GoogleCodeExporter commented 9 years ago
To parse logs with with -XX:+PrintGCDateStamps output, use the -p option to 
preparse.

For example:
java -jar garbagecat-1.0.1.jar -p ~/path/to/gc.log

This will create gc.log.pp, which garbagecat will use to create the report.

Original comment by mgm...@gmail.com on 6 Jun 2012 at 1:37