tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reich, Matthias" <matthias.re...@siemens.com>
Subject RE: Memory Leak with Comet
Date Wed, 25 Apr 2007 14:38:50 GMT
So far, I have the feeling that I am the only one who has seen these memory leaks with asynchronous
Comet responses.

I tried with a number of variations, e.g.
- let the browser wait for 500 millis before sending the next poll after receiving a result
- keep the events queued in the serverfor at least 500 millis before sending the response
- modify synchronization and the places where I invoke event.close()
- tried with connector attribute maxKeepAliveRequests="-1" and maxKeepAliveRequests="2"
but the effect is always the same.

Thus, I doubt that it is really 'wrong' usage of the interfaces, and others should have seen
similar effects.

Has anyone out there run an application with browsers as clients and with asynchronous responses
for a longer time without loosing memory?

Or am I the only one so far working on such a scenario?

Matthias


-----Original Message-----
From: Rémy Maucherat [mailto:remy.maucherat@gmail.com] 
Sent: Wednesday, April 25, 2007 3:11 PM
To: Tomcat Users List
Subject: Re: Memory Leak with Comet

On 4/25/07, Reich, Matthias <matthias.reich@siemens.com> wrote:
> First I ran Tomcat with a single connector with attribute maxThreads=20,
> and started it with -Xmx10m.
> In the dump I saw 103 instances of class
> org.apache.coyote.http11.Http11AprProcessor and the same number of all
> the attached objects like Request, Response ...

This basically means what I said: the connections and their associated
processors are never properly closed and recycled for some reason.

Rémy

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message