[
https://issues.apache.org/jira/browse/CAMEL-16619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anton Ovcharenko updated CAMEL-16619:
-------------------------------------
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 the producer has _{{channelPoolMaxSize}}_ value more than 8
(_{{org.apache.commons.pool.impl.GenericObjectPool#DEFAULT_MAX_IDLE}}_) this
pool destroys channel on returning it to the pool
(_{{org.apache.commons.pool.impl.GenericObjectPool#addObjectToPool}}_).
was:
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 the producer has {{channelPoolMaxSize}} value more than 8
({{org.apache.commons.pool.impl.GenericObjectPool#DEFAULT_MAX_IDLE}}) this pool
destroys channel on returning it to the pool
({{org.apache.commons.pool.impl.GenericObjectPool#addObjectToPool}}).
> Producer destroys rabbit channels when returns it back to the pool
> ------------------------------------------------------------------
>
> Key: CAMEL-16619
> URL: https://issues.apache.org/jira/browse/CAMEL-16619
> Project: Camel
> Issue Type: Improvement
> Components: camel-rabbitmq
> Affects Versions: 3.7.4
> Reporter: Anton Ovcharenko
> Priority: Major
>
> 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 the producer has _{{channelPoolMaxSize}}_ value more than 8
> (_{{org.apache.commons.pool.impl.GenericObjectPool#DEFAULT_MAX_IDLE}}_) this
> pool destroys channel on returning it to the pool
> (_{{org.apache.commons.pool.impl.GenericObjectPool#addObjectToPool}}_).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)