You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hwang, Joseph" <Jo...@ser.com> on 2002/02/04 16:40:43 UTC

Apache/Tomcat memory leak not recovered after shutdown

We are loosing about about 500 MB of memory on a 1 GB server after running
Apache/Tomcat on Linux for 24 hours.  (We are trying to fit within 512 MB.)
The strange thing is that after I shutdown Apache and Tomcat, the memory
only recovers about 100 MB.  vmstat still shows "Memory Cache" that takes up
about 348380 KB.

I would think that if the memory is in apache/tomcat, then the memory should
be recovered when I shut them down.  Is that right?  How could I get the
memory back from the "Memory Cache" without rebooting?

It's a web application with servlets, JSPs and static pages with Apache
1.3.22, Tomcat 3.2.4, RedHat Linux 7.1.  I tried Sun JDK 1.3.1 and IBM JDK
1.3.0 with same results.

Thank you for any help.

Joseph

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Apache/Tomcat memory leak not recovered after shutdown

Posted by Eric LOEW <e....@egencia.com>.
"Hwang, Joseph" wrote:
> 
> I would think that if the memory is in apache/tomcat, then the memory should
> be recovered when I shut them down.  Is that right?  How could I get the
> memory back from the "Memory Cache" without rebooting?

I have the same problem and i reduce the maximum number of apache client
:

MaxClients 75 in httpd.conf in my case

Then I use the -Xms and -Xmx from the java options called from tomcat.

And finaly, (that's in the default configuration from tomcat) I remove
the option ReloaderInterceptor from server.xml (Cf.
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html).

Hope this help

Eric

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Apache/Tomcat memory leak not recovered after shutdown

Posted by Loïc Lefèvre <ll...@fivia.com>.
Hi,
We have experienced same problems, all we found to do is to kill
"with our hands" the java process (that can rest after the servlet
engine shutdown). Here is the bash script we use:

#!/bin/bash
kill -9 `ps -A | grep java | cut -c 1-5`
kill -9 'ps -A | grep jre | cut -c 1-5'

Hope that helps,
Loïc Lefèvre

-----Message d'origine-----
De : Hwang, Joseph [mailto:Joseph.Hwang@ser.com]
Envoyé : lundi 4 février 2002 16:41
À : 'tomcat-user@jakarta.apache.org'
Objet : Apache/Tomcat memory leak not recovered after shutdown


We are loosing about about 500 MB of memory on a 1 GB server after running
Apache/Tomcat on Linux for 24 hours.  (We are trying to fit within 512 MB.)
The strange thing is that after I shutdown Apache and Tomcat, the memory
only recovers about 100 MB.  vmstat still shows "Memory Cache" that takes up
about 348380 KB.

I would think that if the memory is in apache/tomcat, then the memory should
be recovered when I shut them down.  Is that right?  How could I get the
memory back from the "Memory Cache" without rebooting?

It's a web application with servlets, JSPs and static pages with Apache
1.3.22, Tomcat 3.2.4, RedHat Linux 7.1.  I tried Sun JDK 1.3.1 and IBM JDK
1.3.0 with same results.

Thank you for any help.

Joseph

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>