You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Satya Narayan Dash <nd...@rediffmail.com> on 2003/10/04 16:19:19 UTC

Is it a Memory leak???

Hi All,

Last time I posted this question, but did not get any response. Hope, this time I'll get.

I am running Apache 2.0.47 and Tomcat 4.1.27 with "mod_jk" as the connector. I am some issues w.r.t the memory consumption. In fact, in apache users forum, the user thinks it is an issue with mod_jk.so/dll.

I bombardded Apache with a large no. of JSP/Servlet pages and it ate up a few MBs of memory and did not release it,though it stablizes after consuming the memory. Again, if I am loading more JSP/Servlet pages, is starts increasing. The increment is in MB range, which is quite significant.

Even after killing all the clients, the memory is not getting released. 
The redirections of JSP/Servlet pages is proper and they are getting executed by Tomcat (from mod_jk.log).

Can anyone tell me where is the problem??? This happens only in Windows(I have tested in Win2k). In linux platform this is absent.

Any help is appreciated.

regards,
Satya.


Re: Is it a Memory leak???

Posted by Tim Funk <fu...@joedog.org>.
The JVM does not release memory back to the OS. It just keeps it in its own 
internal heap of free memory.

-Tim

Satya Narayan Dash wrote:

> Hi All,
> 
> Last time I posted this question, but did not get any response. Hope, this time I'll get.
> 
> I am running Apache 2.0.47 and Tomcat 4.1.27 with "mod_jk" as the connector. I am some issues w.r.t the memory consumption. In fact, in apache users forum, the user thinks it is an issue with mod_jk.so/dll.
> 
> I bombardded Apache with a large no. of JSP/Servlet pages and it ate up a few MBs of memory and did not release it,though it stablizes after consuming the memory. Again, if I am loading more JSP/Servlet pages, is starts increasing. The increment is in MB range, which is quite significant.
> 
> Even after killing all the clients, the memory is not getting released. 
> The redirections of JSP/Servlet pages is proper and they are getting executed by Tomcat (from mod_jk.log).
> 
> Can anyone tell me where is the problem??? This happens only in Windows(I have tested in Win2k). In linux platform this is absent.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Is it a Memory leak???

Posted by David Rees <dr...@greenhydrant.com>.
On Sat, October 4, 2003 at 7:19 am, Satya Narayan Dash sent the following
>
> Last time I posted this question, but did not get any response. Hope, this
> time I'll get.
>
> I am running Apache 2.0.47 and Tomcat 4.1.27 with "mod_jk" as the
> connector. I am some issues w.r.t the memory consumption. In fact, in
> apache users forum, the user thinks it is an issue with mod_jk.so/dll.
>
> I bombardded Apache with a large no. of JSP/Servlet pages and it ate up a
> few MBs of memory and did not release it,though it stablizes after
> consuming the memory. Again, if I am loading more JSP/Servlet pages, is
> starts increasing. The increment is in MB range, which is quite
> significant.
>
> Even after killing all the clients, the memory is not getting released.
> The redirections of JSP/Servlet pages is proper and they are getting
> executed by Tomcat (from mod_jk.log).
>
> Can anyone tell me where is the problem??? This happens only in Windows(I
> have tested in Win2k). In linux platform this is absent.

This sounds like normal behavior of the servlet engine.  As JSPs are
called, they are loaded into memory, but they are never un-loaded.  You
will see memory usage climb as more JSPs are called.

-Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org