Package com.saperion.ngc.util
Class SystemHealthCheck
- java.lang.Object
-
- com.saperion.ngc.util.SystemHealthCheck
-
public final class SystemHealthCheck extends java.lang.Object
Utility class used to check the systems health and configuration. UsesSystem
andRuntimeMXBean
to check settings.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemHealthCheck
getInstance()
void
logConfigurationWarnings()
Logs warning messages if one of the following checks fails.void
logMemoryConfiguration()
Logs information about the server's memory configuration.void
logVMInfos()
Logs information about the server's java-vm.
-
-
-
Method Detail
-
getInstance
public static SystemHealthCheck getInstance()
- Returns:
- singleton instance of
SystemHealthCheck
-
logVMInfos
public void logVMInfos()
Logs information about the server's java-vm. The followind information is logged:- vm name
- vm vendor
- operating system name and version
- architecture
- file encoding
-
logMemoryConfiguration
public void logMemoryConfiguration()
Logs information about the server's memory configuration. The followind information is logged:- max heap size
- min heap size
- stack size
-
logConfigurationWarnings
public void logConfigurationWarnings()
Logs warning messages if one of the following checks fails.- max heap is set to recommended minimum
- file-encoding is set to UTF-8
-
-