William Brogden wrote:1. How much memory are you giving Tomcat?
2. Does this happen on the first request or does it take multiple requests to cause it?
William Brogden wrote:IF - you are starting Tomcat via the startup.bat /catalina.bat method
THEN - You can control the amount of memory Tomcat starts with by adding a JAVA_OPTS environment setting. For example to give Tomcat and initial 128mb with maximum 256mb:
Insert in Catalina.bat around line 43 after the block of REM statements
set JAVA_OPTS=-Xms128m -Xmx256m
Look further in catalina.bat to see where JAVA_OPTS is used.
Mateus Lucio wrote:Hi there!
I suggest you track down the problem's source ... what is using so much memory that is crashing the jvm?
if you just give it more memory, without knowing what's causing the problem, sooner or later you'll get it again.
William Brogden wrote:It may not be a coding flaw, your problem is just too big for the default Java memory allocation of 64mb.
You should either:
1. use startup.bat with the memory setting JAVA_OPTS line I showed before
- or -
2. figure out how to assign more memory when starting using tomcat6.exe
For 2 - I cant help you there, I always use startup.bat for maximum control of the environment.