
a) Buy more RAM.
The server has 6GB Ram, and the VM 400MB. I can easily ask for a increment on the VM, but how am I going to explain to the admins, that this webserver, serving 100 users (not concurrent users) needs more than 400MB of ram (only for running apache)?
b) Restrict the maximum amount of prefork childs: <IfModule prefork.c> StartServers 10 MinSpareServers 20 MaxSpareServers 40 MaxClients 120 MaxRequestsPerChild 400 </IfModule>
Done
c) Switch to another MPM, say 'worker': <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
I have both sections uncommented. How do I know which MPM is being used?
d) Disable any module not needed, esp. mod_php4 don't have any line with LoadModule mod_php4 or similar.
e) Disable Apache::Reload in apache2-perl-startup.pl that line doesn't exists in my file:
#use Apache (); #use Apache::DBI (); #Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'some-pass'); use DBI (); use DBD::mysql (); Thanks for your help. I've changed the number of max requests per child, and I'm waiting to see if it lags again :)