Increased user limit

OK, colour me stupid, make me wear a pointy hat, and make me sit in the corner... I must be doing something wrong.

I have an ejabberd server installed here, works fine... I can connect to it etc, but now I am trying to make it accept more than 1000 concurrent user sessions (like 2500 or so)... I tried following all the advice in the tutorial, but when I run jab_simul ... it seems to work perfectly fine till it gets to 1008 users and then starts giving me this error: "Socket creation error ! (Too many open files)" ... this is a Linux limitation, if I am not mistaken... any ideas??

Have you read this:

Have you read this: http://www.ejabberd.im/benchmark?

User limit

Yep, I have followed that, and have set my server up the same way with all the same settings, which is why I think it must be a Linux issue rather than an ejabberd or erlang issue.

set ulimit on every console

Check this: the limitation in the number of open file descriptors is a limitation applied per shell. Every shell, console, bash... that you open will have another limitation for 1024 descriptors.

If you modify this number executing 'ulimit -n 2000', you are modifying the limit for that shell. So, you must execute this command on the console where you will start ejabberd and on the console where you will start jabsimul.

Before starting any of those file-descriptors-eaters, make sure again that the limit has really increased:

# ulimit -n
1024
# ulimit -n 15000
# ulimit -n
15000
# erl ...  or jabsimul ...

Thanks!

Ahhh, ok... I thought it was system-wide, and was setting ulimit in my init.d script, then running jabsimul as another user in another shell entirely.

Thanks for the help!

Syndicate content