Package com.dianping.cat.status.model.entity

Examples of com.dianping.cat.status.model.entity.GcInfo


    List<GarbageCollectorMXBean> beans = ManagementFactory.getGarbageCollectorMXBeans();

    for (GarbageCollectorMXBean mxbean : beans) {
      if (mxbean.isValid()) {
        GcInfo gc = new GcInfo();

        gc.setName(mxbean.getName());
        gc.setCount(mxbean.getCollectionCount());
        gc.setTime(mxbean.getCollectionTime());
        memory.addGc(gc);
      }
    }

    super.visitMemory(memory);
View Full Code Here

TOP

Related Classes of com.dianping.cat.status.model.entity.GcInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.