eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.12k stars 883 forks source link

MqttClient create 2 channels per connection #897

Open thayhoang opened 2 years ago

thayhoang commented 2 years ago

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

rajatgl17 commented 7 months ago

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?