microsoft / gctoolkit

Tool for parsing GC logs
https://github.com/microsoft/gctoolkit
MIT License
1.24k stars 152 forks source link

CMS: Heap Size and Occupancy before GC #385

Open AlinaHovakimyan opened 1 week ago

AlinaHovakimyan commented 1 week ago

Heap size and occupancy before GC are returning heap size and occupancy after GC.

dsgrieve commented 1 week ago

@AlinaHovakimyan - Which collector are we talking about here? And can you submit a log fragment or whole log.

AlinaHovakimyan commented 3 days ago

@dsgrieve the log file used: cms_gen.log

For example in 22 2024-08-16T15:20:51.002+0400: 34.193: [GC (CMS Initial Mark) [1 CMS-initial-mark: 0K(349568K)] 54146K(506816K), 0.0326151 secs] [Times: user=0.03 sys=0.00, real=0.03 secs]

For this line I was expecting to receive: heap used before: 0 k heap size before: 349568 K heap used after: 54146 K heap size after: 506816 K

Please let me know, if my expectations were incorrect.

Please see the received event in the screenshot:

Screenshot 2024-09-12 at 14 40 12