- Stop Tomcat (if running).
- Launch C:\apache-tomcat-5.5.17\bin\ tomcat5w.exe (or where is your Tomcat installed)
- Go on the java tab
- Input the same value for Initial memory pool , and Maximum memory pool.
Default number is 128 MB. This is most of the time insufficient.
- Save configuration (saved in Windows registry)
- Relaunch Tomcat.
If the error still exists, continue increasing memory until 512MB (or 1024MB) and check if error persists