microsoft / gctoolkit

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

CMS: Heap Size and Occupancy before GC #385

Open AlinaHovakimyan opened 2 months ago

AlinaHovakimyan commented 2 months ago

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

dsgrieve commented 2 months ago

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

AlinaHovakimyan commented 2 months 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