TCP接続TIME-WAITソリューション
問題の原因:
time-wait?
,
,
ACK , time-wait ,
,
[ ],
ACK
!
time-wait :
1 time-wait ,
,
2 time-wait ,
web , ,
, ,
, , time
-wait 1 ,
, TCP
:
1:
netstat -tnl | awk '/^tcp/{print $6}' | uniq -c
!
2:
zabbix key time-wait connection
agent UserParameter=
,
:
1 linux :
:
:
[root@zabbix-server13:35:11~]#sysctl -a|grep file-max
fs.file-max = 44348
:
[root@zabbix-server13:35:11~]#sysctl -a|grep file-max
fs.file-max = 44348
web :
linux :
[root@zabbix-server13:44:32~]#sysctl -a | grep ipv4.ip_local_port_range
net.ipv4.ip_local_port_range = 32768 60999
1024 !
1024 ~ 65535
2 :
net.ipv4.tcp_tw_recycle = 1
TCP TIME-WAIT sockets , 0,
net.ipv4.tcp_tw_reuse = 1
。 TIME-WAIT sockets TCP , 0, ;
net.ipv4.tcp_fin_timeout = 60
time-wait
net.ipv4.tcp_syncookies = 1
SYN Cookies。 SYN , cookies , SYN***, 0, ;
time-wait !