Error: All connections in use

These are old archives. They are kept for historic purposes only.
Post Reply
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Error: All connections in use

Post by ShArDiCk »

Hi,
i have get following error:

- ERROR! ALL CONNECTIONS IN USE!

when one of my users try to connect to one of our server.

So, i had set up like that my ircd:
- in ./Config > file descriptors or sockets = 1024
- in unrealircd.conf > max connections clients = 1600.

I have root access on the dedicated server that host the ircd and i can do all modifcations i want to my linux configurations.

We have, on this ircd, 1006 clients connected and all other connections up to 1006 are blocked with that error message.

Before do someting stupid action i want to understand better what's the problem.

I have red documentations and faq and i think that to hadnt understand at better you can explain me.

When i execute ULIMIT -N the result is 1024.

Thanx in advance for the help, attentions and availability.

You had good work on Unreal!!!
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

If you have 1006 connections, then you are likely at 1024 sockets. It's 1024 sockets, not 1024 clients. For example, are any other servers linked to this server? If yes, add +1 per server directly linked to it (including services/statserv/etc.). Also, when a client is connecting, it uses more than one socket. It has the server connection socket, it has an ident socket, and an resolver socket. So if there are clients in the process of connecting, it would also add to the number of sockets.

If you have 1006 users, then you are most likely at the 1024 socket limit.
-- codemastr
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

Hi codemastr,
there isnt any other servers linked to this one. It is only a server linked to our hub.

So, to fix this problem, what have i can to do?

Thanx in advance
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

You would need to increase the FD limit.
-- codemastr
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

So, i have to increase the File Descriptors limit with ULIMIT -N XXXX ... ?
How much you advice to increse the File Descriptors?
There is a rule to increase it?
And after i increase the FD limit i have to redo ./Config specifying an File Descriptors limit that is not the default? And so redo make and make install?
Syzop
UnrealIRCd head coder
Posts: 2117
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

See FAQ: Other - I want my ircd to hold over 1024 connections (you usually have to do a few steps to set it up correctly).
You could start with something like 4096.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Why don't you just add another server, ShArDiCk? :wink:
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

Dukat: -_-

Syzop: ok, now i have understand. Thank you.
Post Reply