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

ProxyConnector memory usage skyrockets when several ssl handshakes fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0, 5.9.0
    • 5.9.1, 5.10.0
    • Broker
    • None
    • Seen in Windows 7 64bit, Windows Server 2008 R2 and Linux RHEL 6.3 64 bit

    Description

      See nabble for further details.

      To reproduce the issue:

      1. Start embedded proxy broker and the AMQ broker that are embedded in AMQTestBroker project (see attachments);
      2. Start the AMQTestConsumer project; This program repeatedly tries opening a connection to the ProxyConnector with wrong certificates.
      3. Open jconsole to monitor AMQTestBroker memory usage: you should experience an OOM error within one hour with the suggested settings (Xmx = 2048m).

      Launch configurations and test keystores are attached to this issue along with the java projects.

      This behavior seems to affect ProxyConnector only, running the test against a standard nio-based TransportConnector does not seem to produce anomalous memory consumptions.

      Attachments

        1. after_lsof.txt
          24 kB
          matteo rulli
        2. after_netstat.txt
          2 kB
          matteo rulli
        3. AMQ4889.patch
          8 kB
          Timothy A. Bish
        4. lsof.txt
          270 kB
          matteo rulli
        5. netstat.txt
          17 kB
          matteo rulli
        6. NIOSSLTransport_patch_AMQ_4889.txt
          1 kB
          matteo rulli
        7. ProxyConnection_patch_AMQ_4889.txt
          2 kB
          matteo rulli
        8. ProxyConnector_patch_AMQ_4889.txt
          3 kB
          matteo rulli
        9. ProxyConnIssue.rar
          19 kB
          matteo rulli
        10. sockstat.txt
          0.1 kB
          matteo rulli

        Activity

          People

            tabish Timothy A. Bish
            matteor matteo rulli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: