Uploaded image for project: 'Chat Solution'
  1. Chat Solution
  2. CSN-4779

Socket count continues to increase with no real socketIO clients

    XMLWordPrintable

Details

    Description

      There are ~10K open sockets whereas actual socket count is only less than 10. In off-peak hours, where there's no traffic, the socket count is still ~10K.

      There's a burst of socket connections after every few seconds in chat server logs.

      2021-06-06T12:30:58.244 INFO Sockets A new Socket has been connected with id [Ipi-vl8XPgDk2nBYAAAf], connected sockets are [32]
      

      Most, but not all, of such sockets are closed after a few seconds causing connection leakage.

      Temporary fix

      A temporary fix is to increase the max connection count in chat server configurations to a large number such as 50K.
      Keep monitoring the connected Sockets count /chat/api/getSocketCount and restart Chat Server in off-peak hours if the count approaches max limit.

      Attachments

        Issue Links

          Activity

            People

              rizwan.mahmood Rizwan Mahmood
              jawad.bokhari Jawad Bokhari
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: