Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
2.12k
stars
884
forks
source link
ConcurrentHashMap inboundQoS2 in org.eclipse.paho.mqttv5.client.internal.ClientState takes up over 100MB of HeapSpace #1018
Open
flo89 opened 1 year ago
Is this a normal behaviour that this single HashMap is using almost 50% of the applications total HeapSpace?
It doesn't seem to increase anymore although the message load is still the same.
I enabled logging and it seems that
https://github.com/eclipse/paho.mqtt.java/blob/570ed6eeaba81b0865821fed6de0d36142fedfde/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/ClientState.java#L1532 or https://github.com/eclipse/paho.mqtt.java/blob/570ed6eeaba81b0865821fed6de0d36142fedfde/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/ClientState.java#L1542
are never called.
In the mosquitto log I see that the 4-Part Handshake was sucessfully