-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Memory leakage in Domoticz #6030
Comments
You might want to test it with 2024.4 ;-)Envoyé de mon iPhoneLe 15 févr. 2024 à 10:04, SargonofAssyria ***@***.***> a écrit :
Using: Version: 2024.3 (build 15882)
Build Hash: 0eadb55
Compile Date: 2024-01-29 11:58:42
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Oct 11 2023, 09:51:27) [GCC 8.3.0
After this https://github.com//issues/5984 memory leakage was solved there is still an unexplained leakage present.
15.02.2024_09.45.55_REC.png (view on web)
On this graph you can see that on 3 febr. I restarted Domoticz (B.t.w. and the Raspberry) which initially started with some 70Mb.
It settled the days after to around 130Mb and stayed there. For no reason I could discover at 9 febr. it raised to 210 Mb and settled again. The 13 febr. it started rising again, now at 350 Mb and it is still rising. I used gdb again to investigate some parts of the not released memory again. It to big to look over and investigate all > 200Mb
I found that some part are only filled with 0x00 (zero;'s) and some parts are filled with multiple loglines of only a small part of the logging (less then 1 second). But every logline is repeated more then 20-30 times. And I found a lot of parts of my dzVents scripts in some parts of the memory. I know this will be a tough one to discovered where it goes wrong. You can see from the graph that Domoticz used to be very stable in Process Memory.
I wonder if others experience the same phenomena?
And if someone found the cause.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I updated to 15910, so let's wait and see. |
Now a few days later the BIG leakage is gone, but there still remains a small leakage present. |
After more then 10 days that Domoticz is up, I found that the leakage is about 2.5 Mb in those 10 days. |
I found this error. Could that have any impact on memory leakage?
|
Unfortunately after a little bit more then 3 weeks Domoticz became unresponsive for a few minutes that Monit has to restart Domoticz. But until then the memory usage of Domoticz did grow slowly to over 144 Mb just before the restart. |
Some time ago I have posted a memory leak issue on the forum: https://www.domoticz.com/forum/viewtopic.php?p=315233&hilit=memory+leak#p315233 In my case the issue is related to the amount of enabled hardware. The more hardware I enable, thus the more devices are enabled, the more mem leaks away. There seems no relationship with the type of hardware, it seems simply related to the number of devices. Could it be related to data logging? |
Sure.... But it should not need an increasing memory issue |
Can I perform some sort of testing to provide more debugging information? What I did sofar is:
|
What type of Hardware plugin are you referring ? If these are Python plugin, I do confirm that there is a memory leak every time you restart a Python plugin. |
Hi the output is:
22634 21.8 18.6 769888 357848 ? Ssl 03:30 225:45
/home/admin/domoticz/domoticz -daemon -www 80 -sslwww 443
reply to:
…
I saw your post on the forum. What is the output of
sudo ps aux | grep domoticz | grep -v grep
Because I see you have a lot of PID's
|
Sorry about the question. I saw later that those PID's were from threads. That's why I deleted the post. |
Do you have automatic backup ? I found that usually this is taking some memory, but the next time it won't. |
I have several backups, dzVents and external scripts by cron. Those are not the initiators. |
You better make pictures and conclusions with the "Process Usage" widget, because that is only about Domoticz. |
The Process Memory keep growing in the same pace, and it at the moment over 400 Mb. Domoticz is still running fine. |
Did not find anything yet. At 500 Mb I had to reboot my Raspberry Pi 4. Will see what happens. |
do you use OpenWeatherMap ? I wonder if there is not something in it, as this is the only plugin I enabled since a while and more-less since them I'm getting leakage that I didn't have before |
I use the OpenWeatherMap as Hardware, not as plugin. |
Sorry I mean Hardware |
I'm afraid that's not it... There can't be a crash after the allocation. all these curl calls are not giving an exception I still made a commit for this, but I am 100% sure that memory is not allocated when there is a crash here |
Could you also make a little change (in text) so that I can see if it is the normal error logging or the catch? |
Done! |
Tnx, will switch back to Ziggo with email with the attachment. Will see if it was an 'normal' error or the catch. |
Tested it intensely, and you are right. The error in the email is NOT coming from the catch, it's a normal error. |
Using: Version: 2024.3 (build 15882)
![15 02 2024_09 45 55_REC](https://private-user-images.githubusercontent.com/24824113/305009572-e60a8ae0-a73d-48e8-ab2b-78b5a567db0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MTE2NjAsIm5iZiI6MTcyMTkxMTM2MCwicGF0aCI6Ii8yNDgyNDExMy8zMDUwMDk1NzItZTYwYThhZTAtYTczZC00OGU4LWFiMmItNzhiNWE1NjdkYjBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI1VDEyNDI0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiMGQ4ODgxMDI2NjdiYTVhYWJiMmJhZDg1MzUxZWUyNWM3NmY1ODMyNWFhMzE3NjQ4OGMxY2JjNzIzZWNkMzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.L8nnWP5BRETDSQ0TYbBtoPNJTL_DWNcD1hEkWxEO200)
Build Hash: 0eadb55
Compile Date: 2024-01-29 11:58:42
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Oct 11 2023, 09:51:27) [GCC 8.3.0
After this https://github.com//issues/5984 memory leakage was solved there is still an unexplained leakage present.
On this graph you can see that on 3 febr. I restarted Domoticz (B.t.w. and the Raspberry) which initially started with some 70Mb.
It settled the days after to around 130Mb and stayed there. For no reason I could discover at 9 febr. it raised to 210 Mb and settled again. The 13 febr. it started rising again, now at 350 Mb and it is still rising. I used gdb again to investigate some parts of the not released memory again. It to big to look over and investigate all > 200Mb
I found that some part are only filled with 0x00 (zero;'s) and some parts are filled with multiple loglines of only a small part of the logging (less then 1 second). But every logline is repeated more then 20-30 times. And I found a lot of parts of my dzVents scripts in some parts of the memory. I know this will be a tough one to discovered where it goes wrong. You can see from the graph that Domoticz used to be very stable in Process Memory.
I wonder if others experience the same phenomena?
And if someone found the cause.
The text was updated successfully, but these errors were encountered: