OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: loganx1121 on November 03, 2020, 01:22:37 am

Title: PHP keeps spiking my CPU?
Post by: loganx1121 on November 03, 2020, 01:22:37 am
So I did the latest update and since then I've had issues.  I did the update, then turned suricata on, and it kept killing my WAN link once a day, so ok, turned that back off, but now my firewall CPU keeps spiking.  If I look at top I see "php" and "php-cgi" keep spiking and hitting like 97%.

I reset the logs on the firewall, manually deleted all the suricata directories I could find, just stuff I found from trying to research this, but it's still doing it.  Anyone have any ideas?  My CPU graph in my network monitor used to idle at almost nothing and now it looks like a saw graph.  The web UI is lagging and downloads are painfully slow. 
Title: Re: PHP keeps spiking my CPU?
Post by: analys1sman on November 03, 2020, 09:53:36 am
In my case, flowd_aggregate.py or php-cgi was not a culprit, as it showed by the top command. I disabled IPv6, and it dropped CPU utilization from 90-100% to less than 10%.

Please find the following details.
https://www.analysisman.com/2020/10/opnsense-highcpu.html

Hope this helps!
Title: Re: PHP keeps spiking my CPU?
Post by: loganx1121 on November 03, 2020, 01:26:44 pm
Yeah I saw your post and tried that.  Didn't work for me.  I restored from a backup and then re-imported some of my setting from a more recent backup and now it seems fine.

Mental note: Don't enable suricata like ever.  Everything was fine until I turned that on.