Wednesday, December 12, 2018

Checking a Linux/Unix Process uptime and Start time

To check the process uptime, get the process ID with ps command.

Example: ps -ef | grep cassandra

Assuming, process id as 29459

Command to check process uptime:
$ ps -p 29459 -o etime


To get process start time.

$ ps -eo pid,lstart,cmd | grep cassandra

***

No comments:

Post a Comment