Page 1 of 1

Raspian Bookworm vs Trixie memory leak

Posted: Thursday 22 January 2026 22:30
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

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 8:12
by waltervl
Do you use Python event scripts (not plugins) in your environment? As they are a known source of memory leak.

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 11:01
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 180 times

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 15:43
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?

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 17:33
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)

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 22:35
by jannl
Do you use docker? Because if you do, the latest dockers run bookworm.

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 22:47
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.

Re: Raspian Bookworm vs Trixie memory leak

Posted: Friday 23 January 2026 22:48
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.

Re: Raspian Bookworm vs Trixie memory leak

Posted: Saturday 24 January 2026 10:26
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

Re: Raspian Bookworm vs Trixie memory leak

Posted: Saturday 24 January 2026 13:33
by jannl
You do not need bookworm on your pi to run a domoticz docker with bookworm.

Re: Raspian Bookworm vs Trixie memory leak

Posted: Tuesday 17 February 2026 14:54
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.