Tomcat out of memory

From: Dale (dalelum_at_gmail.com)
Date: 09/27/04


Date: 27 Sep 2004 10:51:00 -0700

I've a situation where Tomcat is crashing with an out of memory error
every 24-48 hours. I think I may have narrowed down the cause: we have
tens of thousands of jsp pages, and every time one of them is compiled
i see the heap size grow, and it never shrinks back down. Eventually
Tomcat becomes unresponsive, writes out of memory to the catalina log,
and I have to restart it. Here's what I'm running:

RedHat Linux ES 3.0
Apache 2.0.46 with ( mod_jk )
Tomcat 4.1.24
Sun j2sdk 1.4.2_03

My question is, I've explicitly set it in the web.xml configuration so
that Tomcat forks javac processes to another memory partition. Even
so, I'm seeing out of memory reported by Tomcat. Is this a memory leak
in javac, Ant, or is my original hypothesis incorrect?

thanks,
Dale



Relevant Pages

  • Re: More threads
    ... I upgraded to a machine with more memory thinking i had solved my OutOfMemeoryError, - but low and behold, it was my heap size allocation.... ... I been benchmarking a Java servlet I have created and I want to be able to handle a massive amount of simultaneous connections. ... When I max it out with my benchmarks I get this in catalina Tomcat 5.5 but there is still plenty of free memory to the Tomcat process. ... I have been getting the best performance with libthr and have been using the above libthr and with these settings below. ...
    (freebsd-performance)
  • JVM memory problem on Linux
    ... I have encountered a problem using tomcat, ... My problem seem to be a JVM memory deallocation problem on Linux. ... another configuration problem. ...
    (comp.lang.java)
  • Re: Tomcat out of memory
    ... > tens of thousands of jsp pages, and every time one of them is compiled ... > Tomcat becomes unresponsive, writes out of memory to the catalina log, ... > that Tomcat forks javac processes to another memory partition. ... The Java compiler leaks memory each time a class is compiled. ...
    (comp.lang.java.help)
  • Re: how many tomcat instances on one machine
    ... I have about 1GB of memory and the initiali heap for Tomcat is ... This email is certified to be Spam free by Spam Marshall ... >Just curious to see if anyone has run lots of separate tomcat instances on ...
    (comp.lang.java.help)