@NotThreadSafe public class JvmPauseMonitor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JvmPauseMonitor.GarbageCollectorMXBeanView
An unmodifiable view of a garbage collector MX Bean.
|
Constructor and Description |
---|
JvmPauseMonitor(long gcSleepIntervalMs,
long warnThresholdMs,
long infoThresholdMs)
Constructs JvmPauseMonitor.
|
Modifier and Type | Method and Description |
---|---|
long |
getInfoTimeExceeded() |
long |
getTotalExtraTime() |
long |
getWarnTimeExceeded() |
boolean |
isStarted() |
void |
start()
Starts jvm monitor thread.
|
void |
stop()
Stops jvm monitor.
|
public JvmPauseMonitor(long gcSleepIntervalMs, long warnThresholdMs, long infoThresholdMs)
gcSleepIntervalMs
- The time in milliseconds to sleep for in checking for GC pauseswarnThresholdMs
- when gc pauses exceeds this time in milliseconds log WARNinfoThresholdMs
- when gc pauses exceeds this time in milliseconds log INFOpublic void start()
public void stop()
public boolean isStarted()
public long getWarnTimeExceeded()
public long getInfoTimeExceeded()
public long getTotalExtraTime()
Copyright © 2023. All Rights Reserved.