Page 1 of 2

Limit to 30 monitors

Posted: Sun Sep 04, 2016 2:27 pm
by startcev
Hi!

I connected to the server zoneminder 41 monitors in "monitor" mode and planned to connect more but I don't get image after 30th monitor (from 31st till 41st). Cameras work properly. In previous versions of zoneminder there was not any problems. Maybe there is a limit in zoneminder for connecting monitors? Help me please!

Re: Limit to 30 monitors

Posted: Sun Sep 04, 2016 3:21 pm
by christophe_y2k
Hi Startcev
Not a mysql number of connexion issue?
for me with 20cam and 7 computer viewer on montage view web page (with all cam)
i need to increase to 400 if not montage view do not print all cam and after a moment have mysql error too many connexion ...

# nano /etc/mysql/my.cnf
<--->
...
max_connections = 400
...
log-bin
server-id = 1
expire_logs_days = 4
log-basename=srv-video
...
<--->

Re: Limit to 30 monitors

Posted: Sun Sep 04, 2016 6:02 pm
by startcev
Hi christophe_y2k!

I did as you said but unfortunately it didn't help. The issue is still here.

Re: Limit to 30 monitors

Posted: Sun Sep 04, 2016 9:02 pm
by christophe_y2k
you can't add more than 30 cam...
That strange

Must wait an answer from dev, for known if this limit exist in the software

Re: Limit to 30 monitors

Posted: Mon Sep 05, 2016 12:17 am
by knight-of-ni
There is no such limit in ZoneMinder.
The most common cause is a limit in the browser, but that limit is usually 5 or 6.
http://zoneminder.readthedocs.io/en/lat ... in-firefox

If that isn't it, then look for limits in your web server or database. Check your system log files for clues.

Re: Limit to 30 monitors

Posted: Mon Sep 05, 2016 1:43 am
by asker
Also check if you are running out of memory.
df -h

Re: Limit to 30 monitors

Posted: Mon Sep 05, 2016 11:15 am
by SteveGilvarry
I read that as check if you are running out of money...

Re: Limit to 30 monitors

Posted: Mon Sep 05, 2016 5:35 pm
by startcev
When opening any monitor after the 30th, I can see in ZoneMinder log the following:


2016-09-05 18:26:45.732500 zms 17173 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 109
2016-09-05 18:26:45.733151 zms 17173 INF addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39 zm_signal.cpp 110
2016-09-05 18:26:46.656533 web_php 9471 ERR socket_sendto( /var/run/zm/zms-726301s.sock ) failed: Connection refused /usr/share/zoneminder/www/includes/functions.php 1993
2016-09-05 18:26:46.692964 web_js 9471 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-726301s.sock ) failed: Connection refused - checkStreamForErrors() ?view=watch
2016-09-05 18:26:46.744431 zms 17174 ERR Got signal 7 (Bus error), crashing zm_signal.cpp 50
2016-09-05 18:26:46.750322 zms 17174 ERR Signal address is 0x7fa20fc3a004, from 0x557c311463cd zm_signal.cpp 81
2016-09-05 18:26:46.751646 zms 17174 ERR Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x557c311993c8] zm_signal.cpp 102
2016-09-05 18:26:46.752410 zms 17174 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x113d0) [0x7fa2253cc3d0] zm_signal.cpp 102
2016-09-05 18:26:46.753152 zms 17174 ERR Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK7Monitor6GetFPSEv+0xd) [0x557c311463cd] zm_signal.cpp 102
2016-09-05 18:26:46.753931 zms 17174 ERR Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0x48) [0x557c31152f68] zm_signal.cpp 102
2016-09-05 18:26:46.754866 zms 17174 ERR Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xa91) [0x557c31119d81] zm_signal.cpp 102
2016-09-05 18:26:46.755882 zms 17174 ERR Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fa221ac1830] zm_signal.cpp 102
2016-09-05 18:26:46.756713 zms 17174 ERR Backtrace 6: /usr/lib/zoneminder/cgi-bin/nph-zms(_start+0x29) [0x557c3111ab39] zm_signal.cpp 102
2016-09-05 18:26:46.757486 zms 17174 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 109
2016-09-05 18:26:46.758283 zms 17174 INF addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x557c311993c8 0x7fa2253cc3d0 0x557c311463cd 0x557c31152f68 0x557c31119d81 0x7fa221ac1830 0x557c3111ab39 zm_signal.cpp 110
2016-09-05 18:27:05.568017 zmc_m28 5492 INF Glavnuy-Vhod-02: 351000 - Capturing at 5.26 fps zm_monitor.cpp 3116

Re: Limit to 30 monitors

Posted: Mon Sep 05, 2016 9:14 pm
by SteveGilvarry
Do as it suggests and post results.
addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39

Re: Limit to 30 monitors

Posted: Tue Sep 06, 2016 7:39 am
by startcev
How to do it, I do not know? Tell me please. :roll:

Re: Limit to 30 monitors

Posted: Tue Sep 06, 2016 12:03 pm
by SteveGilvarry

Code: Select all

addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
Copy paste the command to the command line or terminal.

Then paste the output here.
Same for the command

Code: Select all

df -h
as suggested.

Re: Limit to 30 monitors

Posted: Tue Sep 06, 2016 6:54 pm
by startcev
It says there is not such a command


login as: sa
sa@10.20.0.40's password:
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-36-generic x86_64)

root@srv-vidlip:/home/sa# addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms
bash: addr2line: command is not found
root@srv-vidlip:/home/sa# addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
bash: addr2line: command is not found
root@srv-vidlip:/home/sa# addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
bash: addr2line: command is not found
root@srv-vidlip:/home/sa# df -h
Файл.система Размер Использовано Дост Использовано% Cмонтировано в
udev 3,9G 0 3,9G 0% /dev
tmpfs 798M 73M 725M 10% /run
/dev/sda1 91G 2,8G 84G 4% /
tmpfs 3,9G 3,9G 0 100% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
tmpfs 100K 0 100K 0% /run/lxcfs/controllers
tmpfs 798M 0 798M 0% /run/user/1000
root@srv-vidlip:/home/sa#

Re: Limit to 30 monitors

Posted: Thu Sep 08, 2016 3:06 pm
by startcev
???????
:( :( :(

Re: Limit to 30 monitors

Posted: Thu Sep 08, 2016 3:27 pm
by asker
You have run out of memory. That is your problem
tmpfs 3,9G 3,9G 0 100% /dev/shm
Potential solutions:

1. Increase RAM
2. Decrease image dimensions
3. Decrease FPS in camera (not ZM)
4. Increase space allocated for your mapped memory

Re: Limit to 30 monitors

Posted: Sun Sep 11, 2016 9:03 pm
by startcev
Thank you for your help, guys! it's done now.

The change in the /etc/fstab helped me

tmpfs /dev/shm tmpfs nodev,nosuid,size=30G 0 0

:mrgreen: :mrgreen: :mrgreen: