I am experiencing an issue where restapps.php has very high CPU utilization on a new install. No phones connected yet and minimal setup/customization on fresh install.
All modules and system updates have been done, firewall configured, OpenVPN server has been set up, truck is set up and routes are set up. Nothing else has been done to the fresh install.
Server is a VPS with 1 CPU.
FreePBX is version: FreePBX 14.0.3.25
RestAPI is version: 13.0.21.1
top shows that php is running near 100%, all the time.
I noticed the same behaviour on my box as well over the weekend. I’m not sure how long it has been doing that though. I’m running the SNG7 Distro (Asterisk 16) as a VM on ESXi 6.7 with all patches applied to SNG7 and upgraded to Edge on the modules just to see if it had been fixed. I’m seeing a php instance at 100% on one core out of the two that I have allocated to the VM. ps aux |grep php reveals that the php instance is restapps.php. I’ve tried killing the process and restarting with fwconsole (both restapps and also everything) and also a reboot but I always end up with restapps at 100% CPU on one core as soon as restapps starts. Happy to provide any logs or do any investigation you might want. Just let me know.
I upgraded the VPS to 4-core CPU and 8 GB memory. It made no difference. CPU sits at 100% utilization. Memory usage is no problem, even on 1GB.
I disabled RestApps and did fwconsole reload and fwconsole restart. Didn’t make a difference. restapps.php is still running near 100%, even on upgraded CPU.
Below is a picture of the server CPU usage (when on 1-core single CPU). You see a spike during initial install, then usage is 10-15% on average. All of a sudden, it goes to 100%. I believe this time coincides with when I did system and module updates.
My next plan of action is to restore a backup of before i did the updates to see if CPU goes back to normal. If yes, i will do updates 1 by 1 to see which raises the CPU.
Ok, understood. I’m assuming whatever is the underlying cause will be updated when the fix is found? Nothing I need to do on my end at this point, correct?