Memory leak, any tips?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Memory leak, any tips?

Hilaire Fernandes-4
With Seaside 2.8.

I accidently wrote:

html div: (super renderTerm: term on: html)

in place of

html div: [super renderTerm: term on: html])

It caused an infinite recursion, I have to kill the seaside process to
recover, but now my image has grown to 100MB.
Not sure it is related, but I see about 50 WASession hanging around,
even when I shut down.

With
WARegistry clearAllHandlers.
Smalltalk garbageCollect.

the WASession are still there.


Strangely I also have many component hanging in memory.

Any tips? I am not sure were to look to chasse pointers.

Hilaire


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Memory leak, any tips?

John McKeon
WARegistry clearAllHandlers
Smalltalk garbageCollect

Works for me every time :)

John

2009/6/3 Hilaire Fernandes <[hidden email]>
With Seaside 2.8.

I accidently wrote:

html div: (super renderTerm: term on: html)

in place of

html div: [super renderTerm: term on: html])

It caused an infinite recursion, I have to kill the seaside process to
recover, but now my image has grown to 100MB.
Not sure it is related, but I see about 50 WASession hanging around,
even when I shut down.

With
WARegistry clearAllHandlers.
Smalltalk garbageCollect.

the WASession are still there.


Strangely I also have many component hanging in memory.

Any tips? I am not sure were to look to chasse pointers.

Hilaire


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--
http://jmck.seasidehosting.st

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Memory leak, any tips?

Lukas Renggli
Yeah, usually that usually works.

In your case it could be that data still hangs around WAKom or within
the process list.

Make sure that you kill all Seaside processes and restart the server.

Lukas

On Wed, Jun 3, 2009 at 12:59 PM, John McKeon <[hidden email]> wrote:

> WARegistry clearAllHandlers
> Smalltalk garbageCollect
>
> Works for me every time :)
>
> John
>
> 2009/6/3 Hilaire Fernandes <[hidden email]>
>>
>> With Seaside 2.8.
>>
>> I accidently wrote:
>>
>> html div: (super renderTerm: term on: html)
>>
>> in place of
>>
>> html div: [super renderTerm: term on: html])
>>
>> It caused an infinite recursion, I have to kill the seaside process to
>> recover, but now my image has grown to 100MB.
>> Not sure it is related, but I see about 50 WASession hanging around,
>> even when I shut down.
>>
>> With
>> WARegistry clearAllHandlers.
>> Smalltalk garbageCollect.
>>
>> the WASession are still there.
>>
>>
>> Strangely I also have many component hanging in memory.
>>
>> Any tips? I am not sure were to look to chasse pointers.
>>
>> Hilaire
>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
>
> --
> http://jmck.seasidehosting.st
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Memory leak, any tips?

Hilaire Fernandes-4
There are not left Seaside process nor rampant WAKomEncoded instances.
Just about 50 WASession instances plus many component, but I guess there
are referenced by the session.

Hilaire


Le mercredi 03 juin 2009 à 13:03 +0200, Lukas Renggli a écrit :

> Yeah, usually that usually works.
>
> In your case it could be that data still hangs around WAKom or within
> the process list.
>
> Make sure that you kill all Seaside processes and restart the server.
>
> Lukas
>
> On Wed, Jun 3, 2009 at 12:59 PM, John McKeon <[hidden email]> wrote:
> > WARegistry clearAllHandlers
> > Smalltalk garbageCollect
> >
> > Works for me every time :)
> >
> > John
> >
> > 2009/6/3 Hilaire Fernandes <[hidden email]>
> >>
> >> With Seaside 2.8.
> >>
> >> I accidently wrote:
> >>
> >> html div: (super renderTerm: term on: html)
> >>
> >> in place of
> >>
> >> html div: [super renderTerm: term on: html])
> >>
> >> It caused an infinite recursion, I have to kill the seaside process to
> >> recover, but now my image has grown to 100MB.
> >> Not sure it is related, but I see about 50 WASession hanging around,
> >> even when I shut down.
> >>
> >> With
> >> WARegistry clearAllHandlers.
> >> Smalltalk garbageCollect.
> >>
> >> the WASession are still there.
> >>
> >>
> >> Strangely I also have many component hanging in memory.
> >>
> >> Any tips? I am not sure were to look to chasse pointers.
> >>
> >> Hilaire
> >>
> >>
> >> _______________________________________________
> >> seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
> >
> >
> >
> > --
> > http://jmck.seasidehosting.st
> >
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
>
>
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Memory leak, any tips?

Julian Fitzell-2
You could nil out all the instance variables in the Sessions and
garbage collect. I'm guessing that will get rid of all the components
and so on. But you'll probably still need to chase pointers to find
out what's holding onto the Sessions. Make sure all inspector windows
and so on are closed when you garbage collect otherwise they'll be
holding onto the Sessions themselves.

And of course it may be easier to load your code into a new image but
this *should* be solvable without too much difficulty and may be
revealing for you to see what is causing them to be kept around.

Julian

2009/6/3 Hilaire Fernandes <[hidden email]>:

> There are not left Seaside process nor rampant WAKomEncoded instances.
> Just about 50 WASession instances plus many component, but I guess there
> are referenced by the session.
>
> Hilaire
>
>
> Le mercredi 03 juin 2009 à 13:03 +0200, Lukas Renggli a écrit :
>> Yeah, usually that usually works.
>>
>> In your case it could be that data still hangs around WAKom or within
>> the process list.
>>
>> Make sure that you kill all Seaside processes and restart the server.
>>
>> Lukas
>>
>> On Wed, Jun 3, 2009 at 12:59 PM, John McKeon <[hidden email]> wrote:
>> > WARegistry clearAllHandlers
>> > Smalltalk garbageCollect
>> >
>> > Works for me every time :)
>> >
>> > John
>> >
>> > 2009/6/3 Hilaire Fernandes <[hidden email]>
>> >>
>> >> With Seaside 2.8.
>> >>
>> >> I accidently wrote:
>> >>
>> >> html div: (super renderTerm: term on: html)
>> >>
>> >> in place of
>> >>
>> >> html div: [super renderTerm: term on: html])
>> >>
>> >> It caused an infinite recursion, I have to kill the seaside process to
>> >> recover, but now my image has grown to 100MB.
>> >> Not sure it is related, but I see about 50 WASession hanging around,
>> >> even when I shut down.
>> >>
>> >> With
>> >> WARegistry clearAllHandlers.
>> >> Smalltalk garbageCollect.
>> >>
>> >> the WASession are still there.
>> >>
>> >>
>> >> Strangely I also have many component hanging in memory.
>> >>
>> >> Any tips? I am not sure were to look to chasse pointers.
>> >>
>> >> Hilaire
>> >>
>> >>
>> >> _______________________________________________
>> >> seaside mailing list
>> >> [hidden email]
>> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >>
>> >
>> >
>> >
>> > --
>> > http://jmck.seasidehosting.st
>> >
>> > _______________________________________________
>> > seaside mailing list
>> > [hidden email]
>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >
>> >
>>
>>
>>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside