Proposal: Extend Native Memory Tracking across the whole process via interposition

Thomas Stüfe thomas.stuefe at gmail.com
Wed Dec 6 08:43:58 UTC 2023


On Tue, Dec 5, 2023 at 7:04 PM Nathan Reynolds <numeralnathan at gmail.com>
wrote:

> Can we have the native memory allocations push JFR events?  This would
> only happen when enabled.  This would make native memory allocation
> analysis very easy to do in Mission Control.
>

Technically, nothing is preventing us from doing so; I'd be worried about
the overhead though when doing this for every malloc. mmap is probably less
of a problem.

At the moment, NMT events are send periodically; one could add a
threshold-based approach (whenever we reach +1M in any category), but that
would give you only sporadic call stacks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20231206/135039ab/attachment.htm>


More information about the jdk-dev mailing list