user created room leak

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

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

user created room leak

Postby grhwood » 25 Dec 2013, 16:06

Hi,

Im using NPC user for my game. These users never logout or disconnect. But there is a problem: all rooms created by npc users are leaked in createdRooms map fields in SFSUser class. It caused Permgen OOM error. Is it possible to clear these rooms ?

Thanks
User avatar
Lapo
Site Admin
Posts: 21723
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: user created room leak

Postby Lapo » 25 Dec 2013, 19:55

Simplest solution is not to create the Rooms on behalf of an NPC, instead set the ownership to the Server itself (by passing a null as the owner at creation time)
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Aldenea, DerikFent, Google [Bot], JerodSa, Kevengar and 17 guests