sb.append("heap.memory.total=").append(numberToUnitRepresentation(memoryTotal)).append(", ");
sb.append("heap.memory.max=").append(numberToUnitRepresentation(memoryMax)).append(", ");
sb.append("heap.memory.used/total=").append(percentageString(memoryUsedOfTotalPercentage)).append(", ");
sb.append("heap.memory.used/max=").append(percentageString(memoryUsedOfMaxPercentage)).append((", "));
LocalGCStats gcMetrics = GCStatsSupport.getGCStats();
sb.append("minor.gc.count=").append(gcMetrics.getMinorCollectionCount()).append(", ");
sb.append("minor.gc.time=").append(gcMetrics.getMinorCollectionTime()).append("ms, ");
sb.append("major.gc.count=").append(gcMetrics.getMajorCollectionCount()).append(", ");
sb.append("major.gc.time=").append(gcMetrics.getMajorCollectionTime()).append("ms, ");
if (gcMetrics.getUnknownCollectionCount() > 0) {
sb.append("unknown.gc.count=").append(gcMetrics.getUnknownCollectionCount()).append(", ");
sb.append("unknown.gc.time=").append(gcMetrics.getUnknownCollectionTime()).append("ms, ");
}
sb.append("load.process=").append(format("%.2f", processCpuLoad)).append("%, ");
sb.append("load.system=").append(format("%.2f", systemCpuLoad)).append("%, ");
sb.append("load.systemAverage=").append(format("%.2f", systemLoadAverage)).append("%, ");
sb.append("thread.count=").append(threadCount).append(", ");