Jump to content
  • 0

Upgrade CentOS to support over 1024 concurrent connection


croxinuz

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

i have following from preview topic setup  :

 

i change :
/etc/systcl.conf

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
fs.file-max = 360000
net.ipv4.ip_local_port_range = 4096 65000
net.ipv4.tcp_keepalive_time = 80
net.ipv4.tcp_keepalive_probes = 6
net.ipv4.tcp_keepalive_intvl = 120
# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

/etc/security/limits.conf

#ftp             hard    nproc           0
#@student        -       maxlogins       4
# End of file
*	hard	nofile	65535
*	soft	nofile	65535
root	hard	nofile	65535
root	soft	nofile	65535

but still count on 1024 concurrent connection ?

need Help Plis :(

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

have you try to change this?
 

as default from centos is 

 

 

 

net.ipv4.tcp_fin_timeout = 60

 

to fin_timeout = 30

?

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

Hmm..i think i dont chance that part sir ...

Solved, i have found solution for this , thanks all :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  07/28/16
  • Last Seen:  

Solved, i have found solution for this , thanks all :D

 

 

Sir, may i know how you solved this issue?

 

Thanks.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  02/10/18
  • Last Seen:  

Can you please share your solution @croxinuz

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