Raspian Bookworm vs Trixie memory leak

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
azonneveld
Posts: 179
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Raspian Bookworm vs Trixie memory leak

Post by azonneveld »

I was constantly experiencing issues with increasing memory usage.
I seen this since the upgrade to Bookworm. Since running on Trixie (~2026-12), those problems have disappeared.

I don’t think this was an isolated issue because I run multiple Domoticz installations; below you can see the memory usage per instance.
For anyone running on bookwork: if you encounter memory issues, try upgrading.

Upgrading is most easy when you have a spare PI.

1: Image

2: Image

3: Image
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by waltervl »

Do you use Python event scripts (not plugins) in your environment? As they are a known source of memory leak.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Thorgal789
Posts: 874
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by Thorgal789 »

I can see a big improvement too on memory use, but according to date it was before Trixie (trixie was out the 01 october 2025)
memory.jpg
memory.jpg (70.31 KiB) Viewed 130 times
azonneveld
Posts: 179
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by azonneveld »

waltervl wrote: Friday 23 January 2026 8:12 Do you use Python event scripts (not plugins) in your environment? As they are a known source of memory leak.
I only use lua, dzvents and shell-scripts
Thorgal789 wrote: Friday 23 January 2026 11:01 I can see a big improvement too on memory use, but according to date it was before Trixie (trixie was out the 01 october 2025)
Interesting! What did you change in June?
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
Thorgal789
Posts: 874
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by Thorgal789 »

Interesting! What did you change in June?
Good question ^^, have searched on all my logs, I haven't found.
I have updated Domoticz in march, because I had deprecated API issue, have updated the OS and domoticz again for SSL V3 support some months after, but I realy have no clue what I have do in june ...

But I think almost all users have logs for memory use ^^, we will probably have others one.

BTW you have updated the OS alone or Domoticz in same time ? (I m thinking at the SSL V3 support)
jannl
Posts: 823
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.5.x
Location: Geleen
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by jannl »

Do you use docker? Because if you do, the latest dockers run bookworm.
azonneveld
Posts: 179
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by azonneveld »

Thorgal789 wrote: Friday 23 January 2026 17:33 BTW you have updated the OS alone or Domoticz in same time ? (I m thinking at the SSL V3 support)
Bookworm already supports SSL3.
I have updated both at the same time, not because of any solutions, but bookworm is getting eol soon.
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
azonneveld
Posts: 179
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by azonneveld »

jannl wrote: Friday 23 January 2026 22:35 Do you use docker? Because if you do, the latest dockers run bookworm.
No, I don't use docker for domoticz, but it is needed for zigbee2mqtt or homebridge.
I had to use the bookworm version of Docker, ChatGPT was very helpfull on that matter.
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
Thorgal789
Posts: 874
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by Thorgal789 »

No dockers on my side too.
Bookworm already supports SSL3.
Bookworn yes, but for domoticz If I remember it was around this date viewtopic.php?t=43485
jannl
Posts: 823
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.5.x
Location: Geleen
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by jannl »

You do not need bookworm on your pi to run a domoticz docker with bookworm.
domcars0
Posts: 3
Joined: Thursday 03 August 2017 22:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: France
Contact:

Re: Raspian Bookworm vs Trixie memory leak

Post by domcars0 »

Hi,
Don't have measure of memory usage, but since I've upgraded my Pi 3B to Trixie (same domoticz release) have no more
"dzVents.lua has been running for more than 10 seconds" errors log nor momentary freezes.
I had this errors since several years with different domoticz releases. Now, it' finished!

For me Trixie is far more better than Bookworm.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest