Page 1 of 1

Excessive use of RAM

Posted: Thu Feb 25, 2021 2:49 pm
by Hex
Hello,

I just read through this one, which seems to describe a similar issue:
posting.php?mode=post&f=42

Running any camera eats up all available RAM, then the computer starts swapping and slows down to a crawl. I've tried a multitude of different buffer settings, nothing helps. I couldn't find the release notes for 1.35.18, but so far I've never had an issue with my buffer settings.

Log shows the following three errors:

Code: Select all

Memory map file '/dev/shm/zm.mmap.4' does not exist in zmMemAttach. zmc might not be running.
Last analyse time for 4 Shop-In was zero.
Can't find process with command of 'zmc -m 4'
Any help is greatly appreciated, as I can't record anything at the moment.

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 3:32 pm
by knight-of-ni
Welcome to bleeding edge development.

The underlying zoneminder services are going through massive change. At the moment, the ideal buffer settings are between 2-5.
In order to get up to the minute info and troubleshooting, join us in our Slack channel. That is where most of the activity is happening for this issue.

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 4:19 pm
by Hex
Thank you for your reply!

Bleeding edge, but it used to work! :D

I've tried similar buffer settings and the issue persists... Never used Slack - link to your channel?

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 4:25 pm
by knight-of-ni
Sure, it used to work, but 1.35.x is our development branch, where breakage is going to happen.

Quite a few people show up in this forum and express surprise when they learn things aren't always going to work in our development branch. If you are ok with that, then feel free to keep using it. However, I do need to set this expectation for you and anyone else who comes upon this thread.

I believe this is the correct link to join our slack channel:
https://join.slack.com/t/zoneminder-cha ... TdmMjE2MTE

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 4:38 pm
by Magic919
If you really want the 1.35.x branch then don’t run updates and look before you leap. I’m holding on 1.35.16 currently and keeping an eye on developments.

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 5:08 pm
by Hex
Magic919 wrote: Thu Feb 25, 2021 4:38 pm If you really want the 1.35.x branch then don’t run updates and look before you leap. I’m holding on 1.35.16 currently and keeping an eye on developments.
I've always just updated and it mostly worked... Any idea how to downgrade to 1.35.16? I'm running Ubuntu server.

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 5:32 pm
by Magic919
Archive here https://launchpad.net/~iconnor/+ppa-packages

Grab your previous version.

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 6:10 pm
by Hex
Magic919 wrote: Thu Feb 25, 2021 5:32 pm Archive here https://launchpad.net/~iconnor/+ppa-packages

Grab your previous version.
I've really never done this - I understand I have to install a previous package version, but when I run:
apt list -a zoneminder

I get only:
zoneminder/bionic,now 1.35.18~20210224135011-bionic amd64 [installed]

I have the iconner bionic repository added. Help?

Re: Excessive use of RAM

Posted: Thu Feb 25, 2021 6:24 pm
by Magic919
You need to find and download the file. Note the name below. Make sure you get the amd64 or whatever you have if it differs.

Code: Select all

sudo dpkg -i zoneminder_1.35.16~20210122121212-focal_amd64.deb 
sudo apt-get install -f
Then stick ZM on hold.

Code: Select all

sudo apt-mark showhold
sudo apt-mark hold zoneminder
You can unhold when you are ready.