Dropped Out Messages

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
daveK
Posts: 10
Joined: 20 Apr 2006, 23:32

Dropped Out Messages

Post by daveK »

Hi Lapo,

Quick question for you, I'm noticing dropped out messages at a somewhat increasing rate. I'd really like to see what the messages are as well as who they were intended to go to, is there any way to determing this? Could I possibly pipe them to a text file?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
messages are dropped when the client queue is full and the server can't allocate more space for a new message.
This mechanism is configurable and allows the server to avoid filling up all its memory and finally crash. :shock:

By default the server sets up a queue of 50 messages. The queue holds all the data that that needs to be transferred to the client while its connection is slowing down or it is busy.

There can be many factors that lead to dropped messages:

- slow client connection
- too many messages sent by the server
- server bandwidth almost full

The amount of queued messages per client can be changed by modifying the <MaxWriterQueue> setting in config.xml
We recommend to avoid very high values like 300 or more without reconfiguring also the JVM heap settings.
I'd really like to see what the messages are as well as who they were intended to go to, is there any way to determing this? Could I possibly pipe them to a text file?
No, we don't provide a mechanism for logging the dropped messages at the moment. Also it wouldn't be of much help, I presume, as any message can be dropped at any time if the user queue is full

hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply