How can I check heap size (and used memory) of a Java application on Linux through the command line?
I have tried through jmap. But it gives information about internal memory areas, like Eden, PermGen, etc., which is not useful to me.
I am looking for something like:
- Maximum Memory: 1 GB
- Minimum Memory: 256 MB
- Heap Memory: 700 MB
- Used Memory: 460 MB
That's all. I know that I can see this in JConsole, etc., but I need to do it via the command-line (I can't enable JMX, etc.)