Page 1 of 1

BuddyLists not removed

Posted: 09 Jan 2011, 12:12
by Alex
Hi

It looks like the user's BuddyLists are not removed after he is disconnected, and they are eating my memory.
I'm monitoring the memory of my SFS server and there is an instance of a ConcurrentHashMap in the SFSBuddyListManager class that constantly grows in size.

Posted: 09 Jan 2011, 17:23
by Lapo
Thanks, I think there is a cache. Anyways I have added a note in the bug DB to check for potential problems. I will keep you updated.

Posted: 18 Jan 2011, 06:43
by Alex
Hi

Do you have any info on this?

The buddyLists are definitely not auto removed - is this the intended behavior?
I fix the problem by calling the following method:

Code: Select all

getParentZone().getBuddyListManager().removeBuddyList( bOwner );


in my UserDisconnect server event. If I don't call the method the server eventually runs out of memory and stops.

Posted: 18 Jan 2011, 08:50
by Lapo
Your workaround is correct. We'll provide the fix with the RC2 release which will be out in a few weeks.