Extension handler queue

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

corwin
Posts: 77
Joined: 17 Jul 2009, 08:19

Extension handler queue

Postby corwin » 30 Dec 2009, 10:04

At about 500, 600 users my extension handler queue raises at about 50 - 100, and users start complaining of odd game behavior.
It is obvious that the problems in my code, but first I would like to tune the server so it can handle more users efficiently.
Currently I am reading this doc: http://www.smartfoxserver.com/docs/inde ... vanced.htm

I think of raising the client message queue size to 200, and setting max dropped messages to 1, so clients don't lose packages, and still have buffer time to experience bad connection. Here my question is if the price for big client message queue is just server memory usage?
Also as we have 8 core cpu and we have pretty high outgoing message queue, I think of setting OutQueueThreads to 4.
I am not sure if i should touch ExtHandlerThreads. I guess this is direct cure for my extension handler queue size, but don't have enough experience in threads programming and may miss something.

So, finally, I am asking if there are any obvious flaws in my thoughts and if there are any other advices and tips I should have in mind? :)
User avatar
Lapo
Site Admin
Posts: 21231
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Jan 2010, 06:17

Altering the Client Message Queue and OutQueueThreads won't help much. The problem is elsewhere in your code. If you do use a database then the problem is highly likely to be the DB.

Take a look at this article, it will explain all the details:
http://www.smartfoxserver.com/docs/docP ... Safety.htm
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 8 guests