ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Копятся процессы apache


  • To: nginx-ru@xxxxxxxxx
  • Subject: Копятся процессы apache
  • From: Алексей <systeamx@xxxxxxxxx>
  • Date: Wed, 20 May 2009 02:36:26 +0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=CxJouo+AbIDzPRUNR1Bf06rPScVFwVyWjf8bh9HvpoM=; b=Hn7PfNyX5aSGK7+vVTMPaIXsTrwa16Ga7/ydkhmW5Na7AjI5pIJlF+p5g9nKfjSYpA mo5IU+/ltHQRU+FdXjvtEY6ebA0PUxPZJCx8f8sfjTn+N/q2w0wq587a6CVws7zFxDQT xSAfyistG4A9bqfU4bOX7fpPjBQmHMfpUpsAw=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=RUjIoELcUCtr+MGrjhQRiL/dmaK3eN15Tvi0PN8PrWoI5btazN6Pnf21pFInuVHP4J XB19orry/1zMhEWhrwEkyTXATUlKm3/Ztgb/kLJlktvw2bI1JJHItMcCYV73X2kOZgXH EFl4chlEhUMjrRF0qO0PfixiH4Wlmhj97eRVs=

Здравствуйте!

Сервер работает в связке nginx+apache (mod_php).
На сервере предоставляется хостинг поэтому довольно много сайтов - 300-600.

В течении дня возникают ситуации когда копятся большое кол-во
процессов апача, которые естественно провоцируют рост LA иногда сразу
до 20-30.
После перезапуска апача всё встаёт на свои места, но не сильно
надолго. Причём с виду ничего особенного - идут стандартные запросы...

Подскажите пожалуйста, что можно предпринять чтобы предотвратить рост
процессов - возможно ли как-то ограничить нагрузку на CPU, или сделать
настройки в самом апаче от этого? Возможно ли тут влияние настроек
nginx?
Вот типичный список процессов во время перегрузки:

===================================
 %CPU CPU  NI S     TIME COMMAND
 0.1   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.1   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 D 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 D 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:19 nginx: worker process
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.2   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:20 nginx: worker process
 0.3   -   0 D 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 D 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 D 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.3   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.4   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.4   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.4   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.4   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.4   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.4   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.5   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.5   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.5   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.5   -   0 S 00:00:00 /usr/local/apache/bin/httpd -k start
 0.5   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.6   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.6   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.7   -   0 S 00:00:01 /usr/local/apache/bin/httpd -k start
 0.7   -   0 S 00:00:02 /usr/local/apache/bin/httpd -k start
 1.2   -   0 S 00:00:03 /usr/local/apache/bin/httpd -k start
 1.4   -   0 S 00:00:04 /usr/local/apache/bin/httpd -k start
===================================


 




Copyright © Lexa Software, 1996-2009.