eclipse-paho / eclipse-paho/paho.mqtt.java

MqttClient create 2 channels per connection

Open
#897 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

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

![image](https://user-images.githubusercontent.com/17960508/134214148-7c03a6a5-db0c-405c-bb63-278c26c6c985.png)

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](https://user-images.githubusercontent.com/17960508/134214229-91720071-7010-41bf-b801-9b8a0cce64d5.png)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.