Jump to content

itlog10

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by itlog10

  1. 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

     

     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

     

    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.

     

     

    Sir, how did you recompile the FD_SETSIZE?

×
×
  • Create New...