Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.
This repository was archived by the owner on May 26, 2023. It is now read-only.

Errors while tryng to analyze the gc.log #6

@reisub83

Description

@reisub83

$python gc_log_visualizer.py gc.log

$python gc_log_visualizer.py gc.log
File "gc_log_visualizer.py", line 396
except (ValueError, AttributeError), e:
^
SyntaxError: invalid syntax

$./regionsize_vs_objectsize.sh gc.log

0 humongous objects referenced in gc.log
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
% would not be humongous with a 2mb g1 region size
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
% would not be humongous with a 4mb g1 region size
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
% would not be humongous with a 8mb g1 region size
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
% would not be humongous with a 16mb g1 region size
awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted
% would not be humongous with a 32mb g1 region size

the gc.log:

OpenJDK 64-Bit Server VM (25.262-b10) for linux-amd64 JRE (1.8.0_262-b10), built on Jul 15 2020 11:09:38 by "jenkins" with gcc 4.8.2 20140120 (Red Hat 4.8.2-15)
Memory: 4k page, physical 12302164k(10814736k free), swap 4214780k(4214780k free)
CommandLine flags: -XX:CompressedClassSpaceSize=528482304 -XX:ErrorFile=/opt/app/logs/hs_err_pid%p.log -XX:+ExplicitGCInvokesConcurrent -XX:GCLogFileSize=52428800 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/app/logs -XX:InitialHeapSize=67108864 -XX:+ManagementServer -XX:MaxGCPauseMillis=200 -XX:MaxHeapSize=4294967296 -XX:MaxMetaspaceSize=536870912 -XX:NumberOfGCLogFiles=10 -XX:+ParallelRefProcEnabled -XX:+PrintAdaptiveSizePolicy -XX:+PrintGC -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC -XX:+UseGCLogFileRotation -XX:+UseStringDeduplication
0.011: [G1Ergonomics (Heap Sizing) expand the heap, requested expansion amount: 67108864 bytes, attempted expansion amount: 67108864 bytes]
{Heap before GC invocations=0 (full 0):
garbage-first heap total 65536K, used 14336K [0x00000006e0800000, 0x00000006e0900200, 0x00000007e0800000)
region size 1024K, 14 young (14336K), 0 survivors (0K)
Metaspace used 8991K, capacity 9164K, committed 9344K, reserved 1056768K
class space used 1268K, capacity 1296K, committed 1408K, reserved 1048576K
2022-04-01T17:09:23.431+0200: 0,834: [GC pause (G1 Evacuation Pause) (young) 0,834: [G1Ergonomics (CSet Construction) start choosing CSet, _pending_cards: 0, predicted base time: 10,00 ms, remaining time: 190,00 ms, target pause time: 200,00 ms]
0,834: [G1Ergonomics (CSet Construction) add young regions to CSet, eden: 14 regions, survivors: 0 regions, predicted young region time: 356,52 ms]
0,834: [G1Ergonomics (CSet Construction) finish choosing CSet, eden: 14 regions, survivors: 0 regions, old: 0 regions, predicted pause time: 366,52 ms, target pause time: 200,00 ms]
, 0,0133389 secs]
[Parallel Time: 9,3 ms, GC Workers: 4]
[GC Worker Start (ms): Min: 833,6, Avg: 839,6, Max: 841,7, Diff: 8,1]
[Ext Root Scanning (ms): Min: 0,0, Avg: 0,7, Max: 2,7, Diff: 2,7, Sum: 2,7]
[Update RS (ms): Min: 0,0, Avg: 0,0, Max: 0,0, Diff: 0,0, Sum: 0,0]
[Processed Buffers: Min: 0, Avg: 0,0, Max: 0, Diff: 0, Sum: 0]
[Scan RS (ms): Min: 0,0, Avg: 0,0, Max: 0,0, Diff: 0,0, Sum: 0,0]
[Code Root Scanning (ms): Min: 0,0, Avg: 0,0, Max: 0,0, Diff: 0,0, Sum: 0,0]
[Object Copy (ms): Min: 0,0, Avg: 1,2, Max: 4,9, Diff: 4,9, Sum: 4,9]
[Termination (ms): Min: 0,0, Avg: 0,5, Max: 1,4, Diff: 1,4, Sum: 1,9]
[Termination Attempts: Min: 1, Avg: 1,0, Max: 1, Diff: 0, Sum: 4]
[GC Worker Other (ms): Min: 0,0, Avg: 0,0, Max: 0,0, Diff: 0,0, Sum: 0,1]
[GC Worker Total (ms): Min: 0,0, Avg: 2,4, Max: 9,1, Diff: 9,1, Sum: 9,6]
[GC Worker End (ms): Min: 841,8, Avg: 842,0, Max: 842,7, Diff: 0,9]
[Code Root Fixup: 0,0 ms]
[Code Root Purge: 0,0 ms]
[String Dedup Fixup: 0,3 ms, GC Workers: 4]
[Queue Fixup (ms): Min: 0,0, Avg: 0,0, Max: 0,0, Diff: 0,0, Sum: 0,0]
[Table Fixup (ms): Min: 0,0, Avg: 0,0, Max: 0,2, Diff: 0,2, Sum: 0,2]
[Clear CT: 0,2 ms]
[Other: 3,5 ms]
[Choose CSet: 0,0 ms]
[Ref Proc: 2,9 ms]
[Ref Enq: 0,2 ms]
[Redirty Cards: 0,3 ms]
[Humongous Register: 0,0 ms]
[Humongous Reclaim: 0,0 ms]
[Free CSet: 0,0 ms]
[Eden: 14336,0K(14336,0K)->0,0B(22528,0K) Survivors: 0,0B->2048,0K Heap: 14336,0K(65536,0K)->1706,2K(65536,0K)]
Heap after GC invocations=1 (full 0):
garbage-first heap total 65536K, used 1706K [0x00000006e0800000, 0x00000006e0900200, 0x00000007e0800000)
region size 1024K, 2 young (2048K), 2 survivors (2048K)
Metaspace used 8991K, capacity 9164K, committed 9344K, reserved 1056768K
class space used 1268K, capacity 1296K, committed 1408K, reserved 1048576K
}
[Times: user=0,02 sys=0,00, real=0,01 secs]
2022-04-01T17:09:23.444+0200: 0,847: Total time for which application threads were stopped: 0,0136800 seconds, Stopping threads took: 0,0000574 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions