public class JmxGcMonitor extends Object implements GcMonitor
Major and minor GCs are logged to standard logging system, which makes it easy to debug the full log stream. TimeStats are exported for major, minor, and application time.
| Constructor and Description |
|---|
JmxGcMonitor() |
| Modifier and Type | Method and Description |
|---|---|
TimeStat |
getMajorGc() |
long |
getMajorGcCount() |
io.airlift.units.Duration |
getMajorGcTime() |
TimeStat |
getMinorGc() |
void |
start() |
void |
stop() |
@PostConstruct public void start()
@PreDestroy public void stop()
public long getMajorGcCount()
getMajorGcCount in interface GcMonitorpublic io.airlift.units.Duration getMajorGcTime()
getMajorGcTime in interface GcMonitorpublic TimeStat getMajorGc()
public TimeStat getMinorGc()
Copyright © 2010–2021 Airlift. All rights reserved.