MariaDB and ZM issues
Posted: Sun Jan 11, 2015 6:59 pm
We have a centos 6.6 VM running zm 1.28.0 from the zmrepo packages and installed using the instructions provided by the devs of this project. All seems to have gone well. Now we have noticed that the application (ZM) is not performing as intended. Event playback is severely screwed up (dropped frames, events overlapping, choppy playback, etc) and the most worrisome problem is the web interface locks up when we try to launch the logs window from the ZM web interface. The web interface immediately crawls to a halt (config/logs/monitor/etc windows wont load, the main ZM interface is unresponsive, live playback is lost, etc).
We searched for Apache errors, couldnt find any. dmesg also didnt yield anything out of the ordinary. Finally /var/log/messages exhibits traditional zoneminder related errors such as:
[code]Jan 11 13:24:17 centos-zm zmpkg[1398]: INF [Command: start]
Jan 11 13:24:17 centos-zm zmdc[1423]: INF [Server starting at 15/01/11 13:24:17]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zmc -m 1' starting at 15/01/11 13:24:20, pid = 1448]
Jan 11 13:24:20 centos-zm zmdc[1448]: INF ['zmc -m 1' started at 15/01/11 13:24:20]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zmf -m 1' starting at 15/01/11 13:24:20, pid = 1453]
Jan 11 13:24:20 centos-zm zmdc[1453]: INF ['zmf -m 1' started at 15/01/11 13:24:20]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zma -m 1' starting at 15/01/11 13:24:20, pid = 1458]
Jan 11 13:24:20 centos-zm zmdc[1458]: INF ['zma -m 1' started at 15/01/11 13:24:20]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zmfilter.pl' starting at 15/01/11 13:24:20, pid = 1463]
Jan 11 13:24:20 centos-zm zmdc[1463]: INF ['zmfilter.pl' started at 15/01/11 13:24:20]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zmaudit.pl -c' starting at 15/01/11 13:24:21, pid = 1472]
Jan 11 13:24:21 centos-zm zmdc[1472]: INF ['zmaudit.pl -c' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zma_m1[1458]: ERR [Got empty memory map file size 0, is the zmc process for this monitor running?]
Jan 11 13:24:21 centos-zm zmdc[1423]: ERR ['zma -m 1' exited abnormally, exit status 255]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF [Starting pending process, zma -m 1]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zma -m 1' starting at 15/01/11 13:24:21, pid = 1478]
Jan 11 13:24:21 centos-zm zmf[1453]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Jan 11 13:24:21 centos-zm zmdc[1478]: INF ['zma -m 1' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zmdc[1423]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF [Starting pending process, zmc -m 1]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zmc -m 1' starting at 15/01/11 13:24:21, pid = 1479]
Jan 11 13:24:21 centos-zm zmdc[1479]: INF ['zmc -m 1' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zma_m1[1478]: ERR [Shared data not initialised by capture daemon]
Jan 11 13:24:21 centos-zm zmdc[1423]: ERR ['zma -m 1' exited abnormally, exit status 255]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zmwatch.pl' starting at 15/01/11 13:24:21, pid = 1482]
Jan 11 13:24:21 centos-zm zmdc[1482]: INF ['zmwatch.pl' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zmfilter[1463]: INF [Scanning for events]
Jan 11 13:24:21 centos-zm zmwatch[1482]: INF [Watchdog starting]
Jan 11 13:24:21 centos-zm zmwatch[1482]: INF [Watchdog pausing for 30 seconds]
Jan 11 13:24:22 centos-zm zmc_m1[1479]: INF [Starting Capture]
Jan 11 13:24:22 centos-zm zmc_m1[1479]: INF [Priming capture from ##############################################]
Jan 11 13:24:26 centos-zm zmdc[1423]: INF [Starting pending process, zma -m 1]
Jan 11 13:24:26 centos-zm zmdc[1423]: INF ['zma -m 1' starting at 15/01/11 13:24:26, pid = 1511]
Jan 11 13:24:26 centos-zm zmdc[1511]: INF ['zma -m 1' started at 15/01/11 13:24:26]
Jan 11 13:24:26 centos-zm zma_m1[1511]: INF [In mode 3/1, warming up]
Jan 11 13:24:26 centos-zm zmf[1453]: INF [Frame server socket open, awaiting images]
Jan 11 13:24:56 centos-zm zmc_m1[1479]: INF [Monitor-1: 1000 - Capturing at 29.41 fps]
Jan 11 13:24:59 centos-zm zma_m1[1511]: INF [Monitor-1: 1000 - Processing at 30.30 fps]
Jan 11 13:25:30 centos-zm zmc_m1[1479]: INF [Monitor-1: 2000 - Capturing at 29.41 fps]
Jan 11 13:25:32 centos-zm zma_m1[1511]: INF [Monitor-1: 2000 - Processing at 30.30 fps]
Jan 11 13:26:03 centos-zm zmc_m1[1479]: INF [Monitor-1: 3000 - Capturing at 30.30 fps]
Jan 11 13:26:05 centos-zm zma_m1[1511]: INF [Monitor-1: 3000 - Processing at 30.30 fps]
Jan 11 13:26:37 centos-zm zmc_m1[1479]: INF [Monitor-1: 4000 - Capturing at 29.41 fps][/code]
The ZM machine also has plenty of free RAM and disk space, and /dev/shm is around 15-20% full
[code][root@centos-zm ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_centoszm-lv_root
ext4 8.3G 2.0G 5.9G 25% /
tmpfs tmpfs 1.5G 235M 1.2G 17% /dev/shm
/dev/vda1 ext4 477M 47M 405M 11% /boot
freenas:/mnt/zpool/storage/centos-zm-data
nfs 3.0T 1.4T 1.7T 46% /mnt/data
[/code]
[code][root@centos-zm ~]# free -m
total used free shared buffers cached
Mem: 2887 554 2332 234 11 309
-/+ buffers/cache: 233 2653
Swap: 1023 0 1023[/code]
Now this was from the zoneminder side..
On the remote SQL database server we also see a lot of serious issues. The MariaDB log is totally flooded by "aborted connection" error messages caused by the zoneminder VM.
[code][...]
150111 12:54:19 [Warning] Aborted connection 46101 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 12:54:19 [Warning] Aborted connection 46100 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:09:28 [Warning] Aborted connection 46533 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:10:51 [Warning] Aborted connection 47029 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48863 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48861 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48862 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48860 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48872 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48873 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:29:57 [Warning] Aborted connection 48914 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:29:57 [Warning] Aborted connection 48915 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
[/code]
Since all other (9) VM's using the remote DM server are functioning perfectly well (now well over 18 months), we concluded that something in zoneminder must cause unnecessary connections to the DB server and must not close them (which would explain the "aborted connection" errors and the numerous connections in "TIME_WAIT" status on the DB server).
netstat on the DB server (most of these connections are from the ZM machine)
[code]36249.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36250.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36253.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36255.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36281.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36291.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36292.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36308.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36387.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36392.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36393.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36394.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36395.............................. : ESTABLISHED:00001 TIME_WAIT:00000
42651.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44079.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44080.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44090.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44092.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44093.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44095.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44096.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44097.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44098.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44100.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44102.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44103.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44109.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44121.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50321.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50424.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50527.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50528.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50529.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50587.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50588.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50589.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54445.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54447.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54449.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54458.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54459.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54465.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54466.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54467.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54530.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54534.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54535.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54536.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54537.............................. : ESTABLISHED:00001 TIME_WAIT:00000[/code]
Prior versions of zoneminder (series 1.26 & 1.27) did not yield to these issues so we believe something has changed in ZM in the way it handles connections to MySQL/MariaDB. If true, this could explain the lockups and performance issues we have with the ZM application.
Right now the only way to make ZM responsive is to restart the ZM service or Apache.
Anybody who has come up to the same type or a similar issue in the past please let me know what you did to fix this. In the meantime I will do more testing and isolate the faulty component.
Thanks
We searched for Apache errors, couldnt find any. dmesg also didnt yield anything out of the ordinary. Finally /var/log/messages exhibits traditional zoneminder related errors such as:
[code]Jan 11 13:24:17 centos-zm zmpkg[1398]: INF [Command: start]
Jan 11 13:24:17 centos-zm zmdc[1423]: INF [Server starting at 15/01/11 13:24:17]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zmc -m 1' starting at 15/01/11 13:24:20, pid = 1448]
Jan 11 13:24:20 centos-zm zmdc[1448]: INF ['zmc -m 1' started at 15/01/11 13:24:20]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zmf -m 1' starting at 15/01/11 13:24:20, pid = 1453]
Jan 11 13:24:20 centos-zm zmdc[1453]: INF ['zmf -m 1' started at 15/01/11 13:24:20]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zma -m 1' starting at 15/01/11 13:24:20, pid = 1458]
Jan 11 13:24:20 centos-zm zmdc[1458]: INF ['zma -m 1' started at 15/01/11 13:24:20]
Jan 11 13:24:20 centos-zm zmdc[1423]: INF ['zmfilter.pl' starting at 15/01/11 13:24:20, pid = 1463]
Jan 11 13:24:20 centos-zm zmdc[1463]: INF ['zmfilter.pl' started at 15/01/11 13:24:20]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zmaudit.pl -c' starting at 15/01/11 13:24:21, pid = 1472]
Jan 11 13:24:21 centos-zm zmdc[1472]: INF ['zmaudit.pl -c' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zma_m1[1458]: ERR [Got empty memory map file size 0, is the zmc process for this monitor running?]
Jan 11 13:24:21 centos-zm zmdc[1423]: ERR ['zma -m 1' exited abnormally, exit status 255]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF [Starting pending process, zma -m 1]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zma -m 1' starting at 15/01/11 13:24:21, pid = 1478]
Jan 11 13:24:21 centos-zm zmf[1453]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Jan 11 13:24:21 centos-zm zmdc[1478]: INF ['zma -m 1' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zmdc[1423]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF [Starting pending process, zmc -m 1]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zmc -m 1' starting at 15/01/11 13:24:21, pid = 1479]
Jan 11 13:24:21 centos-zm zmdc[1479]: INF ['zmc -m 1' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zma_m1[1478]: ERR [Shared data not initialised by capture daemon]
Jan 11 13:24:21 centos-zm zmdc[1423]: ERR ['zma -m 1' exited abnormally, exit status 255]
Jan 11 13:24:21 centos-zm zmdc[1423]: INF ['zmwatch.pl' starting at 15/01/11 13:24:21, pid = 1482]
Jan 11 13:24:21 centos-zm zmdc[1482]: INF ['zmwatch.pl' started at 15/01/11 13:24:21]
Jan 11 13:24:21 centos-zm zmfilter[1463]: INF [Scanning for events]
Jan 11 13:24:21 centos-zm zmwatch[1482]: INF [Watchdog starting]
Jan 11 13:24:21 centos-zm zmwatch[1482]: INF [Watchdog pausing for 30 seconds]
Jan 11 13:24:22 centos-zm zmc_m1[1479]: INF [Starting Capture]
Jan 11 13:24:22 centos-zm zmc_m1[1479]: INF [Priming capture from ##############################################]
Jan 11 13:24:26 centos-zm zmdc[1423]: INF [Starting pending process, zma -m 1]
Jan 11 13:24:26 centos-zm zmdc[1423]: INF ['zma -m 1' starting at 15/01/11 13:24:26, pid = 1511]
Jan 11 13:24:26 centos-zm zmdc[1511]: INF ['zma -m 1' started at 15/01/11 13:24:26]
Jan 11 13:24:26 centos-zm zma_m1[1511]: INF [In mode 3/1, warming up]
Jan 11 13:24:26 centos-zm zmf[1453]: INF [Frame server socket open, awaiting images]
Jan 11 13:24:56 centos-zm zmc_m1[1479]: INF [Monitor-1: 1000 - Capturing at 29.41 fps]
Jan 11 13:24:59 centos-zm zma_m1[1511]: INF [Monitor-1: 1000 - Processing at 30.30 fps]
Jan 11 13:25:30 centos-zm zmc_m1[1479]: INF [Monitor-1: 2000 - Capturing at 29.41 fps]
Jan 11 13:25:32 centos-zm zma_m1[1511]: INF [Monitor-1: 2000 - Processing at 30.30 fps]
Jan 11 13:26:03 centos-zm zmc_m1[1479]: INF [Monitor-1: 3000 - Capturing at 30.30 fps]
Jan 11 13:26:05 centos-zm zma_m1[1511]: INF [Monitor-1: 3000 - Processing at 30.30 fps]
Jan 11 13:26:37 centos-zm zmc_m1[1479]: INF [Monitor-1: 4000 - Capturing at 29.41 fps][/code]
The ZM machine also has plenty of free RAM and disk space, and /dev/shm is around 15-20% full
[code][root@centos-zm ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_centoszm-lv_root
ext4 8.3G 2.0G 5.9G 25% /
tmpfs tmpfs 1.5G 235M 1.2G 17% /dev/shm
/dev/vda1 ext4 477M 47M 405M 11% /boot
freenas:/mnt/zpool/storage/centos-zm-data
nfs 3.0T 1.4T 1.7T 46% /mnt/data
[/code]
[code][root@centos-zm ~]# free -m
total used free shared buffers cached
Mem: 2887 554 2332 234 11 309
-/+ buffers/cache: 233 2653
Swap: 1023 0 1023[/code]
Now this was from the zoneminder side..
On the remote SQL database server we also see a lot of serious issues. The MariaDB log is totally flooded by "aborted connection" error messages caused by the zoneminder VM.
[code][...]
150111 12:54:19 [Warning] Aborted connection 46101 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 12:54:19 [Warning] Aborted connection 46100 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:09:28 [Warning] Aborted connection 46533 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:10:51 [Warning] Aborted connection 47029 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48863 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48861 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48862 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48860 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48872 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:24:21 [Warning] Aborted connection 48873 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:29:57 [Warning] Aborted connection 48914 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
150111 13:29:57 [Warning] Aborted connection 48915 to db: 'zm' user: 'zoneminder' host: 'centos-zm' (Unknown error)
[/code]
Since all other (9) VM's using the remote DM server are functioning perfectly well (now well over 18 months), we concluded that something in zoneminder must cause unnecessary connections to the DB server and must not close them (which would explain the "aborted connection" errors and the numerous connections in "TIME_WAIT" status on the DB server).
netstat on the DB server (most of these connections are from the ZM machine)
[code]36249.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36250.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36253.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36255.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36281.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36291.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36292.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36308.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36387.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36392.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36393.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36394.............................. : ESTABLISHED:00001 TIME_WAIT:00000
36395.............................. : ESTABLISHED:00001 TIME_WAIT:00000
42651.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44079.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44080.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44090.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44092.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44093.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44095.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44096.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44097.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44098.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44100.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44102.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44103.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44109.............................. : ESTABLISHED:00001 TIME_WAIT:00000
44121.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50321.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50424.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50527.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50528.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50529.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50587.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50588.............................. : ESTABLISHED:00001 TIME_WAIT:00000
50589.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54445.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54447.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54449.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54458.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54459.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54465.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54466.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54467.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54530.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54534.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54535.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54536.............................. : ESTABLISHED:00001 TIME_WAIT:00000
54537.............................. : ESTABLISHED:00001 TIME_WAIT:00000[/code]
Prior versions of zoneminder (series 1.26 & 1.27) did not yield to these issues so we believe something has changed in ZM in the way it handles connections to MySQL/MariaDB. If true, this could explain the lockups and performance issues we have with the ZM application.
Right now the only way to make ZM responsive is to restart the ZM service or Apache.
Anybody who has come up to the same type or a similar issue in the past please let me know what you did to fix this. In the meantime I will do more testing and isolate the faulty component.
Thanks