You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard Underwood <ma...@duff.org> on 2003/04/07 13:49:49 UTC

[users@httpd] Apache 2.0, worker MPM, high load problems

Hi,

	I'm having problems with a busy site I have running on Apache 2.0.44
currently (hopefully it will be 2.0.45 by this evening.)

	I am having a number of problems/issues:

1 - I appear to have a memory leak. This isn't a huge problem as I
restart it hourly to rotate the logs. However, recently apache didn't
restart for six hours, and grew to about 650M before failing.

Depending on load, the memory usage grows from an an average of about
20M to 100M an hour.

2 - Recently, at a peak in load, apache died. There were thread creation
errors. I'm pretty sure this was to do with ulimits (too many threads)
but I'm not sure why me raising the limits aren't being honoured.

Does anyone have any advice about ensuring limits won't be too low? In
particular, if the limits are fine when the process starts, will an
"apachectl restart" run by cron ever cause the parent process to restart
with cron's limits?

3 - After restarting apache manually, the logs didn't rotate. apachectl
had lost control of apache. (This led to problem 1 causing a second
crash.)

This is particularly bad as log files have now been lost.

4 - Lastly, there seems to be very little good documentation about
tweaking the worker MPM - e.g. large numbers of threads vs. large
numbers of processes. Does anyone have any links or advice?

	My current worker configuration looks something like this:

ThreadLimit         32
ServerLimit        128
StartServers         4
MaxClients        4096
MinSpareThreads    128
MaxSpareThreads    256
ThreadsPerChild     32
MaxRequestsPerChild  100000
MaxMemFree       32768

	The server idles at about 200 threads in use, and averages 800 threads
in use at about 20% CPU load. The last two lines completely failed to
deal with the memory leak.

	Thanks,

		Richard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org