The command used to find out space utilized by java in linux?
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
.
精彩评论