TotalAllocatedPages metric does not match PhysicalMemoryPages when persistence is disabled
@@ -160,7 +160,10 @@ public class DataRegionMetricsImpl implements DataRegionMetrics {
/** {@inheritDoc} */
@Override public long getPhysicalMemoryPages() {
- if (!metricsEnabled || !persistenceEnabled)
+ if (!persistenceEnabled)
+ return getTotalAllocatedPages();
+
+ if (!metricsEnabled)
return 0;
assert pageMem != null;
