• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.OutOfMemoryError: Java heap space

 
ganesan ayyanu
Greenhorn
Posts: 3
Java MyEclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.OutOfMemoryError: Java heap space..........




how to solve this problem this type of error coming in console and as a jsp page.....if i want to change any settings....................
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to increase Tomcat's VM memory limits, especially the one controlled by the "-xMx" option.

A good way to do that is to create a file named TOMCAT_HOME/bin/setenv.sh or TOMCAT_HOME\bin\setenv.bat and put a JAVA_OPTS assignment statement in it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic