CPU usage 98% !

Forum for questions and support relating to the 1.29.x releases only.
Locked
User avatar
caseyj
Posts: 22
Joined: Thu Dec 24, 2015 4:21 am
Location: Thailand

CPU usage 98% !

Post by caseyj »

Hi,
I install for testing zm on virtualbox (Lubuntu_14.04_with_Zoneminder_1.29.0 pre-configured).
Region1.png
Region1.png (16.87 KiB) Viewed 3865 times
All fine, then i install webmin and here i see : CPU usage 98% ! ...
Region.png
Region.png (29.66 KiB) Viewed 3865 times
Notice that I also try to disable all monitor and CPU still at 98% .... :?:
Region2.png
Region2.png (13.2 KiB) Viewed 3862 times
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: CPU usage 98% !

Post by bbunge »

My first thought was that your database has a problem. Then I saw you were using my Lubuntu setup. Wonder if it has something to do with you using s single core machine? Does the usage go down if you stop Zoneminder?
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: CPU usage 98% !

Post by SteveGilvarry »

Set monitors function from Monitor to None, I don't think changing a running zmc to disabled actually kills it, just stops it running on startup.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
User avatar
caseyj
Posts: 22
Joined: Thu Dec 24, 2015 4:21 am
Location: Thailand

Re: CPU usage 98% !

Post by caseyj »

Guys,
Today I check and got this : (I didnt do anything...)
CPU usage 1% user, 0% kernel, 0% IO, 99% idle
Maybe it was OS itself checked for something in its routine after fresh install...

I will stay tuned for it. Thanks for reply.
Pedulla
Posts: 167
Joined: Thu Nov 27, 2014 11:16 am
Location: Portland, Or

Re: CPU usage 98% !

Post by Pedulla »

I've seen this when the cameras (rtsp) are off line/disconnected/not there/or some problem.
If you don't have a max framerate set for each monitor/camera the system races as fast as it can.

I got mine up to 1236 fps once... cool... not...

Solution, set a max frame rate about 10% higher than you expect from your camera stream. If the camera's won't be online for a while, disable the monitor in function section of the offending monitor/camera.

Hope I didn't use too much ZM jargon.
User avatar
caseyj
Posts: 22
Joined: Thu Dec 24, 2015 4:21 am
Location: Thailand

Re: CPU usage 98% !

Post by caseyj »

If the camera's won't be online for a while, disable the monitor in function section of the offending monitor/camera.
Might be this :D :D :D
Locked