Panic Attack: Restarting Apache Forcefully [Webmaster Tips]
Posted By Keith Dsouza On August 2, 2008 @ 6:04 am In Webmaster Tips | No Comments
There may be several webmasters who host their sites / blogs using either a VPS or dedicated hosting. With such kind of a setup you may not only get better performance, but may also have to deal with several headaches of maintaining the servers yourself.
Traffic spikes to your websites can send the Apache server into a frenzy locking down system resources. In such cases webmasters simply reboot their servers to overcome this issue, but there is a much more easier and graceful (at least better than reboot) way to recover system resources by using a simple tip.
If you can SSH into your server, you can easily recover from the traffic spikes without having to reboot the server. To do that follow the simple steps listed below.
These four steps can save you the hassle of having to reboot every time you get traffic spikes, at times though gaining remote access to a server may not be possible and you may have to reboot the servers, but when you do have SSH access follow the steps listed above to do a (un)graceful restart of apache.
I am in the process of writing a shell script that will automatically restart apache, once it crosses a memory threshold, will share the script once its completed.
User Feedback: Are we not covering the topics you like? Are we writing something you don’t like? Do give us you feedback by using the contact us [1] form, we will definitely try to improve on our shortcomings.
Article printed from Techie Buzz: http://techie-buzz.com
URL to article: http://techie-buzz.com/webmaster-tips/restarting-apache-forecfully-in-linux.html
URLs in this post:
[1] contact us: http://techie-buzz.com/contact-us/
[2] webmaster tips: http://technorati.com/tags/webmaster+tips
[3] reboot apache: http://technorati.com/tags/reboot+apache
[4] apache reboot: http://technorati.com/tags/apache+reboot
[5] killall apache: http://technorati.com/tags/killall+apache
[6] manage apache: http://technorati.com/tags/manage+apache
Click here to print.
Copyright © 2006-20011 Techie Buzz. All rights reserved.