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

limit the number of producers and consumers created by a Connection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.5.1
    • 5.7.0
    • Broker
    • None

    Description

      Sometimes a rogue client can create an unlimited number of producers or consumers if not developed correctly. The client is in effect launching a denial of service attack on the broker - as it will eventually run out of memory, storing ProducerInfos and ConsumerInfos. This enhancement enables the number of consumers and producers to be limited per connection - by adding maximumProducersAllowedPerConnection and maximumConsumersAllowedPerConnection properties to the transport connector - e.g.

      <amq:transportConnectors>
      <amq:transportConnector uri="tcp://localhost:61631" maximumProducersAllowedPerConnection="5" maximumConsumersAllowedPerConnection="10"/>
      </amq:transportConnectors>

      Attachments

        Activity

          People

            rajdavies Robert Davies
            rajdavies Robert Davies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: