Page 1 of 1

Trouble getting more than two remote monitors working...

Posted: Thu Feb 11, 2016 5:05 am
by Tantamount
Minimal install of CentOS 7 in a vm with two cpu's and 2GB of ram.
Followed all instructions for getting ZoneMinder 1.29 installed.

Added the first two cameras in monitor mode and can see their video through ZM.
The third and fourth camera however will not load. the logs show the zmc processes for the extra two cameras repeatedly exiting with error 6.

All four cameras are hardware identical. The only difference is their ip address.

I have no trouble accessing each camera via its own web interface.

Anyone have a clue what could be going on here?

TOP currently shows two zmc processes, running near cpu max. Is this because the cameras are in monitor mode? I had previously asked what the cpu utilization was for zoneminder and what I got back was a top showing that barely registered any cpu usage. I thought the problem I'm experiencing is due to cpu time starvation for the extra two cameras, but when I disable one of the working ones, none of the others "come alive."

Here's the output of strace when I attempt to run zmc myself on one of the non-working cameras:

Code: Select all

mmap(NULL, 2076672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f35a038b000
mmap(NULL, 6221824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f359b422000
open("/dev/shm/zm.mmap.3", O_RDWR|O_CREAT, 0600) = 8
fstat(8, {st_mode=S_IFREG|0600, st_size=311041760, ...}) = 0
mmap(NULL, 311041760, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_LOCKED, 8, 0) = 0x7f3588b80000
--- SIGBUS {si_signo=SIGBUS, si_code=BUS_ADRERR, si_addr=0x7f35961b7000} ---
+++ killed by SIGBUS +++
Bus error

Re: Trouble getting more than two remote monitors working...

Posted: Thu Feb 11, 2016 5:36 am
by Tantamount
Ah, I checked the /dev/shm folder and found that it was full. Gonna give the vm more ram.

Re: Trouble getting more than two remote monitors working...

Posted: Thu Feb 11, 2016 6:56 am
by Tantamount
That solved this issue.

Re: Trouble getting more than two remote monitors working...

Posted: Thu Feb 11, 2016 2:43 pm
by bbunge
You could also put PATH_SWAP to /tmp This would free up some tmpfs but it would run a bit slower.

When you installed Centos in the VM did you use the default partioning with LVM?

Re: Trouble getting more than two remote monitors working...

Posted: Fri Feb 12, 2016 1:43 am
by Tantamount
Yes:

Code: Select all

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   38G   13G   25G  35% /
devtmpfs                 1.9G     0  1.9G   0% /dev
tmpfs                    1.9G  1.4G  483M  75% /dev/shm
tmpfs                    1.9G   33M  1.9G   2% /run
tmpfs                    1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/vda1                497M  165M  332M  34% /boot
tmpfs                    380M     0  380M   0% /run/user/0