Trying to find memory holding with seaside

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

Trying to find memory holding with seaside

Mariano Martinez Peck
Hi guys,

For some reason, even after shutting down all my server adaptors, unregister apps, kill all sessions etc... I still cannot get rid of some instances that end up with a very very large graph.

I am with Seaside 3.0.10 and Pharo 2.0. 

WAApplication allInstances select: [:each | (each preferenceAt: #rootClass) = DpWebRootTask] -> 0.   (DpWebRootTask is my root class that I register)
WASession allSubInstances size -> 0. 
WAServerAdaptor allSubInstances size -> 0.

And the list continues. I did all the cleanings and resets I am aware of. Still, I have a referecne to an instance of DpWebRootTask (my root class) and an instance of the the class the #go of DpWebRootTask does a #call:

I have spent 2 hours following strong pointers and nothing...

Any help is appreciated. 


--
Mariano
http://marianopeck.wordpress.com

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

Re: Trying to find memory holding with seaside

Philippe Marschall
On Sat, Aug 30, 2014 at 12:22 AM, Mariano Martinez Peck
<[hidden email]> wrote:

> Hi guys,
>
> For some reason, even after shutting down all my server adaptors, unregister
> apps, kill all sessions etc... I still cannot get rid of some instances that
> end up with a very very large graph.
>
> I am with Seaside 3.0.10 and Pharo 2.0.
>
> WAApplication allInstances select: [:each | (each preferenceAt: #rootClass)
> = DpWebRootTask] -> 0.   (DpWebRootTask is my root class that I register)
> WASession allSubInstances size -> 0.
> WAServerAdaptor allSubInstances size -> 0.
>
> And the list continues. I did all the cleanings and resets I am aware of.
> Still, I have a referecne to an instance of DpWebRootTask (my root class)
> and an instance of the the class the #go of DpWebRootTask does a #call:
>
> I have spent 2 hours following strong pointers and nothing...
>
> Any help is appreciated.

What does #pointersTo answer for the DpWebRootTask instance?

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

Re: Trying to find memory holding with seaside

Mariano Martinez Peck



On Sat, Aug 30, 2014 at 10:35 AM, Philippe Marschall <[hidden email]> wrote:
On Sat, Aug 30, 2014 at 12:22 AM, Mariano Martinez Peck
<[hidden email]> wrote:
> Hi guys,
>
> For some reason, even after shutting down all my server adaptors, unregister
> apps, kill all sessions etc... I still cannot get rid of some instances that
> end up with a very very large graph.
>
> I am with Seaside 3.0.10 and Pharo 2.0.
>
> WAApplication allInstances select: [:each | (each preferenceAt: #rootClass)
> = DpWebRootTask] -> 0.   (DpWebRootTask is my root class that I register)
> WASession allSubInstances size -> 0.
> WAServerAdaptor allSubInstances size -> 0.
>
> And the list continues. I did all the cleanings and resets I am aware of.
> Still, I have a referecne to an instance of DpWebRootTask (my root class)
> and an instance of the the class the #go of DpWebRootTask does a #call:
>
> I have spent 2 hours following strong pointers and nothing...
>
> Any help is appreciated.

What does #pointersTo answer for the DpWebRootTask instance?


Hi Philippe
 
Look attached. 

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



--
Mariano
http://marianopeck.wordpress.com

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

Screen Shot 2014-08-30 at 11.49.01 AM.png (94K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Trying to find memory holding with seaside

Philippe Marschall
On Sat, Aug 30, 2014 at 4:50 PM, Mariano Martinez Peck
<[hidden email]> wrote:
> …
>
> Hi Philippe
>
> Look attached.

The WAValueHolder, where does it lead?

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

Re: Trying to find memory holding with seaside

Mariano Martinez Peck


On Sun, Aug 31, 2014 at 7:19 AM, Philippe Marschall <[hidden email]> wrote:
On Sat, Aug 30, 2014 at 4:50 PM, Mariano Martinez Peck
<[hidden email]> wrote:
> …
>
> Hi Philippe
>
> Look attached.

The WAValueHolder, where does it lead?

I end up always in a loop :(  It looks like a closed graph...but obviously I have some pointer from another place that I cannot find. 

Look the new attached. 

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



--
Mariano
http://marianopeck.wordpress.com

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

Screen Shot 2014-09-01 at 9.36.03 AM.png (332K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Trying to find memory holding with seaside

Philippe Marschall
On Mon, Sep 1, 2014 at 2:37 PM, Mariano Martinez Peck
<[hidden email]> wrote:

>
>
> On Sun, Aug 31, 2014 at 7:19 AM, Philippe Marschall
> <[hidden email]> wrote:
>>
>> On Sat, Aug 30, 2014 at 4:50 PM, Mariano Martinez Peck
>> <[hidden email]> wrote:
>> > …
>> >
>> > Hi Philippe
>> >
>> > Look attached.
>>
>> The WAValueHolder, where does it lead?
>
>
> I end up always in a loop :(  It looks like a closed graph...but obviously I
> have some pointer from another place that I cannot find.
>
> Look the new attached.

You did run a full GC? Closed all the workspaces and everything?

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

Re: Trying to find memory holding with seaside

Mariano Martinez Peck



On Mon, Sep 1, 2014 at 10:46 AM, Philippe Marschall <[hidden email]> wrote:
On Mon, Sep 1, 2014 at 2:37 PM, Mariano Martinez Peck
<[hidden email]> wrote:
>
>
> On Sun, Aug 31, 2014 at 7:19 AM, Philippe Marschall
> <[hidden email]> wrote:
>>
>> On Sat, Aug 30, 2014 at 4:50 PM, Mariano Martinez Peck
>> <[hidden email]> wrote:
>> > …
>> >
>> > Hi Philippe
>> >
>> > Look attached.
>>
>> The WAValueHolder, where does it lead?
>
>
> I end up always in a loop :(  It looks like a closed graph...but obviously I
> have some pointer from another place that I cannot find.
>
> Look the new attached.

You did run a full GC? Closed all the workspaces and everything?

Yep, everything. I just cannot discover who is holding this large graph. 

 

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



--
Mariano
http://marianopeck.wordpress.com

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

Re: Trying to find memory holding with seaside

Philippe Marschall
On Mon, Sep 1, 2014 at 4:04 PM, Mariano Martinez Peck
<[hidden email]> wrote:
>…
> Yep, everything. I just cannot discover who is holding this large graph.

You'd have to know which objects are gc roots. I don't know how to do
this in Pharo. Probably the Pharo mailing list is the right place to
ask.

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