messaginghub / pooled-jms

A JMS Connection pool for messaging applications supporting JMS 1.1 and 2.0 and Jakarta JMS clients
Apache License 2.0
49 stars 25 forks source link

Fix session pooling under load #30

Closed barreiro closed 1 year ago

barreiro commented 1 year ago

When pooled sessions are closed, only up to DEFAULT_MAX_IDLE_PER_KEY are kept. Above that number they are destroyed.

Under load, this causes a great number of sessions being created and contention on the ActiveMQConnection.

brunobat commented 1 year ago

@tabish121, do you think we can have a release with this fix on it?

tabish121 commented 1 year ago

New release is out with additional configuration for this as hard coding idle to max sessions is not always going to be ideal so it at least needs configuration options

brunobat commented 1 year ago

Thanks for the speedy response, @tabish121 !