Class SystemHealthCheck

java.lang.Object
com.saperion.ngc.util.SystemHealthCheck

public final class SystemHealthCheck extends Object
Utility class used to check the systems health and configuration. Uses System and RuntimeMXBean to check settings.
  • Method Details

    • 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