httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] graceful restart
Date Mon, 14 Jul 2003 08:43:34 GMT
>-----Original Message-----
>From: Nigel Peck - MIS Web Design []
>I have been using "apachectl graceful" to restart httpd after 
>adding virtual hosts for some time. I just checked the memory 
>on the server and found too much memory being used (3M free). 
>I checked the running processes and found a lot of instances 
>of httpd running (approx 30).
>I did a graceful restart, there were still the same amount.
>I stopped the server, still the same amount (didn't count, 
>there were probably a few less, but still there with server stopped).
>I started the server and it seems like it tidied them up, 
>there are now 9 running and free memory is back to expected level.
>Is this the graceful restart leaving orphaned daemons or is 
>nothing wrong and I'm misunderstanding something?

Having 30 or so daemons is not unusual for a moderately busy server
(MaxClients, which controls this, is set for a 256 default). What do you
mean by too much memory? Obviously:

MaxClients x (footprint per daemon) < (system memory)

where "<" means "a fair bit less than (e.g. no more than 50-60%)"

If your worried about memory usage, you need to restrict the daemons by
downsizing MaxClients. If this causes your site to slow down or user to
get "Connection refused" then your site is too busy for the resources
you have so get more resources (memory, faster processor etc.)

About the graceful, if you have a look inside "apachectl" (it's just a
shell-script), you'll see that "graceful" executes a "kill -USR1" on the
parent apache process. This has the effect of causing each daemon to
reload the config file from disk to memory. This allows you to pick up
config changes without dropping active requests but the processes don't
exit so no memory will be released.

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>Apache: 1.3.27
>OS: RedHat Linux 7.3
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Swiss Exchange.
This e-mail is of a private and personal nature. It is not related to
the exchange or business activities of the SWX Swiss Exchange. Le
présent e-mail est un message privé et personnel, sans rapport avec
l'activité boursière de la SWX Swiss Exchange.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message