V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
huxiweng
V2EX  ›  Linux

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

  •  
  •   huxiweng · 2017-08-10 11:53:36 +08:00 · 3499 次点击
    这是一个创建于 2450 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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)
    gemini
        1
    gemini  
       2017-08-15 21:07:01 +08:00
    首先确认是不是正常的链接?没有其他信息大家都很难猜的说。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5492 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:44 · PVG 14:44 · LAX 23:44 · JFK 02:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.