For my web application, it runs well. But the tomcat server stops working suddenly. In the log file , I find that there are many error tips like "StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException". To my surprise, before the tomcat server is down, the application runs well. And finally the log records the information "StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError". I think maybe after this the tomcat goes down. Pls help me! Thx.
-
What happens to Tomcat? (2 messages)
- Posted by: s lily
- Posted on: April 27 2006 20:38 EDT
Threaded Messages (2)
- What happens to Tomcat? by Sanket Raut on April 28 2006 01:26 EDT
- What happens to Tomcat? by Sanket Raut on April 28 2006 01:28 EDT
-
What happens to Tomcat?[ Go to top ]
- Posted by: Sanket Raut
- Posted on: April 28 2006 01:26 EDT
- in response to s lily
This is something i found on net for increasing the memory of tomcat
# Windows running Tomcat 5 and later : Go to the "Apache Tomcat 5.0" folder in the Start Menu. Start the "Configure Tomcat application".
Note: the configuration can only be started when Tomcat is not running.
Select the "Java VM" tab in the configuration dialog. You will see some pre-defined lines in the "Java Options" test box. Append your Java options at the bottom of the option list. For example, to set server mode and allow 512MB of heap memory, append the following:
-server
-Xmx400m
# 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".
Hope this helps. -
What happens to Tomcat?[ Go to top ]
- Posted by: Sanket Raut
- Posted on: April 28 2006 01:28 EDT
- in response to s lily
Or u can try
http://www.experts-exchange.com/Web/Web_Servers/Q_21142878.html
Let me kno if problem is resolved.