Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why JCMD throws "native memory tracking is not enabled" message even though NMT is enabled?

I am facing this weird problem. I want to track native memory usage of the JVM. I followed instructions provided in Oracle doc, added NMT enable flag and recycled Tomcat JVM. After that when I tried to see native memory usage using JCMD, I got "native memory tracking is not enabled" message. Do you think I am missing something?

Here is the screen print

like image 461
suv3ndu Avatar asked Apr 15 '26 22:04

suv3ndu


1 Answers

set -XX:NativeMemoryTracking=detail

like image 141
WoodX SNiPER Avatar answered Apr 18 '26 11:04

WoodX SNiPER



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!