long totalMemory = __runtime.totalMemory();
sample.setValue("maxMemory", __runtime.maxMemory());
sample.setValue("totalMemory", totalMemory);
sample.setValue("usedMemory", totalMemory - __runtime.freeMemory());
// No values are set for incomingMessages, outgoingMessages to reset these counters.
sample.update();
_rrdPool.release(rrdDb);
}
catch (Exception e)
{
_logger.warn("Unable to set statistics", e);