Increasing usage of RAM memory
Increasing usage of RAM memory
Zoneminder slowly eats my server memory... I have to restart it at least once a day to get back to sane memory usage. Is there anything i can do to stop it stealing RAM? If i would not restart it it would probably go to the point where server starts choke, lag and restart...
When i restart it: After few hours:
When i restart it: After few hours:
Re: Increasing usage of RAM memory
Is it actually causing a problem? You say it might cause a problem. My 16GB system is currently running with 851MB free. It has been up 17 days.
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
-
- Posts: 32
- Joined: Sat Aug 15, 2015 1:46 pm
Re: Increasing usage of RAM memory
Hi. It's well worth checking the FAQs if you haven't tried already https://zoneminder.readthedocs.io/en/stable/faq.html
Re: Increasing usage of RAM memory
It's currently 56 Gb (to be upgraded), and its not only to zm, there is a lot other guys, that would like to get some ram... And it only three cameras...
Re: Increasing usage of RAM memory
On my 6 camera system there is not much 'free' RAM, but there is plenty of available RAM.
@watcher:~$ free -m
total used free shared buff/cache available
Mem: 15912 10015 982 468 4914 5091
Swap: 4095 1995 2100
@watcher:~$ free -m
total used free shared buff/cache available
Mem: 15912 10015 982 468 4914 5091
Swap: 4095 1995 2100
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: Increasing usage of RAM memory
When i restart zm, i also have plenty of available, but few hours later zm occupies most of it...
Approx an hour ago, when i posted this question, it was: Now: Numbers are not scary YET, but with this speed, tomorrow morning i will have redline on my webmin memory gauge...
Re: Increasing usage of RAM memory
I should have mentioned that is after 17 days.
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: Increasing usage of RAM memory
We need to narrow down what your monitors are doing. I have had other reports of this but no amount of valgrind has shed any light.
So what are they doing? ffmpeg type? modect, mocord, etc? camera passthrough or encoding? jpegs? Is there a large number of events during the time when the ram increases?
So what are they doing? ffmpeg type? modect, mocord, etc? camera passthrough or encoding? jpegs? Is there a large number of events during the time when the ram increases?
Re: Increasing usage of RAM memory
Two monitors Modect, one Monitor (does not record).
I haven't changed anything much far from default...
I haven't changed anything much far from default...
Re: Increasing usage of RAM memory
Not so much events... 45 - 50 per hour, and they are short...
- Attachments
-
- image_2022-07-13_202506212.png (75.9 KiB) Viewed 6827 times
-
- image_2022-07-13_202331746.png (27.33 KiB) Viewed 6827 times
-
- image_2022-07-13_202255434.png (18.08 KiB) Viewed 6827 times
Re: Increasing usage of RAM memory
Okay you are writing jpegs... I had a case yesterday where a machine was not keeping up due to writing jpegs.
Are there warnings in your logs? Is the timestamp keeping up?
I'll set one of my cams to jpegs and see if I can reproduce it.
Are there warnings in your logs? Is the timestamp keeping up?
I'll set one of my cams to jpegs and see if I can reproduce it.
Re: Increasing usage of RAM memory
Which exactly log file should i check? But anyway, there is nothing much wrong in the logs... Just some of these:
Code: Select all
07/13/22 21:05:21.692011 zms_m4[1854890].WAR-zm_monitorstream.cpp/425 [Frame send time 7785 msec too slow, throttling maxfps to 20.00]
07/13/22 21:07:33.929069 zms_m4[1857833].WAR-zm_monitorstream.cpp/412 [Unable to send stream frame: Broken pipe]
07/13/22 21:08:23.843189 zms_m4[1858259].WAR-zm_monitorstream.cpp/412 [Unable to send stream frame: Broken pipe]
Re: Increasing usage of RAM memory
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.
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.
Re: Increasing usage of RAM memory
I would, i tried...
Code: Select all
E: The repository 'http://ppa.launchpad.net/iconnor/zoneminder-proposed/ubuntu k inetic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disa bled by default.
N: See apt-secure(8) manpage for repository creation and user configuration deta ils.
root@server:~# apt-get install zoneminder
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zoneminder is already the newest version (1.36.20-bullseye1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.