iconnor wrote: ↑Wed Jul 13, 2022 10:54 pm I found a memleak and have fixed it. Do you want to update to my proposed ppa and test it?
sudo add-apt-repository ppa:iconnor/zoneminder-proposed
sudo apt-get update
sudo apt-get install zoneminder
Should get you a 1.36.21 version although packages are building now and I can't guarantee when they will be available.
Increasing usage of RAM memory
Re: Increasing usage of RAM memory
When are you planning to release the fix to "masses"? I would really like to try it out, since i was unable to get it from proposed ppa...
Re: Increasing usage of RAM memory
After 2 updates (v1.36.24), Zoneminder still "eats" memory , must restart it to go from f.e. from 82% to 13%...
Re: Increasing usage of RAM memory
I can't reproduce it. I need a debug level 3 log. Go to options -> Logging -> check debug on, change level to 3. Restart zoneminder. Then send me the contents of /var/log/zm/zmc_m2.log to isaac@zoneminder.com
Re: Increasing usage of RAM memory
I woke up the similar issues this morning. The zoneminder process is up to 12 GB of memory (in a machine with only 12 GB total) and it's swapping 1 GB out of the 4 GB. The machine is operating fine though.
I did have an issue last night where the GUI stopped displaying, but I found the following error in the php-fpm logs:
I did have an issue last night where the GUI stopped displaying, but I found the following error in the php-fpm logs:
I edited /etc/php-fpm.conf and increased it to 100, which resolved everything on my side. I don't think it's related to the memory though.WARNING: [pool www] server reached pm.max_children setting (50), consider raising it
Re: Increasing usage of RAM memory
Are there ways to reduce memory consumption?
In early releases 1.36.*, with less memory on the server, everything was ok for me.
I added another 32GB but it didn't get any better,I see oom-kill..
10x 1920x1080 network cam[h264/265] at Mocord mode (1h) ffmpeg/passtrough, ZoneMinder v1.36.26.
In early releases 1.36.*, with less memory on the server, everything was ok for me.
I added another 32GB but it didn't get any better,I see oom-kill..
10x 1920x1080 network cam[h264/265] at Mocord mode (1h) ffmpeg/passtrough, ZoneMinder v1.36.26.
- Attachments
-
- zmmem.png (455.7 KiB) Viewed 6549 times
Re: Increasing usage of RAM memory
Been waiting for a solution for long time ... but for now i just had to stop zoneminder, as i cant use it normally...
Re: Increasing usage of RAM memory
I think I found a temporary solution for myself, turning off the variable bitrate on the camera helped.
-
- Posts: 3
- Joined: Tue Oct 04, 2022 2:45 pm
Re: Increasing usage of RAM memory
I had this workaround in place for 2 days and it hasn't crashed ever since.
Run command `crontab -e` in my terminal (my linux is rhel 7.9)
Then it will return a vim styled editor.
Insert a line */5 * * * * sync && echo 1 > /proc/sys/vm/drop_caches
Input`:wq` to save and exit it, then every 5 minutes on the minute, the command `sync && echo 1 > /proc/sys/vm/drop_caches` will run, and it will collect the dungling buffer/cache memory spaces, which in my case it fixes the memory leak.
I've tried to review some of the videos it saved, and didn't see any issues.
If I can view the cameras from web browsers as many as I want, I can view the saved videos, and it doesn't crash by exhausting the memory, then I'm happy with it.
Run command `crontab -e` in my terminal (my linux is rhel 7.9)
Then it will return a vim styled editor.
Insert a line */5 * * * * sync && echo 1 > /proc/sys/vm/drop_caches
Input`:wq` to save and exit it, then every 5 minutes on the minute, the command `sync && echo 1 > /proc/sys/vm/drop_caches` will run, and it will collect the dungling buffer/cache memory spaces, which in my case it fixes the memory leak.
I've tried to review some of the videos it saved, and didn't see any issues.
If I can view the cameras from web browsers as many as I want, I can view the saved videos, and it doesn't crash by exhausting the memory, then I'm happy with it.
Re: Increasing usage of RAM memory
Can someone guess, when i have restarted zoneminder?
Re: Increasing usage of RAM memory
Have you tried to set "Maximum Image Buffer Size (frames)" to some value instead of 0? Actually the meaning and effect of this parameter is not quite clear to me, but setting this to 1000 (for exampe) may solve the problem. Anyway in "Buffers" menu you'll get the definite max "Estimated Ram Use" instead of "Unlimited".
Re: Increasing usage of RAM memory
Goodmorning
I don't want to say that very loud yet, to not give false hopes... But i think after one of recent updates issue was fixed. It is already a while when I do not observe excessive memory usage... Sometimes it is more, sometimes less, but not all server memory, as it was before...
I don't want to say that very loud yet, to not give false hopes... But i think after one of recent updates issue was fixed. It is already a while when I do not observe excessive memory usage... Sometimes it is more, sometimes less, but not all server memory, as it was before...