Memory leak after update version zoneminder at ubuntu 24.04 amd64

Current Development version likely to have breaking changes
Post Reply
ipelykh
Posts: 1
Joined: Tue Feb 04, 2025 7:52 am

Memory leak after update version zoneminder at ubuntu 24.04 amd64

Post by ipelykh »

Hello ALL.

After updating the version of zm, installed from ppa.launchpadcontent.net/iconnor/zoneminder-master/ubuntu noble, the memory started leaking.
I am testing ubuntu 24.04 with three 8MP cameras (4k image, Hiseeu HB918-PA, ffmpeg source), 10FPS, 1 sec keyframe with a maximum number of frames in the buffer 20 at each. MoDect, Analysis always. Recording passthrow.
Before the update (with version 1.37.65e20250102141650-noble), all was fine and each zmc process consumed no more than 5 GB of memory,
now with version 1.37.65e20250128172246-noble, the memory consumed by zmc processes is constantly growing (10..15..20 GB) quickly after the start zm indefinitely, until all available machine memory runs out, including swap.
I was just doing an apt-get upgrade. Maybe I upgraded incorrectly? At log all is good, no err and war messages.
I am ready give anything that is needed.
I have do test run with full debug (9 level) and log-file is about 0,9Gb. I don't know where is put it. I can give a http-link at PM or email if needed.
Thanks for your answers.
dougmccrary
Posts: 1354
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Memory leak after update version zoneminder at ubuntu 24.04 amd64

Post by dougmccrary »

Maybe I upgraded incorrectly?
Perhaps. FWIW, 1.37.65~20250128172246-jammy seems to be OK.
busymind
Posts: 3
Joined: Fri Jan 03, 2025 9:55 pm

Re: Memory leak after update version zoneminder at ubuntu 24.04 amd64

Post by busymind »

I think I may have the same issues. R730, Proxmox, VM Debian, 12 ZoneMinder. For start/evaluation I had given a lot of resources

The behaviour is like an memory leak. No errors. Innodb increased to 8G. Run smoothly.
At start was - I do not remember - after 11h runtime is beyond 10G.

Attached are the settings most of them as default on buffer. I had the same behaviour with decoding - Always.
I discovered recently the option onDemand liberates resources a lot so I tough that may alleviate the memory leak but continues to growing. I will try to see what will happen when.

Excuse my improper presentation may have to follow some bug reporting format.
I am also a small developer traumatized by memory leaks on my lifetime coding ... so I sense the same here.
Attachments
2025-02-11 12_55_01-Clipboard.png
2025-02-11 12_55_01-Clipboard.png (10.46 KiB) Viewed 1799 times
2025-02-11 12_53_02-Clipboard.png
2025-02-11 12_53_02-Clipboard.png (47.09 KiB) Viewed 1799 times
2025-02-11 12_52_09-Clipboard.png
2025-02-11 12_52_09-Clipboard.png (251.3 KiB) Viewed 1799 times
busymind
Posts: 3
Joined: Fri Jan 03, 2025 9:55 pm

Re: Memory leak after update version zoneminder at ubuntu 24.04 amd64

Post by busymind »

Update:
After 21 hours, seems that now is calm and steady; From16G available stays and 14.39G memory without any impact.
Attachments
Screenshot_20250211_223720.png
Screenshot_20250211_223720.png (163.36 KiB) Viewed 1615 times
Post Reply