File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat memory leak Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat memory leak" Watch "Tomcat memory leak" New topic

Tomcat memory leak

Brian Kapellusch

Joined: Oct 03, 2002
Posts: 11
I'm currently running Tomcat 4.0.4 on Windows XP in my development environment, and Tomcat 4.0.6 on FreeBSD in my production environment. Tomcat is consistently running out of memory on the production machine, with the default memory settings.
I tried setting memory bounds in my development environment using -Xms and -Xmx to limit the memory in catalina.bat when Tomcat is actually getting launched, but it doesn't seem to be having any effect. The memory used by Tomcat grows past the cap, and it doesn't appear like it ever hits the ceiling of the JVM.
Has anyone else encountered this problem, or know what might be happening?
Thanks in advance, Brian

----------------<br />Brian Kapellusch
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There is a 'known' memory leak when Tomcat compiles JSP's because of a memory leak in the compiler.

If you have a LOT of deployed JSPs in your production environment, this might be one reason.

Other places to look: connection pools, database drivers.
I agree. Here's the link:
subject: Tomcat memory leak
It's not a secret anymore!