used up resources

Forum for questions and support relating to the 1.24.x releases only.
Locked
alf
Posts: 41
Joined: Wed Jun 17, 2009 6:13 pm

used up resources

Post by alf »

My problem is that after a few days zonminder uses up all the resources and either stops or makes it impossible to run anything else, it takes forever to reboot for example or open any program.


Zoneminder runs with, mint 9, 12 cameras, with only 5 recording, the cpu runs at 80% to 100% or so, and there is only one meg of memory, old asus mother board and amd CPU. I'm waiting for CPU and MB to die to buy something faster.


I would like to A, make it stop using up all the resources after being on for a week, B tell the computer to reboot on its on at a prescribed time?
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

B = cron job
alf
Posts: 41
Joined: Wed Jun 17, 2009 6:13 pm

B seems easiest

Post by alf »

I have a few linux books and hunt around the web, but still confused as hell by the whole chron command.


You wouldn't have any web page suggestions?

Thanks.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

I've used KCron GUI in the past but I'm sure someone will chine in with a better solution. The real answer here is to reign in the leakage and reduce system load, try gray scale as a palette across the board as an interim solution.
alf
Posts: 41
Joined: Wed Jun 17, 2009 6:13 pm

got it

Post by alf »

Couldn't get Kcron to work so hunted around and found gnome-scheduler, installed that.

Then monkeyed around with that until it worked. I'm just figuring out the command line so the learning curve on this stuff is tough right now and thats what my main problem figuring these things out is. I also have no idea whats out there sometimes so your suggestion helped a lot to find the gnome thing.

I'll puzzle out the leak if this doesn't work. I'm grayscale on 8/12 cameras and recording about once a second on 2/5 of the cameras that record. I'm just waiting for the MB to die and a lot of these problems will go away.
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

To add the cron;

from root's shell: crontab -e

Add a new line like this;

0 3 * * * reboot

Save and exit.

That will restart at 3 am exactly.

(Alternatively, restart just zoneminder by replacing 'reboot' with "zmpkg.pl restart" )


However, better to fix your problem. ZM isn't a particularly leaky program, i have servers with over a year uptime including zoneminder. Something's going wrong. For diagnostics I recommend munin, it shows pretty graphs for many aspects of your pc. More immediate test tools - top, htop, free, iotop - none particularly user friendly except perhaps htop.

Also posting some basic specs might help us, just in case you are running a 8088 at 4.77mhz and have delusions of power....
Locked