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 13:05:00 GMT
I tried with Tomcat6 compiled from trunk revision 532271 and two
browsers sending the requests.

Unfortunately it is not that easy for me to put the dump on a public web
server.
Instead, I had a look at the dump myself.

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 ...

I tried again with -Xmx20m (same configuration otherwise) and saw 249
instances of class org.apache.coyote.http11.Http11AprProcessor.

Thus, let us guess that the number of instances increases if I spend
more memory.


As far as I could see the ConcurrentLinkedQueue<Http11AprProcessor>
recycledProcessors  contains a single entry.

But the RequestGroupInfo holds 249 instances of
org.apache.coyote.RequestInfo:

Instance of java.util.ArrayList (12 bytes)
Class:
class java.util.ArrayList
Instance data members:
elementData (L) : Instance of [Ljava.lang.Object;@0x27e379b0 (1204
bytes)
modCount (I) : 249
size (I) : 249
Object allocated from:
References to this object:
org.apache.coyote.RequestGroupInfo@0x26e596f8 (44 bytes) : field
processors


-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: Tuesday, April 24, 2007 11:47 PM
To: Tomcat Users List
Subject: Re: Memory Leak with Comet

Why don't you enable -XX:+HeapDumpOnOutOfMemoryError and send us a link 
where we can download the HPROF files that get generated.
Also send us your config as well when you get the error
Filip

---------------------------------------------------------------------
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