ZM Dies after adding a Camera

Forum for questions and support relating to the 1.30.x releases only.
Locked
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

ZM Dies after adding a Camera

Post by Rapheal »

Hello I need some help,
Installed ZM 1.30.4 on Debian 9 32bit (I meant to install 64)
ESXI VM 10Gig of Ram Xeon E3-1225 3.2 x 4
Created separate drives for Events and Images Mounted and verified they auto mounted
No Monitors localhost/zm is reachable
I add a camera and boom, it dies. After reading some posts I need some help on where to start looking
I do see errors about orphaned inums during reboot, also sometimes VM will show a CPU spike followed by the error that the VM disabled the CPU and I need to reboot.

I used guides:
https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
http://zoneminder.readthedocs.io/en/lat ... drive.html
https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS
And changed VM.swappiness from 60 to 10

Thank you for your time.
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM Dies after adding a Camera

Post by bbunge »

Sounds like you may be out of memory. Lower camera resolution. Install on an OS not in a VM!
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

Re: ZM Dies after adding a Camera

Post by Rapheal »

Oh, I didn't realize using a VM wasn't recommended. Which OS would be the best for performance, the machine has 16 gigs of Ram total.
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

Re: ZM Dies after adding a Camera

Post by Rapheal »

Ok I reinstalled and found where another user was able to use ESXi with a similar setup. This time it's Debian 9.4 64x 14GB Ram
I added one camera Mem jumped to 1Gb and then the machine locks up. (I snapshotted this time) any ideas? v1.30.4
I'm using a dedicated drive 800Gb for events and images and another 10GB for Temp (SSD)
They mounted correctly. permissions where set to the www-data account.
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM Dies after adding a Camera

Post by bbunge »

Rapheal wrote: Sat Apr 21, 2018 8:42 pm Oh, I didn't realize using a VM wasn't recommended. Which OS would be the best for performance, the machine has 16 gigs of Ram total.
I am running 17 cameras on a Dell i5 quad core with 16 GIG RAM. Ubuntu 16.04. Can run it with 8 GIG RAM. Not a VM!
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

Re: ZM Dies after adding a Camera

Post by Rapheal »

So the system was stable for a little while I was constant refreshing the logs and it stayed up and i was able to add two monitors @ 10 FPS. then it started insta-dying again. It's don't think it's a resource issue as I can monitor those and see the server didn't get past 5% utilization. Any Ideas?
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

Re: ZM Dies after adding a Camera

Post by Rapheal »

Another update, it seems to be related to ffmpeg. I saw in the forums where someone did the VLC test, and I did that with ZoneMinder service stopped, it streamed from 26sec and froze the entire VM, It was an Rtsp stream using the splayer video player.

Any Ideas?
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

Re: ZM Dies after adding a Camera

Post by Rapheal »

Another update, it "seems" to be related to debian, installed ubuntu 16 on the ESXi server and it's seems to be working MUCH better. still testing.
Rapheal
Posts: 13
Joined: Sat Apr 21, 2018 6:44 am

Re: ZM Dies after adding a Camera

Post by Rapheal »

Man so Much info,
It was Debian and settings issues. Ubuntu didn't kill the VM when it had issue.
When troubleshooting set you Analyze frames to 1 , if you are only going to record and not do motion detect leave it there
Search this forum about the command "IOstats -xd 2 5" Helps see if you have a bottleneck
Be careful about increasing your buffers as they increase /dev/shm (60% to 20% for two cameras) drastically
Log files in /var/log/zm/zm_debug.log can be helpful, first turning on debugging and then set the log level to like 5. Then use cat or nano to read the logs
(RTM) Read the Manual, this is key http://zoneminder.readthedocs.io/en/lat ... index.html
System is stable so far on ESXi 6.5 Unbunto 16.4 . At the moment 1 camera recording the other motion detection. I'll add more a little later.
Locked