Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16619

camel-rabbitmq - Producer destroys rabbit channels when returns it back to the pool

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.7.4
    • 3.7.5, 3.11.0
    • camel-rabbitmq
    • None
    • Unknown

    Description

      It was noticed that org.apache.camel.component.rabbitmq.RabbitMQProducer uses org.apache.commons.pool.impl.GenericObjectPool for managing channels pool.

      This implementation leads to permanent recreation of channels if we try to manage high rate of messages .
      When the producer was configured with channelPoolMaxSize value more than 8 (this is equals to org.apache.commons.pool.impl.GenericObjectPool#DEFAULT_MAX_IDLE) this pool destroys channel on returning it to the pool (GenericObjectPool).

       

      The solution is to specify maxIdle during pool creation (org.apache.camel.component.rabbitmq.RabbitMQProducer#openConnectionAndChannelPool).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              albus_lupus Anton Ovcharenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: