初装Linux网络优化
Linux系统初装后TCP memory默认参数配置为128K,在过多进程负载网络通信的情况下就会出现异常。
可以使用命令扩大使用内存:
#sysctl -w net.core.rmem_max=16777216
#sysctl -w net.core.wmem_max=16777216
##修改为16M
最好同时修改 /etc/sysctl.conf文件,保证系统正常运行:
# These ensure that TIME_WAIT ports either get reused or closed fast.
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_tw_recycle = 1
# TCP memory
net.core.rmem_max = 16777216
net.core.rmem_default = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144
相关推荐
付春杰Blog 2019-12-19
xiaoemo0 2019-12-14
BarryZhang 2019-10-31
yegen00 2012-10-04
宁静致远 2010-01-08
WangBuChuan 2010-07-07
hxf0 2019-07-01
Vi 2019-07-01
光谷通讯 2019-06-29
87911432 2019-06-27
thomas0yang 2019-06-21
羽化大刀Chrome 2019-03-04
Eumenidess 2013-05-13
yyyxxxs 2013-01-24
wym 2017-11-08
0与的世界 2013-02-24
企事录 2015-05-20
cxmdzlhnb 2015-04-23
ShadowBurn 2014-12-11