Questions tagged [uptime]

uptime is a Unix command which tells how long the system has been running.

Note: Please use for questions relating to the remote monitoring tool Uptime.

157 questions
102
votes
4 answers

Erlang's 99.9999999% (nine nines) reliability

Erlang was reported to have been used in production systems for over 20 years with an uptime percentage of 99.9999999%. I did the math as the following: 20*365.25*24*60*60*(1 - 0.999999999) == 0.631 s That means the system only has less than one…
Ning
  • 2,710
  • 2
  • 13
  • 21
60
votes
10 answers

Retrieve system uptime using C#

Is there a simple way to get a system's uptime using C#?
ProgrammingPope
  • 2,047
  • 4
  • 22
  • 35
52
votes
5 answers

Web App: High Availability / How to prevent a single point of failure?

Can someone explain to me how high-availability ("HA") works for a web application ... because I assume HA means that there exist no single-point-of-failure. However, even if a load balancer is used- isn't that the single point of failure?
nickb
  • 8,430
  • 11
  • 34
  • 46
47
votes
6 answers

Getting iOS system uptime, that doesn't pause when asleep

I'm looking for a way to get an absolute, always-incrementing system uptime on iOS. It should return the time since the device was last rebooted, and not be affected by changes to the system date. All the methods I can find either pause when the…
Russell Quinn
  • 1,290
  • 1
  • 11
  • 14
37
votes
6 answers

How to retrieve the process start time (or uptime) in python

How to retrieve the process start time (or uptime) in python in Linux? I only know, I can call "ps -p my_process_id -f" and then parse the output. But it is not cool.
stanleyxu2005
  • 7,741
  • 10
  • 54
  • 86
34
votes
2 answers

Why does HTOP show exclamation mark next to uptime

Here is the screenshot What does the (!) means next to the uptime ?
Alucard
  • 1,486
  • 1
  • 18
  • 30
34
votes
7 answers

Hot deploy on Heroku with no downtime

A bad side of pushing to Heroku is that I must push the code (and the server restarts automatically) before running my db migrations. This can obviously cause some 500 errors on users navigating the website having the new code without the new…
zetarun
  • 757
  • 1
  • 7
  • 13
32
votes
5 answers

What API do I call to get the system uptime?

I would like to get the system uptime from within a C application running on a linux-based system. I don't want to call uptime(1) and parse the output, I'd like to call the underlying C API I suspect exists. Anyone know if there is such a call, or…
Stéphane
  • 17,613
  • 22
  • 82
  • 117
14
votes
8 answers

Bash format uptime to show days, hours, minutes

I'm using uptime in bash in order to get the current runtime of the machine. I need to grab the time and display a format like 2 days, 12 hours, 23 minutes.
user1799031
  • 163
  • 1
  • 1
  • 7
13
votes
4 answers

How to use GNU make --max-load on a multicore Linux machine?

From the documentation for GNU make: http://www.gnu.org/software/make/manual/make.html#Parallel When the system is heavily loaded, you will probably want to run fewer jobs than when it is lightly loaded. You can use the ‘-l’ option to tell make…
Daniel
  • 1,633
  • 1
  • 15
  • 22
12
votes
7 answers

OSX: programmatically get uptime?

Something similar to linux cat /proc/uptime which returns the uptime in seconds, and preferably not parsing uptime(1).
Mark Harrison
  • 267,774
  • 112
  • 308
  • 434
10
votes
3 answers

can you fake *nix uptime?

Just curious, Can you fake an uptime, for instance increase it to 10 years? I have tried changing system time, and it won't do this trick.
c2h2
  • 10,367
  • 13
  • 44
  • 56
9
votes
4 answers

/proc/uptime in Mac OS X

I need the EXACT same output as Linux's "cat /proc/uptime". For example, with /proc/uptime, you'd get 1884371.64 38646169.12 but with any Mac alternative, like "uptime", you'd get 20:25 up 20:26, 6 users, load averages: 3.19 2.82 2.76 I need it…
Ryan
  • 390
  • 1
  • 3
  • 15
9
votes
5 answers

Get the precise time of system bootup on iOS/OS X

Is there an API to obtain the NSDate or NSTimeInterval representing the time the system booted? Some APIs such as [NSProcessInfo systemUptime] and Core Motion return time since boot. I need to precisely correlate these uptime values with NSDates, to…
Potatoswatter
  • 126,977
  • 21
  • 238
  • 404
8
votes
4 answers

How do I know if a system has powered on?

I am writing a script that powers on a system via network. And then i need to run a few commands on the other host. How do I know whether the system has powered on? My programming language is Perl and the target host is RHEL5. Is there any kernel…
kingpin
  • 312
  • 1
  • 3
  • 14
1
2 3
10 11