gctoolkit icon indicating copy to clipboard operation
gctoolkit copied to clipboard

Support gc logs where each gc event is described on a single line

Open AlinaHovakimyan opened this issue 3 weeks ago • 5 comments

GCtoolkit does not support simple logs. That is, logs where each GC event is described on a single line. Such log, for example, can be generated, when using Parallel GC with unified logging and minimal arguments. Example vm args: -XX:+UseParallelGC -Xlog:gc:file=gc.log Example log: gc_parallel.log

Why this is important: These minimal-configuration logs sometimes are the first logs users produce when diagnosing GC behavior, before they move on to more advanced logging options.

AlinaHovakimyan avatar Nov 28 '25 07:11 AlinaHovakimyan

Hi @AlinaHovakimyan - that is somewhat by design in terms of the scope from the original authors (we typically guide users through the minimal useful settings for GC log analysis). We're not saying that we would never support these simpler logs, but I think we'd be looking for community contributions there and making sure that the end use is aware that they should really be adding a minimal set of flags.

karianna avatar Nov 28 '25 20:11 karianna

@karianna - this looks like issue #372, or at least the reason why gctoolkit needs more than just default logging.

dsgrieve avatar Nov 30 '25 23:11 dsgrieve

Thank you @karianna and @dsgrieve for your reply. Do you know if adding this support will require significant changes ?

AlinaHovakimyan avatar Dec 04 '25 11:12 AlinaHovakimyan

Thank you @karianna and @dsgrieve for your reply. Do you know if adding this support will require significant changes ?

I'm not sure, I suspect hte parser work will be fairly minimal, but surfacing the data may be more complex as the domain layers expect richer data.

karianna avatar Dec 05 '25 02:12 karianna

Also #457 is a similar issue which I've submitted a fix for, but is not yet available in release.

jlittle-ptc avatar Dec 08 '25 12:12 jlittle-ptc