LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-22-2013, 03:14 AM   #1
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Rep: Reputation: Disabled
php-cgi huge cpu consumption in linux


Hi,
Running apache on centos server,
i am not able to browse my site due to huge cpu consumption,
Then i monitored cpu using top command,
Below is the output, php-cgi consuming huge cpu,

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21854 octane 19 0 212m 23m 8808 S 26.9 0.7 0:27.21 php-cgi
21782 octane 17 0 212m 23m 8808 S 24.6 0.7 0:34.30 php-cgi
21858 octane 16 0 212m 23m 8808 S 18.3 0.7 0:28.67 php-cgi
21749 octane 15 0 237m 41m 9312 R 14.0 1.2 0:42.54 php-cgi
21833 octane 18 0 212m 23m 8808 S 14.0 0.7 0:28.27 php-cgi
21850 octane 15 0 212m 23m 8808 S 12.3 0.7 0:20.85 php-cgi
21878 octane 18 0 212m 23m 8808 S 12.0 0.7 0:16.74 php-cgi
21757 octane 18 0 212m 23m 8808 S 11.0 0.7 0:41.46 php-cgi
21852 octane 16 0 211m 23m 8808 S 11.0 0.7 0:26.03 php-cgi
21533 octane 18 0 221m 32m 8808 R 10.6 0.9 1:57.95 php-cgi
21773 octane 18 0 212m 23m 8808 S 9.3 0.7 0:40.95 php-cgi
21653 octane 18 0 212m 23m 8808 S 3.0 0.7 1:14.30 php-cgi
16152 mysql 17 0 343m 61m 6960 S 1.0 1.7 0:38.89 mysqld

Thanks
Suresh

Last edited by suresh.k; 04-22-2013 at 06:14 AM.
 
Old 04-22-2013, 10:04 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,787

Rep: Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359
Quote:
Originally Posted by suresh.k View Post
Hi,
Running apache on centos server, i am not able to browse my site due to huge cpu consumption, Then i monitored cpu using top command, Below is the output, php-cgi consuming huge cpu,
Ok...so what do you think we can tell you from that?

Unless you post DETAILS, there's nothing we can help you with. You don't say what version of CentOS or Apache you're using, how many sites you're hosting, network speeds, number of users, type of website(s), etc. ANYTHING that would be relevant to diagnosing a problem on a web server. Basic diagnostics would be to see if there are any error(s) in the Apache or vlogger logs, and check the programs that PHP is running. Have you done ANY of that?
 
Old 04-22-2013, 08:41 PM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,047

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
Obviously, the probability of "a silly (in retrospect, o'course) programming bug" is pretty darned near 100%.

And no, I am not making fun of you. The very first program I ever wrote had a bug in it ... and so has every single one since then.

Give us more information, and we will all be pleased to try to help you.
 
Old 04-23-2013, 06:28 AM   #4
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
the issue was trozen attack, hosting people get resolved the issue,


Thanks
Suresh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU consumption - %usr and %sys ?? gomes1333 Linux - General 6 04-03-2010 05:13 AM
CPU Consumption yusufs Linux - Newbie 5 11-12-2007 12:17 AM
limit CPU consumption eantoranz Linux - Security 3 07-19-2005 08:32 PM
gnome: huge memory consumption s56vpe Linux - Newbie 5 01-18-2004 07:37 PM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration