Hi guys,
I'm trying to parse GC logs from JBoss which look like this:
{Heap before GC invocations=1 (full 0):
PSYoungGen total 3670016K, used 692062K [0x0000000700000000, 0x0000000800000000, 0x0000000800000000)
eden space 3145728K, 22% used [0x0000000700000000,0x000000072a3d7898,0x00000007c0000000)
from space 524288K, 0% used [0x00000007e0000000,0x00000007e0000000,0x0000000800000000)
to space 524288K, 0% used [0x00000007c0000000,0x00000007c0000000,0x00000007e0000000)
PSOldGen total 8388608K, used 0K [0x0000000500000000, 0x0000000700000000, 0x0000000700000000)
object space 8388608K, 0% used [0x0000000500000000,0x0000000500000000,0x0000000700000000)
PSPermGen total 786432K, used 37693K [0x00000004c0000000, 0x00000004f0000000, 0x0000000500000000)
object space 786432K, 4% used [0x00000004c0000000,0x00000004c24cf628,0x00000004f0000000)
2015-01-11T01:12:55.373-0500: 8.667: [GC [PSYoungGen: 692062K->12100K(3670016K)] 692062K->12100K(12058624K), 0.0244480 secs] [Times: user=0.07 sys=0.00, real=0.02 secs]
Heap after GC invocations=1 (full 0):
PSYoungGen total 3670016K, used 12100K [0x0000000700000000, 0x0000000800000000, 0x0000000800000000)
eden space 3145728K, 0% used [0x0000000700000000,0x0000000700000000,0x00000007c0000000)
from space 524288K, 2% used [0x00000007c0000000,0x00000007c0bd1290,0x00000007e0000000)
to space 524288K, 0% used [0x00000007e0000000,0x00000007e0000000,0x0000000800000000)
PSOldGen total 8388608K, used 0K [0x0000000500000000, 0x0000000700000000, 0x0000000700000000)
object space 8388608K, 0% used [0x0000000500000000,0x0000000500000000,0x0000000700000000)
PSPermGen total 786432K, used 37693K [0x00000004c0000000, 0x00000004f0000000, 0x0000000500000000)
object space 786432K, 4% used [0x00000004c0000000,0x00000004c24cf628,0x00000004f0000000)
}
{Heap before GC invocations=2 (full 1):
..................................................................
}
JBoss event starts with “{Heap before GC” and ends with “}” right before the next “{Heap before” stanza. Timestamp is buried in the middle. This is my props stanza (doesn't work):
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 32
TZ = GMT
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
LINE_BREAKER=([\r\n]+){Heap before GC
SHOULD_LINEMERGE = False
TRUNCATE = 10000
MAX_EVENTS = 256
What am I doing wrong here?
Thanks, Roman
... View more