public interface MemoryMetrics
MemoryConfiguration
.
Since there are can be several memory regions configured with MemoryPolicyConfiguration
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.memoryMetrics()
method. Note that
the method returns memory metrics snapshots rather than just in time memory state.
MemoryMetrics
of a local Apache Ignite node are visible through JMX interface. Refer to
MemoryMetricsMXBean
for more details.
Memory 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
MemoryPolicyConfiguration.setMetricsEnabled(boolean)
configuration property or
MemoryMetricsMXBean.enableMetrics()
method of a respective JMX bean.
Modifier and Type | Method and Description |
---|---|
float |
getAllocationRate()
Gets pages allocation rate of a memory region.
|
float |
getEvictionRate()
Gets eviction rate of a given memory region.
|
float |
getLargeEntriesPagesPercentage()
Gets percentage of pages that are fully occupied by large entries that go beyond page size.
|
String |
getName()
A name of a memory region the metrics are collected for.
|
float |
getPagesFillFactor()
Gets the percentage of space that is still free and can be filled in.
|
long |
getTotalAllocatedPages()
Gets a total number of allocated pages in a memory region.
|
String getName()
long getTotalAllocatedPages()
float getAllocationRate()
float getEvictionRate()
float getLargeEntriesPagesPercentage()
float getPagesFillFactor()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017