title: How to set heap size for sbt?
body: <p>I am using SBT 0.12.0. I have read other answers on stack overflow and followed them, however none of them helps, for example:</p>
  
  <ul>
  <li>create <code>ForkRun</code> class - I have not observed any forked process during my usage of sbt</li>
  <li>set environment variable <code>JAVA_OPTS</code> - it is set but sbt's process command line does not seem to use it at all.</li>
  <li><code>sbt -J-Xmx2G</code> appends the parameter to sbt process command line, however the old value <code>-Xmx1536m</code> is used by sbt instead of the appended parameter.</li>
  </ul>
  
  <p>Am I missing something? How do I set heap size for sbt 0.12, when doing both testing and <code>run</code>?</p>