title: Set maximum heap space for tomcat
body: <p>My <code>Java EE</code> application runs just fine on host server , but it uses a lot of heap space . allowed heap space is <code>64MB</code>. I am getting my hosting account suspended every time my app uses more then <code>64 MB</code> heap. I think the hosting provider has not set the max heap space for my app , that is why i am not getting the <code>outOfMemoryException</code> on reaching <code>&gt;64MB</code>.</p>
  
  <p>I have my own instance of tomcat, i can configure tomcat configurations.
  My question is - how can i set the max allowed heap space for my tomcat instance so that it throws <code>outOfMemoryException</code> on reaching the limit ?
  that way my hosting account will not get suspended.</p>
  
  <p>here is the <a href="http://pastebin.com/WWGRXQ1h" rel="nofollow">catlina.bat</a> and <a href="http://pastebin.com/MYT4B3Z5" rel="nofollow">catlina.sh</a></p>
  
  <p>where do i have to make changes in these files ?</p>