Skip to content

Instantly share code, notes, and snippets.

@CanalWood
CanalWood / native-mem-tracking.md
Created June 17, 2021 06:40 — forked from prasanthj/native-mem-tracking.md
Native memory tracking in JVM

Enable native memory tracking in JVM by specifying the following flag

-XX:NativeMemoryTracking=detail

Know the <PID> of the java process

jps

To print ps based RSS

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

To print native memory tracking summary