[PATCH] RFR Bug-pending: Enable Hotspot to Track Native Memory Usage for Direct Byte Buffers

Alan Bateman Alan.Bateman at oracle.com
Fri Feb 23 17:44:20 UTC 2018

On 23/02/2018 15:28, Peter Levart wrote:
> Hi Adam,
> Did you know that native memory is already tracked on the Java side for
> direct ByteBuffers? See class java.nio.Bits. Could you make use of it?
Right, these are the fields that are exposed at runtime via 
BufferPoolMXBean. A SA based tool could read from a core file. I can't 
tell if this is enough for Adam, it may be that the his tool reveals 
more details on the buffers in the pools.


More information about the core-libs-dev mailing list