title: java out of memory error-heap space
body: <p>I'm developing web application in jsp/servlet,i had an issue with netbeans and Java. My program needs large data process. So I used -Xmx512m to increase the maximum heap size via </p>
  
  <blockquote>
    <p>Tools -> Servers -> on the Platform tab there is a VM option below
    Java Platform.
    Then it works fine..</p>
  </blockquote>
  
  <p>Now my issue is i'm building the <strong>WAR</strong> file, directly deployed and run in my another machine Tomcat for demo,
  here i'm facing the same issue java out of memory error-heap space
   i also tried with </p>
  
  <blockquote>
    <p>environment variable set   CATALINA_OPTS=-Xms512m -Xmx512m</p>
  </blockquote>
  
  <p>this also didn't help me</p>
  
  <p>how to resolve this issue?, Please point me to the right direction</p>