Class PreUnifiedDiarizer
- java.lang.Object
-
- com.microsoft.gctoolkit.parser.jvm.PreUnifiedDiarizer
-
- All Implemented Interfaces:
Diarizer
public class PreUnifiedDiarizer extends Object implements Diarizer
Class to answer 3 questions about the GC log; - which collector combination is being used - which JVM version - which flags are being usedCollectors - Unknown (no details) - Serial - ParNew/CMS - iCMS - PSYoungGen/PSFull - G1GC
Version breaks Can be known precisely if header is present in GC log. prior to 1.7.0_45 1.7.0_45 has the System.gc() regression 1.8.0_05 anything after this version will include G1 Metaspace clause 1.9.0 unknown how to determine this via deriveConfiguration.
Are these flags set PrintGCDetails PrintTenuringDistrubtion PrintGCApplicationStoppedTime PrintGCApplicationConcurrentTime
Log file characteristics
pre 7.0_45 - Permspace - (System)
7.0_45+ - (System.gc()) - Permspace
8.0 - Metaspace
8.0_20 - G1 prints Metaspace clause
Collector clues iCMS - CMS cycle starts early but once completed all further records will contain "icms_dc="
ParNew/CMS - ParNew - initial-mark
PSYoung/PSFull - PSYoungGen - PSFull
Serial - DefNew
-
-
Field Summary
-
Fields inherited from interface com.microsoft.gctoolkit.jvm.Diarizer
MAXIMUM_LINES_TO_EXAMINE
-
-
Constructor Summary
Constructors Constructor Description PreUnifiedDiarizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompleted()booleandiarize(String line)Attempt to diarize the GC Log line that's come.voidfillInKnowns()StringgetCommandLine()DiarygetDiary()intgetMaxTenuringThreshold()DateTimeStampgetTimeOfFirstEvent()booleanhasJVMEvents()booleanisUnified()
-
-
-
Method Detail
-
getCommandLine
public String getCommandLine()
- Specified by:
getCommandLinein interfaceDiarizer
-
getMaxTenuringThreshold
public int getMaxTenuringThreshold()
- Specified by:
getMaxTenuringThresholdin interfaceDiarizer
-
hasJVMEvents
public boolean hasJVMEvents()
- Specified by:
hasJVMEventsin interfaceDiarizer
-
fillInKnowns
public void fillInKnowns()
- Specified by:
fillInKnownsin interfaceDiarizer
-
diarize
public boolean diarize(String line)
Attempt to diarize the GC Log line that's come. That is, if we collect enough details about this log in oder to categorize it by collector and collector features then we return true
-
getTimeOfFirstEvent
public DateTimeStamp getTimeOfFirstEvent()
- Specified by:
getTimeOfFirstEventin interfaceDiarizer
-
-