found that a cannot assign requested address error occurred during recent pressure testing of the TCP service and looked up
on the network
p>
for the following reasons:
client side frequently establishes the connection, but the port release is slow, resulting in no available port when establishing the new connection.
you can see many TIME_WAIT state connections
through netstat
netstat -ae | grep TIME_WAIT
server in the presence of a large number of short connections, Linux TCP stacks typically generate a large number of TIME_WAIT state sockets, sometimes surprisingly large. This increase takes up the system kernel, which is not infinite. p>
solution:
strong> by modifying the following system parameters to solve (/ etc/sysctl. Conf) : p>
sysctl -w net.ipv4.tcp_fin_timeout=30 #修改系統默认的TIMEOUT时间,默认为60s
sysctl -w net.ipv4.tcp_timestamps=1 #修改tcp/ip协议配置, 通过配置/proc/sys/net/ipv4/tcp_tw_resue, 默认为0,修改为1,释放TIME_WAIT端口给新连接使用
sysctl -w net.ipv4.tcp_tw_recycle=1 #修改tcp/ip协议配置,快速回收socket资源,默认为0,修改为1:
sysctl -w net.ipv4.tcp_tw_reuse = 1 #允许端口重用
p>
thanks:
https://blog.csdn.net/fzhqcjc/article/details/84924724
Read More:
- Error resolution of win7 “ClassFactory cannot supply requested class” in vs 2008
- NSIS “Win32 Error, Code:740 , the requested operation needs to promote the error resolution
- new_lrs[:5] = lr_warm [12] TypeError: can only assign an iterable
- cannot assign module before Module.__init__() call
- Solve the error of clearing data in object.assign in Vue
- Assign the intersection combination of two linked lists to linked list a
- Arrow function should not return assignment no-return-assign
- JMeter: java.net.bindexception: address already in use: connect solution
- Install apache2.4 on windows to solve the problem of the requested operation has failed
- What should be paid attention to in socket programming — bind socket error: address already in use
- The requested resource is not found
- push failed The requested URL returned error: 403
- GitHub push ErrorThe requested URL returned error: 403 Forbidden while accessing
- SOE deployment error ClassFactory cannot supply requested class
- Failed to set up listener: socketexception: address already in use
- Error: listen eaddnotavail: address not available
- Android dependency conflict resolution
- curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ig
- Error resolution by Ubuntu: aclocal-1.14 ‘is missing on your system
- LoadRunnercatalog refund: Action.c(121): Error -27987: Requested image not found [MsgId: MERR-27987]