public class JvmPauseMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static long |
INFO_THRESHOLD_DEFAULT |
static String |
INFO_THRESHOLD_KEY |
protected long |
infoThresholdMs
log INFO if we detect a pause longer than this threshold
|
static String |
JVM_PAUSE_MONITOR_FEATURE_SWITCH_KEY |
static long |
SLEEP_TIME_MS_DEFAULT |
static String |
SLEEP_TIME_MS_KEY |
protected long |
sleepTimeMs
The target sleep time
|
static long |
WARN_THRESHOLD_DEFAULT |
static String |
WARN_THRESHOLD_KEY |
protected long |
warnThresholdMs
log WARN if we detect a pause longer than this threshold
|
Constructor and Description |
---|
JvmPauseMonitor(QuorumPeerConfig config) |
JvmPauseMonitor(ServerConfig config) |
Modifier and Type | Method and Description |
---|---|
long |
getNumGcInfoThresholdExceeded() |
long |
getNumGcWarnThresholdExceeded() |
long |
getTotalGcExtraSleepTime() |
boolean |
isStarted() |
void |
serviceStart() |
void |
serviceStop() |
public static final String JVM_PAUSE_MONITOR_FEATURE_SWITCH_KEY
protected long sleepTimeMs
public static final String SLEEP_TIME_MS_KEY
public static final long SLEEP_TIME_MS_DEFAULT
protected long warnThresholdMs
public static final String WARN_THRESHOLD_KEY
public static final long WARN_THRESHOLD_DEFAULT
protected long infoThresholdMs
public static final String INFO_THRESHOLD_KEY
public static final long INFO_THRESHOLD_DEFAULT
public JvmPauseMonitor(QuorumPeerConfig config)
public JvmPauseMonitor(ServerConfig config)
public void serviceStart()
public void serviceStop()
public boolean isStarted()
public long getNumGcWarnThresholdExceeded()
public long getNumGcInfoThresholdExceeded()
public long getTotalGcExtraSleepTime()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.