You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michael Feingold (JIRA)" <ji...@apache.org> on 2015/06/17 21:32:01 UTC

[jira] [Created] (AMQ-5849) MQTT Connection stealing causes resource leak

Michael Feingold created AMQ-5849:
-------------------------------------

             Summary: MQTT Connection stealing causes resource leak
                 Key: AMQ-5849
                 URL: https://issues.apache.org/jira/browse/AMQ-5849
             Project: ActiveMQ
          Issue Type: Bug
          Components: MQTT
    Affects Versions: 5.12.0
         Environment: Win2012 6GB allocated for JVM, 4 CPU
            Reporter: Michael Feingold


The problem manifests itself when a big number of connections tries to re-establish the connection. Here is the scenario:
1. A client creates 10000 MQTT connections.
2. The server is cut off the client using the firewall on the server
3. Wait a couple of minutes to let the server close all connections
4. Restore the network connectivity
after some time the connections seem to be reconnected, but we observe connection thrashing - the client reports that some of the connection is lost, and the server reports that it is stealing connection as the client reconnects. This process keeps happening continuously and as it happens the number of threads keeps growing into 10000 and more.

If the connection stealing is disabled, the number of threads remains in low 100s.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)