Jump to content
  • 0

How can i set CentOS to support over 1024 concurrent connection?


play

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  09/06/13
  • Last Seen:  

My Server

DELL R210
E3-1240v2
16GB of RAM

HDD 7.2k

 

Help me please

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  198
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

Are you sure that doesn't have a iptables rule to blocking connections when exceeds the max amount of connections? For work with TCP outbound sockets of network and other network options you can use sysctl command.

 

You will need set the "fs.file-max" kernel propety via sysctl and change your local port range traffic.

 

fs.file-max = 360000
net.ipv4.ip_local_port_range = 1024 65000

Change these values to what you need, all kernel configs are located in etc/sysctl.conf.

Be careful with the time request of new connections, because you can lost the response if you don't change the tcp keep alive option in kernel.

 

net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_intvl = 90

Change these values according the latency of your host network in comparison to their clients (players).

 

 

If you have problems or bugs, ask for support in CentOS Community.

Good Luck!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi play,

 

With 16GB of RAM, it should be handle way more than 1024; just make sure your network port can handle the traffic. There isn't anything you need to set to make it enable 1024 con-current connections; you simply have to make sure your server has the necessary resources and power to do it... which it looks like it does.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  

As far as I know, Dell blade servers has a built in at least 2 network cards. Have your hosting plug in another extra cat5 cable, then bond the two network cards for faster network connection.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   23
  • Joined:  01/30/12
  • Last Seen:  

I guess that he's talking about server's socket message that's shown in the console

[info]: Server supports up to '1024' concurrent connections.

 

I don't know exactly how to increase that limit, maybe with ulimit on *nix OS?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   2
  • Joined:  02/23/14
  • Last Seen:  

Are you sure that doesn't have a iptables rule to blocking connections when exceeds the max amount of connections? For work with TCP outbound sockets of network and other network options you can use sysctl command.

 

You will need set the "fs.file-max" kernel propety via sysctl and change your local port range traffic.

fs.file-max = 360000
net.ipv4.ip_local_port_range = 1024 65000

Change these values to what you need, all kernel configs are located in etc/sysctl.conf.

Be careful with the time request of new connections, because you can lost the response if you don't change the tcp keep alive option in kernel.

net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_intvl = 90

Change these values according the latency of your host network in comparison to their clients (players).

 

 

If you have problems or bugs, ask for support in CentOS Community.

Good Luck!

20bd0e30-fe4a-11e4-9ff5-e433653785cd.JPG

 

1ee6ad0a-fe4a-11e4-8959-94b318b3b6b9.JPG

 

Help me pls. /sob  need change to 4096

Edited by Hnomkeng
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   2
  • Joined:  02/23/14
  • Last Seen:  

need help /sob

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...