Class JavaUtils

java.lang.Object
org.apache.cassandra.utils.JavaUtils

public final class JavaUtils extends Object
Utility method to retrieve information about the JRE.
  • Method Details

    • supportExitOnOutOfMemory

      public static boolean supportExitOnOutOfMemory(String jreVersion)
      Checks if the specified JRE support ExitOnOutOfMemory and CrashOnOutOfMemory.
      Parameters:
      jreVersion - the JRE version
      Returns:
      true if the running JRE support ExitOnOutOfMemory and CrashOnOutOfMemory or if the exact version cannot be determined, false otherwise.