title: How to find Java Heap Size and Memory Used (Linux)?
body: <p>How can I check Heap Size (and Used Memory) of a Java Application on Linux through the command line?</p>
  <p>I have tried through jmap. But it gives info. about internal memory areas like Eden/ PermGen etc., which is not useful to me.</p>
  <p>I am looking for something like:</p>
  <ul>
  <li>Max Memory: 1GB</li>
  <li>Min Memory: 256 MB</li>
  <li>Heap Memory: 700 MB</li>
  <li>Used Memory: 460 MB</li>
  </ul>
  <p>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.)</p>