@MXBeanDescription(value="MBean that provides access to DataRegionMetrics of a local Apache Ignite node.") public interface DataRegionMetricsMXBean extends DataRegionMetrics
DataRegionMetrics
.Modifier and Type | Method and Description |
---|---|
void |
disableMetrics()
Disables memory metrics collection on an Apache Ignite node.
|
void |
enableMetrics()
Enables memory metrics collection on an Apache Ignite node.
|
float |
getAllocationRate()
Gets pages allocation rate of a memory region.
|
long |
getDirtyPages()
Gets the number of dirty pages (pages which contents is different from the current persistent storage state).
|
float |
getEvictionRate()
Gets eviction rate of a given memory region.
|
int |
getInitialSize()
Gets initial memory region size defined by its
DataRegionConfiguration . |
float |
getLargeEntriesPagesPercentage()
Gets percentage of pages that are fully occupied by large entries that go beyond page size.
|
int |
getMaxSize()
Maximum memory region size defined by its
DataRegionConfiguration . |
String |
getName()
A name of a memory region the metrics are collected for.
|
long |
getOffHeapSize()
Total offheap size in bytes.
|
long |
getOffheapUsedSize()
Total used offheap size in bytes.
|
float |
getPagesFillFactor()
Gets the percentage of the used space.
|
long |
getPagesRead()
The number of read pages from last restart.
|
float |
getPagesReplaceAge()
Gets average age (in milliseconds) for the pages being replaced from the disk storage.
|
long |
getPagesReplaced()
The number of replaced pages from last restart .
|
float |
getPagesReplaceRate()
Gets rate (pages per second) at which pages get replaced with other pages from persistent storage.
|
long |
getPagesWritten()
The number of written pages from last restart.
|
long |
getPhysicalMemoryPages()
Gets total number of pages currently loaded to the RAM.
|
String |
getSwapPath()
A path to the memory-mapped files the memory region defined by
DataRegionConfiguration will be
mapped to. |
long |
getTotalAllocatedPages()
Gets a total number of allocated pages related to the data region.
|
void |
rateTimeInterval(long rateTimeInterval)
Sets time interval for
getAllocationRate() and getEvictionRate() monitoring purposes. |
void |
subIntervals(int subInts)
Sets a number of sub-intervals the whole
rateTimeInterval(long) will be split into to calculate
getAllocationRate() and getEvictionRate() rates (5 by default). |
getCheckpointBufferSize, getPageSize, getPhysicalMemorySize, getTotalAllocatedSize, getUsedCheckpointBufferPages, getUsedCheckpointBufferSize
@MXBeanDescription(value="A name of a memory region the metrics are collected for.") String getName()
getName
in interface DataRegionMetrics
@MXBeanDescription(value="Initial memory region size defined by its data region.") int getInitialSize()
DataRegionConfiguration
.@MXBeanDescription(value="Maximum memory region size defined by its data region.") int getMaxSize()
DataRegionConfiguration
.@MXBeanDescription(value="Path to the memory-mapped files.") String getSwapPath()
DataRegionConfiguration
will be
mapped to.@MXBeanDescription(value="Total number of allocated pages.") long getTotalAllocatedPages()
getTotalAllocatedPages
in interface DataRegionMetrics
@MXBeanDescription(value="Allocation rate (pages per second) averaged across rateTimeInternal.") float getAllocationRate()
getAllocationRate
in interface DataRegionMetrics
@MXBeanDescription(value="Eviction rate (pages per second).") float getEvictionRate()
getEvictionRate
in interface DataRegionMetrics
@MXBeanDescription(value="Percentage of pages that are fully occupied by large entries that go beyond page size.") float getLargeEntriesPagesPercentage()
getLargeEntriesPagesPercentage
in interface DataRegionMetrics
@MXBeanDescription(value="The percentage of the used space.") float getPagesFillFactor()
getPagesFillFactor
in interface DataRegionMetrics
@MXBeanDescription(value="Number of pages in memory not yet synchronized with persistent storage.") long getDirtyPages()
getDirtyPages
in interface DataRegionMetrics
@MXBeanDescription(value="Rate at which pages in memory are replaced with pages from persistent storage (pages per second).") float getPagesReplaceRate()
getPagesReplaceRate
in interface DataRegionMetrics
@MXBeanDescription(value="Average age at which pages in memory are replaced with pages from persistent storage (milliseconds).") float getPagesReplaceAge()
getPagesReplaceAge
in interface DataRegionMetrics
@MXBeanDescription(value="Number of pages residing in physical RAM.") long getPhysicalMemoryPages()
DataRegionMetrics.getTotalAllocatedPages()
.getPhysicalMemoryPages
in interface DataRegionMetrics
@MXBeanDescription(value="Number of pages read from last restart.") long getPagesRead()
getPagesRead
in interface DataRegionMetrics
@MXBeanDescription(value="Number of pages written from last restart.") long getPagesWritten()
getPagesWritten
in interface DataRegionMetrics
@MXBeanDescription(value="Number of pages replaced from last restart.") long getPagesReplaced()
getPagesReplaced
in interface DataRegionMetrics
@MXBeanDescription(value="Offheap size in bytes.") long getOffHeapSize()
getOffHeapSize
in interface DataRegionMetrics
@MXBeanDescription(value="Offheap used size in bytes.") long getOffheapUsedSize()
getOffheapUsedSize
in interface DataRegionMetrics
@MXBeanDescription(value="Enables memory metrics collection on an Apache Ignite node.") void enableMetrics()
@MXBeanDescription(value="Disables memory metrics collection on an Apache Ignite node.") void disableMetrics()
@MXBeanDescription(value="Sets time interval for pages allocation and eviction monitoring purposes.") @MXBeanParametersNames(value="rateTimeInterval") @MXBeanParametersDescriptions(value="Time interval (in milliseconds) to set.") void rateTimeInterval(long rateTimeInterval)
getAllocationRate()
and getEvictionRate()
monitoring purposes.
For instance, after setting the interval to 60 seconds, subsequent calls to getAllocationRate()
will return average allocation rate (pages per second) for the last minute.
rateTimeInterval
- Time interval (in milliseconds) used for allocation and eviction rates calculations.@MXBeanDescription(value="Sets a number of sub-intervals to calculate allocation and eviction rates metrics.") @MXBeanParametersNames(value="subInts") @MXBeanParametersDescriptions(value="Number of subintervals to set.") void subIntervals(int subInts)
rateTimeInterval(long)
will be split into to calculate
getAllocationRate()
and getEvictionRate()
rates (5 by default).
Setting it to a bigger value will result in more precise calculation and smaller drops of
getAllocationRate()
metric when next sub-interval has to be recycled but introduces bigger
calculation overhead.
subInts
- A number of sub-intervals.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019