title: playframework 2.3.x heap size
body: <p>Is there a way to set -Xmx when i start the application with "./activator start"</p>
  
  <p>I tried (not working):</p>
  
  <pre><code>./activator start -J-Xmx2g
  
  ./activator -mem 2048 start
  
  _JAVA_OPTIONS="-Xmx2g" ./activator  start
  </code></pre>
  
  <p>It says </p>
  
  <blockquote>
    <p>"Picked up _JAVA_OPTIONS: -Xmx2g"</p>
  </blockquote>
  
  <p>but still not working.</p>
  
  <p>Also tried various values in <code>build.sbt</code> and <code>application.conf</code> - no luck</p>
  
  <p>The only way i could make it work was to use 
  "stage" and pass <code>-Xmx2g</code> to the generated shell script, which is fine, but it doesn't detach the console.</p>
  
  <p>I think I tried all I found on google but still no luck.
  I would like to pass <code>-Xmx</code> to the <code>activator start</code> somehow.</p>