<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 4, 2015 at 4:34 AM, Johan Brichau <span dir="ltr">&lt;<a href="mailto:johan@inceptive.be" target="_blank">johan@inceptive.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Mariano,<div><br></div><div>Is this in Pharo or Gemstone?</div></div></blockquote><div><br></div><div><br></div><div>Hi Johan,</div><div><br></div><div>This particular problem is on Pharo (sessions not getting #unregisted but when forced, most garbage goes away). <br></div><div>On GemStone I have a different one... sessions DO get #unregistered (thanks to seaside maintenance vm), BUT I still have lots of garbage around...(on Pharo they go away when sessions are manually unregistered). </div><div>For GemStone I opened another thread in gemstone list.</div><div><br></div><div>Any idea?</div><div><br></div><div>Thanks!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class="HOEnZb"><font color="#888888"><div><br></div><div>Johan</div></font></span><div><br><div><blockquote type="cite"><div><div class="h5"><div>On 03 Jul 2015, at 23:41, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr">Hi guys,<div><br></div><div>I am having a hard time to see why my seaside sessions are not being GCed nor unregistered. </div><div>First of all, when I register my app, I set a timeout. I even tried with 1 minute timeout:</div><div><b><br></b></div><div><b>app cache expiryPolicy configuration at: #cacheTimeout put: 60</b></div><div><br></div><div>I put a <b>halt in MySessionSubclass &gt;&gt; #unregistered</b> (which then calls super).</div><div><br></div><div>I have seen many seaside things around:</div><div><br></div><div><div>WARenderVisitor instanceCount -&gt; 77.</div><div>WAHtmlCanvas instanceCount -&gt; 1061.</div><div>JQueryClass instanceCount -&gt; 13492.</div><div>WACallbackRegistry instanceCount -&gt; 77.</div></div><div>MySessionSubclass -&gt; 12.</div><div>.....</div><div><br></div><div>As you can see, I have plenty of memory around callbacks registries, renders, visitors, sessions etc... If I try to see which sessions were expired:</div><div><br></div><div><div><b>MySessionSubclass allInstances select: [ :each | (each instVarNamed: &#39;parent&#39;) isNil ]   -&gt; #()  </b></div></div><div><br></div><div>The &#39;parent&#39; instVar there is because &quot;super unregistered&quot; does that and I don&#39;t know another way to check if a session is expired or not.</div><div><br></div><div>Finally, the only way I have to get rid of everything is this way:</div><div><br></div><div><div><b>WAApplication allInstances do: [ :each | each clear ].</b><br></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">But then, that clears all sessions...even the active ones which I don&#39;t want. <b>So.... how can I force the GC of all none expired sessions?  And why my sessions are not receiving #unregistered ?</b></span></div></div><div><span style="white-space:pre-wrap"><b><br></b></span></div><div><span style="white-space:pre-wrap">Note also that in my example the instanceCount of MySessionSubclass is bigger than 10, because somewhere I read that Seaside would start cleaning sessions upon 10th. </span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">So.... any idea? What am I doing wrong?</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Thanks in advance, </span></div><div><span style="white-space:pre-wrap"><br></span></div><div><br></div><div><br></div><div><div><br></div>-- <br><div>Mariano<br><a href="http://marianopeck.wordpress.com/" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div></div></div><span class="">
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></span></div></blockquote></div><br></div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>