GCViewer icon indicating copy to clipboard operation
GCViewer copied to clipboard

partial log file analysis

Open chewiebug opened this issue 12 years ago • 5 comments

Sometimes it would be interesting to see the metrics for a specific part of a gc log file. E.g. metrics before and after a full gc where the gc algorithm changed the sizing of the generations. This would help to find out if the sizing before or after was better and should be aimed for.

Setting the start and end time of analysis inside log with one of the following options:

  • provide entry fields for start and end time
  • maybe: provide possibility to set start and end time graphically using the mouse
  • maybe: provide button "zoom to fit"

chewiebug avatar Dec 28 '11 13:12 chewiebug

+1 for this feature. I regularly use this in IBM's pmat, whose support for Oracle JVM's is lacking. Need this to compare GC results of two load tests with the same duration.

eostermueller avatar Aug 26 '13 19:08 eostermueller

This is also helpful to factor out "warm up" tests that show up in the same log file. btw, thanks for gcviewer. I've only been using it for a day and I love it.

eostermueller avatar Aug 26 '13 19:08 eostermueller

Just check did anyone work on this item? Recently I found we really want this feature, beside to show the chart, also need the provide the summary of those "partial log".

yatwql avatar Nov 26 '14 15:11 yatwql

First time to look at the code, Initial thought.

  • Add method in GCModel.java, with start and end time as parameters;
  • In that method ,iterate the allEvents list, extract the event list within the time range;
  • Then create a new GCModel instance with the event list just get.

yatwql avatar Nov 26 '14 16:11 yatwql

Hi,

I wouldn't know of anybody working on this feature, so you are very welcome to start work here.

Your initial thoughts sound good. You'll need to use GCModel#add() to add the cropped allEvents list, because all calculations are made there. If add() is not used, no metrics will be available.

Best regards, Jörg

chewiebug avatar Nov 26 '14 20:11 chewiebug