Reply
Regular Visitor
Spiro
Posts: 5
Registered: 02-17-2009
0

java.lang.OutOfMemoryError: Java heap space

[ Edited ]

This error means that you need to increase the heap size for your Tomcat installation. 

 

Windows running Tomcat 5.5 and later :

  • Go to the "Apache Tomcat x.x" folder in the Start Menu.
  • Start the "Configure Tomcat".
  • Select the "Java" tab in the configuration dialog.

 

The "Maximum memory pool" text box coresponds to the heap size limit. Raise this limit to increase the heap size.

 

Windows running Tomcat 4.1 or earlier :

  • Place the Java options into the CATALINA_OPTS environment variable. To do this, run Control Panel / System, select Environment Variables and create the CATALINA_OPTS variable, and set the desired option, for example "-server -Xmx400m".

 

Linux :

  • Place the Java options into the CATALINA_OPTS environment variable. For example: "-server -Xmx400m".