HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Optmizing Apache and php-cgi for CPU Usage (http://www.howtoforge.com/forums/showthread.php?t=61255)

alleks 2nd April 2013 05:21

Optmizing Apache and php-cgi for CPU Usage
 
I'm having a huge problem with a server where I run 2 wp blogs.

The problem is that sometimes my cpu goes sky rocking high, and just don't know what else todo. I've configured APC, huge difference, reduced Timeouts on Apache and MySQL tuning, but now I have to find a method to optimize the CPU usage.

And some times this is the output I get in the error log files for the sites:
Code:

mod_fcgid: can't apply process slot for /var/www/php-fcg
i-scripts/web2/.php-fcgi-starter

and this in my apache2/error.log file

Code:

[error] mod_fcgid: process /var/www/php-fcgi-scripts/web2/.php-fcgi-starter(31462) exit(communication error), get unexpected signal 7
So, what do you recommend me to try and lower my cpu usage and keep serving content to users. I have a VPS from 1and1 (I kinda repent know for the decision) with 1cpu and 2gb ram, and planning to get another cpu... but I don't like the way they changed the prices.

falko 5th April 2013 00:02

Use PHP-FPM in ondemand mode instead of FastCGI.

alleks 5th April 2013 13:42

I'm using Ubuntu distribution Falko. And don't have php-fpm configured.

Any alternatives?

I asked a question related to this at http://serverfault.com/questions/496...overload-limit

falko 8th April 2013 18:56

http://www.howtoforge.com/using-php5...n-ubuntu-12.10

alleks 8th April 2013 19:11

Quote:

Originally Posted by falko (Post 295522)

Already saw it, but I was trying to figure it out, before actually going to configure php-fpm

But thank you very much for the reminder


All times are GMT +2. The time now is 17:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.