ReadOnlyMetricRegistry
with "name=io.dataregion.{data_region_name}" instead.@Deprecated public interface DataRegionMetrics
DataStorageConfiguration
.
Since there are can be several memory regions configured with DataRegionConfiguration
on an individual
Apache Ignite node, the metrics for every region will be collected and obtained separately.
There are two ways to get the metrics of an Apache Ignite node.
Ignite.dataRegionMetrics()
method. Note that
the method returns data region metrics snapshots rather than just in time memory state.
DataRegionMetrics
of a local Apache Ignite node are visible through JMX interface.
Refer to JMX bean with the name "name=io.dataregion.{data_region_name}" for more details.
Data region metrics collection is not a free operation and might affect performance of an application. This is the reason
why the metrics are turned off by default. To enable the collection you can use both
DataRegionConfiguration.setMetricsEnabled(boolean)
configuration property.
Modifier and Type | Method and Description |
---|---|
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.
|
float |
getLargeEntriesPagesPercentage()
Deprecated.
Gets percentage of pages that are fully occupied by large entries that go beyond page size.
|
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.
|
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.
|
String getName()
long getTotalAllocatedPages()
long getTotalAllocatedSize()
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.
long getTotalUsedSize()
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).float getAllocationRate()
float getEvictionRate()
float getLargeEntriesPagesPercentage()
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).
long getDirtyPages()
float getPagesReplaceRate()
float getPagesReplaceAge()
long getPhysicalMemoryPages()
getTotalAllocatedPages()
.long getPhysicalMemorySize()
getTotalAllocatedSize()
.long getUsedCheckpointBufferPages()
long getUsedCheckpointBufferSize()
long getCheckpointBufferSize()
int getPageSize()
long getPagesRead()
long getPagesWritten()
long getPagesReplaced()
long getOffHeapSize()
long getOffheapUsedSize()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023