This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes java.lang.OutOfMemoryError: Java heap space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java.lang.OutOfMemoryError: Java heap space" Watch "java.lang.OutOfMemoryError: Java heap space" New topic
Author

java.lang.OutOfMemoryError: Java heap space

ganesan ayyanu
Greenhorn

Joined: Oct 26, 2011
Posts: 3




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

Joined: Jun 25, 2001
Posts: 15961
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.OutOfMemoryError: Java heap space
 
Similar Threads
Problem with inserting new data into database using hibernate
startNodeManager.sh and startWeblogic.sh doesn't start to execute
java.lang.OutOfMemoryError: Java heap space null at Jasper report
generate large XLS file using java
Out of memory error