Limit to 30 monitors
Limit to 30 monitors
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!
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!
-
- Posts: 102
- Joined: Mon Oct 12, 2009 8:47 am
- Location: EUROPE-FRANCE-MANDELIEU
Re: Limit to 30 monitors
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
...
<--->
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
Hi christophe_y2k!
I did as you said but unfortunately it didn't help. The issue is still here.
I did as you said but unfortunately it didn't help. The issue is still here.
-
- Posts: 102
- Joined: Mon Oct 12, 2009 8:47 am
- Location: EUROPE-FRANCE-MANDELIEU
Re: Limit to 30 monitors
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
That strange
Must wait an answer from dev, for known if this limit exist in the software
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Limit to 30 monitors
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.
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/
All of these can be found at https://zoneminder.blogspot.com/
Re: Limit to 30 monitors
Also check if you are running out of memory.
df -h
df -h
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
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
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Limit to 30 monitors
I read that as check if you are running out of money...
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: Limit to 30 monitors
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
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
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Limit to 30 monitors
Do as it suggests and post results.
addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: Limit to 30 monitors
How to do it, I do not know? Tell me please.
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Limit to 30 monitors
Code: Select all
addr2line -e /usr/lib/zoneminder/cgi-bin/nph-zms 0x55dd622783c8 0x7f5bc4dc03d00x55dd622253cd 0x55dd62231f68 0x55dd621f8d81 0x7f5bc14b5830 0x55dd621f9b39
Then paste the output here.
Same for the command
Code: Select all
df -h
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: Limit to 30 monitors
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#
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
You have run out of memory. That is your problem
1. Increase RAM
2. Decrease image dimensions
3. Decrease FPS in camera (not ZM)
4. Increase space allocated for your mapped memory
Potential solutions:tmpfs 3,9G 3,9G 0 100% /dev/shm
1. Increase RAM
2. Decrease image dimensions
3. Decrease FPS in camera (not ZM)
4. Increase space allocated for your mapped memory
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
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
Re: Limit to 30 monitors
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
The change in the /etc/fstab helped me
tmpfs /dev/shm tmpfs nodev,nosuid,size=30G 0 0