Search in sources :

Example 1 with CmsGcGarbageCollectorMetric

use of com.navercorp.pinpoint.profiler.monitor.metric.gc.CmsGcGarbageCollectorMetric in project pinpoint by naver.

the class GarbageCollectorMetricProvider method get.

@Override
public GarbageCollectorMetric get() {
    Map<String, Metric> garbageCollectorMetrics = garbageCollectorMetricSet.getMetrics();
    Set<String> metricNames = garbageCollectorMetrics.keySet();
    GarbageCollectorMetric garbageCollectorMetric;
    if (metricNames.contains(MetricMonitorValues.METRIC_GC_SERIAL_OLDGEN_COUNT)) {
        garbageCollectorMetric = new SerialGcGarbageCollectorMetric(garbageCollectorMetrics);
    } else if (metricNames.contains(MetricMonitorValues.METRIC_GC_PS_OLDGEN_COUNT)) {
        garbageCollectorMetric = new ParallelGcGarbageCollectorMetric(garbageCollectorMetrics);
    } else if (metricNames.contains(MetricMonitorValues.METRIC_GC_CMS_OLDGEN_COUNT)) {
        garbageCollectorMetric = new CmsGcGarbageCollectorMetric(garbageCollectorMetrics);
    } else if (metricNames.contains(MetricMonitorValues.METRIC_GC_G1_OLDGEN_COUNT)) {
        garbageCollectorMetric = new G1GcGarbageCollectorMetric(garbageCollectorMetrics);
    } else {
        garbageCollectorMetric = new UnknownGarbageCollectorMetric();
    }
    logger.info("loaded : {}", garbageCollectorMetric);
    return garbageCollectorMetric;
}
Also used : ParallelGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.ParallelGcGarbageCollectorMetric) G1GcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.G1GcGarbageCollectorMetric) GarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.GarbageCollectorMetric) CmsGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.CmsGcGarbageCollectorMetric) UnknownGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.UnknownGarbageCollectorMetric) SerialGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.SerialGcGarbageCollectorMetric) ParallelGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.ParallelGcGarbageCollectorMetric) G1GcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.G1GcGarbageCollectorMetric) CmsGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.CmsGcGarbageCollectorMetric) ParallelGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.ParallelGcGarbageCollectorMetric) Metric(com.codahale.metrics.Metric) G1GcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.G1GcGarbageCollectorMetric) GarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.GarbageCollectorMetric) CmsGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.CmsGcGarbageCollectorMetric) UnknownGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.UnknownGarbageCollectorMetric) SerialGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.SerialGcGarbageCollectorMetric) SerialGcGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.SerialGcGarbageCollectorMetric) UnknownGarbageCollectorMetric(com.navercorp.pinpoint.profiler.monitor.metric.gc.UnknownGarbageCollectorMetric)

Aggregations

Metric (com.codahale.metrics.Metric)1 CmsGcGarbageCollectorMetric (com.navercorp.pinpoint.profiler.monitor.metric.gc.CmsGcGarbageCollectorMetric)1 G1GcGarbageCollectorMetric (com.navercorp.pinpoint.profiler.monitor.metric.gc.G1GcGarbageCollectorMetric)1 GarbageCollectorMetric (com.navercorp.pinpoint.profiler.monitor.metric.gc.GarbageCollectorMetric)1 ParallelGcGarbageCollectorMetric (com.navercorp.pinpoint.profiler.monitor.metric.gc.ParallelGcGarbageCollectorMetric)1 SerialGcGarbageCollectorMetric (com.navercorp.pinpoint.profiler.monitor.metric.gc.SerialGcGarbageCollectorMetric)1 UnknownGarbageCollectorMetric (com.navercorp.pinpoint.profiler.monitor.metric.gc.UnknownGarbageCollectorMetric)1