Page 1 of 1

Very slow console

Posted: Fri Oct 15, 2004 5:54 am
by curtishall
I'm running the latest zm build, and over the past two days zm has been acting _very_ slow. Tonight I logged in to view the events for the day and I can't even connect. I thought maybe apache freaked out, or mysql and i restarted both. I noticed that apache was responsive, so I figured something broke inside zm. I ran zmaudit -y, and nothing was found. I poked around and mysql is running fine.

I have two monitors, both using motion dection. The first monitor had around 300 events, the second had around 400 events. This shouldn't cause zm to totally bog down...should it?


www-data@lizard:~/zm$ php index.php

just sits and sits...nothing going on...

I tried manually deleted the Events using mysql, and then ran zmaudit -y. I still have the problem.

Posted: Fri Oct 15, 2004 9:03 am
by zoneminder
The main query in the console window isn't the quickest in the world (it is faster in the next version) but should inly take a second or so. Have you tried using mysqlcheck to see if your db may be a bit broken. Alternatively do a pz and see if there are any bogus zm processes stuck lying around.

Phil,

Posted: Fri Oct 15, 2004 2:30 pm
by curtishall
Phil (or anyone),
zm.Config OK
zm.Events OK
zm.Filters OK
zm.Frames OK
zm.Monitors OK
zm.States OK
zm.Stats OK
zm.TriggersX10 OK
zm.Users OK
zm.Zones OK


something is _totally_ screwed up. I went to bed and did a 'time php index.php', and 8 hours laters it's still doing nothing...

zmpkg.pl status (09:30am/41/pts/11)
running

Can't find process with command of 'zmc -d 0'
'zmaudit.pl -d 900 -y' stopping at 04/10/14 10:30:09
'zmaudit.pl -d 900 -y' died at 04/10/14 10:30:09, signal 14
'zmc -d 0' died at 04/10/14 10:30:15
'zmc -d 0' started at 04/10/14 10:30:15
'zmc -d 0' starting at 04/10/14 10:30:15, pid = 6759
'zmc -d 0' died at 04/10/14 10:30:15
'zmc -d 0' already running at 04/10/14 10:30:15, pid = 6759
'zmc -d 0' stopping at 04/10/15 00:45:09


I'm out of of ideas, anymore let me know... thanks

Posted: Fri Oct 15, 2004 2:48 pm
by zoneminder
As usual, I would check /var/log/messages but also as I mentioned do a 'ps -edalf' or equivalent and grep for zm in the results. People have occasionally reported zombie processes and you may have one of these. If so I'd like to get to the bottom of why.

Phil,

Posted: Fri Oct 15, 2004 5:49 pm
by curtishall
0 Z www-data 6759 1620 2 76 0 - 0 exit Oct14 ? 00:37:22 [zmc] <defunct>

One zmc process is defunct'ed. I'll try a reboot here in a while to see if that will fix it.

thanks

Posted: Fri Oct 15, 2004 7:44 pm
by curtishall
rebooting fixed the problem, i hope this doesn't happen again...i'd hate to have a system sitting in the middle of no where that doesn't record...