title: ActiveMQ OutOfMemory Can't create more threads
body: <p>I'm simulating a overload of a server and I'm getting this error:</p>
  
  <pre><code>java.lang.OutOfMemoryError: unable to create new native thread
  </code></pre>
  
  <p>I've read in this page <a href="http://activemq.apache.org/javalangoutofmemory.html" rel="noreferrer">http://activemq.apache.org/javalangoutofmemory.html</a>, that I can increase the memory size. But how do I do that? Which file I need to modify,? I tried to pass the arguments by the bin/activemq script but no luck.</p>