title: Jmeter, how to increase heap size
body: <p>I had read that you need to change the heap size in the jmeter.bat file (I'm using windows) to increase the memory to be able to test around 500 threads or more. This is the default:</p>
  
  <pre><code>if not defined HEAP (
      rem See the unix startup file for the rationale of the following parameters,
      rem including some tuning recommendations
      set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
  )
  </code></pre>
  
  <p>I changed the <code>set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m</code> it to:</p>
  
  <pre><code>set HEAP=-Xms2g -Xmx8g -XX:MaxMetaspaceSize=512m
  </code></pre>
  
  <p>But when I open Jmeter in GUI mode there is a message in the command line window</p>
  
  <pre><code>Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaSpaceSize=256m" in the jmeter batch file
  </code></pre>
  
  <p>So does that mean the change in the batch file didn't work? Or it does work when running in non-gui mode? Did I miss something to change or what? Thanks in advance. </p>