Class MemoryMetrics

java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.MemoryMetrics

@ManagedResource(description="Memory Metrics") public class MemoryMetrics extends AbstractMonitor
JMX Metrics for Memory
Author:
Mark Pollack
  • 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()