Class HoggingThreadsHealthCheck
- java.lang.Object
-
- fish.payara.nucleus.healthcheck.preliminary.BaseHealthCheck<HealthCheckHoggingThreadsExecutionOptions,HoggingThreadsChecker>
-
- fish.payara.nucleus.healthcheck.preliminary.HoggingThreadsHealthCheck
-
- All Implemented Interfaces:
fish.payara.monitoring.collect.MonitoringDataSource
,fish.payara.monitoring.collect.MonitoringWatchSource
,HealthCheckConstants
@Service(name="healthcheck-threads") @RunLevel(10) public class HoggingThreadsHealthCheck extends BaseHealthCheck<HealthCheckHoggingThreadsExecutionOptions,HoggingThreadsChecker> implements fish.payara.monitoring.collect.MonitoringDataSource, fish.payara.monitoring.collect.MonitoringWatchSource
A "hogging thread" is a thread that uses most of the CPU during the measured period.- Author:
- mertcaliskan (initial version), Jan Bernitt (consumer based and monitoring)
-
-
Field Summary
-
Fields inherited from class fish.payara.nucleus.healthcheck.preliminary.BaseHealthCheck
checkerType, healthCheckService, options
-
Fields inherited from interface fish.payara.nucleus.healthcheck.HealthCheckConstants
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_MICROPROFILE_METRICS_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 Summary
Constructors Constructor Description HoggingThreadsHealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect(fish.payara.monitoring.collect.MonitoringDataCollector collector)
void
collect(fish.payara.monitoring.collect.MonitoringWatchCollector collector)
HealthCheckHoggingThreadsExecutionOptions
constructOptions(HoggingThreadsChecker checker)
protected HealthCheckResult
doCheckInternal()
String
getDescription()
The key for a human-friendly description of the healthcheck-
Methods inherited from class fish.payara.nucleus.healthcheck.preliminary.BaseHealthCheck
asTimeUnit, constructBaseOptions, decideOnStatusWithDuration, doCheck, getCheckerType, getChecksDone, getChecksFailed, getMostRecentCumulativeStatus, getMostRecentResult, getOptions, isEnabled, isInProgress, isReady, postConstruct, prettyPrintBytes, prettyPrintStackTrace, resolveDescription, sendNotification, setOptions
-
-
-
-
Method Detail
-
constructOptions
public HealthCheckHoggingThreadsExecutionOptions constructOptions(HoggingThreadsChecker checker)
- Specified by:
constructOptions
in classBaseHealthCheck<HealthCheckHoggingThreadsExecutionOptions,HoggingThreadsChecker>
-
getDescription
public String getDescription()
Description copied from class:BaseHealthCheck
The key for a human-friendly description of the healthcheck- Specified by:
getDescription
in classBaseHealthCheck<HealthCheckHoggingThreadsExecutionOptions,HoggingThreadsChecker>
- Returns:
-
doCheckInternal
protected HealthCheckResult doCheckInternal()
- Specified by:
doCheckInternal
in classBaseHealthCheck<HealthCheckHoggingThreadsExecutionOptions,HoggingThreadsChecker>
-
collect
public void collect(fish.payara.monitoring.collect.MonitoringDataCollector collector)
- Specified by:
collect
in interfacefish.payara.monitoring.collect.MonitoringDataSource
-
collect
public void collect(fish.payara.monitoring.collect.MonitoringWatchCollector collector)
- Specified by:
collect
in interfacefish.payara.monitoring.collect.MonitoringWatchSource
-
-