Have you tried using the G1 garbage collector?  <a href="http:&#x2F;&#x2F;www.oracle.com&#x2F;technetwork&#x2F;articles&#x2F;java&#x2F;g1gc-1984535.html" rel="nofollow">http:&#x2F;&#x2F;www.oracle.com&#x2F;technetwork&#x2F;articles&#x2F;java&#x2F;g1gc-1984535...</a><p>See the -XX:MaxGCPauseMillis=NNN argument, you might be able to set it to 10ms on highly performant hardware.