Help: Tomcat crashes on java.lang.OutOfMemoryError



I am running an application (i.e. Remedy Midtier) on Tomcat. Currently
I run into the "java.lang.OutOfMemoryError" when performing some
activities from the browser when accessing this application.
Basically, the Tomcat crashes when the java process takes about 160MB -
190MB memory usage (I did monitor the "top" for system resources)

Background information:

OS: Solaris 8
System physical memory: 2048MB
Tomcat version: 4.1.29
JDK version: 1.4.1

/etc/system

set rlim_fd_cur = 65536
set rlim_fd_max = 65536

This is what I have tried so far:

1) Double the heap size in catalina.sh to allocate to java from
"-Xms256m -Xmx512m" to "-Xms512m -Xmx1024m"

2) install jdk 1.4.2

However, the result is: JAVA still fails after taking 160MB-190MB
memory and Tomcat crashes on java.lang.OutOfMemoryError.

Does anyone know what might be the cause of it and how to fix it?

Thanks!

.



Relevant Pages

  • Re: More threads
    ... I been benchmarking a Java servlet I have created and I want to be able to handle a massive amount of simultaneous connections. ... But I just can't seem to get past that mark, I have a lot of memory currently the Tomcat is allocated 2gigs of memory. ... per-thread userland stack, default number on 64 bits platform is 2M, ...
    (freebsd-performance)
  • 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)
  • Tomcat out of memory
    ... I've a situation where Tomcat is crashing with an out of memory error ... Tomcat becomes unresponsive, writes out of memory to the catalina log, ... that Tomcat forks javac processes to another memory partition. ...
    (comp.lang.java.help)
  • 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)