Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.7.4
-
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
- links to