Page 1 of 1

used up resources

Posted: Fri Aug 06, 2010 8:57 pm
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?

Posted: Fri Aug 06, 2010 10:03 pm
by bb99
B = cron job

B seems easiest

Posted: Fri Aug 06, 2010 10:11 pm
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.

Posted: Sat Aug 07, 2010 12:45 am
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.

got it

Posted: Sat Aug 07, 2010 3:26 am
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.

Posted: Sat Aug 07, 2010 8:25 am
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....