sysctl系统优化参数

内核参数优化
net.core.somaxconn = 20480
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 4096 16777216
net.ipv4.tcp_wmem = 4096 4096 16777216
net.ipv4.tcp_mem = 786432 2097152 3145728
net.ipv4.tcp_max_syn_backlog = 16384
net.core.netdev_max_backlog = 20000
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_window_scaling = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_max_orphans = 131072
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_tw_buckets = 80000
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_keepalive_probes = 5
vm.dirty_ratio = 10
fs.file-max=1000000
将这些参数添加最后 sysctl -p 生效,有错误的话就将错误的行注释掉

上一篇:First


下一篇:JSP中动态INCLUDE与静态INCLUDE的区别