Search in sources :

Example 1 with ParallelGcMemoryMetric

use of com.navercorp.pinpoint.profiler.monitor.metric.memory.ParallelGcMemoryMetric in project pinpoint by naver.

the class MemoryMetricProvider method get.

@Override
public MemoryMetric get() {
    Map<String, Metric> memoryUsageMetrics = memoryUsageGaugeSet.getMetrics();
    Set<String> metricNames = memoryUsageMetrics.keySet();
    MemoryMetric memoryMetric;
    if (metricNames.contains(MetricMonitorValues.METRIC_MEMORY_POOLS_SERIAL_OLDGEN_USAGE)) {
        memoryMetric = new SerialGcMemoryMetric(memoryUsageMetrics);
    } else if (metricNames.contains(MetricMonitorValues.METRIC_MEMORY_POOLS_PS_OLDGEN_USAGE)) {
        memoryMetric = new ParallelGcMemoryMetric(memoryUsageMetrics);
    } else if (metricNames.contains(MetricMonitorValues.METRIC_MEMORY_POOLS_CMS_OLDGEN_USAGE)) {
        memoryMetric = new CmsGcMemoryMetric(memoryUsageMetrics);
    } else if (metricNames.contains(MetricMonitorValues.METRIC_MEMORY_POOLS_G1_OLDGEN_USAGE)) {
        memoryMetric = new G1GcMemoryMetric(memoryUsageMetrics);
    } else {
        memoryMetric = new UnknownMemoryMetric(memoryUsageMetrics);
    }
    logger.info("loaded : {}", memoryMetric);
    return memoryMetric;
}
Also used : SerialGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.SerialGcMemoryMetric) G1GcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.G1GcMemoryMetric) ParallelGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.ParallelGcMemoryMetric) G1GcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.G1GcMemoryMetric) Metric(com.codahale.metrics.Metric) CmsGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.CmsGcMemoryMetric) UnknownMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.UnknownMemoryMetric) SerialGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.SerialGcMemoryMetric) MemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.MemoryMetric) ParallelGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.ParallelGcMemoryMetric) CmsGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.CmsGcMemoryMetric) ParallelGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.ParallelGcMemoryMetric) G1GcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.G1GcMemoryMetric) CmsGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.CmsGcMemoryMetric) UnknownMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.UnknownMemoryMetric) SerialGcMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.SerialGcMemoryMetric) MemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.MemoryMetric) UnknownMemoryMetric(com.navercorp.pinpoint.profiler.monitor.metric.memory.UnknownMemoryMetric)

Aggregations

Metric (com.codahale.metrics.Metric)1 CmsGcMemoryMetric (com.navercorp.pinpoint.profiler.monitor.metric.memory.CmsGcMemoryMetric)1 G1GcMemoryMetric (com.navercorp.pinpoint.profiler.monitor.metric.memory.G1GcMemoryMetric)1 MemoryMetric (com.navercorp.pinpoint.profiler.monitor.metric.memory.MemoryMetric)1 ParallelGcMemoryMetric (com.navercorp.pinpoint.profiler.monitor.metric.memory.ParallelGcMemoryMetric)1 SerialGcMemoryMetric (com.navercorp.pinpoint.profiler.monitor.metric.memory.SerialGcMemoryMetric)1 UnknownMemoryMetric (com.navercorp.pinpoint.profiler.monitor.metric.memory.UnknownMemoryMetric)1