title: Maximum heap space constraints in java
body: <p>I have a program that needs a lot of memory and want to set the maximum heap space at 6024MB.
  Java gives me the error:</p>
  
  <pre><code>Invalid maximum heap size: -Xmx6024m
  The specified size exceeds the maximum representable size.
  </code></pre>
  
  <p>Is there a workaround?</p>