Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.