OutOfMemory Errors

Hi All,

The intention is to get rid of the cases, when OutOfMemoryError exception on Tomcat 5.0.28. The exception is thrown after some period of running (from several hours to days, depends on the load/usage model). We have several EJBs, created by servlets, which in turn called by the client. The fact of OutOfMemoryError is bad, but what is worse that the Tomcat process comes to a stall and the clients too and their stack shows that they are waiting in RMI stack. The only solution left then is to manually restart the Tomcat Instance. The Environment in JDK 1.4.2 Tomcat 5.0.28 on SUSE Linux 9.

Could anyone guide me to a good monitoring tool to find out the exact cause of this error.I am already in process of evaluating JConsole provided by Sun. It would be really nice if you could guide me to some other Open Source JMX based tools.

Or Is there any configuration setting which could help us in solving this.

Thanks And Regards

Pallav

[981 byte] By [pjakhotiyaa] at [2007-10-2 0:30:33]
# 1

Hi,

I also got this problem

usually after 1 weeks,

After deep testing, Memory must be optimized by servlet it self and class-file used by servlet,

tomcat 5.5 has also the same problem,

my opions is this is fundamental Thread problem used by Tomcat, tomcat dont carefully handle Objects,

I just got one idea,

run tomcat under simple java application made by us, then

try {

//run tomcat

} catch (OutOfMemoryException e) {

System.exit(1);

}

nokideena at 2007-7-15 16:45:09 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...