High CPU load on network optixs server (mediaserver-bin)
AnsweredWe are running an installation of network optix server on an linux EC2 instance in AWS cloud. It have about 20 cameras connected on local ports (thru SSH tunnels).
The cameras are of type HTTP_URL_PLUGIN and are very rarly anyone viewing.
We have two really concering problems with our setup.
1) From time to time (like every day) the CPU load of the mediaserver-bin are hitting 100% and stays there until server restart
2) Even thou noone is watching the camera there are periodic (some measurment indicates ever 20 seconds) fetches of the video URL resulting in high bandwith consumption.
Looking at the CPU vs network traffic there seems to be a direct relation between the high CPU load and network traffic in. (indicating that the 2 problems are related) However the network traffic out does not follow the same curve, also indicating that the video stream are not forwarded to any actuall viewer.
(this is my assumption, might be wrong on that)
I know this is a very tricky support case but I need help in where to go from here in trying to resolve it. I have tried looking thru the event log of the server but dont see any specific problems or any hugh amount of log entries in the time of transitions to 100% cpu load. (Still I dont know what to search for so I might be missing something)
-
I have gone thru every single setting I can find thru the network optix client, and what strikes me is that I see that "Motion detetion" is enabled under camera settings. However no motion areas are configured. Could that still mean that there are fetching of the videostream from the camera to facilitate the motion detection?
Are there any way to turn off everything about motion detection for a server. Because we dont configure it to be on when programatically adding the camera, there are some kind of default that kicks in.
0 -
Hi David,
Can you please try to disable motion for an experiment and see if you have high CPU usage again?
Motion detection works together with recording schedule and event rules.
Basically, if there is a rule for motion detected event or recording is set to motion only - server needs to know when motion happens, so server pulls the stream all the time and performs motion detection.
That could be a possible reason for CPU usage, so to check that - just disable motion on all cameras and see how it goes.
Let us know the results, please.
Additional question: do you have a secondary stream set up for those cameras? What is the resolution of primary and secondary streams?
0 -
Hi, thanks for a swift reply.
Recording are not at all, activated as the server has not yet applied a license key (we probably should do that - ?)
There are a lot of Event Rules for each camera that is triggered by external source (our own server backend) for doing custom HTTP commands. I hope these are not related to data transfer.
However I also see that there are three "On Camera Disconnected" rules. Could these in combination with the camera type of HTTP_URL_PLUGIN be making video fetching to understand if the camera are alive?
I've disabled the rules (but didnt remove them) and disabled all motion detection.
The cameras doesnt have any secondary stream and the primary have something low like 640x480.
0 -
Once you disabled those rules and motion detection - do you see CPU spikes again?
0 -
Well the "spikes" are more of "constant step up to 100% and staying there".
But they also have happend kind of randomly but only on days with activity but not directly related to a anything specific in time (if I try to see paterns it might be 5-20 min after last access of a camera stream). Giving it just a few hours it would not statistically have happend yet so will not know for sure before thursday/friday.
0 -
What specific version are you using?
Do you have any client applications connected to the server when you see the CPU issue?
0
Please sign in to leave a comment.
Comments
6 comments