BuddyLists not removed

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Alex
Posts: 131
Joined: 03 Sep 2006, 09:15

BuddyLists not removed

Postby Alex » 09 Jan 2011, 12:12

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.
User avatar
Lapo
Site Admin
Posts: 21676
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 09 Jan 2011, 17:23

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.
Lapo
--
gotoAndPlay()
...addicted to flash games
Alex
Posts: 131
Joined: 03 Sep 2006, 09:15

Postby Alex » 18 Jan 2011, 06:43

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.
User avatar
Lapo
Site Admin
Posts: 21676
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Jan 2011, 08:50

Your workaround is correct. We'll provide the fix with the RC2 release which will be out in a few weeks.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Baidu [Spider] and 20 guests