Interface NativeMemoryData
- All Superinterfaces:
HealthCenterData,NotificationBroadcaster,NotificationEmitter
- All Known Implementing Classes:
NativeMemoryDataImpl
This class contains general information about the native memory usage of the
process and the system that are being monitored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUsed to get only Free Physical Memory Data when comparing againstNotificationListener.getUserData()static final StringUsed to get only Physical Memory Data when comparing againstNotificationListener.getUserData()static final StringUsed to get only Private Memory Data when comparing againstNotificationListener.getUserData()static final StringUsed to get only Total Physical Memory Data when comparing againstNotificationListener.getUserData()static final StringUsed to get only Virtual Memory Data when comparing againstNotificationListener.getUserData() -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener for notification of when Native Memory Category events occurvoidAdd a listener for notification of when Native Memory events occurGets the amount of physical memory (RAM) that is free on the monitored system.longGets the maximum amount of memory that is free on the monitored system in bytes.longGets the maximum amount of physical memory in use by the monitored process in bytes.longGets the maximum amount of memory used exclusively by the monitored process, in bytes.longGets the maximum amount of total process address space used, in bytes.doubleGets the mean amount of memory that is free on the monitored system in bytes.doubleGets the mean amount of physical memory in use by the monitored process in bytes.doubleGets the mean amount of memory used exclusively by the monitored process, in bytes.doubleGets the mean amount of total process address space used, in bytes.longGets the minimum amount of memory that is free on the monitored system in bytes.longGets the minimum amount of physical memory in use by the monitored process in bytes.longGets the minimum amount of memory used exclusively by the monitored process, in bytes.longGets the minimum amount of total process address space used, in bytes.Gets the object at the root of the hierarchy of native memory categories.Gets the amount of physical memory (RAM) that is currently in use by the monitored process.Gets the amount of memory that is used exclusively by the monitored process.Gets the total process address space in use.Gets the total amount of installed physical memory.voidRemove one of the registered listeners.voidRemove one of the registered listeners.Methods inherited from interface com.ibm.java.diagnostics.healthcenter.api.HealthCenterData
getAllRecommendations, getCriticalRecommendations, getHealthyRecommendations, getInformationalRecommendations, getWarningRecommendations, startNotifying, startNotifyingMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
PHYSICALMEMORYDATA
Used to get only Physical Memory Data when comparing againstNotificationListener.getUserData()- See Also:
-
VIRTUALMEMORYDATA
Used to get only Virtual Memory Data when comparing againstNotificationListener.getUserData()- See Also:
-
PRIVATEMEMORYDATA
Used to get only Private Memory Data when comparing againstNotificationListener.getUserData()- See Also:
-
FREEPHYSICALMEMORYDATA
Used to get only Free Physical Memory Data when comparing againstNotificationListener.getUserData()- See Also:
-
TOTALPHYSICALMEMORYDATA
Used to get only Total Physical Memory Data when comparing againstNotificationListener.getUserData()- See Also:
-
-
Method Details
-
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 or null if no data has been retrieved.
-
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
Add a listener for notification of when Native Memory events occur- Parameters:
implementation- of the NativeMemoryEventListener class
-
addNativeMemoryCategoryListener
Add a listener for notification of when Native Memory Category events occur- Parameters:
implementation- of the addNativeMemoryCategoryListener class
-
removeNativeMemoryListener
Remove one of the registered listeners.- Parameters:
implementation- of the NativeMemoryEventListener class
-
removeNativeMemoryCategoryListener
Remove one of the registered listeners.- Parameters:
implementation- of the NativeMemoryCategoryEventListener class
-