Linux 服务器大量 TCP ESTABLISHED 状态, 3 天就达到 65535 个,怎么去定位这样的问题?

2017-08-10 11:53:36 +08:00
 huxiweng
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)
3577 次点击
所在节点    Linux
1 条回复
gemini
2017-08-15 21:07:01 +08:00
首先确认是不是正常的链接?没有其他信息大家都很难猜的说。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/381881

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX