title: Getting java out of memory error? even though i given enough initial and max memory sizes to JVM
body: <p>I have an application which will use 300 million size of hash maps. For that I initialized the JVM with initial and maximum heap size of 16 GB i.e. (java -Xms16384M -Xmx16384M) but I am getting java <code>OutOfMemoryError</code>. my machine is having 32 GB RAM with RedHat Linux operating system installed. I observed that JVM is using only 25% of RAM from "top" command in Linux i.e 8GB even though i set it for 16GB it is using only 8GB. </p>
  
  <p>I want to know that if JVM is limiting the RAM?</p>
  
  <p>How to configure JVM to use complete min and max heap size given?</p>