In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Error Cannot assign requested address
I wrote a program for 100000 consecutive visits to redis, but there was a problem with Cannot assign requested address. At first, I thought it was the problem of redis (I may not be able to bear so many visits), but google found that it turned out to be:
The client connects to the server frequently, because each connection ends in a very short time, resulting in a lot of TIME_WAIT, so that the available port number is used up, so the new connection cannot bind the port, that is, "Cannot assign requested address".
It's the client side problem, not the server side problem. Through netstat, you do see a lot of connections in the TIME_WAIT state.
Found a solution on the Internet:
Execute the command to modify the following 2 kernel parameters:
Sysctl-w net.ipv4.tcp_timestamps=1 enables support for TCP timestamps. If this is set to 0, one of the following settings will not work
Sysctl-w net.ipv4.tcp_tw_recycle=1 means to enable the fast recovery of TIME-WAIT sockets in TCP connection
Modify it, solve it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.