Page 1 of 1

cpu nearly at 100%

Posted: Sat Feb 08, 2020 9:44 pm
by kobold81
Hi,

today I made a apt-get update and upgrade of my debian buster system.
Before, zoneminder 1.32 ran fast and the windows to my 3 cameras opened fast as a lightning.

After the upgrade it was slow as hell and the monitors are unusable. the commadn TOP shows nearly a combined 100% for the zoneminder processes.

I did an update to 1.34 but the same problem persists. What could be a solution please?

Re: cpu nearly at 100%

Posted: Sun Feb 09, 2020 2:09 am
by bbunge
Are you running on a Pi?

Re: cpu nearly at 100%

Posted: Sun Feb 09, 2020 2:22 pm
by kobold81
No, 16gb xeon 3ghz server.

Re: cpu nearly at 100%

Posted: Sun Feb 09, 2020 2:35 pm
by bbunge
Are you using the zmrepo?
https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo

I have not done an upgrade on Buster but have 1.34.0 running on a pi 3b+ and 1.34.2 on an i5 quad core with 8 GB RAM.

It is possible that the database did not fully upgrade.

Re: cpu nearly at 100%

Posted: Sun Feb 09, 2020 4:32 pm
by iconnor
You say 100% for the zm process. Which zm process? There are many, each with a different job.

Re: cpu nearly at 100%

Posted: Mon Feb 10, 2020 1:37 pm
by kobold81
I apologize for the delay.

Using the command TOP, there are 3 processes when I open the preview of a single camera
44 - 53 zmc
37 zmc
40-50 nph-zms

What I did:
- installed adminer and removed all logs (quite a lot)
- reapplied the database structure

and it works again...

I used "zmrepo.zoneminder.com/debian/master buster/" but have now updated the package.

Top shows 37% zmc and 36% nph-zms

Now cam 1 has a small 1/5th of the image with pixel errors, cam#2 (which is an exact copy of #1) is full of pixel errors.

-> the pixel errors seem to stem from zoneminder, because vlc shows a perfekt picture...
a higher image buffer than 51 is actually worse that keeping at 51 or 20 and igrnoring the warning message...

Re: cpu nearly at 100%

Posted: Mon Feb 10, 2020 5:26 pm
by iconnor
Look in your logs, we can't guess.

Are your Max FPS and Alarm Max FPS clear? Are you using TCP or UDP?