Last active
February 3, 2021 09:43
-
-
Save Unitech/5c1d38e18a9a04d0b5371dd89c8d2ce0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ pm2 start slow.js --log-date-format "HH:mm:ss DD" --attach | |
[PM2] Starting /home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js in fork_mode (1 instance) | |
[PM2] Done. | |
⇆ PM2+ activated | Instance Name: workstation-892f | Dash: https://app.pm2.io/#/r/lsnncs6wdbcsrsw | |
┌─────┬─────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ | |
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ | |
├─────┼─────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ | |
│ 0 │ slow │ default │ 5.0.0 │ fork │ 7344 │ 0s │ 0 │ online │ 0% │ 17.6mb │ unitech │ disabled │ | |
└─────┴─────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ | |
[PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize. | |
[PM2][INFO] Log streaming apps id: 0, exit with Ctrl-C or will exit in 10secs | |
0|slow | 10:41:36 03: Error: err | |
0|slow | 10:41:36 03: at Timeout._onTimeout (/home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js:2:9) | |
0|slow | 10:41:36 03: at listOnTimeout (node:internal/timers:556:17) | |
0|slow | 10:41:36 03: at processTimers (node:internal/timers:499:7) | |
PM2 | App [slow:0] exited with code [1] via signal [SIGINT] | |
PM2 | App [slow:0] starting in -fork mode- | |
PM2 | App [slow:0] online | |
0|slow | 10:41:37 03: Error: err | |
0|slow | 10:41:37 03: at Timeout._onTimeout (/home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js:2:9) | |
0|slow | 10:41:37 03: at listOnTimeout (node:internal/timers:556:17) | |
0|slow | 10:41:37 03: at processTimers (node:internal/timers:499:7) | |
PM2 | App [slow:0] exited with code [1] via signal [SIGINT] | |
PM2 | App [slow:0] starting in -fork mode- | |
PM2 | App [slow:0] online |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ pm2 start slow.js --time --attach | |
[PM2] Starting /home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js in fork_mode (1 instance) | |
[PM2] Done. | |
⇆ PM2+ activated | Instance Name: workstation-892f | Dash: https://app.pm2.io/#/r/lsnncs6wdbcsrsw | |
┌─────┬─────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ | |
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ | |
├─────┼─────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ | |
│ 0 │ slow │ default │ 5.0.0 │ fork │ 6936 │ 0s │ 0 │ online │ 0% │ 17.7mb │ unitech │ disabled │ | |
└─────┴─────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ | |
[PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize. | |
[PM2][INFO] Log streaming apps id: 0, exit with Ctrl-C or will exit in 10secs | |
0|slow | 2021-02-03T10:40:41: Error: err | |
0|slow | 2021-02-03T10:40:41: at Timeout._onTimeout (/home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js:2:9) | |
0|slow | 2021-02-03T10:40:41: at listOnTimeout (node:internal/timers:556:17) | |
0|slow | 2021-02-03T10:40:41: at processTimers (node:internal/timers:499:7) | |
PM2 | App [slow:0] exited with code [1] via signal [SIGINT] | |
PM2 | App [slow:0] starting in -fork mode- | |
PM2 | App [slow:0] online | |
0|slow | 2021-02-03T10:40:43: Error: err | |
0|slow | 2021-02-03T10:40:43: at Timeout._onTimeout (/home/unitech/keymetrics/pm2-runtime/pm2/examples/exception/slow.js:2:9) | |
0|slow | 2021-02-03T10:40:43: at listOnTimeout (node:internal/timers:556:17) | |
0|slow | 2021-02-03T10:40:43: at processTimers (node:internal/timers:499:7) | |
PM2 | App [slow:0] exited with code [1] via signal [SIGINT] | |
PM2 | App [slow:0] starting in -fork mode- | |
PM2 | App [slow:0] online | |
^C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✦ ❯ cat slow.js | |
setTimeout(() => { | |
throw new Error('err') | |
}, 1500) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment