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.
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:
# 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.