主机上部署SpringCloud多应用使用nacos造成问题解决
程序员文章站
2022-05-03 12:50:27
...
问题背景:
一台主机上面部署了N个SpringCloud应用,使用的注册中心是Nacos,长时间运行后会出现
java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([178.50.10.132:8848]) tried: failed to req API:http://178.50.10.132:8848/nacos/v1/ns/instance. code:500 msg: java.net.ConnectException: Cannot assign requested address (connect failed)
网上找了下原因,大致上是由于客户端频繁的连服务器,由于每次连接都在很短的时间内结束,导致很多的TIME_WAIT,以至于用光了可用的端 口号,所以新的连接没办法绑定端口,即“Cannot assign requested address”。是客户端的问题不是服务器端的问题。通过netstat,的确看到很多TIME_WAIT状态的连接。
client端频繁建立连接,而端口释放较慢,导致建立新连接时无可用端口。
netstat -a|grep TIME_WAIT
tcp6 0 0 178.50.10.132:49654 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49190 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50028 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49474 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49990 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49222 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49352 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49706 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49540 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49860 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49852 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50006 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49238 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49594 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49344 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49900 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49534 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49548 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49624 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49718 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49322 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50044 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50016 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49998 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50104 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49822 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49292 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50082 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42062 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49296 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49202 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49802 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49862 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42068 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:50018 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49898 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49244 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49148 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49430 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49964 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50168 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50014 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49096 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49406 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42386 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49266 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49962 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49550 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49158 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50136 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49508 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49976 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49904 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50222 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49504 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49232 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50032 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50090 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49646 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49246 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49762 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49432 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49828 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49354 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50248 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49142 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49546 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49868 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49536 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49620 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50206 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42128 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49494 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50274 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49260 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42480 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49754 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49198 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49676 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50250 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49944 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:54628 178.50.10.13:inovaport2 TIME_WAIT
tcp6 0 0 178.50.10.132:42288 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49136 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49090 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49844 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50120 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49668 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49766 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49450 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49738 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50340 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49180 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49632 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49530 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49848 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49442 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50228 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49278 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49830 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:58570 178.50.10.81:30003 TIME_WAIT
tcp6 0 0 178.50.10.132:50010 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50128 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50282 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50292 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49700 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49212 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49586 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50220 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49492 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:41844 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49736 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49858 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50106 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49112 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49226 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49154 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50042 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49640 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49698 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49240 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49300 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49926 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49886 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49326 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49250 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:58414 178.50.10.81:30003 TIME_WAIT
tcp6 0 0 178.50.10.132:49458 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49152 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49672 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50102 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50306 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49200 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42076 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49710 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50048 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49228 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49984 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49568 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49470 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49402 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49564 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49462 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49336 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49282 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49910 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50030 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50244 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49132 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49692 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50432 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49538 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50054 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50484 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49942 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50062 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49680 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49814 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49506 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49330 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49574 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42166 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49188 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49938 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49804 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49666 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49276 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:45942 178.50.10.132:12681 TIME_WAIT
tcp6 0 0 178.50.10.132:49262 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49370 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42126 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:50108 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49638 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49532 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42056 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:50538 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50040 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49810 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49410 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49974 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49648 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49784 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42410 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49590 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49172 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49436 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50144 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50452 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49334 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49372 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50382 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49248 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50258 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50114 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49518 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49242 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49746 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:59254 178.50.10.81:30003 TIME_WAIT
tcp6 0 0 178.50.10.132:50336 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50518 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50162 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49634 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50444 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49598 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50376 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:42588 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:49324 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49358 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49482 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49376 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50334 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49708 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49952 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50012 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49288 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50050 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49932 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49220 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50490 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49846 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50378 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49270 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50462 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49312 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49510 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49338 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49374 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50344 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50428 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49720 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49696 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50356 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50606 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49134 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49440 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49616 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49644 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50692 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49996 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49562 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49678 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50722 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50092 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49346 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50370 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49408 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49348 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49850 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50288 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49758 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49160 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50142 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49106 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49502 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49832 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50196 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49284 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49476 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50322 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49108 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50774 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49416 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50352 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50436 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49224 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50020 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50238 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49366 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49794 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49328 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49542 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:49884 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50822 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50848 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50862 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50814 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50878 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50892 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:43202 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:50808 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50856 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50830 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50802 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50868 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50918 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50818 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50934 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50894 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50926 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50968 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:43196 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:50936 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50824 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50882 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50952 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:43206 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:50884 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50842 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50890 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51022 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50852 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50930 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50820 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50990 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51030 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50920 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50960 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51014 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:43132 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:51070 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50928 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50958 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51040 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:43372 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:51080 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50832 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50982 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50938 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51024 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51036 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50964 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50804 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50854 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51986 178.50.10.83:inovaport2 TIME_WAIT
tcp6 0 0 178.50.10.132:50872 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50812 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:60146 178.50.10.81:30003 TIME_WAIT
tcp6 0 0 178.50.10.132:50996 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50962 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51052 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50796 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50810 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50978 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51710 178.50.1:pago-services1 TIME_WAIT
tcp6 0 0 178.50.10.132:51018 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:50850 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51170 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51122 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51128 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51104 178.50.10.132:8848 TIME_WAIT
tcp6 0 0 178.50.10.132:51008 178.50.10.132:8848 TIME_WAIT
-
解决办法
执行命令修改如下内核参数 (需要root权限)
调低端口释放后的等待时间,默认为60s,修改为15~30s:
sysctl -w net.ipv4.tcp_fin_timeout=30
修改tcp/ip协议配置, 通过配置/proc/sys/net/ipv4/tcp_tw_resue, 默认为0,修改为1,释放TIME_WAIT端口给新连接使用:
sysctl -w net.ipv4.tcp_timestamps=1
修改tcp/ip协议配置,快速回收socket资源,默认为0,修改为1:
sysctl -w net.ipv4.tcp_tw_recycle=1
允许端口重用:
sysctl -w net.ipv4.tcp_tw_reuse = 1