Catalogue
Process Elapsed Time and CPU Usage Time

Process Elapsed Time and CPU Usage Time

🌐 日本語で読む

Just a memo for myself.

When a process hasn't been restarted in a long time, restarting it makes me a little nervous, so I want to know roughly how long it has been running.
With that in mind, I use the following command to check.

$ ps -eo pid,comm,etime,time  | grep node
  591 node            51-20:47:21 00:01:54
 2255 node            23-18:07:58 00:01:18
OPTIONExplain
pidProcess ID
commCommand
etimeElapsed time since the process started
timeCPU usage time

Of course you can also grasp how heavily the CPU is being used, so it comes in handy for all sorts of things.

kenzo0107

kenzo0107