MemoryUsage memUsage = memmxbean.getHeapMemoryUsage();
CountStatisticImpl upTime;
BoundedRangeStatisticImpl heapSize;
if (stats == null) {
stats = new JVMStatsImpl();
// setup UpTime CountStatistic
upTime = stats.getUpTimeImpl();
upTime.setStartTime(runmxbean.getStartTime());
upTime.setCount(runmxbean.getUptime());
// setup Heap BoundedRangeStatistic