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

AMQ MQTT doesn't reject remote connection after a long time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.9.0, 5.9.1, 5.10.0
    • Fix Version/s: 5.11.0
    • Component/s: Connector, MQTT
    • Labels:
      None
    • Environment:

      Linux

      Description

      Test steps:

      • Using jConsole to explore JMX MBean clientConnectors (MQTT+NIO connector).
      • Using telnet client connect to MQTT+NIO port
      • On jConsole: clientConnectors/mqtt+nio/remoteAddess appear a new connection with IP and local port which connect to.
      • Close telnet program
      • Waiting a long time (could be more than a day) and view remoteAddess again on jConsole but Remote IP (telnet) does not remove.

      Imagine that if a human open a thousand or million connections to server, AMQ not release connections after short time, then AMQ could be throws the ERROR "To many open files" and it doesn't access new connection.

      In production server (ulimit max-open-files 65000), i'm using 2 thousand clients but after 2 days, many ERROR "To many open files" in activemq.log to be throws.
      On jConsole, number of clientId is equals with clients, but RemoteIP contains more than 65000 IPs.

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              hongphu8790 PhuNH5-VTICT
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: