Hello!
Народ, спасайте!
Dual P3 1GHz, RAM 1Gb, Swap 1Gb
RedHat 7.3 kernel 2.4.18
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
Apache/1.3.27 (Unix) mod_fastcgi/2.2.12 mod_deflate/1.0.16 PHP/4.3.0
rus/PL30.16
Нагрузка на апач порядка 2млн запросов в сутки
Mysql Ver 11.18 Distrib 3.23.54, for pc-linux (i686)
Mysql status:
UNIX socket: /tmp/mysql.sock
Uptime: 9 min 26 sec
Threads: 11 Questions: 39688 Slow queries: 26 Opens: 153 Flush tables: 2
Open tables: 94 Queries per second avg: 70.120
Проблема в том, что через 20 мин
top:
Mem: 905452K av, 900544K used, 4908K free, 0K shrd, 17000K buff
Swap: 1012052K av, 58840K used, 953212K free 178136K cached
ps -uxaw | grep http | wc -l
681
Размер процессов по 9 метров.
Через сутки в свопе уже за 100 метров
Привожу свой конфиг. Может будут предложения по оптимизации
GEOActive On
GEOTable /usr/src/www/apache_mod/mod_geo-1.3.0/ipranges.2002-01-10
DeflateEnable on
DeflateDisableRange "MSIE 4."
DeflateHTTP 1.0
DeflateProxied on
DeflateMinLength 1024
DeflateCompLevel 5
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
FastCgiConfig -MaxProcesses 200
</IfModule>
ServerType standalone
ServerRoot "/usr/local/apache"
PidFile /usr/local/apache/logs/httpd.pid
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
Timeout 180
KeepAlive On
KeepAliveTimeout 15
MaxKeepAliveRequests 50
MinSpareServers 16
MaxSpareServers 64
StartServers 30
MaxClients 700
MaxRequestsPerChild 300
С уважением
Алексей
=============================================================================
= Apache-Talk@lists.lexa.ru mailing list =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =