@Service(name="healthcheck-heap") @RunLevel(value=10) public class HeapMemoryUsageHealthCheck extends BaseThresholdHealthCheck<HealthCheckWithThresholdExecutionOptions,HeapMemoryUsageChecker> implements fish.payara.monitoring.collect.MonitoringDataSource, fish.payara.monitoring.collect.MonitoringWatchSource
checkerType, healthCheckService, options
DEFAULT_ADD_TO_MICROPROFILE_HEALTH, DEFAULT_CONNECTION_POOL_NAME, DEFAULT_CPU_USAGE_NAME, DEFAULT_ENABLED, DEFAULT_GARBAGE_COLLECTOR_NAME, DEFAULT_HEAP_MEMORY_USAGE_NAME, DEFAULT_HOGGING_THREADS_NAME, DEFAULT_MACHINE_MEMORY_USAGE_NAME, DEFAULT_MICROPROFILE_HEALTHCHECK_NAME, DEFAULT_RETRY_COUNT, DEFAULT_STUCK_THREAD_NAME, DEFAULT_THRESHOLD_PERCENTAGE, DEFAULT_TIME, DEFAULT_TIMEOUT, DEFAULT_UNIT, FIVE_MIN, OLD_CONCURRENTMARKSWEEP, OLD_G1GC, OLD_MARK_SWEEP_COMPACT, OLD_PS_MARKSWEEP, ONE_GB, ONE_KB, ONE_MB, ONE_MIN, ONE_SEC, THRESHOLD_CRITICAL, THRESHOLD_DEFAULTVAL_CRITICAL, THRESHOLD_DEFAULTVAL_GOOD, THRESHOLD_DEFAULTVAL_WARNING, THRESHOLD_GOOD, THRESHOLD_WARNING, YOUNG_COPY, YOUNG_G1GC, YOUNG_PARNEW, YOUNG_PS_SCAVENGE
Constructor and Description |
---|
HeapMemoryUsageHealthCheck() |
Modifier and Type | Method and Description |
---|---|
void |
collect(fish.payara.monitoring.collect.MonitoringDataCollector collector) |
void |
collect(fish.payara.monitoring.collect.MonitoringWatchCollector collector) |
HealthCheckWithThresholdExecutionOptions |
constructOptions(HeapMemoryUsageChecker checker) |
protected HealthCheckResult |
doCheckInternal() |
protected String |
getDescription()
The key for a human-friendly description of the healthcheck
|
collectUsage, constructThresholdOptions, decideOnStatusWithRatio, getOptions
asTimeUnit, constructBaseOptions, decideOnStatusWithDuration, doCheck, getCheckerType, getChecksDone, getChecksFailed, getMostRecentCumulativeStatus, getMostRecentResult, isEnabled, isInProgress, isReady, postConstruct, prettyPrintBytes, prettyPrintStackTrace, resolveDescription, sendNotification, setOptions
public HealthCheckWithThresholdExecutionOptions constructOptions(HeapMemoryUsageChecker checker)
constructOptions
in class BaseHealthCheck<HealthCheckWithThresholdExecutionOptions,HeapMemoryUsageChecker>
protected String getDescription()
BaseHealthCheck
getDescription
in class BaseHealthCheck<HealthCheckWithThresholdExecutionOptions,HeapMemoryUsageChecker>
protected HealthCheckResult doCheckInternal()
doCheckInternal
in class BaseHealthCheck<HealthCheckWithThresholdExecutionOptions,HeapMemoryUsageChecker>
public void collect(fish.payara.monitoring.collect.MonitoringWatchCollector collector)
collect
in interface fish.payara.monitoring.collect.MonitoringWatchSource
public void collect(fish.payara.monitoring.collect.MonitoringDataCollector collector)
collect
in interface fish.payara.monitoring.collect.MonitoringDataSource
Copyright © 2020. All rights reserved.