GridMetricManager
instead.@Deprecated @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()
Deprecated.
Disables memory metrics collection on an Apache Ignite node.
|
void |
enableMetrics()
Deprecated.
Enables memory metrics collection on an Apache Ignite node.
|
float |
getAllocationRate()
Deprecated.
Gets pages allocation rate of a memory region.
|
long |
getCheckpointBufferSize()
Deprecated.
Gets checkpoint buffer size in bytes.
|
long |
getDirtyPages()
Deprecated.
Gets the number of dirty pages (pages which contents is different from the current persistent storage state).
|
float |
getEvictionRate()
Deprecated.
Gets eviction rate of a given memory region.
|
int |
getInitialSize()
Deprecated.
Gets initial memory region size defined by its
DataRegionConfiguration . |
float |
getLargeEntriesPagesPercentage()
Deprecated.
Gets percentage of pages that are fully occupied by large entries that go beyond page size.
|
int |
getMaxSize()
Deprecated.
Maximum memory region size defined by its
DataRegionConfiguration . |
String |
getName()
Deprecated.
A name of a memory region the metrics are collected for.
|
long |
getOffHeapSize()
Deprecated.
Total offheap size in bytes.
|
long |
getOffheapUsedSize()
Deprecated.
Total used offheap size in bytes.
|
float |
getPagesFillFactor()
Deprecated.
Returns the ratio of space occupied by user and system data to the size of all pages that contain this data.
|
int |
getPageSize()
Deprecated.
Gets memory page size.
|
long |
getPagesRead()
Deprecated.
The number of read pages from last restart.
|
float |
getPagesReplaceAge()
Deprecated.
Gets average age (in milliseconds) for the pages being replaced from the disk storage.
|
long |
getPagesReplaced()
Deprecated.
The number of replaced pages from last restart .
|
float |
getPagesReplaceRate()
Deprecated.
Gets rate (pages per second) at which pages get replaced with other pages from persistent storage.
|
long |
getPagesWritten()
Deprecated.
The number of written pages from last restart.
|
long |
getPhysicalMemoryPages()
Deprecated.
Gets total number of pages currently loaded to the RAM.
|
long |
getPhysicalMemorySize()
Deprecated.
Gets total size of pages loaded to the RAM.
|
String |
getSwapPath()
Deprecated.
A path to the memory-mapped files the memory region defined by
DataRegionConfiguration will be
mapped to. |
long |
getTotalAllocatedPages()
Deprecated.
Gets a total number of allocated pages related to the data region.
|
long |
getTotalAllocatedSize()
Deprecated.
Gets a total size of memory allocated in the data region.
|
long |
getTotalUsedPages()
Deprecated.
Gets a total number of pages used for storing the data.
|
long |
getTotalUsedSize()
Deprecated.
Returns the total amount of bytes occupied by the non-empty pages.
|
long |
getUsedCheckpointBufferPages()
Deprecated.
Gets used checkpoint buffer size in pages.
|
long |
getUsedCheckpointBufferSize()
Deprecated.
Gets used checkpoint buffer size in bytes.
|
void |
rateTimeInterval(long rateTimeInterval)
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
void |
subIntervals(int subInts)
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
@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="Total number of used pages.") long getTotalUsedPages()
E. g. data region contains 1000 allocated pages, and 200 pages are used to store some data, this metric shows 200 used pages. Then the data was partially deleted and 50 pages were totally freed, hence this metric should show 150 used pages.
getTotalUsedPages
in interface DataRegionMetrics
@MXBeanDescription(value="Total size of allocated pages in bytes.") long getTotalAllocatedSize()
getTotalAllocatedSize
in interface DataRegionMetrics
@MXBeanDescription(value="Total size of used pages in bytes.") long getTotalUsedSize()
DataRegionMetrics.getTotalUsedPages()
and does not take page fragmentation into account (i.e. if some data is removed from
a page, but it is not completely empty, it will still show the whole page bytes as being occupied).getTotalUsedSize
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()
This metric can help to determine how much space of a data page is occupied on average. Low fill factor can indicate that data pages are very fragmented (i.e. there is a lot of empty space across all data pages).
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="The size of the memory page in bytes.") int getPageSize()
getPageSize
in interface DataRegionMetrics
@MXBeanDescription(value="The total size of pages loaded to the RAM. When persistence is disabled, this metric is equal to TotalAllocatedSize.") long getPhysicalMemorySize()
DataRegionMetrics.getTotalAllocatedSize()
.getPhysicalMemorySize
in interface DataRegionMetrics
@MXBeanDescription(value="The used checkpoint buffer size in pages.") long getUsedCheckpointBufferPages()
getUsedCheckpointBufferPages
in interface DataRegionMetrics
@MXBeanDescription(value="The used checkpoint buffer size in bytes.") long getUsedCheckpointBufferSize()
getUsedCheckpointBufferSize
in interface DataRegionMetrics
@MXBeanDescription(value="The checkpoint buffer size in bytes.") long getCheckpointBufferSize()
getCheckpointBufferSize
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.") @Deprecated void rateTimeInterval(@MXBeanParameter(name="rateTimeInterval",description="Time interval (in milliseconds) to set.") long rateTimeInterval)
MetricsMxBean.configureHitRateMetric(String, long)
instead.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.") @Deprecated void subIntervals(@MXBeanParameter(name="subInts",description="Number of subintervals to set.") int subInts)
MetricsMxBean.configureHitRateMetric(String, long)
instead.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.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024