kamilfb / mqtt-spy

Please use the new Eclipse Paho GitHub repo instead.
https://github.com/eclipse/paho.mqtt-spy/wiki
345 stars 68 forks source link

there must be a memory leak #113

Closed Marwe closed 7 years ago

Marwe commented 7 years ago

mqtt-spy is eating memory faster than you can produce chips. In the attachment you can see the memory consumption logged in mqtt-spy via MQTT. Only few minutes and all memory is used up.

Same thing observed with these versions: mqtt-spy-0.5.3-jar-with-dependencies.jar mqtt-spy-0.6.0-beta-b56-jar-with-dependencies.jar

I published the memory usage with this bash snippet: while true ; do mosquitto_pub -t 'mqtt-spy/memoryusage' -m "$(ps -C "java -jar /path/to/mqtt-spy-0.6.0-beta-b56-jar-with-dependencies.jar" -o vsz=)"; sleep 1; done

Maybe someone observes the same and has the possibility to track it down?

Thanks

Marwe commented 7 years ago

Upload of screenshots here did not work, see them there: https://imgur.com/a/qDzCR

Marwe commented 7 years ago

The amount of different messages was roughly 20 in total with 1 Hz (10 messages/second), one value being plotted.

kamilfb commented 7 years ago

@Marwe , thank you for reporting this - this repo is not active anymore - could you use https://github.com/eclipse/paho.mqtt-spy instead? I will be happy to look into this futher

kamilfb commented 7 years ago

Using the other repo so closing.