Bug#296868: tomcat4: memory leak
Alessandro Polverini
Alessandro Polverini <alex@nibbles.it>, 296868@bugs.debian.org
Fri Feb 25 07:10:12 2005
Hello Vladimir,
I run a busy website with debian tomcat 4.1.31 and I suffer the same
memory problems you pointed at.
Unfortunately tomcat 5.5.x is not packaged for debian (nor I heard of
any plans for it), but I'm using with success tomcat 5.0.28 that you can
find at:
http://apt.leapster.org/tomcat/
add the following line to sources.list if you want to use it:
deb http://apt.leapster.org/tomcat/ ./
I hope that debian tomcat mantainers could start from that source to
prepare an official debian package, it would be *very* appreciated since
tomcat 4.x is almost left unmantained from upstream.
HTH,
Alex
On Fri, 2005-02-25 at 13:19 +0300, Vladimir Stavrinov wrote:
> Package: tomcat4
> Version: 4.0.3-3woody3
> Severity: normal
>
>
> For a few years we where running our web application serving by
> jserv-1.1.2 and IBMJava2-SDK-1.3 without any problems under significant
> load. This application where written with servlet API 1.1 (jdk1.1). Now
> when we migrate to jakarta tomcat we encountered memory leak with
> tomcat-4.1.31 from debian. We tried Sun java VM j2sdk1.4.2_04 and
> jdk1.5.0_01 with different garbage collection and memory heap
> parameters: in all cases the end was the same. After few hours
> application stopped with "java.lang.OutOfMemoryError". With IBM jdk1.4
> it die after half of hour.
>
> I solve this problem in two ways: downgrade tomcat to 4.0.3-3woody3 or
> upgrade to 5.5.7. With both versions there are no memory leak or any
> other problems. The 4.0.3 is too old but 5.5.7 is out of debian
> distribution. That is why I need 4.1.31 from debian, but it has memory
> leak with servlets. We have another application running under
> tomcat-4.1.31 and there are no memory leak, but this is JSP application
> without servlets.
>
> If You need some details about application design, give Your questions.
> We suppose this memory leak related to http sessions handling. You can
> see this process comparing graphs for different version of tomcat:
>
> http://fog.inist.ru/tomcat-4.1.31.jpg
> http://fog.inist.ru/tomcat-4.0.3.jpg
> http://fog.inist.ru/tomcat-5.5.7.jpg
>
> There no any differences in the system settings, application configuration
> or java VM: only in tomcat version.
>
>
> -- System Information:
> Debian Release: 3.1
> APT prefers unstable
> APT policy: (500, 'unstable'), (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.10
> Locale: LANG=C, LC_CTYPE=ru_RU.koi8-r (charmap=KOI8-R)
>
> Versions of packages tomcat4 depends on:
> ii adduser 3.62 Add and remove users and groups
> ii java-virtual-machine-dummy 0.3 Dummy Java virtual machine
> ii libtomcat4-java 4.0.3-3woody3 Java Servlet engine -- core librar
> ii logrotate 3.7-2 Log rotation utility
>
> -- no debconf information
>
>