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)
-   -   High CPU load on Debian Etch + Suhosin (http://www.howtoforge.com/forums/showthread.php?t=14950)

gaspiman 21st August 2007 16:57

High CPU load on Debian Etch + Suhosin
 
Hi Falko,

I want to report a very annoying bug. We have lost one day to figure it out. Form time to time when calling a simple php script (ex. phpinfo();) the CPU on our server hits 100% caused by apache2.

After the apache server is restarted, everything is back to normal for a period of time (20min to 1 hour). Then again calling the small php script the CPU is at 100% - apache2 is taking 100%.

So after investigating and testing different setups we have found out that this problem is caused by SUHOSIN - installed based on the tutorial in How to forge.

Apparently we are not the only ones. http://forum.hardened-php.net/viewtopic.php?id=283

Removing SUHOSIN fixed the issue immediately. Here is our setup:

Debian Etch/ Apache 2.2.3 / PHP 5.2 / CPU Dual Core2 1,3 GHz / 2 GB Ram / 2x320GB HDD/

Hope this info is helpful.

gaspiman 22nd August 2007 12:07

Ok - it wasn't Suhosin's fault.

After a while the problem showed up again. The CPU skyrocketed every time a PHP script was called.

What we did: We disabled all unneeded Apache modules and the same with the PHP extensions. We also removed Memcached.

For now everything is fine and the CPU is at 0 - 1,2 % which is perfect. We still have no idea what was wrong.

Once we have a clue, I'll post an update.

Hope this is helpful.


All times are GMT +2. The time now is 20:50.

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