Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: johnpaul2k2 on February 05, 2017, 03:11:26 AM

Title: My dedicated Server php-cgi is 440% and none of my websites are working
Post by: johnpaul2k2 on February 05, 2017, 03:11:26 AM
Please this is about my dedicated server that contain all my websites

hello,

3 days ago i got an alert my websites are not working due to crazy php-cgi consumption, so i use pinguzo (under webuzo) to check. the problem is i don't know how to detect the actually files going this madness but php-cgi takes 440% as against 100%. please what will i do.

i don't know if i am under attack because i once gave someone my details that result to this but all i want is to remove this.

i have run **killall php-cgi**  but it keeps restarting again about few minutes and hang my server. and i need to inform my host to shut down apache, so i can login and try again. please, all my website are down and this is not good for me and my business.

as for my host, they will not do much because i am on self-managed, i didn't buy it intentionally but because of her promo and her space but it is good to always learn something new

please help me

server info ( using to pinguzo)
IPv6    fe80::219:b9ff:fef8:f2d7
OS    CentOS Linux release 7.3.1611 (Core) x86_64
CPU    Intel(R) Xeon(R) CPU X3210
Cores    4 x 2133 MHz
CPU Usage    0.00 %
RAM    4342 MB / 7823 MB
Load    199.45, 184.78, 198.72
Uptime    5.01 Hours
Interface    enp3s0
Kernel    3.10.0-514.2.2.el7.x86_64
Last Update    1.52 Minutes
Status    [Online] Online
Agent    0.8.0
Title: Re: My dedicated Server php-cgi is 440% and none of my websites are working
Post by: Kindred on February 05, 2017, 07:27:54 AM
What are you running on the server, aside from SMF?

what version of SMF?
What mods?
Title: Re: My dedicated Server php-cgi is 440% and none of my websites are working
Post by: LiroyvH on February 05, 2017, 07:30:07 AM
Check apache's full status, it ought to show you which requests are being made and processed.
And yes of course PHP processes will relaunch... That's expected behaviour.

"i don't know if i am under attack because i once gave someone my details that result to this"

What...? So tell them to undo what they did?
Poor coding can result in insane CPU usage, but so can fun stuff like spam scripts.
And of course simply a high visitor count can. (Bot or normal user.)


"please, all my website are down and this is not good for me and my business."

If it's business and you're in a big hurry to get it sorted: pay someone to fix it. It's that simple.
Title: Re: My dedicated Server php-cgi is 440% and none of my websites are working
Post by: johnpaul2k2 on February 05, 2017, 08:34:45 AM
Quote from: CoreISP on February 05, 2017, 07:30:07 AM
Check apache's full status, it ought to show you which requests are being made and processed.
And yes of course PHP processes will relaunch... That's expected behaviour.

"i don't know if i am under attack because i once gave someone my details that result to this"

What...? So tell them to undo what they did?
Poor coding can result in insane CPU usage, but so can fun stuff like spam scripts.
And of course simply a high visitor count can. (Bot or normal user.)


"please, all my website are down and this is not good for me and my business."

If it's business and you're in a big hurry to get it sorted: pay someone to fix it. It's that simple.

Please can you help me look into it?
Title: Re: My dedicated Server php-cgi is 440% and none of my websites are working
Post by: LiroyvH on February 05, 2017, 01:45:59 PM
I'm trying, did you look at the first suggestion I made as starting point?
Basics are to determine what it's doing and/or where it's coming from.

Also the info Kindred requested can be important.