1

I'd like to analyse a "large" G1 - Garbage Collection Logfile (appr. 500.000 lines). Therefore I'm looking for a freeware-tool which is able to open and analyze such large files. Yet I use GCViewer 1.32 but it seems that this program is not able to open my file. There is no error message but nothing happens when I try to open the logfile. Does somebody know a good tool for my problem?

Best Regards, AnarchoEnte

Peter Lawrey
  • 525,659
  • 79
  • 751
  • 1,130
AnarchoEnte
  • 558
  • 4
  • 20
  • If you can, I would memory profile your application. This is the best place to start before tuning the GC IMHO. – Peter Lawrey Jul 30 '13 at 06:49
  • My target is currently not to tune the GC but to analyze how the G1 is working – AnarchoEnte Jul 30 '13 at 07:02
  • Very few tools have support for G1. It has a very different, much more verbose output. I suggest you have a look at this presentation. https://plus.google.com/u/1/102874451454074733659/posts/SKAqZHLwFyT Kirk discusses what the part of the G1 logs mean. – Peter Lawrey Jul 30 '13 at 07:04
  • you can use eclipse memory analyzer tool. http://www.eclipse.org/mat/downloads.php – deepakraut Jul 30 '13 at 09:42

2 Answers2

2

GarbageCat parses Java garbage collection logging and provides analysis to support JVM tuning and troubleshooting for OpenJDK and Sun JDK. It differs from other tools in that it goes beyond the simple math of calculating statistics such as maximum pause time and throughput.

Nikhil A A
  • 441
  • 1
  • 4
  • 17
  • GarbageCat seems to be cool. Is it possible, that it does not support the "-XX:+PrintGCDateStamps" - option within a log? – AnarchoEnte Jul 30 '13 at 06:24
  • GarbageCat is best utilized with the following GC logging options: -XX:+PrintGC -Xloggc:gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps – Nikhil A A Jul 30 '13 at 08:58
1

Have you tried GCViewer? I guess it should work for you.

amod
  • 4,190
  • 10
  • 49
  • 75
  • GCViewer is not able to open my file ... I think it's too large – AnarchoEnte Jul 30 '13 at 06:59
  • I am not sure why you are not able to... for me it has always worked. – amod Jul 30 '13 at 07:17
  • I try to open the file and nothing happens. Even I wait 5 minutes ... For smaller logfiles it always worked fine. But if the file is larger than ~200.000 lines nothing happens – AnarchoEnte Jul 30 '13 at 07:26
  • It would be great if you search a bit on that... It should work what I think... I never tried anything else. – amod Jul 30 '13 at 09:17