-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b44
-
generic
-
generic
Current spec of MemoryMBean.getHeapMemoryUsage is specified that:
This method takes a snapshot of the memory usage of
all heap memory pools including the amount of used memory,
committed memory, maximum memory and the initial size and
returns a <tt>CompositeData</tt> view of a {@link MemoryUsage}
object representing the sum of the memory usage of all heap
memory pools.
Initial size and max size of the heap memory usage is not necessary
the sum of init size / max size of all heap memory pools for example
in the adaptive sizing case.
The spec needs to be updated such that only used memory and committed
memory can be added up but not init or max size.
Same spec change needs to be applied to MemoryMBean.getNonHeapMemoryUsage.
This method takes a snapshot of the memory usage of
all heap memory pools including the amount of used memory,
committed memory, maximum memory and the initial size and
returns a <tt>CompositeData</tt> view of a {@link MemoryUsage}
object representing the sum of the memory usage of all heap
memory pools.
Initial size and max size of the heap memory usage is not necessary
the sum of init size / max size of all heap memory pools for example
in the adaptive sizing case.
The spec needs to be updated such that only used memory and committed
memory can be added up but not init or max size.
Same spec change needs to be applied to MemoryMBean.getNonHeapMemoryUsage.