Memory not allocated via NMT and uncommitted memory contributes to a discrepancy between NMT and RSS.
It can be hard to distinguish between these cases.
If the VM can determine the amount of pooled memory by malloc it would help with both determining if a trim_native_memory is needed, or there are some allocations happening outside of NMT.
It would be good if the VM can summarize the malloc pooled memory by using e.g. malloc_info(3).
We can thus more precise account for RSS value.
It can be hard to distinguish between these cases.
If the VM can determine the amount of pooled memory by malloc it would help with both determining if a trim_native_memory is needed, or there are some allocations happening outside of NMT.
It would be good if the VM can summarize the malloc pooled memory by using e.g. malloc_info(3).
We can thus more precise account for RSS value.
- csr for
-
JDK-8302128 Tracking malloc pooled memory size
- Closed
- relates to
-
JDK-8249666 Improve Native Memory Tracking to report the actual RSS usage
- In Progress
-
JDK-8302001 Add jcmd command to print malloc_stats() info
- Closed