private void initializeStatistics() {
String bytes_str = localStrMgr.getString(BYTE_UNITS);
// Initialize the MutableCountStatistic for InitialHeapSize
CountStatistic c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.initial_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.initial_heap_size_desc"));
initHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for MaxHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.max_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.max_heap_size_desc"));
maxHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for UsedHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.used_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.used_heap_size_desc"));
usedHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for CommittedHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.committed_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.committed_heap_size_desc"));
commitHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for InitialNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.initial_non_heap_size"), bytes_str,
localStrMgr.getString("monitor.stats.initial_non_heap_size_desc"));
initNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for MaxNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.max_non_heap_size"),bytes_str,
localStrMgr.getString("monitor.stats.max_non_heap_size_desc"));
maxNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for UsedNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.used_non_heap_size") ,bytes_str,
localStrMgr.getString("monitor.stats.used_non_heap_size_desc"));
usedNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for CommittedNonHeapSize
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.committed_non_heap_size"),
bytes_str,
localStrMgr.getString("monitor.stats.committed_non_heap_size_desc"));
commitNonHeapSize = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for ObjectsPendingFinalization
c = new CountStatisticImpl(
localStrMgr.getString("monitor.stats.objs_pending_serialization"),
StatisticImpl.DEFAULT_UNIT,
localStrMgr.getString("monitor.stats.objs_pending_serialization_desc"));
objPendingCount = new MutableCountStatisticImpl(c);
}