We've reached more than 1024 players on our server and whatever we do, the server doesn't want to allow for more.
At first, players used to get "failed to connect to server" as their connection was denied, we immediately thought it was the socket limit on the server. So we wanted to fix it by changing :
/etc/security/limits.conf
root hard nofile 40000
root soft nofile 40000
* soft nofile 10000
* hard nofile 64000
/usr/include/x86_64-linux-gnu/bits/typesizes.h to 4096 /usr/include/linux/posix_types.h to 4096
Question
Neslea
Hello dear rA people.
We've reached more than 1024 players on our server and whatever we do, the server doesn't want to allow for more.
At first, players used to get "failed to connect to server" as their connection was denied, we immediately thought it was the socket limit on the server. So we wanted to fix it by changing :
/etc/security/limits.conf
/usr/include/x86_64-linux-gnu/bits/typesizes.h to 4096
/usr/include/linux/posix_types.h to 4096
ulimit -Sn 65535
# nano /etc/pam.d/common-session
# nano /etc/pam.d/common-session-noninteractive
ADD -> session required pam_limits.so
defined FD_SETSIZE to 4096 and recompiled.
We also changed
max_connect_user: 9999
and
Change - packet_db.conf
// If IP's are checked when connecting.
// This also enables DDoS protection.
enable_ip_rules: no
because why not.
But then now, the map server crashes whenever we reach 1025 sockets.
For your information, in the console it writes clearly "rathena, this client supports 4096 concurrent connections"
What did we do wrong?
Server is under Debian 8.
We run the live server on a docker under Ubuntu last version.
Thanks a lot for anyone who can help.
Edited by NesleaLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.