What Do I Do If Intermittent Interruption Occurs When a Local Host Accesses a Website Built on an ECS?
After a website is built on an ECS, some users occasionally fail to access the website through the local network.
Fault Locating
- Check the local network of the user.
If the local host communicates with the ECS using NAT, this problem may occur.
- Run the following command to check whether tcp_tw_recycle is enabled on the ECS:
sysctl -a|grep tcp_tw_recycle
The value of tcp_tw_recycle is 1, indicating the function is enabled.
- Run the following command to check the number of lost packets of the ECS:
cat /proc/net/netstat | awk '/TcpExt/ { print $21,$22 }'
If the value of ListenDrops is not 0, packet loss occurs, that is, the network is faulty.
Troubleshooting Procedure
- Run the following command to temporarily modifying the parameters (the modification becomes invalid after the ECS is restarted):
- Perform the following operations to permanently modify the parameters:
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.