How to increase Set max connection On Centos 6.x

for centos 6.x it is changed to the following codes :

To print current limit type:
# sysctl net.nf_conntrack_max
Output:65536

To increase this limit to e.g. 100000, type:
# sysctl -w net.nf_conntrack_max=100000

To make this settings permanent add the following line to /etc/sysctl.conf file:
net.nf_conntrack_max = 100000

The following will tell you how many sessions are open right now:
# wc -l /proc/net/nf_conntrack

  • 16 Users Found This Useful
Was this answer helpful?

Related Articles

How to Extend LVM Partition on CentOS

Caution: VMware recommends having a complete backup of the virtual machine prior making these...

How to prevent Slowloris with iptables on CentOS

following this command line as root accessiptables -I INPUT -m state --state ESTABLISHED,RELATED...

Forgot Root Password "Give root password for maintenance"

To reset your root password: 1. When the GRUB loader shows during boot press the spare bar to...

How to Secure /tmp on CentOS แบบ image files

cd / dd if=/dev/zero of=/tmpfile bs=1 count=0 seek=4Gmkfs.ext4 -j /tmpfile mount -o...

SSH Key เข้าใช้งาน Linux Server ของ CentOS ด้วยโปรแกรม PuTTY

1. เข้าใช้งาน โดยการกรอก IP ของ Linux Server ที่ต้องการจะเชื่อมต่อ Port การใช้งานเป็น 22 2....