tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sysdba" <sys...@ohiointernet.us>
Subject Memory Leak Solved
Date Fri, 15 Apr 2005 13:48:40 GMT
We have struggled with a memory leak in 5.0.28/5.0.30 for months. There have
been many complaints about the necessity to restart Tomcat every couple days
due to Out of Memory errors, but no solutions that cured it. Well, the
suggestion to put the single line:
         Introspector.flushCaches(); 
in the destroy method of a servlet in a redeployable app finally solves it. Our
Tomcat web server has now run for seven days without an OOM error. The amount
of time spent with the Optimizeit profiler trying to locate a nonexistent
memory leak in the application code cannot be overestimated. This discovery
should be bold red lettered in the docs.

Gary Harris
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message