Page 1 of 1

Problem with maximum users and service-links

Posted: Wed Mar 16, 2005 2:57 pm
by hugo
Hey all,
I hope someone can help me here.
I'm in an organisation of LAN party's. At our events we use UnrealIRCD as IRC Server.
Now here's the problem. The last time i've used an config with 1 irc server linked to anope services on the same host (127.0.0.1). The config I used can be found here: http://hugo.linuxbak.nl/unrealconfig_services.conf
The problem when using this, was, that after a few hundred clients (like 300-400) were connected, the IRC server was randomly no longer accepting connections. There seemed no static maximum number. The only way I got it solved was to remove the services link, and the corresponding clients block:

Code: Select all

allow {
        ip *@127.0.0.1;
        hostname *;   
        class servers;
};
I use "ulimit -n 2048" to allow more open files

Another previous event, I used 2 IRC servers linked to each other, with exact the same problem. The workaround there was to switch to a single IRC server.

All the time I've used the newest available server version. My systems runs with a recent 2.4 kernel on Debian Woody (stable).

As you might can understand, it is hard for me to test configurations, so maybe someone can point me to the problem. It's probably just me making some dumb mistake somewhere, I just can't see where :) I also searched this forum, but couldn't find this exact problem somewhere.

Posted: Wed Mar 16, 2005 5:55 pm
by Ron2K
What error messages did the clients get when their connection attempts were refused?

Posted: Wed Mar 16, 2005 7:09 pm
by unr
my allow is :
allow {
ip *@*;
hostname *@*;
class clients;
maxperip 5;
};

set hostname - *@* ..and try again..

Posted: Thu Mar 17, 2005 12:55 am
by hugo
Ron2K wrote:What error messages did the clients get when their connection attempts were refused?
This might sound a bit silly, but I don't know exactly anymore. It was like "All connections in use".

Also, you would think that when, for example, 2 clients disconnecting, another one could join, but that was also not the case.

I will try this weekend again, and will post my exact experiences.
Anyway, Thanks for the reply's.

Posted: Thu Mar 17, 2005 1:31 am
by Syzop
"All connections in use".
That means all file descriptors (well, minus 4 or so) are in use.
What # of file descriptors did you answer on ./Config?
Best is to check that by doing a:

Code: Select all

$ grep MAXCONNECTIONS config.settings
MAXCONNECTIONS="1024"
also, if you changed it in the past.. I presume you didn't forget to recompile? ;)

If you set it at like 1024 and you already get "all connections in use" after like 300 then I've honestly no idea... it's Linux right? I regulary use a Debian ('testing') box for clone tests, ranging from 1000 to 10.000 (on a p450, 384mb [note that 10.000 on such a machine is not recommended ;p])

If it was a different errormsg, namely "Cannot accept connections", then it's probably something with your kernel. But since you mentioned "All connections in use" I figured I would skip commenting on that.

Hope it helps.

Posted: Thu Mar 17, 2005 8:44 pm
by aquanight
Also class limits (class::maxclients) can get involved.