Now I am using asterisk for a CTI system.
For the softphone I am using webrtc. The webrtc is customized by Sipml5.
Server spec is 4 GB / 2 Virtual CPU, 20GB SSD Plan, CentOS 6.
Everyday the recording files and asteriskcdrdb mysql database are cleaned up.
Usually it will have 10 operators using it to call at the same time.
But sometimes, my server CPU usage will go over 50% and in 2 sec it will go over 100%.
It makes the server stop working.
At this time I use “top” command, it shows asterisk using CPU going over 50% or 100% or more.
When it happens, I can only restart asterisk to let the server keep working.
I checked /var/log/ all files but I still can’t find the reason.
There are some details about when the issue happens:
Usually that CTI system has 10 operators using it at the same time, but this issue also happens even when only 2 operators using.
When there is no issue, the CPU just uses less than 10%, even when 10 operators are calling at the same time. When it happens the CPU will go from less than 10% to 100% in few seconds. It seems like there is some infinite loop.
I also tried different company, different server service. All had same problem.
I tried Asterisk 11 and Asterisk 13, all had same problem.
And this is when there is issue I use “top” command.
Does anyone have the same experience and know how to fix this problem?