Power Off Server Once In a While?

From my mailbag:

I turn off the PC at home or the office once in a while. Now, I’ve server at colocation center. Do we need to run server 24/7? I do reboot the server once a month. Is it advisable to completely power off a server once in a while instead of 24/7 running?

Short answer – no.

A UNIX / Windows server should be online 24/7 to serve http requests, sale product and services or simply collect emails. Most servers are build to operate 24/7 for years. There is no need to power it off once in a while. You need to powerdown server only if:

  1. Hardware replacement (replace NIC or hard disk or power supply)
  2. Hardware upgrade (upgrade CPU or RAM)
  3. Testing

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 11 comments so far... add one
CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
11 comments… add one
  • Bilal Oct 12, 2008 @ 10:22

    Normally you don’t need to restart, only if you start to have some problems and same errors.

    But if you don’t have production server you can restart it after 3 months with a force fsck.

  • Colin Oct 12, 2008 @ 12:04

    While I agree with most of what is said above. There are circumstances where I have found through experience that a good power cycle will do wonders.
    First things first. On a windows box a power cycle is almost mandated on a monthly basis. That is why I use Linux.

    Even then I find in practise that if you are serving up applications that do memory leak or you just find you box getting cramped up with dead processes. I find no problem with adding a line to cron
    0 0 * * 0 /sbin/shutdown -r now #(adjust to your system)

    This naturally assumes that your server is not 24/7

  • Miker Oct 12, 2008 @ 16:01

    I think this is really a matter of opinion and probably more determined by the application.

    We have hosts running nameservers and standard web servers (all internal – not internet exposed) that have been up for 3+ years and show no need for a reboot, although the apps themselves have been restarted. We also have boxes that run incredibly memory intensive cgi scripts that don’t make it that long. To be honest, its usually because of some type of network event or hung mount while running near the limits of memory that ends up necessitating a reboot. Even memory leaking apps can often be cleaned up after – don’t forget to check orphaned shared memory segments and semaphores after the process is killed.

    Personally, I would only reboot in the case of a kernel upgrade or patch cluster that required it. I would never power down a server that is truly depended upon unless required to do so. I’ve seen more than one instance of disks that hadn’t stopped spinning in 5 years, but power them down long enough to cool off and they won’t spin back up.

  • Akshay Oct 12, 2008 @ 17:59

    As said it depends upon the applications..many severs all over the world are running continuously over years…

  • ashu Oct 13, 2008 @ 1:47

    most the production servers comes with the capblity of hot swapping like hot-swappable hard-drives power-supply etc. then u dont needto restart urs erver at all and what about planning man.. plan for future and u wont need hardware upgrade at all also u can use clusetring too

  • shawn Oct 13, 2008 @ 15:22

    there was an interesting article online (can’t remember the reference) about powering down unneeded servers to “green” up your datacenter. the idea that an underutilized server sits, idle, consuming energy is troublesome.

    a simple fact is it is fine to power down a server if you want; especially if a) you want to conserve power and b) that server is idle more than peak.

    virtualization makes this even easier to accommodate. if you’re running a high availability environment (e.g. vmware with vmotion) then you can simply power off nodes in your cluster to save power and still provide all your services. if you begin peaking a lot, power up another node to provide additional resources.

    personally, i think “24/7” is nothing but sales/marketing rhetoric and has little to do with technical constraints. power up, power down, reboot, etc…the server will be fine (unless something is already wrong with it, in which case a power cycle can identify problems).

  • Bunty Oct 13, 2008 @ 17:18

    this is the latest kernel which I want.

  • majickmann Oct 13, 2008 @ 18:48

    The correct response is: “It depends…”

    It depends on several factors, the most common being the application.

    As a rule, we reboot Windows monthly. The Unix servers are rebooted from 90 days to annually, depending on the application and patch requirements.

    If you know your server(s), then you know better than anyone else.

    Just my nickels’ worth…


  • Tom Oct 16, 2008 @ 21:05

    It depends. As a Unix admin, I will almost never power off my unix systems for the reasons above.

    Usually, I will not reboot either. Except when dealing with:
    – zombie processes (unkillable processes)
    – memory leaks
    – swapping (a reboot might be faster then waiting for the memory load to go down)

    I’ve been at places that rebooted the firewalls once a week. That would drop all network connections which is not a bad thing.

  • Nahum Oct 23, 2008 @ 4:48

    Power off a server? what for?

    I am running dozens of servers and rebooting them only when i install a new kernel.

    One of my favorite servers is an IBM x330 machine (2xPIII, 2GB, 2x36GB) installed with Fedora Core 2 that gets no updates for at least 3-4 years. This server is on since 1999 (or 2000?) without being off for a single day. Now that it does not get any updates, i restarts it once a year…

  • Leslie Satenstein Nov 1, 2008 @ 12:45

    I power the servers off monthly. Since the dust that accumulates affects cooling, Once off, I wash / change filters, and I use a vacuum and toothbrush together to clean the cooling fins on the Intel processors. I also clear the dust of the fan vanes. Otherwise there is no need to perform a poweroff or reboot.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum