You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Tino Schwarze <ti...@tisc.de> on 2006/03/07 23:08:23 UTC

Strange memory problem

Hi there,

I'm currently tracking an OutOfMemory problem. We've got a web app which
gets OutOfMemory after some heavy use. I installed Mustang 1.6b62 on the
machines and had them dump heap on OOM. Then I looked into the heap dump
using jhat.

I noticed that there are several objects hanging around with a strange
reference:

Java Local Reference (from org.apache.tomcat.util.threads.ThreadWithAttributes@0xaf660f48) :
--> some.of.our.classes

According to jhat, no other objects are referencing these objects (only
Finalizer).

Has anybody a clue what might cause this? After all, they don't seem to
get garbage collected.

Bye+Thanks!

Tino.


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


Re: Strange memory problem

Posted by Tino Schwarze <ti...@tisc.de>.
On Tue, Mar 07, 2006 at 11:12:35PM +0100, Remy Maucherat wrote:

> >I'm currently tracking an OutOfMemory problem. We've got a web app which
> >gets OutOfMemory after some heavy use. I installed Mustang 1.6b62 on the
> >machines and had them dump heap on OOM. Then I looked into the heap dump
> >using jhat.
> >
> >I noticed that there are several objects hanging around with a strange
> >reference:
> >
> >Java Local Reference (from 
> >org.apache.tomcat.util.threads.ThreadWithAttributes@0xaf660f48) :
> >--> some.of.our.classes
> >
> >According to jhat, no other objects are referencing these objects (only
> >Finalizer).
> >
> >Has anybody a clue what might cause this? After all, they don't seem to
> >get garbage collected.
> 
> Personally, I don't know these new tools, so I don't know how to 
> interpret what they say. For example, maybe there's a whole reference 
> chain between the two.

This is supposed to show the reference chain. If I include weak
references in the display, a lot of Finalizer stuff is shown but this
one stays.

Thanks,

Tino.


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


Re: Strange memory problem

Posted by Remy Maucherat <re...@apache.org>.
Tino Schwarze wrote:
> Hi there,
> 
> I'm currently tracking an OutOfMemory problem. We've got a web app which
> gets OutOfMemory after some heavy use. I installed Mustang 1.6b62 on the
> machines and had them dump heap on OOM. Then I looked into the heap dump
> using jhat.
> 
> I noticed that there are several objects hanging around with a strange
> reference:
> 
> Java Local Reference (from org.apache.tomcat.util.threads.ThreadWithAttributes@0xaf660f48) :
> --> some.of.our.classes
> 
> According to jhat, no other objects are referencing these objects (only
> Finalizer).
> 
> Has anybody a clue what might cause this? After all, they don't seem to
> get garbage collected.

Personally, I don't know these new tools, so I don't know how to 
interpret what they say. For example, maybe there's a whole reference 
chain between the two.

Rémy

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


Re: Strange memory problem

Posted by Costin Manolache <co...@gmail.com>.
ThreadWithAttributes extends Thread and caches some info ( Request
object for example ).
Since they are threads - they don't need to be referenced, and won't
get GC until the thread is done.

It's strange that it'll directly reference your classes.

Costin


On 3/7/06, Tino Schwarze <ti...@tisc.de> wrote:
> Hi there,
>
> I'm currently tracking an OutOfMemory problem. We've got a web app which
> gets OutOfMemory after some heavy use. I installed Mustang 1.6b62 on the
> machines and had them dump heap on OOM. Then I looked into the heap dump
> using jhat.
>
> I noticed that there are several objects hanging around with a strange
> reference:
>
> Java Local Reference (from org.apache.tomcat.util.threads.ThreadWithAttributes@0xaf660f48) :
> --> some.of.our.classes
>
> According to jhat, no other objects are referencing these objects (only
> Finalizer).
>
> Has anybody a clue what might cause this? After all, they don't seem to
> get garbage collected.
>
> Bye+Thanks!
>
> Tino.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

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