Think before you speak, read before you think.

sysctl的调优

/proc/sys/net/core/somaxconn 设置

清理 cache

echo 3 > /proc/sys/vm/drop_caches
echo 655350 > /proc/sys/net/netfilter/nf_conntrack_max
echo 655350 > /proc/sys/net/nf_conntrack_max
echo 1200 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established

客户端端口范围

sysctl -a | grep port_range
net.ipv4.ip_local_port_range = 32768	61000

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *