We opened an issue like this a couple of months ago, and we had no problems until recently, but unfortunately our client started experiencing the same problem again. I am referring to the closed issue: WebRTC connections cause overload on servers
This time we have logs and I am attaching them to this reopened issue.
If you need any other logs, we will be happy to provide them. Thank you again in advance.
For our understanding. Does the issue appear random or do you have a way where you can consistently (or often) reproduce it?
Looking at he logs we were a bit lost, do you have a note when the issue was seen for us to zoom in on the right time frame in the logs?
The XProtect API Gateway is it installed on the Management Server or in its own dedicated server?
We are not able to determine the problem with the current information. Please enable debug logging. Hopefully this will give us a clue. Enable debug logging, reproduce the issue and share the new log.
To enable debug logging modify the appsettings like this -
Overall, we don’t see any errors in the logs, so there is nothing to indicate that the API Gateway itself is doing something out of the ordinary.
However, we do observe some odd behavior. It appears that each camera is connected to approximately four times within the span of one second. Since there is no other communication occurring at this time, it is likely that the same client is repeatedly connecting to the same camera.
The above is taken from gateway-0002.log, and many connections follow this same pattern. In general, it appears that connections last for around 20 seconds, which is quite short.
The server itself should have no issues handling this behavior, but the connection pattern still seems unusual.
Is the behavior we see in the logs caused by the CPU usage growing to 100% and then the client starts to reconnect every 20th second?