Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How long can a 12.04 Server 64bit stay up?

  1. #1
    Join Date
    Jun 2012
    Beans
    87

    How long can a 12.04 Server 64bit stay up?

    Hi guys,

    I have my 12.04 64-bit server running on a i-5 proc and 4gb ram for a month now and i'm just wondering, can it stay up as long as i wanted it to or it needed to be shutdown once in a while? is there any maintenance required? because all i know is to apt-get update manually and i have a doubt on doing a apt-get upgrade... and i know its not a big issue but i just noticed that whenever i log in via putty, my memory rise upto 15% now, but when i hit top everything is normal....

    due that i had it running now for fileserver and printer server and in the coming months, i will include a web server, mail server and FTP server within it.

    thanks in advance...

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How long can a 12.04 Server 64bit stay up?

    It can stay up as long as you want. However, it is a good idea to run updates once a week or once a month unless you have it set to automatically install security updates.

    The only time I reboot my server is to boot into a new kernel, or another update that is flagged as "restart required." Here's the current uptime of my 12.04 box (which was installed when 12.04 was released):

    Code:
         #               Uptime | System                                     Boot up
    ----------------------------+---------------------------------------------------
         1    20 days, 07:08:27 | Linux 3.2.0-29-generic    Fri Aug 10 07:20:09 2012
         2    18 days, 22:27:01 | Linux 3.2.0-26-generic    Wed Jul  4 09:57:42 2012
         3    18 days, 21:22:01 | Linux 3.2.0-24-generic    Sat May 26 15:19:01 2012
         4    18 days, 20:13:03 | Linux 3.2.0-24-generic    Thu May  3 10:48:22 2012
         5    15 days, 23:55:08 | Linux 3.2.0-27-generic    Wed Jul 25 06:49:11 2012
         6    15 days, 09:01:05 | Linux 3.2.0-30-generic    Wed Sep  5 22:00:38 2012
         7    15 days, 00:13:54 | Linux 3.2.0-25-generic    Thu Jun 14 12:41:52 2012
    ->   8     9 days, 23:09:20 | Linux 3.2.0-30-generic    Fri Sep 21 07:02:34 2012
         9     6 days, 07:08:01 | Linux 3.2.0-29-generic    Thu Aug 30 14:29:27 2012
        10     4 days, 21:00:16 | Linux 3.2.0-26-generic    Fri Jun 29 12:56:35 2012
    ----------------------------+---------------------------------------------------
    1up in     5 days, 01:04:35 | at                        Sat Oct  6 07:16:27 2012
    no1 in    10 days, 07:59:08 | at                        Thu Oct 11 14:11:00 2012
        up   155 days, 10:15:54 | since                     Sat Apr 28 19:41:15 2012
      down     0 days, 00:14:45 | since                     Sat Apr 28 19:41:15 2012
       %up               99.993 | since                     Sat Apr 28 19:41:15 2012
    Do you plan are having this server accessible from the internet? If so, I would recommend against running ftp on it, and use sftp (via ssh) instead.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,690
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How long can a 12.04 Server 64bit stay up?

    The server by itself can stay up without a reboot for a very long time. It is usually due to application performance and memory leaks that may require a reboot more often. A file server can remain up for a very long time, a Minecraft server on the other hand will require a reboot almost on a daily basis.

    As you know, there are updates to the OS which require reboots to complete so you have to weigh the risks of not applying security patches when they are released.

    I use Nagios to monitor all my servers and it lets me know when there are updates. I then upgrade my test servers and then production. Reboots are very fast and can be scheduled at off-peak hours so I typically don't care about having a long-running uptime number. It is more important to me to keep my systems updated and running at optimum performance.

    LHammonds

  4. #4
    Join Date
    May 2007
    Beans
    2,342

    Re: How long can a 12.04 Server 64bit stay up?

    Hi,

    I only ever reboot my backend server when it says a reboot is required on login.

    I have afew boxes that aren't connected to the internet and they have an uptime of almost 500days. So a linux box can have very high uptimes. In windows the uptime counter doesn't even go past 56 days

    Regards
    Ian Dobson
    Last edited by ian dobson; October 1st, 2012 at 07:09 PM. Reason: Oh sorry windows only goes up to 49.7 days before wrapping
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

  5. #5
    Join Date
    Jun 2012
    Beans
    87

    Re: How long can a 12.04 Server 64bit stay up?

    Hi,

    so is "apt-get update" enough for now or do i need to do "apt-get upgrade"? coz its set for manual update and im still studying on a security that i will add...

    Thanks for the advise guys..

  6. #6
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,690
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How long can a 12.04 Server 64bit stay up?

    I don't think apt-get update will do anything other than refresh what the currently available packages are available to be updated. It is kinda like opening WindowsUpdate on a Windows PC and closing it without installing anything.

    The "apt-get update" command is what I do just before the "apt-get safe-upgrade" command.

  7. #7
    Join Date
    Jun 2006
    Location
    Houston, TX
    Beans
    1,333
    Distro
    Ubuntu 6.06

    Re: How long can a 12.04 Server 64bit stay up?

    Refresh the repository lists and see what is new.

    Code:
    sudo apt-get update
    Run a basic upgrade.

    Code:
    sudo apt-get upgrade
    Run an upgrade that requires changing packages. (Partial upgrade in Update Manager)

    Code:
    sudo apt-get dist-upgrade
    You need all three to stay current.

    As to the question, I went to a client one time and we had to track down a "service" that no one knew where it was. Turns out there was a Linux machine in an old closet under at least 50 pounds of cable. Uptime was over 6 years. Also last update!

    But I am a fan of rebooting servers whenever I can. That way I know they will come up when the reboot unexpectedly!

  8. #8
    Join Date
    Jun 2012
    Beans
    87

    Re: How long can a 12.04 Server 64bit stay up?

    im just afraid to upgrade my system due that it might have different configurations and some incompatibilities...

  9. #9
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: How long can a 12.04 Server 64bit stay up?

    Upgrades won't change your configurations. They will simply replace the current software with its more recent versions.

    You should always take security updates, especially if you have Internet-facing services like mail or HTTP. One way to limit the upgrades to just security ones is to comment out all the lines in /etc/apt/sources.list with the exceptions of the entries that point to security.ubuntu.com. Then run "sudo apt-get update; sudo apt-get upgrade".

    Another approach is to run a parallel server, perhaps in a VirtualBox VM on your desktop. Configure the VM to be the same as your actual server. The simplest method to do this is to install 12.04 into the VM, then use rsync to make the VM copy a clone of the actual one. Then run the updates on the VM server and see if they cause any problems. If not, then you can run them on the real server as well.
    Last edited by SeijiSensei; October 3rd, 2012 at 11:13 AM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  10. #10
    Join Date
    Jun 2012
    Beans
    87

    Re: How long can a 12.04 Server 64bit stay up?

    what i usually do is im trying it 1st at my ubuntu 12.04 desktop before deploying it in the 12.04 server... although desktop and server are way different, i still think that the effect are somehow the same. (and hope what i thought was right)

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •