MetricName gcTimesName = new MetricName(ORG_APACHE_BLUR, JVM, GC_TIMES);
_gcTimes = Metrics.newTimer(gcTimesName, TimeUnit.MILLISECONDS, TimeUnit.SECONDS);
List<GarbageCollectorMXBean> garbageCollectorMXBeans = ManagementFactory.getGarbageCollectorMXBeans();
for (GarbageCollectorMXBean bean : garbageCollectorMXBeans) {
NotificationListener listener = new NotificationListener() {
@Override
public void handleNotification(Notification notification, Object bean) {
GarbageCollectorMXBean garbageCollectorMXBean = (GarbageCollectorMXBean) bean;
GcInfo gcInfo = getGcInfo(garbageCollectorMXBean);
long startTime = gcInfo.getStartTime();