Skip to main content
February 6, 2010
Question

FMS memory question, please help me

  • February 6, 2010
  • 1 reply
  • 589 views

I use FMS development webgame. 2 application. 1: room 2: game.
room to maintain 24-hour continuous connection. game is the player number 0, shutdown ()

That there are about 400 people online when the room occupied by the memory 500-800M. game only 100M

+
Players reduction, room memory will not reduce still remain in the 500-800M

Is there relevant solutions or comments?


//
//
//
//
function userLogon(_newClient, userType, userName, userPsd) {
var Logon = new LoadVars();
Logon.errorCount = 0;
Logon.onLoad = function(success) {
  if (success) {
   //trace("---------------------------");
   if (this.returnInfo == "ok") {
    application.acceptConnection(_newClient);
   } else {
    var err = new Object();
    err.message = "error";
    application.rejectConnection(_newClient, err);
   }
  } else {
   this.errorCount++;
   if (this.errorCount>=3) {
    trace("error");
    var err = new Object();
    err.message = "error";
    application.rejectConnection(_newClient, err);
   } else {
    Logon.sendAndLoad(sendUrl, Logon, "POST");
   }
  }
};
var sendUrl = logonUrl+"userName="+userName+"&userPsd="+userPsd+"&";
//trace("logonURL="+sendUrl);
Logon.sendAndLoad(sendUrl, Logon, "POST");
}
//
//
//
The above is my with. Net code for examples of interactive programs.
sendandload in the "function" . To do an asynchronous callback. Used many times in such a way, such

as sending data, user exit, replace the image and so on ... I have used this method
Is it because such an approach lead to memory footprint is too large?

    This topic has been closed for replies.

    1 reply

    February 7, 2010

    Hi,

    You mentioned that even when the number of users comes down the memory occupied doesn't come down. Hence I wanted to check if a certain number of users exit the room are you making sure in the app that the resources (shared object etc) alloted to them are cleaned up as they are no longer used? Maybe that could be one reason why the memory stays the same even the users exit.

    Thanks

    Mamata

    February 7, 2010

    Does your application use any video streams? The reason I ask is, a script related problem it not likely to consume that much memory. The scripting runtime size is limited to 50MB, and I'd expect the app to throw a warning and shut down before the runtime took anywhere near the amount of memory you describe. That said,t the FLVCache can quite easily take up 500MB and more, and the use of any recorded streams (or the recording of any live streams) would start the cache growing.

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 8, 2010

    Try using the administration api "gc" to remove the unused resources in the server.

    Regards,

    Janaki L