title: How to set Heap size for Jmeter Slave instance
body: <p>I have a distributed Jmeter Master-Slave set up. On increasing the throughput to a higher number, I started getting OOM exception for heap space.</p>
  
  <p><a href="https://i.stack.imgur.com/zWnNH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zWnNH.png" alt="OOM Exception"></a></p>
  
  <p>I found this post:
  <a href="https://www.blazemeter.com/blog/nine-easy-solutions-jmeter-load-test-%E2%80%9Cout-memory%E2%80%9D-failure" rel="nofollow noreferrer">How to Increase Heap size</a>
  to increase the HEAP size in the jmeter.bat file (windows in my case). However for Jmeter slave machines we don't launch jmeter via jmeter.bat but rather via jmeter.server.bat file. I checked this file doesn't have any HEAP memory parameter.</p>
  
  <p>Any suggestions on how to increase the Heap memory size on Slave instances?</p>