Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4955

TCP Connections and related thread leak.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.12.0
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      Windows 2008 R2, Jdk 1.7.40

      Description

      TCP Connections and related thread leak.

      Scenario

      Active MQ version 5.8
      NMS Client version 1.6
      OS - Windows 2008 R2
      JDK - 1.7.x

      activemq.xml is attached

      If a client connectivity gets lost between the time the initial socket is created and the exchange of the wire format, the active MQ server's Client's server thread gets blocked in socket read hanging out the TCP connection and the related thread
      Here are the steps to recreate
      1. Configure the Active MQ server with the activemq.xml attached.
      2. Start the client in a debugger and have a break point at a place in such a way that the client can be disconnected after the socket is established.
      3. Once the breakpoint is hit, disconnect the client machine from the network
      4. Kill the client- This basically simulates a situation where the socket tear down packets are not reached the active mq server.
      5. Open the JConsole. Look for the hanging TCP connection and the related thread.
      Is there an configurable option in Active MQ to sweep and close the connections, on regular interval, that still didn't finish the wire protocol negotiation?

        Attachments

        1. AMQ4955Test.java
          4 kB
          Murali Mogalayapalli
        2. activemq.xml
          8 kB
          Murali Mogalayapalli
        3. ThreadStack.jpg
          177 kB
          Murali Mogalayapalli
        4. TCP-Connection.jpg
          123 kB
          Murali Mogalayapalli

          Issue Links

            Activity

              People

              • Assignee:
                artnaseef Arthur Naseef
                Reporter:
                thodimi Murali Mogalayapalli
              • Votes:
                3 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: