Rainer Jung wrote:
> Andrea Di Muro wrote:
>> Hi, I have a problem with the Jk Connector between Apache and Tomcat: 
>> when a jsp page uses a lot of memory and I get java.lang.OutOfMemory 
>> error the jk connector stops working. Even after the thread that was 
>> consuming all the allocated memory stops, I can't access the jsp pages 
>> via Apache on port 80, but I can access the same pages directly via 
>> Tomcat on port 8080. Is this a known bug?
>> How can I solve this problem? 
> 
> Once you get an OutOfMemoryError in heap space, you should really
> restart your Java process. You can't be sure, which objects couldn't
> get allocated after the initial event. Even if you think, that all
> is well, it could be that your webapps produce wrong results. The
> same holds true for Tomcat. After any OOME there is no more
> guarantee for correctness of any type.
> 
> Depending on your TC version and thread pool model, usually the
> symptom is, that the new thread needed to wait for the next
> connection couldn't get created, so no more connections get accepted
> and basically your connector is dead. By the above statement, there
> can be unknown other problems though, so going on using the process
> is not safe.
> 
> Is your OOME coming from heap? What's the exact message, JVM version and
TC version?

Tomcat version is 5.5.20 running on JVM 1.5.0_10-b03
This is the error I get in the log file:
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:28:08 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space)
executing [EMAIL PROTECTED],
terminating thread
Exception in thread "TP-Processor2" java.lang.OutOfMemoryError: Java heap
space
Jun 6, 2008 5:28:51 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: Java heap space
Exception in thread "TP-Processor32" java.lang.OutOfMemoryError: Java heap
space
Jun 6, 2008 5:28:50 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-133" java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:28:50 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space)
executing [EMAIL PROTECTED],
terminating thread
Jun 6, 2008 5:31:07 PM org.apache.jasper.runtime.JspFactoryImpl
internalGetPageContext
SEVERE: Exception initializing page context
java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:31:18 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:31:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:31:12 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request
processing
java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:31:19 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: Java heap space
Jun 6, 2008 5:32:05 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: Java heap space


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to