tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Tomcat 6.0.29 problem
Date Mon, 14 Feb 2011 10:00:43 GMT
On 14/02/2011 07:47, Bilal Ashraf wrote:
> Hi,
> - I have written a servlet that reads the request from the client, process
> the request, produce the  
>   response and then write the response to
>   the client. 
> - I have deployed the servlet on tomcat 6.0.29.
> - I sent 10 batches of 100 requests each to the servlet, all the requests
> entertained successfully.
> The problem is, tomcat 6.0.29 does not relase the memory of requests and
> responses even though i forcefully call the garbage collector from the
> profiler. When looked using the profiler, there were large byte arrays held
> by tomcat 6.0.29 code. In these byte arrays, there were request and
> responses that were read from client and sent in response. The memory of
> these request and response did not release even though i left the system
> running for 2-3 days.

This is by design. The buffers are re-cycled and re-used rather than
thrown away are re-created to a) reduce GC, b) reduce delays.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message