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

New org.slf4j.Logger instance created for every new connection but never cleared when transport listener is configured for trace=true

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.15.0
    • Component/s: Transport
    • Labels:
      None

      Description

      Configuring the broker for transport trace:|

      <transportConnectorname="openwire"uri="tcp://0.0.0.0:61616?trace=true"/>
      </transportConnectors>

      makes the broker create a new SLF4J Logger instance for every single connection.
      This Logger never get cleared not even when the connection is closed which can lead to OOM on load.

      trace=true is a great diagnostic tool but cannot be left enabled on a broker long term because of this.

        Attachments

          Activity

            People

            • Assignee:
              gtully Gary Tully
              Reporter:
              gtully Gary Tully
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: