Class ServerMemoryInfo

java.lang.Object
com.aceql.jdbc.commons.ServerMemoryInfo

public class ServerMemoryInfo
extends Object
Contains health check Java memory info of the AceQL server running instance.
Since:
9.2
Author:
Nicolas de Pomereu
  • Constructor Summary

    Constructors
    Constructor Description
    ServerMemoryInfo()  
  • Method Summary

    Modifier and Type Method Description
    long getCommittedMemory()
    Returns the amount of memory in bytes that is committed for the Java virtual machine to use.
    long getInitMemory()
    Returns the amount of memory in bytes that the Java virtual machine initially requests from the operating system for memory management.
    long getMaxMemory()
    Returns the maximum amount of memory in bytes that can be used for memory management.
    long getUsedMemory()
    Returns the amount of used memory in bytes.
    String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ServerMemoryInfo

      public ServerMemoryInfo()
  • Method Details

    • getInitMemory

      public long getInitMemory()
      Returns the amount of memory in bytes that the Java virtual machine initially requests from the operating system for memory management. This method returns -1 if the initial memory size is undefined.
      Returns:
      the initial size of memory in bytes.
    • getUsedMemory

      public long getUsedMemory()
      Returns the amount of used memory in bytes.
      Returns:
      the amount of used memory in bytes.
    • getMaxMemory

      public long getMaxMemory()
      Returns the maximum amount of memory in bytes that can be used for memory management. This method returns -1 if the maximum memory size is undefined.

      This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.

      Returns:
      the maximum amount of memory in bytes; -1 if undefined.
    • getCommittedMemory

      public long getCommittedMemory()
      Returns the amount of memory in bytes that is committed for the Java virtual machine to use. This amount of memory is guaranteed for the Java virtual machine to use.
      Returns:
      the amount of committed memory in bytes.
    • toString

      public String toString()
      Overrides:
      toString in class Object