Page 1 of 1

MaxWriterQueue and OutQueueThreads

Posted: 13 Jul 2007, 18:51
by quickfox
The documentation states that the outgoing message queue is per user, but doesn't state the actual config.xml setting name. Is that MaxWriterQueue? There's just one max queue display in the admin tool so I would have guessed that it's one setting per server. Our user base is over 750 and growing rapidly, so whenever I see dropped messages in the log files I double it, and I'm up to 12000 now since we got dropped messages at 6000.

I hope the outgoing queues aren't pre-allocated, that the setting just means how much one queue is allowed to grow, and that you would free the memory after the queue shrinks or the socket closes. Is that a fair assumption?

Also, I've increased OutQueueThreads. I assume this is per server? The documentation states OutQueueThreads should be half the number of processors but I don't understand what that has to do with it as smartfox says it is using 136 threads (including only 1 ext handler thread). Isn't OutQueueThreads a statistical guess on the number of clients you have that might have slow connections? We bumped ours up to 4 at the same time as we increased the queue size and the dropped messages seem to have gone away.

Thanks,
Steve

Posted: 16 Jul 2007, 07:14
by Lapo
The documentation states that the outgoing message queue is per user, but doesn't state the actual config.xml setting name. Is that MaxWriterQueue? There's just one max queue display in the admin tool so I would have guessed that it's one setting per server. Our user base is over 750 and growing rapidly, so whenever I see dropped messages in the log files I double it, and I'm up to 12000 now since we got dropped messages at 6000.
MaxWriterQueue, specifies the max amount of messages that the server should enqueue for each client.
12000 is a too high value and doesn't make much sense. If the client is so slow, or the bandwidth is full you will make the server enqueue too many messages and finally run out of heap memory

This topic has been discussed here:
http://forums.smartfoxserver.com/viewto ... =3418#3418
and here
http://forums.smartfoxserver.com/viewtopic.php?t=174

Posted: 16 Jul 2007, 07:17
by Lapo
Also, I've increased OutQueueThreads. I assume this is per server? The documentation states OutQueueThreads should be half the number of processors but I don't understand what that has to do with it as smartfox says it is using 136 threads
Ouch! 136 :shock:
Normally SFS runs with 10-16 threads in total, depending if you turn on the webserver.
Are you using many room extensions, each one running its own setInterval / thread?