0

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

2
  • define the word space. disk space? Commented Feb 4, 2010 at 7:43
  • space: the final frontier! ;) Commented Feb 4, 2010 at 10:45

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

You can use ps | grep java or top.

2 Comments

or top + press m - java will always be the first row without fail :)
@Kimvais: On my computer, the top row is...VirtualBox. :-P

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.