Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat memory leak

 
Brian Kapellusch
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic