Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12020

TMS clients don't reuse underlying connections

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0, 4.1.1
    • Fix Version/s: 4.3.0, 4.2.1, 4.1.2
    • Component/s: Messaging
    • Labels:
      None
    • Release Notes:
      Reuse network connections for TMS client.
    • Rank:
      1|i004gf:

      Description

      To prove this, ssh to a machine where the messaging service is running.

      To see the list of network connections in TIME_WAIT state, run:

      sudo netstat -antp | grep TIME_WAIT | awk '{print $5}' | sort | uniq -c
      

      I found 1000-2000 such connections.

      Take the port of the connection with the largest number and determine the process id (it will be the last column):

      sudo netstat -antp | grep LISTEN | grep <port>
      

      Take the process id, and you'll see that it is of the messaging service:

      ps auxww | grep <pid>
      

      This means that the clients talking to messaging service keep closing and recreating new connections, frequently.

        Attachments

          Activity

            People

            • Assignee:
              terence Terence Yim
              Reporter:
              ali.anwar Ali Anwar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: