Constructor and Description |
---|
FirstGCTimestampFunction() |
FirstGCTimestampFunction(String timestampFormat) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<Long> |
apply(String text) |
protected com.google.common.base.Optional<Long> |
getFirstGCTimestamp(String text)
1 - Identify the line containing the timestamp
2 - Extract the timestamp from that line 3 - Convert the timestamp into milliseconds |
protected com.google.common.base.Optional<Long> |
getMillis(String timestamp)
Timestamp format -> 2014-01-06T21:23:15.299+0000
|
protected com.google.common.base.Optional<String> |
getTimestamp(String line)
Timestamp line format -> 2014-01-06T21:23:15.299+0000: 0.957: [GC
|
protected com.google.common.base.Optional<String> |
getTimestampLine(String text)
A HotSpot garbage collection event is always bracketed by {} and contains a timestamp line that starts with the current year.
|
public FirstGCTimestampFunction()
public FirstGCTimestampFunction(String timestampFormat)
protected com.google.common.base.Optional<Long> getFirstGCTimestamp(String text)
protected com.google.common.base.Optional<String> getTimestampLine(String text)
{Heap before GC invocations=36 (full 14): PSYoungGen total 644608K, used 320K [0x00000007d5500000, 0x00000007ffe00000, 0x0000000800000000) eden space 591360K, 0% used [0x00000007d5500000,0x00000007d5500000,0x00000007f9680000) from space 53248K, 0% used [0x00000007fca00000,0x00000007fca50040,0x00000007ffe00000) to space 52736K, 0% used [0x00000007f9680000,0x00000007f9680000,0x00000007fca00000) ParOldGen total 349696K, used 72060K [0x0000000780000000, 0x0000000795580000, 0x00000007d5500000) object space 349696K, 20% used [0x0000000780000000,0x000000078465f240,0x0000000795580000) PSPermGen total 93696K, used 71086K [0x0000000770000000, 0x0000000775b80000, 0x0000000780000000) object space 93696K, 75% used [0x0000000770000000,0x000000077456b970,0x0000000775b80000) 2014-02-08T11:27:30.503+0000: 47666.362: [Full GC [PSYoungGen: 320K->0K(644608K)] [ParOldGen: 72060K->72013K(349696K)] 72380K->72013K(994304K) [PSPermGen: 71086K->71080K(90112K)], 0.4259030 secs] [Times: user=0.74 sys=0.00, real=0.43 secs] Heap after GC invocations=36 (full 14): PSYoungGen total 644608K, used 0K [0x00000007d5500000, 0x00000007ffe00000, 0x0000000800000000) eden space 591360K, 0% used [0x00000007d5500000,0x00000007d5500000,0x00000007f9680000) from space 53248K, 0% used [0x00000007fca00000,0x00000007fca00000,0x00000007ffe00000) to space 52736K, 0% used [0x00000007f9680000,0x00000007f9680000,0x00000007fca00000) ParOldGen total 349696K, used 72013K [0x0000000780000000, 0x0000000795580000, 0x00000007d5500000) object space 349696K, 20% used [0x0000000780000000,0x0000000784653628,0x0000000795580000) PSPermGen total 90112K, used 71080K [0x0000000770000000, 0x0000000775800000, 0x0000000780000000) object space 90112K, 78% used [0x0000000770000000,0x000000077456a208,0x0000000775800000) }
protected com.google.common.base.Optional<String> getTimestamp(String line)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.