public class JvmMonitor
extends java.lang.Object
Constructor and Description |
---|
JvmMonitor() |
Modifier and Type | Method and Description |
---|---|
long |
gcTime()
Returns the sum of approximate accumulated collection elapsed time in milliseconds
as reported by all garbage collectors.
|
long |
getFreeHeap(boolean gcBeforeMeasure) |
double |
getGCRateSiceLastCheck()
Returns the time spend in gc as proportion (0.0 to 1.0) of the
time interval since this method has been called the last time and now.
|
long |
getGCtimeSiceLastCheck()
Returns the gcTime in milliseconds as obtained through
#gctime() of the
time interval since this method has been called the last time and now. |
java.lang.management.MemoryUsage |
getHeapMemoryUsage() |
boolean |
hasFreeHeap(long freeHeapLimit) |
public static final Logger logger
public long gcTime()
public java.lang.management.MemoryUsage getHeapMemoryUsage()
public boolean hasFreeHeap(long freeHeapLimit)
public long getFreeHeap(boolean gcBeforeMeasure)
public long getGCtimeSiceLastCheck()
#gctime()
of the
time interval since this method has been called the last time and now.public double getGCRateSiceLastCheck()
Copyright © 2007-2020 EDIT. All Rights Reserved.