If you see this, it means that your Tomcat server has not enough memory assigned for its Java Virtual Machine.
In a default configuration Tomcat even does not declare to require much momory. on my Windows 7 64-bit machine it was 86 Mb.
Using tips below you can adjust available memory as you need.
How to fix it [Linux]
To give Tomcat more memory navigate to ${tomcat-folder}\bin and create the setenv.sh file with params:
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m"
and restart Tomcat. setenv file will be automatically included in Tomcat startup script.
How to fix it [Windows]
To give Tomcat more memory navigate to ${tomcat-folder}\bin and create the setenv.bat file with params:
set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m
and restart Tomcat. setenv file will be automatically included in Tomcat startup script.
Reblogged this on Dinesh Ram Kali..