Class HealthMonitor

  extended by java.lang.Thread
      extended by com.hazelcast.util.HealthMonitor
All Implemented Interfaces:

public class HealthMonitor
extends Thread

Health monitor periodically prints logs about related internal metrics under when hazelcast is under load. Under load means that memory usage is above threshold percentage or process/cpu load is above threshold.

Health monitor can be configured with system properties

"" This property can be one of the following NOISY => does not check threshold , always prints. SILENT(default) => prints only if metrics are above threshold. OFF => Does not print anything.

"" Time between printing two logs of health monitor. Default values is 30 seconds

Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
Field Summary
Fields inherited from class java.lang.Thread
Constructor Summary
HealthMonitor(HazelcastInstanceImpl hazelcastInstance, HealthMonitorLevel logLevel, int delaySeconds)
Method Summary
static String numberToUnit(long number)
static String percentageString(double p)
 void run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public HealthMonitor(HazelcastInstanceImpl hazelcastInstance,
                     HealthMonitorLevel logLevel,
                     int delaySeconds)
Method Detail


public void run()
Specified by:
run in interface Runnable
run in class Thread


public static String percentageString(double p)


public static String numberToUnit(long number)

Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.