Skip to content

Instantly share code, notes, and snippets.

prasanthj /
Last active Sep 13, 2021
Native memory tracking in JVM

Enable native memory tracking in JVM by specifying the following flag


Know the <PID> of the java process


To print ps based RSS

ps -p <PID> -o pcpu,rss,size,vsize

To print native memory tracking summary