Domoticz Memory leak in 2024 beta build 15910

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Kedi
Posts: 569
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Domoticz Memory leak in 2024 beta build 15910

Post by Kedi »

Reinstall with curl gives you the exact same files as I have now.
Just delete the database and start Domoticz will give you an empty database too.
I don't want to import an older version of my database, because I want to keep my history intact.
Still I don't understand how that will create a memory leak. If so, everybody will experience the memory leak.
Eventually you will too, because sqlite3 did not change.
Last report about sqlite3 memory leak is from 2021.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz Memory leak in 2024 beta build 15910

Post by waltervl »

I also dont see why importing a database will create a memory leak.
All that can happen is that due to the number of devices the database will grow and also updating the devices will grow the database. Especially when text devices are used. So it looks like a memory leak but in fact is just a result of growing database.

@JanVlieteland what are your log settings (menu Setup- Settings, tab Log History).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
JanVlietland
Posts: 25
Joined: Wednesday 17 June 2020 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz Memory leak in 2024 beta build 15910

Post by JanVlietland »

Light/Switches = 30 days
Short logs: 1 day
Check box not checked

@Walter, does that answer your question?

Memory issue over here is still solved. However all history is gone. It's a real bummer as my plan is to use OpenAI to see if I can optimize the energy usage, based on sun position, sunpower, temp, Tau-time etc etc. I'm currently digging if I can extract the data from the old database.
FrancescoS
Posts: 12
Joined: Sunday 19 May 2019 21:16
Target OS: -
Domoticz version:
Contact:

Re: Domoticz Memory leak in 2024 beta build 15910

Post by FrancescoS »

Hi,

i have the same issue.

could someone explain what it the fix to this ?

thank you

Francesco
Dave21w
Posts: 378
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Domoticz Memory leak in 2024 beta build 15910

Post by Dave21w »

I have 2 systems running, one in my home and a test system at work with not many devices, both display a very similar graph to each other, something defintely changed in Dec 23 as can be seen here and it's never got back to where it was.
2024-08-15 09_30_00-Domoticz.jpg
2024-08-15 09_30_00-Domoticz.jpg (104.08 KiB) Viewed 641 times
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz Memory leak in 2024 beta build 15910

Post by waltervl »

Can you also check the Process usage device? As you are now showing the total memory consumption of your server and some other process could influence this. I once had my file explorer process kill the memory....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest