<div dir="ltr">Hi Denis, Hi All,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 9, 2018 at 1:35 AM, Denis Kudriashov <span dir="ltr"><<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I checked on my few days image. And I have >2000 announcers.<div>Cleaning Calypso cache does not help. And in fact after closing all browsers and collecting garbage the cache became empty.</div><div><br></div><div>I found that most of subscriptions are related to rubric announcements. </div></div></blockquote><div><br></div><div>Can you tell me whether this is an application bug or possibly a bug with the Spur VMs weak collections?  I'd hate for this to be an undiagnosed and unfixed VM bug.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-05-08 18:36 GMT+03:00 Henrik-Nergaard <span dir="ltr"><<a href="mailto:draagren@outlook.com" target="_blank">draagren@outlook.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
>Announcer allInstances size. “7124" <br>
Remember that GT implements a lot of Announcer subclasses so to gain a<br>
better picture you should use:<br>
Announcer allSubInstances size. <br>
<span><br>
>clearly, that’s not good. <br>
>a symptom there is something leaking badly in our current development<br>
version. <br>
</span>There has been leaking Announcements back from Pharo 5. Most of them is<br>
tangled into Rubric, and some GT tools.<br>
In the past many of the leaks has been from mixing weak and non weak<br>
subscriptions in the same announcer, IIRC.<br>
<br>
Here is a script you can run.<br>
<br>
==============================<wbr>=============================<br>
| bag dct |<br>
<br>
bag := Bag new.<br>
dct := IdentityDictionary new.<br>
<br>
Smalltalk garbageCollect.<br>
Announcer allSubInstancesDo: [ :instance | | subs |<br>
        subs := instance subscriptions subscriptions.<br>
        subs do: [ :each | | cls |<br>
                cls := each announcementClass.<br>
                bag add: cls.<br>
                dct at: cls <br>
                        ifPresent: [ :set | set add: each class ] <br>
                        ifAbsentPut: [ IdentitySet with: each class ] <br>
        ]<br>
].<br>
<br>
"{ bag . dct } inspect."<br>
<br>
"String streamContents: [ :ss |<br>
        bag sortedCounts do: [ :assoc |<br>
                ss <br>
                        << (assoc key asString padRightTo: 7);<br>
                        << assoc value printString;<br>
                        cr<br>
        ]<br>
]"<br>
<br>
dct associations select: [ :assoc | assoc value size > 1 ]<br>
<br>
==============================<wbr>=============================<br>
<br>
Best regards,<br>
Henrik <br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html" rel="noreferrer" target="_blank">http://forum.world.st/Pharo-Sm<wbr>alltalk-Developers-f1294837.ht<wbr>ml</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>