paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

MqttClient create 2 channels per connection

Open thayhoang opened this issue 3 years ago • 1 comments

I'm creating ~255 threads each publishing to RabbitMQ. I noticed the number of channels double number of connection (510)

image

When I go to channels tab view, I noticed it looks like there's 2 channels per connection, one with prefech = 10. Why are there 2 channels per client? Why a publishing client has the prefetch setting? Is this normal behavior?

image

I'm using org.eclipse.paho.client.mqttv3 version 1.1.0

thayhoang avatar Sep 21 '21 16:09 thayhoang

Any update on this? We are observing a similar pattern - 2 channels per connection. Also is it with RabbitMQ only its related to Paho MQTT library?

rajatgl17 avatar Feb 13 '24 09:02 rajatgl17