• 0
Sign in to follow this  
play

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

Question

My Server

DELL R210
E3-1240v2
16GB of RAM

HDD 7.2k

 

Help me please

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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!

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
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.

Loading...
Sign in to follow this