开发者

The command used to find out space utilized by java in linux?

开发者 https://www.devze.com 2022-12-19 07:07 出处:网络
The command used to find out space utilized by java开发者_如何学Goin linux?It doesn\'t make sense checking the memory usage using OS depended tools. The memory of the \"base\" JVM might be even fix. W

The command used to find out space utilized by java 开发者_如何学Goin linux?


It doesn't make sense checking the memory usage using OS depended tools. The memory of the "base" JVM might be even fix. With base meaning something like: Everything except the loaded classes and applied memory switches. The internal memory management in the JVM is bit complicated and i would recommend reading Memory Management in the Java HotSpot Virtual Machine. Better use tools like jvisualvm or jconsole, which are both distributed with the JDK. jconsole even shows the committed physical memory in the tab "VM Summary". Interpreting the memory output of /bin/ps might a bit confusing, so i would not recommend it.

Hope this helps.


You can use ps | grep java or top.

0

精彩评论

暂无评论...
验证码 换一张
取 消