CPU running at close to 100%

Status
Not open for further replies.

mc6650

Member
Apr 8, 2019
123
5
18
62
Hello

I've noticed the CPU load running at close to 100% on my FusionPBX on a Proxmox VM. This only occurred after a recent power outage and subsequent reboot. I did a little diiging and used the command "top" to find out what the culprit is. What steps can I take to calm the cpu usage down (I'm sure that's not the correct technical term)? It looks like "php" is running extremely high.

Thanks you in advance for any advice.


1661778676663.png
 
Additional Information:

Is it the "event_guard.php" that's tying up the CPU?


%CPU CPU NI S TIME COMMAND
0.1 - 0 S 00:00:00 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
0.2 - 0 S 00:00:00 /sbin/init
0.4 - - S 00:00:01 /usr/bin/freeswitch -u www-data -g www-data -ncwait -nonat
0.5 - 0 S 00:00:02 php-fpm: pool www
95.6 - 0 R 00:06:10 /usr/bin/php /var/www/fusionpbx/app/event_guard/resources/service/event_guard.php
 
systemctl stop event_guard.service
systemctl start event_guard.service

This seems to happen when event_guard starts up to quickly and isnt able to connect to event socket.
Stopping the service and starting it again seems to fix it.
 
That seems to have worked. Thanks very much for the tip. Is there a way to check if "event_guard.service" is running?


%CPU CPU NI S TIME COMMAND
0.2 - 0 S 00:00:00 /usr/bin/php /var/www/fusionpbx/app/event_guard/resources/service/event_guard.php
0.3 - - S 00:00:44 /usr/bin/freeswitch -u www-data -g www-data -ncwait -nonat
 
systemctl status event_guard.service

I think the unit file needs: After=network.target network-online.target local-fs.target postgresql.service freeswitch.service
 
Hello hfoster and thank you for your response.
I'm not sure I understand what "I think the unit file needs: After=network.target network-online.target local-fs.target postgresql.service freeswitch.service" means.

I used:
"systemctl status event_guard.service" to verify if the service was active and

"systemctl list-units --type=service --state=running" to verify all active services.

The "event_guard.service" is now active.
 
Status
Not open for further replies.