Class MemoryMetrics
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.MemoryMetrics
JMX Metrics for Memory
- Author:
- Mark Pollack
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getMongoClient, getServerStatus, hosts
-
Constructor Details
-
MemoryMetrics
public MemoryMetrics(com.mongodb.client.MongoClient mongoClient) - Parameters:
mongoClient
-- Since:
- 2.2
-
-
Method Details
-
getBits
@ManagedMetric(metricType=COUNTER, displayName="Memory address size") public int getBits() -
getResidentSpace
@ManagedMetric(metricType=GAUGE, displayName="Resident in Physical Memory", unit="MB") public int getResidentSpace() -
getVirtualAddressSpace
@ManagedMetric(metricType=GAUGE, displayName="Virtual Address Space", unit="MB") public int getVirtualAddressSpace() -
getMemoryInfoSupported
@ManagedMetric(metricType=GAUGE, displayName="Is memory info supported on this platform") public boolean getMemoryInfoSupported() -
getMemoryMappedSpace
@ManagedMetric(metricType=GAUGE, displayName="Memory Mapped Space", unit="MB") public int getMemoryMappedSpace()
-