Total socket count steadily increasing, tcp/udp sockets steady. Why?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a server (Ubuntu 16.04.5) running sockets.io and a few other things



TCP connections are as follows:



root@01:~# netstat -an| awk '/tcp/ print $6'|sort|uniq -c
44 CLOSE_WAIT
518 ESTABLISHED
71 FIN_WAIT1
15 FIN_WAIT2
5 LAST_ACK
10 LISTEN
26 SYN_RECV


However the total socket allocated count is much higher and steadily increasing...why?



root@01:~# ss -s
Total: 6128 (kernel 6144)
TCP: 6028 (estab 523, closed 5381, orphaned 7, synrecv 0, timewait 0/0), ports 0

Transport Total IP IPv6
* 6144 - -
RAW 0 0 0
UDP 4 3 1
TCP 647 644 3
INET 651 647 4
FRAG 0 0 0


This server is running about 5 or 6 different python apps and sockets.io. When the server reaches this level of ~6144 sockets it stops accepting new ones. As you can see, there aren't really that many active connections so what is going on here? It's got me stumped.



Thanks









share







New contributor




Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I have a server (Ubuntu 16.04.5) running sockets.io and a few other things



    TCP connections are as follows:



    root@01:~# netstat -an| awk '/tcp/ print $6'|sort|uniq -c
    44 CLOSE_WAIT
    518 ESTABLISHED
    71 FIN_WAIT1
    15 FIN_WAIT2
    5 LAST_ACK
    10 LISTEN
    26 SYN_RECV


    However the total socket allocated count is much higher and steadily increasing...why?



    root@01:~# ss -s
    Total: 6128 (kernel 6144)
    TCP: 6028 (estab 523, closed 5381, orphaned 7, synrecv 0, timewait 0/0), ports 0

    Transport Total IP IPv6
    * 6144 - -
    RAW 0 0 0
    UDP 4 3 1
    TCP 647 644 3
    INET 651 647 4
    FRAG 0 0 0


    This server is running about 5 or 6 different python apps and sockets.io. When the server reaches this level of ~6144 sockets it stops accepting new ones. As you can see, there aren't really that many active connections so what is going on here? It's got me stumped.



    Thanks









    share







    New contributor




    Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a server (Ubuntu 16.04.5) running sockets.io and a few other things



      TCP connections are as follows:



      root@01:~# netstat -an| awk '/tcp/ print $6'|sort|uniq -c
      44 CLOSE_WAIT
      518 ESTABLISHED
      71 FIN_WAIT1
      15 FIN_WAIT2
      5 LAST_ACK
      10 LISTEN
      26 SYN_RECV


      However the total socket allocated count is much higher and steadily increasing...why?



      root@01:~# ss -s
      Total: 6128 (kernel 6144)
      TCP: 6028 (estab 523, closed 5381, orphaned 7, synrecv 0, timewait 0/0), ports 0

      Transport Total IP IPv6
      * 6144 - -
      RAW 0 0 0
      UDP 4 3 1
      TCP 647 644 3
      INET 651 647 4
      FRAG 0 0 0


      This server is running about 5 or 6 different python apps and sockets.io. When the server reaches this level of ~6144 sockets it stops accepting new ones. As you can see, there aren't really that many active connections so what is going on here? It's got me stumped.



      Thanks









      share







      New contributor




      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have a server (Ubuntu 16.04.5) running sockets.io and a few other things



      TCP connections are as follows:



      root@01:~# netstat -an| awk '/tcp/ print $6'|sort|uniq -c
      44 CLOSE_WAIT
      518 ESTABLISHED
      71 FIN_WAIT1
      15 FIN_WAIT2
      5 LAST_ACK
      10 LISTEN
      26 SYN_RECV


      However the total socket allocated count is much higher and steadily increasing...why?



      root@01:~# ss -s
      Total: 6128 (kernel 6144)
      TCP: 6028 (estab 523, closed 5381, orphaned 7, synrecv 0, timewait 0/0), ports 0

      Transport Total IP IPv6
      * 6144 - -
      RAW 0 0 0
      UDP 4 3 1
      TCP 647 644 3
      INET 651 647 4
      FRAG 0 0 0


      This server is running about 5 or 6 different python apps and sockets.io. When the server reaches this level of ~6144 sockets it stops accepting new ones. As you can see, there aren't really that many active connections so what is going on here? It's got me stumped.



      Thanks







      linux ubuntu tcp unix-sockets





      share







      New contributor




      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 mins ago









      Rob P

      1




      1




      New contributor




      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Rob P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Rob P is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477885%2ftotal-socket-count-steadily-increasing-tcp-udp-sockets-steady-why%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Rob P is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Rob P is a new contributor. Be nice, and check out our Code of Conduct.












          Rob P is a new contributor. Be nice, and check out our Code of Conduct.











          Rob P is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477885%2ftotal-socket-count-steadily-increasing-tcp-udp-sockets-steady-why%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?