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

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


      period.setCatMessageProduced(catInfo.getProduced());
      period.setCatMessageOverflow(catInfo.getOverflowed());
      period.setCatMessageSize(catInfo.getBytes());

      MemoryInfo memeryInfo = info.getMemory();
      List<GcInfo> gcs = info.getMemory().getGcs();

      for (GcInfo gc : gcs) {
        String name = gc.getName();

        if ("ParNew".equals(name) || "PS Scavenge".equals(name)) {
          period.setNewGcCount(gc.getCount());
        } else if ("ConcurrentMarkSweep".equals(name) || "PS MarkSweep".equals(name)) {
          period.setOldGcCount(gc.getCount());
        }
      }

      period.setHeapUsage(memeryInfo.getHeapUsage());
      period.setNoneHeapUsage(memeryInfo.getNonHeapUsage());
      period.setMemoryFree(memeryInfo.getFree());
      period.setSystemLoadAverage(info.getOs().getSystemLoadAverage());

      DiskInfo diskInfo = info.getDisk();

      if (diskInfo != null) {
View Full Code Here


  public void visitStatus(StatusInfo status) {
    status.setTimestamp(new Date());
    status.setOs(new OsInfo());
    status.setDisk(new DiskInfo());
    status.setRuntime(new RuntimeInfo());
    status.setMemory(new MemoryInfo());
    status.setThread(new ThreadsInfo());
    status.setMessage(new MessageInfo());

    super.visitStatus(status);
  }
View Full Code Here

TOP

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

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.