
On Tuesday, September 07, 2004 4:49 PM
Duarte Cordeiro
The problem is, as you can see, with the memory usage. Sorting the top output by mem usage, I can see that I have lots of httpd processes each with 20M of mem usage. Doing a ps auxww | grep httpd | wc I get 133 processes running.
Everything quite normal. The number of processes has to somewhat correlate with the number of agents. What you can do: a) Buy more RAM. b) Restrict the maximum amount of prefork childs: <IfModule prefork.c> StartServers 10 MinSpareServers 20 MaxSpareServers 40 MaxClients 120 MaxRequestsPerChild 400 </IfModule> c) Switch to another MPM, say 'worker': <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> d) Disable any module not needed, esp. mod_php4 e) Disable Apache::Reload in apache2-perl-startup.pl f) Buy more RAM. ;) g) Switch off mod_perl. Um, Bad idea - better buy more RAM. Es grüßt fröhlich Robert Kehl -- Ich habe zwei verschiedene Halbzeiten gesehen. Volker Finke