High CPU load on Debian Etch + Suhosin

Discussion in 'Server Operation' started by gaspiman, Aug 21, 2007.

  1. gaspiman

    gaspiman New Member

    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.
     
  2. gaspiman

    gaspiman New Member

    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.
     

Share This Page