httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Peck - MIS Web Design" <ni...@miswebdesign.com>
Subject RE: [users@httpd] graceful restart
Date Tue, 15 Jul 2003 13:30:58 GMT
I probably didn't wait long enough.

Too hasty, treebeard would be disgusted :)

Cheers,
Nigel

> -----Original Message-----
> From: Boyle Owen [mailto:Owen.Boyle@swx.com]
> Sent: 15 July 2003 07:54
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] graceful restart
> 
> 
> >-----Original Message-----
> >From: Nigel Peck - MIS Web Design [mailto:nigel@miswebdesign.com]
> >
> >The thing that also bothered me was that when I did an 
> >"apachectl stop" the processes were still there.
> 
> That's odd... "apachectl stop" kills the parent process and so 
> all the children are supposed to die too. Check your process ids, 
> do "ps -ef | grep httpd". The pid of each daemon is in column2 
> and the pid of the parent is in col3. Check that each daemon has 
> the same parent pid. Check that this is the same pid that apache 
> started with (the parent process id is stored in logs/httpd.pid).
> 
> When you stop apache, how long are you waiting for the process 
> table to clear? (you need to wait more than a few seconds...)
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> >
> >When I started httpd again there was a normal amount again (< 20).
> >
> >It might have just been me not fully understanding what I was 
> >doing (I got hold of the O'Reilly Apache book the other day so 
> >my understanding is improving).
> >
> >Cheers,
> >Nigel
> >
> >> -----Original Message-----
> >> From: Boyle Owen [mailto:Owen.Boyle@swx.com]
> >> Sent: 14 July 2003 09:44
> >> To: users@httpd.apache.org
> >> Subject: RE: [users@httpd] graceful restart
> >> 
> >> 
> >> >-----Original Message-----
> >> >From: Nigel Peck - MIS Web Design [mailto:nigel@miswebdesign.com]
> >> >
> >> >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.
> >> 
> >> Rgds,
> >> Owen Boyle
> >> Disclaimer: Any disclaimer attached to this message may be ignored. 
> >> 
> >> >
> >> >Apache: 1.3.27
> >> >OS: RedHat Linux 7.3
> >> >
> >> >TIA
> >> >
> >> >Nigel
> >> >
> >> >
> >> >
> >> 
> >>---------------------------------------------------------------------
> >> >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
> >> >
> >> >
> >> 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: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
> >> 
> >
> >
> >---------------------------------------------------------------------
> >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
> >
> >
> 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. 
> 
> 
> ---------------------------------------------------------------------
> 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
> 


---------------------------------------------------------------------
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


Mime
View raw message