1 Feb 09:50
Re: Request for review 7141200: log some interesting information in ring buffers for crashes
Tom, Thanks for changing this! It looks much better. The code is cleaner and the the information in the hs_err file is more useful. I have only looked through the GC code changes. I think it looks good. Some comments: The information provided by print_heap_after_gc() is very good, but it does not clearly communicate what type of GC it was. In particular for G1 I think it would be interesting to know if it was a young GC, mixed GC, initial mark of full GC. I'm ok with not including this information now, but maybe we can file a bug to include it? Or maybe we should just leave it for when we re-work this based on JFR... G1 has the notion of "extended" heap information. This can be turned on with the flag PrintHeapAtGCExtended. This gives a lot of information for each region in the heap. I tried running with your patch and turning this flag on. Fortunately you limit the length of the events so the hs_err file is not as huge as it could be. But it gets quite difficult to parse the hs_err file since the extended information kind of messes the output up. I'm attaching an example hs_err file with this output. Again, I'm ok with leaving this as it is and just filing a bug that we should try to turn off "extended" when we log the information for the event buffer. I don't expect that PrintHeapAtGCExtended will be widely used by customers.(Continue reading)
RSS Feed