I’m using an Openfire Server, and a client program using Smack API.
Currently, I’m testing scalability: in my program, I create 50 clients, and then one extra client which invites every 50 clients to a multi-user chat. The 50 clients are configured so that they listen for invitation to MUC and then join the MUC.
I’ve put Thread.sleep(1000) everywhere not to overload the server (so each client has one plain second to join the MUC). The problem is that for the first 20-30 clients, there’s no problem, but after that, I get a “XMPPException: service-unavailable(503)” for each client who wants to join…
Is it that MUC isn’t made for a lot of users? Right now, it’s just a test, but in the real app, I will need to send messages to a 5000 users’ MUC (the real purpose of this is not chat, you may guess).