Skip to content

Instantly share code, notes, and snippets.

@Unitech
Last active August 29, 2015 14:06
Show Gist options
  • Save Unitech/445ed8a0aec33689bb56 to your computer and use it in GitHub Desktop.
Save Unitech/445ed8a0aec33689bb56 to your computer and use it in GitHub Desktop.
throw new assert.AssertionError({
^
AssertionError: Resource leak detected.
at EventEmitter.<anonymous> (cluster.js:334:7)
at EventEmitter.emit (events.js:107:17)
at ChildProcess.<anonymous> (cluster.js:301:15)
at ChildProcess.g (events.js:199:16)
at ChildProcess.EventEmitter.emit (events.js:104:17)
at finish (child_process.js:533:14)
at process._tickCallback (node.js:343:11)
[v0.11.13] ~/keymetrics/pm2 $ node example/keymetrics-load.js
[v0.11.13] ~/keymetrics/pm2 $ ./bin/pm2 list
● Agent online - public key: Fw26cXRSFT5oul7 - machine name: Transport - Web access: http://app.keymetrics.io/
┌───────────────────────────┬────┬─────────┬──────┬────────┬───────────┬────────┬─────────────┬─────────────┐
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │
├───────────────────────────┼────┼─────────┼──────┼────────┼───────────┼────────┼─────────────┼─────────────┤
│ human_event │ 0 │ fork │ 3407 │ online │ 0 │ 8s │ 13.441 MB │ unactivated │
│ child │ 1 │ cluster │ 3413 │ online │ 0 │ 8s │ 13.828 MB │ unactivated │
│ child │ 2 │ cluster │ 3419 │ online │ 0 │ 8s │ 13.828 MB │ unactivated │
│ kill-not-so-fast │ 3 │ cluster │ 5107 │ online │ 14 │ 0s │ 13.098 MB │ unactivated │
│ kill-not-so-fast │ 4 │ cluster │ 5132 │ online │ 14 │ 0s │ 13.094 MB │ unactivated │
│ kill-not-so-fast │ 5 │ cluster │ 5146 │ online │ 14 │ 0s │ 13.098 MB │ unactivated │
│ kill-not-so-fast │ 6 │ cluster │ 5087 │ online │ 13 │ 0s │ 13.102 MB │ unactivated │
│ kill-not-so-fast │ 7 │ cluster │ 5074 │ online │ 13 │ 0s │ 13.965 MB │ unactivated │
│ kill-not-so-fast │ 8 │ cluster │ 5094 │ online │ 13 │ 0s │ 13.098 MB │ unactivated │
│ kill-not-so-fast │ 9 │ cluster │ 5088 │ online │ 13 │ 0s │ 13.102 MB │ unactivated │
│ kill-not-so-fast │ 10 │ cluster │ 5101 │ online │ 13 │ 0s │ 13.098 MB │ unactivated │
│ kill-not-so-fast │ 11 │ cluster │ 5147 │ online │ 13 │ 0s │ 13.098 MB │ unactivated │
│ kill-not-so-fast │ 12 │ cluster │ 5080 │ online │ 12 │ 0s │ 13.102 MB │ unactivated │
│ auto-save │ 13 │ fork │ 3662 │ online │ 0 │ 7s │ 13.098 MB │ activated │
│ custom_action_with_params │ 14 │ fork │ 3703 │ online │ 0 │ 7s │ 13.707 MB │ unactivated │
│ auto-throw │ 15 │ fork │ 5122 │ online │ 3 │ 0s │ 12.473 MB │ unactivated │
└───────────────────────────┴────┴─────────┴──────┴────────┴───────────┴────────┴─────────────┴─────────────┘
Use `pm2 desc[ribe] <id>` to get more details
[v0.11.13] ~/keymetrics/pm2 $ ./bin/pm2 kill
[PM2] Stopping PM2...
[PM2] Deleting all process
[PM2] deleteProcessId process id 0
[PM2] deleteProcessId process id 1
[PM2] deleteProcessId process id 2
[PM2] deleteProcessId process id 3
[PM2] deleteProcessId process id 4
[PM2] deleteProcessId process id 5
[PM2] deleteProcessId process id 6
[PM2] deleteProcessId process id 7
[PM2] deleteProcessId process id 8
[PM2] deleteProcessId process id 9
[PM2] deleteProcessId process id 10
[PM2] deleteProcessId process id 11
[PM2] deleteProcessId process id 12
^C
[v0.11.13] ~/keymetrics/pm2 $ tail -f ~/.pm2/pm2.log
throw new assert.AssertionError({
^
AssertionError: Resource leak detected.
at EventEmitter.<anonymous> (cluster.js:334:7)
at EventEmitter.emit (events.js:107:17)
at ChildProcess.<anonymous> (cluster.js:301:15)
at ChildProcess.g (events.js:199:16)
at ChildProcess.EventEmitter.emit (events.js:104:17)
at finish (child_process.js:533:14)
at process._tickCallback (node.js:343:11)
^C
[v0.11.13] ~/keymetrics/pm2 $ node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment