Limit to 30 monitors

Forum for questions and support relating to the 1.30.x releases only.
startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Limit to 30 monitors

Post by startcev » Sun Sep 04, 2016 2:27 pm

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!

christophe_y2k
Posts: 102
Joined: Mon Oct 12, 2009 8:47 am
Location: EUROPE-FRANCE-MANDELIEU

Re: Limit to 30 monitors

Post by christophe_y2k » Sun Sep 04, 2016 3:21 pm

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
...
<--->

startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Re: Limit to 30 monitors

Post by startcev » Sun Sep 04, 2016 6:02 pm

Hi christophe_y2k!

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

christophe_y2k
Posts: 102
Joined: Mon Oct 12, 2009 8:47 am
Location: EUROPE-FRANCE-MANDELIEU

Re: Limit to 30 monitors

Post by christophe_y2k » Sun Sep 04, 2016 9:02 pm

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

User avatar
knight-of-ni
Posts: 2257
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Limit to 30 monitors

Post by knight-of-ni » Mon Sep 05, 2016 12:17 am

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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

User avatar
asker
Posts: 1300
Joined: Sun Mar 01, 2015 12:12 pm

Re: Limit to 30 monitors

Post by asker » Mon Sep 05, 2016 1:43 am

Also check if you are running out of memory.
df -h
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Limit to 30 monitors

Post by SteveGilvarry » Mon Sep 05, 2016 11:15 am

I read that as check if you are running out of money...
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Re: Limit to 30 monitors

Post by startcev » Mon Sep 05, 2016 5:35 pm

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

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Limit to 30 monitors

Post by SteveGilvarry » Mon Sep 05, 2016 9:14 pm

Do as it suggests and post results.
addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Re: Limit to 30 monitors

Post by startcev » Tue Sep 06, 2016 7:39 am

How to do it, I do not know? Tell me please. :roll:

SteveGilvarry
Posts: 419
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Limit to 30 monitors

Post by SteveGilvarry » Tue Sep 06, 2016 12:03 pm

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.
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Re: Limit to 30 monitors

Post by startcev » Tue Sep 06, 2016 6:54 pm

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#

startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Re: Limit to 30 monitors

Post by startcev » Thu Sep 08, 2016 3:06 pm

???????
:( :( :(

User avatar
asker
Posts: 1300
Joined: Sun Mar 01, 2015 12:12 pm

Re: Limit to 30 monitors

Post by asker » Thu Sep 08, 2016 3:27 pm

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
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

startcev
Posts: 10
Joined: Sun Sep 04, 2016 2:08 pm

Re: Limit to 30 monitors

Post by startcev » Sun Sep 11, 2016 9:03 pm

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:

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests