<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">FWIW, my old stand-by is<br>
<br>
WACache allInstances do: [ :e | e reap].<br>
</font><br>
<div class="moz-cite-prefix">On 7/3/15 5:41 PM, Mariano Martinez
Peck wrote:<br>
</div>
<blockquote
cite="mid:CAA+-=mUwZXNYr6XV-Li0D52TUXmYj0oOk7Rt=GCNY=LDp48tRg@mail.gmail.com"
type="cite">
<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 >>
#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 -> 77.</div>
<div>WAHtmlCanvas instanceCount -> 1061.</div>
<div>JQueryClass instanceCount -> 13492.</div>
<div>WACallbackRegistry instanceCount -> 77.</div>
</div>
<div>MySessionSubclass -> 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: 'parent') isNil ] -> #() </b></div>
</div>
<div><br>
</div>
<div>The 'parent' instVar there is because "super unregistered"
does that and I don'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 class="" style="white-space:pre"><br>
</span></div>
<div><span class="" style="white-space:pre">But then, that
clears all sessions...even the active ones which I don'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 class="" style="white-space:pre"><b><br>
</b></span></div>
<div><span class="" style="white-space:pre">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 class="" style="white-space:pre"><br>
</span></div>
<div><span class="" style="white-space:pre">So.... any idea?
What am I doing wrong?</span></div>
<div><span class="" style="white-space:pre"><br>
</span></div>
<div><span class="" style="white-space:pre">Thanks in advance, </span></div>
<div><span class="" style="white-space:pre"><br>
</span></div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
-- <br>
<div class="gmail_signature">Mariano<br>
<a moz-do-not-send="true"
href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
</body>
</html>