title: Java5 -XX:MaxHeapFreeRatio=45 doesn't release heap even when more than 45% of the heap is free
body: <p>I have a java application with the arguments below but the heap is not getting reclaimed even when the total free space is greater than 45% (can see via visual VM). Is there any reason that the JVM wouldnt free that heap space? The same settings work as expected in Java6. Running Java5 runtime and compile time</p>
  
  <pre><code>java -jar -Xmx1024m -XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=45 -XX:+HeapDumpOnOutOfMemoryError &lt;myjarname&gt;
  </code></pre>