173 Commits

Author SHA1 Message Date
Unitech
042a32afce move sysmonitoring logic to pm2-sysmonit + fix pm2 ls 2021-01-13 13:57:18 +01:00
Unitech
452cc85494 upgrade systeminformation 2020-12-15 12:34:35 +01:00
Unitech
f376825922 feat: restore --sort option on pm2 ls #4536 2020-12-09 12:05:54 +01:00
Alexandre Strzelewicz
3e9b398715
Merge pull request #4791 from sbleon/fix-namespace-cli-option
Use opts.namespace if it was passed in. Previously, it was ignored.
2020-09-28 12:59:18 +02:00
Unitech
14871cd04f pm2@4.4.1 2020-08-17 10:48:38 +02:00
Leon Miller-Out
74c03accc7 Use opts.namespace if it was passed in. Previously, it was ignored.
Before:

```
$ pm2 start --namespace foo ecosystem.config.js
[PM2][WARN] Applications background_worker not running, starting...
[PM2] App [background_worker] launched (1 instances)
┌─────┬──────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name                 │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├─────┼──────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0   │ background_worker    │ N/A         │ 0.0.1   │ fork    │ 86094    │ 0s     │ 0    │ online    │ 0%       │ 8.5mb    │ leon     │ enabled  │
└─────┴──────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
```

After:

```
$ pm2 start --namespace foo ecosystem.config.js
[PM2][WARN] Applications background_worker not running, starting...
[PM2] App [background_worker] launched (1 instances)
┌─────┬──────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name                 │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├─────┼──────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0   │ background_worker    │ foo         │ 0.0.1   │ fork    │ 86290    │ 0s     │ 0    │ online    │ 0%       │ 9.7mb    │ leon     │ enabled  │
└─────┴──────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
```
2020-07-21 13:50:50 -04:00
Unitech
476331f378 feature: now stream logs of precise process id that have been acted on 2020-06-30 18:55:56 +02:00
Unitech
c79713c4e1 test fix 2020-06-30 15:32:03 +02:00
Unitech
9095d2ddba test fix 2020-06-30 11:59:24 +02:00
Unitech
bf8caca905 #4765 automatically print applications logs on start/restart for 10secs 2020-06-30 10:47:15 +02:00
Unitech
e790d82212 disable autodump #4763 2020-06-29 11:20:57 +02:00
Unitech
21ecc39a6b #4694 fix this.autodump is not a function 2020-05-23 12:56:47 +02:00
Unitech
593b43ca66 various fixes for N14 2020-04-23 17:33:35 +02:00
Unitech
ac2ca921fe replace moment with dayjs 2019-12-02 15:17:42 +01:00
Unitech
0a21a00222 fix: check pm2_env 2019-11-18 19:04:07 +01:00
Unitech
25172b7b79 chore: add helper message that cron is still online even after stop 2019-11-18 15:36:58 +01:00
Unitech
9117d627e4 fix: pm2 version on pm2 update 2019-11-08 14:36:05 +01:00
Unitech
a11eb9ce49 chore/feat: refactor CLI UX + hint about proc sync with dump #4454 2019-11-04 12:04:05 +01:00
Unitech
2d7f0ff8b3 feat: control over system monitoring via pm2 sysmonit #4471 2019-10-30 14:41:45 +01:00
Subhash
fe9fa3f230 Assign default namespace for scripts started via _startScript 2019-10-28 17:28:15 +05:30
Subhash
668ac61d76 Add process namespaces feature 2019-10-28 13:33:28 +05:30
Unitech
b05cd91570 feature: pm2 sysinfos -t for tree view + add fd max 2019-10-22 13:11:03 +02:00
Alexandre Strzelewicz
f3856215b0
Merge pull request #4254 from sergeysedoy97/patch-1
Added HOST enviroment
2019-10-11 16:23:32 +02:00
Alexandre Strzelewicz
707389a3ea
Merge pull request #4270 from taneltm/fix-issue-3884
fix: ANSI escape codes with --watch #3884
2019-10-11 16:21:59 +02:00
Unitech
24026750a9 cli ux: when command is errored do not display process list to avoid confusion 2019-06-29 01:43:22 -07:00
Unitech
37b9de7811 feat: auto suffix log when exiting + display error when wrong manipulation of json/args 2019-06-29 01:37:04 -07:00
Unitech
cd68c2a801 fix: show error msg when trying to start not found script in ecosystem 2019-06-21 23:15:30 -07:00
Unitech
26563239f2 fix: cb calls 2019-06-02 15:35:50 +02:00
Unitech
8c881505ca feat: make docker/systemd mgmt optional via pm2 set pm2:docker true 2019-05-29 00:36:34 +02:00
Unitech
f47c648b7f feat: allow to auto dump on start/stop/delete via pm2 set pm2:autodump true #2078 #3431 2019-05-29 00:33:11 +02:00
Unitech
c3d4be4778 fix: agent is async, do not wait response 2019-05-26 04:34:26 +02:00
Unitech
e376cbef9a fix: avoid pm2 show to fail if app is not started + avoid trying to stop unknow id 2019-05-10 23:26:07 +02:00
Unitech
dcc9894f02 fix: better display when pm2 linked to onprem + fix display width 2019-05-10 22:41:47 +02:00
Unitech
72c48d17c8 feat: fix disk io floating point + fix duplication in pm2 monit command + reduce time to refresh sysinfos (need refactor to retrieve data live) + slice git comment 2019-05-07 18:29:23 +02:00
Tanel
a5dc8fa7ff
fix: ANSI escape codes with --watch #3884
The escape code should be \033, but that doesn't work in strict mode, probably because of that it was changed to \\033 which isn't valid either.
2019-05-07 10:10:56 +03:00
Unitech
3d2c3809e1 feat: pm2 slist for sysinfos + docker containers display + containers stop/restart/delete capabilities via pm2 <actions> docker process_id + host metrics display on pm2 ls (network, disk ios, cpu, mem...) + conditional display of high load (mem or CPU) processes in pm2 ls + add monitoring of filedescriptor and memory 2019-05-06 18:59:37 +02:00
Unitech
2833774d7f epic: pm4 to v4.0 + adding advanced sysinfos 2019-05-01 00:20:37 +02:00
sergeysedoy97
6f2a69e22e
Update API.js 2019-04-29 08:44:28 +03:00
Unitech
5b6275915c feat: allow to run pm2 with embedded node binaries 2019-04-26 13:48:16 +02:00
Alexandre Strzelewicz
44c06597c1
Merge branch 'development' into osv-fix-ignore-watch 2019-04-23 16:34:48 +02:00
Unitech
578362f89c fix: various terminal fixes 2019-04-05 15:40:42 +02:00
Oleg Vaskevich
66122d8093
Fix --ignore-watch to take in globs 2019-03-29 15:15:55 -07:00
Florian Hermouet-Joscht
f779a1ef4d
improv: auto add monitoring snippet 2019-03-28 16:20:38 +01:00
Florian Hermouet-Joscht
b869eb5afd
improv: serve feat, spa + basic auth 2019-03-27 16:19:43 +01:00
vmarchaud
9b042ac4c7
chore: re-add node 4 ci + disable pmx with node 4 + warning on start 2019-03-05 17:31:41 +01:00
vmarchaud
cbd25a3b8c
feat: re-implement pm2 plus cli 2019-01-07 11:06:34 +01:00
Unitech
bb1918971b fix: keep wait_ready to his initial state on pm2 reload all #4069 2018-12-19 16:07:11 +01:00
Unitech
5b633f0f52 fix: when a proc is errored in json file return array of errors 2018-12-19 14:38:17 +01:00
Alexandre Strzelewicz
1a826fea57
Merge pull request #4032 from bifot/master
Deleted double semi
2018-12-18 14:09:38 +01:00
Unitech
d14ccbadbd fix process file env switching bug and proc dups #3192 + #3987 2018-12-04 13:14:32 +01:00