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 info. about internal memory areas like Eden/ PermGen etc., which is not useful to me.
I am looking for something like:
- Max Memory: 1GB
- Min 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 command-line. (can’t enable JMX etc.)