Apache hangs.

Forum for questions and support relating to the 1.24.x releases only.
Locked
kwire
Posts: 48
Joined: Mon Jan 05, 2009 12:56 am
Location: Ada, Ohio, USA

Apache hangs.

Post by kwire »

Hi, it's me again... :?

ZoneMinder runs and I have added three cameras, two Axis 207s and a Topica TP-6360WBC-DN on a PV-149 card.
It runs, but after a few minutes of watching live feeds Apache hangs. Even when I have just 1 feed open. The way I know it has stopped is the time no longer advances, then if I press [F-5] to refresh it just says "Waiting for localhost..." in the satus bar. Same thing when I go over to the tab where the ZM Console is open, press [F-5] and it says "Waiting for localhost...".

I have read and reread the Shared Memory in the FAQ and I am not getting any Shared Memory errors in the logs. Actually I get no errors in the logs after a hang. I can watch the Axis cameras directly from FireFox and it never hangs.

I am using Fedora 10 ZM-1.24.0 and ffmpeg SVN-r17117. That all seems OK as you all helped me get that working in a couple of other threads.

Two questions:
1) Does anybody have any suggestions why Appache would hang?
2) How can I turn on some more logging so I can track the problem down?

Thanks, Keith

Here is what is in the logs...

Code: Select all

[root@localhost zoneminder]# tail /tmp/zm*.log
==> /tmp/zmaudit.log <==

==> /tmp/zmdc.log <02> /tmp/zmfilter.log <02> /tmp/zmpkg.log <02> /tmp/zmupdate.log <==

==> /tmp/zmwatch.log <==
02/15/2009 10:29:56.636722 zmwatch[5044].INF [Watchdog starting]
02/15/2009 10:29:56.637000 zmwatch[5044].INF [Watchdog pausing for 30 seconds]
02/15/2009 10:41:46.112735 zmwatch[5546].INF [Watchdog starting]
02/15/2009 10:41:46.112990 zmwatch[5546].INF [Watchdog pausing for 30 seconds]
Here is an ipcs output:

Code: Select all

[root@localhost zoneminder]# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x00000000 0          root      777        139264     2
0x00000000 65537      root      777        4096       1          dest
0x00000000 98306      root      777        4096       1          dest
0x00000000 131075     zoneminder600        393216     2          dest
0x00000000 163844     zoneminder600        393216     2          dest
0x00000000 196613     zoneminder600        393216     2          dest
0x00000000 360454     zoneminder600        393216     2          dest
0x7a6d0001 4194311    apache    700        36865524   2
0x7a6d0002 4227080    apache    700        36865524   1
0x00000000 327689     zoneminder600        393216     2          dest
0x7a6d0004 4259850    apache    700        36865524   1
Here is a ps output:

Code: Select all

[root@localhost zoneminder]# ps axo user,command | grep zm
500      /usr/bin/kwrite /home/zoneminder/Development/QT/zmviewer-0.1.6/README
apache   /usr/bin/perl -wT /usr/local/bin/zmdc.pl startup
apache   /usr/local/bin/zmc -m 1
apache   /usr/local/bin/zmc -m 2
apache   /usr/local/bin/zmc -d /dev/video0
apache   /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
apache   /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -c
apache   /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
apache   /usr/bin/perl -w /usr/local/bin/zmupdate.pl -c
apache   /var/www/cgi-bin/nph-zms
root     grep zm
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Apache hangs.

Post by cordel »

kwire wrote: The way I know it has stopped is the time no longer advances, then if I press [F-5] to refresh it just says "Waiting for localhost..." in the satus bar. Same thing when I go over to the tab where the ZM Console is open, press [F-5] and it says "Waiting for localhost...".
Do not run the browser on the same machine as the server. The browser consumes lots of resources and stalls it out.
kwire
Posts: 48
Joined: Mon Jan 05, 2009 12:56 am
Location: Ada, Ohio, USA

Post by kwire »

Say it isn't soooooo :(

Cordel I am running Fedora 10 on a pretty powerful new machine with Core 2 Quad Q9400 pc with 4GB memory.

I had plans to connect have 10 cameras connected to it using 2 PV-149 cards and two Axis 207 IP Cameras. Then I was going to use the QTViewer on this machine to monitor all 10 cameras.

I think I heard you say that won't work??? At least not with FireFox in the mix... What about the QTViewer, will it work?

Any other ideas on how to solve my problem?

Thanks, Keith
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

With QTviewer it should not be bad. Firefox... especially 3 has become a resource pig. Just watch top or htop and you can see it suck the life out of your machine.
kwire
Posts: 48
Joined: Mon Jan 05, 2009 12:56 am
Location: Ada, Ohio, USA

Post by kwire »

That makes me feel a little better Cordel.

FYI I started ZM and opened FireFox, went to the Console and opened all three cameras in FireFox. I then monitored htop. It never really changed from the time I opened the third camera till I realized Apache was locked. Then when I did a refresh the CPU usage went way down.

Here is what htop looks like before it hangs.

Image

As you can see all 4 processors are under 40% and the memory usage doesn't look that bad...

Guess I'll look more at the QtViewer :)

Keith[/img]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If the stream time stops ticking over then it implies that zms has stopped for some reasons. Check if that is the case or not with ps and by checking the logs.

You also need to make sure you have configured firefox for multiple network connections as per this FAQ.
Phil
Locked