title: Getting OS memory size from java
body: <p>Are there any way to get the size of the total memory on the operating system from java? Using</p>
  
  <pre><code>Runtime.getRuntime().maxMemory()
  </code></pre>
  
  <p>returns the allowed memory for the JVM, not of the operating system. Does anyone have a way to obtain this (from java code)?</p>