Carsh when Add new camera

Forum for questions and support relating to the 1.28.x releases only.
Locked
amz86
Posts: 2
Joined: Tue May 12, 2015 5:31 am

Carsh when Add new camera

Post by amz86 »

Hi,
I have zoneminder install on ubuntu server:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
$ uname -a
Linux ZM2 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

With 12 GB ram and in I am using docker to run zoneminder.
with 5 cameras Zoneminder work perfectly, but when I try to add new camera it always crash and there are not image.
The following error show up in the log:

Code: Select all

2015-05-12 09:09:58.509905	zma_m3	14882	WAR	Signal: Reacquired	zm_monitor.cpp	1293
2015-05-12 09:09:58.008300	zma_m3	14882	WAR	Signal: Lost	zm_monitor.cpp	1293
2015-05-12 09:09:57.989173	zmc_m3	14877	WAR	Unable to capture image, retrying	zm_remote_camera_http.cpp	1171
2015-05-12 09:09:57.988194	zmc_m3	14877	ERR	Connection dropped by remote end	zm_remote_camera_http.cpp	474
2015-05-12 09:09:14.374640	zmdc	13810	INF	'zmc -m 5' crashed, signal 134	zmdc.pl	
2015-05-12 09:09:14.213930	zmdc	13810	ERR	'zma -m 5' exited abnormally, exit status 255	zmdc.pl	
2015-05-12 09:09:14.210062	zma_m5	15874	ERR	Shared data not initialised by capture daemon for monitor call_center2	zm_monitor.cpp	421
I am sure the camera setting are correct because when I disable the other cameras the new camera work. But, when I enable them again one of them will not work.
is it ram issue? does 12 GB ram enough for 6 cameras 320x240?
how can I now if it RAM issue or network limitation?
amz86
Posts: 2
Joined: Tue May 12, 2015 5:31 am

Re: Carsh when Add new camera

Post by amz86 »

It work now when I reduce the resolution and the buffer size. I guess it is a memory issue.
now I want to change the memory setting to enable higher resolution:
My question is what value is recommended for "kernel.shmmax" and "kernel.shmall",
if I have:
A- 4 cameras resolution: 640*480, 24bit color , buffer size: 50 frames.
B- 2 cameras resolution: 320*240, 24bit color , buffer size: 50 frames.
And My total ram is 12GB
advbug
Posts: 14
Joined: Thu Oct 16, 2014 8:41 am

Re: Carsh when Add new camera

Post by advbug »

About memory: I ran into issues with 7 cameras @ 1080p resolution and 4GB RAM. After adding another 4GB I could use more than 7 cameras.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Carsh when Add new camera

Post by asker »

This link may help you:
http://www.zoneminder.com/wiki/index.ph ... o_optimize

You are very likely running out of mapped memory. The parameters you changed don't help.

do a "df -h" and see how much mapped memory you are already using and adjust it accordingly
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Locked