I can't find the process id
Asked Answered
N

2

7

I have PM2 on a GoDaddy Ubuntu cloud server. pm2 list shows as follows:

enter image description here

Is the fourth column the process id? Every one seems to be 0. Is there something wrong with my installation?

Neddie answered 12/2, 2017 at 17:6 Comment(0)
D
19

The 4th column is the number of restarts. It's supposed to show a little icon, like this:

pm2 list view with a narrow terminal

The reason its not showing the process id column is because your terminal window is too narrow. Try extending it and running pm2 list again. I believe this responsive list view is a recently added feature.

Once your terminal is wide enough, it should look like this:

pm2 list view with a wide terminal

as you can see the process id (pid) is now shown.

Dillingham answered 17/2, 2017 at 22:39 Comment(2)
Or in the case of ssh, widen your ssh window.Olid
it's odd that it expands Name to App name but memory gets shortened to mem in the wide version.Dillingham
C
0

check your error log maybe can get something useful tips, and check have you turn on "watch" options? if you turn on the "watch" options, pm2 will be restart when the file had changed, so you need to add the log files in "ignore_watch" options, or pm2 will be always restart loop because the log file always has changed

Conard answered 17/2, 2017 at 8:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.