Setting up Ignite caching metrics and statistics for the Content Delivery embedded cache
For the purposes of debugging or closely monitoring your Content Delivery embedded cache on the server, you may want to expose metrics and statistics for the cache.
About this task
metricExporterSpi that contains a JMX (Java Management Extension) bean and exposes metrics:
<property name="metricExporterSpi">
<list>
<bean class="org.apache.ignite.spi.metric.jmx.JmxMetricExporterSpi" />
</list>
</property>
To activate these metrics, you must take some configuration steps.
Procedure
What to do next
You can now monitor the status of your cache regions by making a remote connection from a JMX browser such as JConsole to the endpoint, written as HOST:PORT (so without a protocol), where HOST is the name of the host and PORT is the port number.
To check a cache region, drill down to org.apache/IDENTIFIER/"Cache"/"CACHEGROUPNAME"/Attributes/, where IDENTIFIER is a unique hexadecimal identifier, and CACHEGROUPNAME is the name of the specific cache region you want to check. Under Attributes, you can check the CacheSize attribute, which shows you the size of your cache.