Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentHashMap inboundQoS2 in org.eclipse.paho.mqttv5.client.internal.ClientState takes up over 100MB of HeapSpace #1018

Open
1 of 3 tasks
flo89 opened this issue Sep 26, 2023 · 0 comments

Comments

@flo89
Copy link

flo89 commented Sep 26, 2023

  • Bug exists Release Version 1.2.5 ( Master Branch)
  • Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
  • Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)

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.

image

I enabled logging and it seems that

protected void deliveryComplete(MqttPublish message) throws MqttPersistenceException {

or
protected void deliveryComplete(int messageId) throws MqttPersistenceException {

are never called.

In the mosquitto log I see that the 4-Part Handshake was sucessfully

1695792469: Received PUBLISH from DEFAULT/s7tcp (d0, q2, r1, m632, 'DEFAULT/s7tcp/dev1/REAL1', ... (3 bytes))
1695792469: Sending PUBREC to DEFAULT/s7tcp (m632, rc0)
1695792469: Received PUBREL from DEFAULT/s7tcp (Mid: 632)
1695792469: Sending PUBLISH to DEFAULT/hmi (d0, q2, r0, m1199, 'DEFAULT/s7tcp/dev1/REAL1', ... (3 bytes))
1695792469: Sending PUBCOMP to DEFAULT/s7tcp (m632)
1695792469: Received PUBREC from DEFAULT/hmi (Mid: 1199)
1695792469: Sending PUBREL to DEFAULT/hmi (m1199)
1695792469: Received PUBCOMP from DEFAULT/hmi (Mid: 1199, RC:0)

@flo89 flo89 changed the title ConcurrentHashMap in inboundQoS2 in org.eclipse.paho.mqttv5.client.internal.ClientState takes up over 100MB of HeapSpace ConcurrentHashMap inboundQoS2 in org.eclipse.paho.mqttv5.client.internal.ClientState takes up over 100MB of HeapSpace Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant