com.ibm.java.diagnostics.healthcenter.api.nativememory

Interface NativeMemoryData

  • All Superinterfaces:
    HealthCenterData, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter


    public interface NativeMemoryData
    extends HealthCenterData
    This class contains general information about the native memory usage of the process and the system that are being monitored.
    • Field Detail

      • PHYSICALMEMORYDATA

        static final java.lang.String PHYSICALMEMORYDATA
        Used to get only Physical Memory Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • VIRTUALMEMORYDATA

        static final java.lang.String VIRTUALMEMORYDATA
        Used to get only Virtual Memory Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • PRIVATEMEMORYDATA

        static final java.lang.String PRIVATEMEMORYDATA
        Used to get only Private Memory Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • FREEPHYSICALMEMORYDATA

        static final java.lang.String FREEPHYSICALMEMORYDATA
        Used to get only Free Physical Memory Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
      • TOTALPHYSICALMEMORYDATA

        static final java.lang.String TOTALPHYSICALMEMORYDATA
        Used to get only Total Physical Memory Data when comparing against NotificationListener.getUserData()
        See Also:
        Constant Field Values
    • Method Detail

      • getProcessPhysical

        MemoryData[] getProcessPhysical()
        Gets the amount of physical memory (RAM) that is currently in use by the monitored process. On some platforms, this memory is called "resident storage" or the "working set". NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MemoryData of the process physical memory. This is all the data available over time and not just the most recent.
      • getProcessVirtual

        MemoryData[] getProcessVirtual()
        Gets the total process address space in use. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MemoryData of the process virtual memory. This is all the data available over time and not just the most recent.
      • getProcessPrivate

        MemoryData[] getProcessPrivate()
        Gets the amount of memory that is used exclusively by the monitored process. This memory is not shared with other processes on the system. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MemoryData of the process private memory in use. This is all the data available over time and not just the most recent.
      • getFreePhysicalMemory

        MemoryData[] getFreePhysicalMemory()
        Gets the amount of physical memory (RAM) that is free on the monitored system. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MemoryData of how much free memory there is. This is all the data available over time and not just the most recent.
      • getTotalPhysicalMemory

        MemoryData[] getTotalPhysicalMemory()
        Gets the total amount of installed physical memory. NOTE If running in "event only" mode, this data will always return an empty array. This is because "event only" does not store any data to inquire on. Instead, you need to use the api calls to register listeners and get notification of when events occur
        Returns:
        an array of MemoryData of the amount of installed memory. This is all the data available over time and not just the most recent.
      • getNativeMemoryRoot

        NativeMemoryCategory getNativeMemoryRoot()
        Gets the object at the root of the hierarchy of native memory categories. The highest-level category is JRE. For more information, see the NativeMemoryCategory class.
        Returns:
        the object at the root of the native memory hierarchy.
      • getMinFreePhysicalMemory

        long getMinFreePhysicalMemory()
        Gets the minimum amount of memory that is free on the monitored system in bytes.
        Returns:
        minimum memory in bytes
      • getMaxFreePhysicalMemory

        long getMaxFreePhysicalMemory()
        Gets the maximum amount of memory that is free on the monitored system in bytes.
        Returns:
        maximum memory in bytes
      • getMeanFreePhysicalMemory

        double getMeanFreePhysicalMemory()
        Gets the mean amount of memory that is free on the monitored system in bytes.
        Returns:
        mean memory in bytes
      • getMinProcessPhysicalMemory

        long getMinProcessPhysicalMemory()
        Gets the minimum amount of physical memory in use by the monitored process in bytes.
        Returns:
        minimum memory in bytes
      • getMaxProcessPhysicalMemory

        long getMaxProcessPhysicalMemory()
        Gets the maximum amount of physical memory in use by the monitored process in bytes.
        Returns:
        maximum memory in bytes
      • getMeanProcessPhysicalMemory

        double getMeanProcessPhysicalMemory()
        Gets the mean amount of physical memory in use by the monitored process in bytes.
        Returns:
        mean memory in bytes
      • getMinProcessPrivateMemory

        long getMinProcessPrivateMemory()
        Gets the minimum amount of memory used exclusively by the monitored process, in bytes.
        Returns:
        minimum memory in bytes
      • getMaxProcessPrivateMemory

        long getMaxProcessPrivateMemory()
        Gets the maximum amount of memory used exclusively by the monitored process, in bytes.
        Returns:
        maximum memory in bytes
      • getMeanProcessPrivateMemory

        double getMeanProcessPrivateMemory()
        Gets the mean amount of memory used exclusively by the monitored process, in bytes.
        Returns:
        mean memory in bytes
      • getMinProcessVirtualMemory

        long getMinProcessVirtualMemory()
        Gets the minimum amount of total process address space used, in bytes.
        Returns:
        minimum memory in bytes
      • getMaxProcessVirtualMemory

        long getMaxProcessVirtualMemory()
        Gets the maximum amount of total process address space used, in bytes.
        Returns:
        maximum memory in bytes
      • getMeanProcessVirtualMemory

        double getMeanProcessVirtualMemory()
        Gets the mean amount of total process address space used, in bytes.
        Returns:
        mean memory in bytes
      • addNativeMemoryListener

        void addNativeMemoryListener(NativeMemoryEventListener listener)
        Add a listener for notification of when Native Memory events occur
        Parameters:
        implementation - of the NativeMemoryEventListener class
      • addNativeMemoryCategoryListener

        void addNativeMemoryCategoryListener(NativeMemoryCategoryEventListener listener)
        Add a listener for notification of when Native Memory Category events occur
        Parameters:
        implementation - of the addNativeMemoryCategoryListener class
      • removeNativeMemoryListener

        void removeNativeMemoryListener(NativeMemoryEventListener listener)
        Remove one of the registered listeners.
        Parameters:
        implementation - of the NativeMemoryEventListener class
      • removeNativeMemoryCategoryListener

        void removeNativeMemoryCategoryListener(NativeMemoryCategoryEventListener listener)
        Remove one of the registered listeners.
        Parameters:
        implementation - of the NativeMemoryCategoryEventListener class
© Copyright 2012, 2016 IBM Corporation.