title: java.lang.OutOfMemoryError: Java heap space in tomcat7
body: <p>I am getting this error in tomcat server.</p>
  
  <pre><code>Exception in thread "http-bio-8080-exec-17" 
  Exception in thread "http-bio-8080-exec-2"
  Exception in thread "http-bio-8080-exec-15" 
  Exception in thread "http-bio-8080-exec-20"
  Exception in thread "http-bio-8080-exec-18" 
  java.lang.OutOfMemoryError: Java heap space.
  </code></pre>
  
  <p>I have seen MAT but how do I generate the <code>.hprof</code> file in my Tomcat server.</p>
  
  <p>Thank you.</p>