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) {