Class ONative

java.lang.Object
com.orientechnologies.common.jnr.ONative

public class ONative extends Object
  • Field Details

  • Method Details

    • instance

      public static ONative instance()
    • getOpenFilesLimit

      public int getOpenFilesLimit(boolean verbose, int recommended, int defLimit)
      Detects limit of limit of open files.
      Parameters:
      recommended - recommended value of limit of open files.
      defLimit - default value for limit of open files.
      Returns:
      limit of open files, available for the system.
    • getMemoryLimit

      public ONative.MemoryLimitResult getMemoryLimit(boolean printSteps)
      Parameters:
      printSteps - Print all steps of discovering of memory limit in the log with INFO level.
      Returns:
      Amount of memory which are allowed to be consumed by application, and detects whether OrientDB instance is running inside container. If null is returned then it was impossible to detect amount of memory on machine.
    • isOsRoot

      public boolean isOsRoot()