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.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|