Linux 服务器大量 TCP ESTABLISHED 状态, 3 天就达到 65535 个,怎么去定位这样的问题?
- 0次
- 2021-06-29 04:33:51
- idczone
lsof -p 16582 // 16582 是 java 的进程 id
类似这样的:
java 20745 root *914u IPv4 76226949 0t0 TCP 101.xx.xx.xx:http->60.67.136.117.static.js.chinamobile.com:csoft-prev (ESTABLISHED)
java 20745 root *915u IPv4 76227018 0t0 TCP 101.xx.xx.xx:http->60.67.136.117.static.js.chinamobile.com:user-manager (ESTABLISHED)
java 20745 root *916u IPv4 76227791 0t0 TCP 101.xx.xx.xx:http->49.67.136.117.static.js.chinamobile.com:20786 (ESTABLISHED)
java 20745 root *917u IPv4 76227566 0t0 TCP 101.xx.xx.xx:http->49.92.184.134:48508 (ESTABLISHED)
java 20745 root *918u IPv4 76227060 0t0 TCP 101.xx.xx.xx:http->101.226.102.52:49751 (ESTABLISHED)
java 20745 root *919u IPv4 76229311 0t0 TCP 101.xx.xx.xx:http->122.194.3.133:52526 (ESTABLISHED)
java 20745 root *920u IPv4 76227242 0t0 TCP 101.xx.xx.xx:https->163.210.227.121.broad.sz.js.dynamic.163data.com.cn:17743 (ESTABLISHED)
java 20745 root *921u IPv4 76227968 0t0 TCP 101.xx.xx.xx:http->122.194.3.197:47938 (ESTABLISHED)
java 20745 root *922u IPv4 76238310 0t0 TCP 101.xx.xx.xx:http->101.226.125.115:61937 (ESTABLISHED)
java 20745 root *923u IPv4 76227190 0t0 TCP 101.xx.xx.xx:http->101.226.125.109:57114 (ESTABLISHED)
java 20745 root *924u IPv4 76227811 0t0 TCP 101.xx.xx.xx:http->49.67.136.117.static.js.chinamobile.com:20787 (ESTABLISHED)
java 20745 root *925u IPv4 76227246 0t0 TCP 101.xx.xx.xx:https->163.210.227.121.broad.sz.js.dynamic.163data.com.cn:17746 (ESTABLISHED)
java 20745 root *926u IPv4 76227248 0t0 TCP 101.xx.xx.xx:https->163.210.227.121.broad.sz.js.dynamic.163data.com.cn:17745 (ESTABLISHED)
java 20745 root *928u IPv4 76229057 0t0 TCP 101.xx.xx.xx:http->49.95.50.71:37898 (ESTABLISHED)
java 20745 root *929u IPv4 76227905 0t0 TCP 101.xx.xx.xx:http->49.67.136.117.static.js.chinamobile.com:20788 (ESTABLISHED)
java 20745 root *930u IPv4 76228843 0t0 TCP 101.xx.xx.xx:http->49.95.50.71:37887 (ESTABLISHED)
java 20745 root *931u IPv4 76229326 0t0 TCP 101.xx.xx.xx:http->122.194.3.133:52527 (ESTABLISHED)
java 20745 root *932u IPv4 76238306 0t0 TCP 101.xx.xx.xx:http->122.194.3.133:52532 (ESTABLISHED)
java 20745 root *934u IPv4 76227342 0t0 TCP 101.xx.xx.xx:https->180.106.113.116:alarm-clock-s (ESTABLISHED)
java 20745 root *935u IPv4 76227981 0t0 TCP 101.xx.xx.xx:http->122.194.3.197:47939 (ESTABLISHED)
java 20745 root *936u IPv4 76228167 0t0 TCP 101.xx.xx.xx:http->140.207.185.125:49356 (ESTABLISHED)
java 20745 root *937u IPv4 76228259 0t0 TCP 101.xx.xx.xx:http->101.226.102.79:39059 (ESTABLISHED)
首先确认是不是正常的链接?没有其他信息大家都很难猜的说。