Page 1 of 2
High CPU Load
Posted: Wed Mar 06, 2019 9:03 pm
by detxm80
Hi, i've a problem with my zoneminder. After a while, my cpu go to 100% cause zoneminder. I don't know how, initially all gone ok and after (1/2 month) cpu go to overload. Change max fps or other option cause no solution.
I've Ubuntu 18.04.
Can you help me to resolve this issue ?
Re: High CPU Load
Posted: Thu Mar 07, 2019 6:52 pm
by rockedge
hello... so it runs for 10-15 days and then the CPU load goes to 100% ?
Re: High CPU Load
Posted: Thu Mar 07, 2019 6:55 pm
by detxm80
Exactly
Re: High CPU Load
Posted: Fri Mar 08, 2019 12:12 am
by rockedge
a while ago during the 1.31.+ development there was a bug that caused some processes like zma not to end and new ones would start so they would accumulate and exhaust the memory crashing zoneminder eventually. Though that was fixed long ago. You are running Ubuntu 18.04 32 bit OS?
It is interesting to see on your htop that many instances of zma for each monitor are running. Is there anything unusual in set the Options?
Re: High CPU Load
Posted: Fri Mar 08, 2019 9:55 am
by detxm80
Hi rockedge, i’ve 64 bit ubuntu server.
Not unusual option i have set or i have change.
Re: High CPU Load
Posted: Fri Mar 08, 2019 12:24 pm
by AnotherBrian
Just adding a bit here. A few days ago I did a full clean install of Ubuntu 18.04 with Zoneminder 1.32. Mine went 100% cpus after adding just a few cameras. I set mocord to record thinking maybe analysis of frames was driving up the cpu. My 8 cameras pump out at 5 frames a second or less. Under prior releases my cpu loads are around 40%. Is there any chance occonor stuff got updated?
Re: High CPU Load
Posted: Fri Mar 08, 2019 4:05 pm
by rockedge
"Is there any chance occonor stuff got updated?"
yes it is continually improving. really the only production release is v 1.30.4 and 1.32 was development but kind of graduated to a sort of release....give 1.33.3 a try from the master snapshot at the iconner PPA
Re: High CPU Load
Posted: Sat Mar 09, 2019 7:11 am
by detxm80
How can i update it to 1.33?
Re: High CPU Load
Posted: Sat Mar 09, 2019 4:24 pm
by rockedge
switch your repo for your package manager to the iconner PPA ..something like
Code: Select all
sudo add-apt-repository ppa:iconnor/zoneminder-master
sudo apt-get update
Re: High CPU Load
Posted: Sat Mar 09, 2019 4:26 pm
by detxm80
Just do it, now i can t access , myip/zm give me white page
Re: High CPU Load
Posted: Sat Mar 09, 2019 8:54 pm
by rockedge
you might need to open a terminal and run
Re: High CPU Load
Posted: Sun Mar 10, 2019 7:09 am
by detxm80
Database already at version 1.33.3, update skipped.
After run zmupdate.pl
And anyway cpu is 100% the same
Re: High CPU Load
Posted: Mon Mar 11, 2019 9:14 am
by detxm80
@iconnor can you help me to resolve cpu overload issue?
Re: High CPU Load
Posted: Mon Mar 11, 2019 12:23 pm
by rockedge
did you try
do you still have a blank page calling the ZM console?
Re: High CPU Load
Posted: Mon Mar 11, 2019 12:24 pm
by rockedge
shutdown all the cameras and turn just one on to "Monitor" and observe the CPU loads...add a another camera...how does it look?