内核参数优化
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 生效,有错误的话就将错误的行注释掉
相关文章
- 02-08hive的优化方式一(项目中通过CM对Hive参数进行优化)
- 02-08Android 系统开机时间优化
- 02-08K8S etcd参数优化
- 02-08三、解决android手机IMEI获取失败终极方案,自定义IMIE,主板+系统定制商+cup指令集+设备参数+显示屏参数+修订版列表等参数生成IMIEI
- 02-08帝国CMS系统标签e:loop调用的附加SQL条件和排序参数
- 02-08基于单片机加热炉多参数检测和PID炉温系统+压力-毕设课设资料
- 02-08Spark Streaming 实时计算在甜橙金融监控系统中的应用及优化
- 02-08设置SolidWorks三维设计值参数化的方法,可以导入Workbench进行优化分析
- 02-08ContOS系统参数查询命令
- 02-08tomcat优化-调整JVM参数进行优化