The command used to find out space utilized by java in linux?
or `top` + press `m` - java will always be the first row without fail :)
Kimvais
2010-02-04 07:07:49
@Kimvais: On my computer, the top row is...VirtualBox. :-P
Chris Jester-Young
2010-02-04 07:16:11
A:
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.
dz
2010-02-04 07:24:32