stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 98 forks source link

Memory usage issue since 3.1.0-beta #698

Closed dobber81 closed 3 years ago

dobber81 commented 3 years ago

Issue description Memory leak? From when I updated to 3.1.0-beta the memory usage is increasing every hour until domoticz is restarted.. See attached graph. The memory usage increase stops when disabling domoticz-zigbee2mqtt plugin. Normal memory usage for domoticz for my installation is 75-85MB. After 12 hours running with the plugin enabled it's about 900MB. Confirmed on my fresh installed test-setup also.

Additional information Zigbee2MQTT version: v.1.21.1-dev Python version: 3.7.3 Domoticz version: 13491 Plugin version: 3.1.0-beta

Logs Attach any additional logs here which might be useful: mqtt, domoticz, plugin logs image

Bartekn86 commented 3 years ago

i have same issiue

jilles commented 3 years ago

Me too. Will take up all my ram if I don't kill it with fire

jilles commented 3 years ago

Reverted back to v3.0.0. let's see what happens

dobber81 commented 3 years ago

I reverted and problem gone. Definitely an issue introduced with 3.1.0-beta. I'll keep using 3.1.0-beta on my test-setup, but for daily driver 3.0.0 is better for now.

stas-demydiuk commented 3 years ago

Checked but couldn't find anything in the plugin code, so created the ticket in the Domoticz repo. If anyone has any details regarding the issue or how to debug it, please share

jilles commented 3 years ago

I reverted and problem gone. Definitely an issue introduced with 3.1.0-beta. I'll keep using 3.1.0-beta on my test-setup, but for daily driver 3.0.0 is better for now.

Same here.

pipiche38 commented 3 years ago

If you are using the Configure() Api, I'm able to reproduce a memory leak with a simple plugin https://domoticz.com/forum/viewtopic.php?f=65&t=36956

Eddie-BS commented 3 years ago

same problem here, with this new version my domoticz hangs within 12 hours and I needed to adjust monit to reboot ...

hughb8on commented 3 years ago

I have the same issue.

stas-demydiuk commented 3 years ago

Should be now resolved with the latest Domoticz beta, I wonder if someone could check and confirm

Eddie-BS commented 3 years ago

waiting for this becomes availiable ... updatebeta gives me no newer version yet

dobber81 commented 3 years ago

Compiled 13495 on my test-pi. No memory increase for 30 minutes now with v.3.1.0-beta. Will check again in a few hours to make sure.

Eddie-BS commented 3 years ago

Running 13495 now, looks good, 79MB in 30min ....

dobber81 commented 3 years ago

I'm on 4 hours. No issues. I think we can close this ticket.

Eddie-BS commented 3 years ago

after 3hours, 87MB, looks pretty normal to me