I am testing ejabberd for mucroom. The test client is Tsung. The test condition:
- one ejabberd server(4core 16G Ram)
- 3000 user join one mucroom
- user send a message in 1 minute by random, every user send 5 message The server OS CPU: 90% enter image description here
The result is not up to expectation. I suspect the cause is the server need broadcast too much message.One user send one message, the server need to broadcast to 2999 user. I get the message package with Wireshark and found every message is individual. Is there a way to pack multy message in one package?
Sorry, I make a mistake. The ejabberd already pack some message in one message package. the wireshark screenshot
I believe the ejabberd can take more user in server which have 4Core and 16G Ram. Does any other reason cause the result not up to expectation?