Page 1 of 1

Frame rate slows down over a few days time

Posted: Sat May 06, 2017 3:52 pm
by DrJohn999
This is 1.29.0 running in a KVM virtual with 4Gb memory and three Amcrest cameras at 1920x1080, 24-bit resolution, and 2048 bit rate. Two cameras are POE and one is wireless 5G. After rebooting the machine, ZM reports the set 5 fps from each camera, for example in the montage view. After approximately two days the frame rates for the two wired cameras start to degrade while the wireless does not. After about three days they typically get down to around 1 fps. Rebooting the cameras via their web interface changes nothing. Restarting ZM does not affect it either. Rebooting the VM (while leaving everything else running, including the host server) always brings back the original 5 fps.

I realize this looks a lot like a problem with the wired network. The POE is run through a 10/100/1000Mbps 4 port + 1 uplink Gigabit IEEE 802.3af PoE switch and ASUS RT-66U wireless router. Powering the POE switch (and thus the cameras) does not improve the frame rates. Rebooting the router doesn't fix the problem either.

The problem likely is not due to buffers:

Code: Select all

~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           396M  5.6M  390M   2% /run
/dev/vda1        26G   18G  6.4G  74% /
tmpfs           2.0G  890M  1.1G  46% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
tmpfs           396M     0  396M   0% /run/user/1000
or to CPU load or system memory

Code: Select all

top - 08:37:02 up 13 min,  1 user,  load average: 0.45, 0.62, 0.42
Tasks: 145 total,   2 running, 143 sleeping,   0 stopped,   0 zombie
%Cpu(s): 13.9 us,  0.6 sy,  0.0 ni, 80.3 id,  0.0 wa,  0.0 hi,  1.5 si,  3.8 st
KiB Mem :  4046304 total,  1988800 free,   628724 used,  1428780 buff/cache
KiB Swap:  4191228 total,  4191228 free,        0 used.  2254408 avail Mem 
I will capture the above info again in a couple of days during the degraded frame rate and post if its any different.

I would like to know if anyone else has seen a similar problem or has any ideas on how to chase this down.

Thanks,

John

Re: Frame rate slows down over a few days time

Posted: Sat May 06, 2017 9:23 pm
by bbunge
Two things you need to check.
Tmpfs make sure you are not Running out of space
MYSQL Check the resources used with mysqltuner. You need to increase connections or innodb_buffer_pool_size.

Also, your 4 gig RAM in a virtual box may not be enough. You would be better off installing a stand alone server.

Re: Frame rate slows down over a few days time

Posted: Sun Jun 04, 2017 3:39 am
by DrJohn999
Thanks for the suggestions. I installed 1.30.4 on the main server, i.e. not in a VM, and it is working quite well now. Guess ZM is a bit more than my VM could handle.

-- John