Hello,
We need some help with our smartfox, Lately we saw a high count of Droped-out msgs ( 100 a day ) with a very low user count( 150) .
As the droped out messages increased, some of our customers started to complain about not been able to Join the game. It seems that SFS stops accepting connections at 9339 and keeps pushing some users to BlueBox.
After the problem started our user count went down to 90-100 users simultaneosly, about 30% of our users could not join the game anymore.
So we decided to move the server to a new box with lower latency, but even after that we still got a high Droped msgs count.
Here is some configs we are using today , i have managed to have some success with this configs.
<OutQueueThreads>4</OutQueueThreads> <ExtHandlerThreads>1</ExtHandlerThreads> <MaxWriterQueue>400</MaxWriterQueue>
<ClientMessagQueue> <QueueSize>900</QueueSize> <MaxAllowedDroppedPackets>1</MaxAllowedDroppedPackets> </ClientMessagQueue>
<MaxIncomingQueue>20000</MaxIncomingQueue> <DeadChannelsPolicy>strict</DeadChannelsPolicy> <MaxMsgLen>74096</MaxMsgLen>
JVM Head : 910mb to 1.4 GB
Server is a Dual Xeon 4GB Ram, 150GB HD SCSI, we run a turn based game ( card game ) .
Could be the dropped messages associated with the login issue our users are having?
I would aprecciate some pointer to fine tune our server.
Thanks.
sfs 1.6.6 Disconnect and dropped messages
Well, there is another thread setting that you may not be aware of, and it's <SysHandlerThreads> which is set to 1 by default and isn't shown in the initial config.xml file. That thread is responsible for most internal events (such as "createRoom", "loginRequest", etc). So, it may be possible that due to exhaustion of the thread pool for SysHandler, users were experiencing login issues. So try increasing this thread count to 2 or 3.Could be the dropped messages associated with the login issue our users are having?
Your client message queue size of 900 isn't recommended, as this could put 'slow' clients out of sync. I'd put it back to 100, and try and pin-point the problem.
It seems like you are sending a lot of messages to each clients in a short period of time. This is the common reason for the dropped-out packages, not taking into account their internet speed. Do you have rooms with high number of clients (apart from Limbo rooms)? By 'high', I'm referring to more than 40 clients in one room at the same time. (Having high numbers of clients in one room can also put stress on the server). Apart from messages related to your game and chat, are you sending any other messages?
Have you monitored your JVM and server load via your AdminTool?
Smartfox's forum is my daily newspaper.