{"id":338,"date":"2012-01-18T13:49:13","date_gmt":"2012-01-18T18:49:13","guid":{"rendered":"http:\/\/littlesvr.ca\/grumble\/?p=338"},"modified":"2012-12-05T00:49:57","modified_gmt":"2012-12-05T05:49:57","slug":"beat-my-uptime-3-years","status":"publish","type":"post","link":"http:\/\/littlesvr.ca\/grumble\/2012\/01\/18\/beat-my-uptime-3-years\/","title":{"rendered":"Beat my uptime: 3 years!"},"content":{"rendered":"<blockquote>\n<pre>andrew@littlesvr:~$ uptime\r\n13:26:34 up 1104 days, 10:14,\u00a0 4 users,\u00a0 load average: 0.61, 0.31, 0.21<\/pre>\n<\/blockquote>\n<p>I guess 1100 days doesn&#8217;t sound like a lot but 3 years does :)<\/p>\n<p>It&#8217;s still the <a href=\"http:\/\/littlesvr.ca\/grumble\/2007\/09\/18\/cool-quiet-and-reasonably-priced-server\/\">same machine<\/a> I <a href=\"http:\/\/littlesvr.ca\/grumble\/2011\/01\/09\/two-years-of-uptime\/\">mentioned a year ago<\/a>. It&#8217;s been running and running and running, and not crashing!<\/p>\n<p>Theoretically 3 years is not a lot, but in the real world such uptime requires a combination of luck, great software, and good hardware. A power failure will kill it. A kernel update will kill it. A kernel that can&#8217;t handle the load will kill it. An admin who doesn&#8217;t know how to upgrade or restart services without a reboot will kill it. A bad fan will kill it. And mine is still up :)<\/p>\n<p>Even cdot, which is running Slackware 9 (littlesvr is running 12.2) has only been up for 208 days today though I&#8217;m guessing it&#8217;s sitting in a real server room and has real admins taking care of it.<\/p>\n<p>Yesterday (this was after the 3 year mark) I thought my server was finally about to die. When I realised what was going on there were 115 httpd processes running, I had 25MB of physical memory and 36MB of swap space left. Sendmail fell over, refusing to work with a load average over 15 (it got to 44). Sshd stopped accepting connections. imapd could barely serve requests. Interestingly Apache still worked.<\/p>\n<p>I tailed the apache logs (this took me a half an hour, working entirely off swap is very slow) and saw nothing unusual. I have no idea what got into it, why the suicidal behaviour. In the logs there were only the typical 2-3 requests and 2-3 errors per minute. I tried to run apachectl status but that was taking too long. So I did the obvious, apachectl stop. After 5-10 minutes the harddrive light stopped blinking, and littlesvr breathed a sigh of relief.<\/p>\n<p>As for me &#8211; I&#8217;m not really sure that I cared if it died. 3 years is a lot, I&#8217;m starting to get itchy to upgrade software (though it works perfectly fine) and to upgrade the hardware (512MB of RAM is too little). Even during normal operations I&#8217;m using almost all my RAM, and hopefully the load will be heavier in the future.<\/p>\n<p>Maybe when the next Slackware comes out I&#8217;ll decide whether today&#8217;s 13.37 is a stable enough version for the long term.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>andrew@littlesvr:~$ uptime 13:26:34 up 1104 days, 10:14,\u00a0 4 users,\u00a0 load average: 0.61, 0.31, 0.21 I guess 1100 days doesn&#8217;t sound like a lot but 3 years does :) It&#8217;s still the same machine I mentioned a year ago. It&#8217;s been running and running and running, and not crashing! Theoretically 3 years is not a lot, &hellip; <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-andrew","4":"post-338","6":"format-standard","7":"category-opensource","8":"category-safeforseneca"},"_links":{"self":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":3,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":340,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/posts\/338\/revisions\/340"}],"wp:attachment":[{"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/littlesvr.ca\/grumble\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}