Package com.saperion.ngc.util
Class SystemHealthCheck
java.lang.Object
com.saperion.ngc.util.SystemHealthCheck
Utility class used to check the systems health and configuration. Uses
System
and RuntimeMXBean
to check settings.-
Method Summary
Modifier and TypeMethodDescriptionstatic SystemHealthCheck
void
Logs warning messages if one of the following checks fails.void
Logs information about the server's memory configuration.void
Logs information about the server's java-vm.
-
Method Details
-
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
-