Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 will core dump when using in docker #2150

Closed
chaohi opened this issue May 12, 2016 · 3 comments
Closed

pm2 will core dump when using in docker #2150

chaohi opened this issue May 12, 2016 · 3 comments

Comments

@chaohi
Copy link

chaohi commented May 12, 2016

when use pm2 command, it will assert failed!

node: ../deps/uv/src/unix/linux-core.c:746: read_times: Assertion 'num == numcpus' failed. ./pm.sh: line 4: 30365 Aborted (core dumped) pm2 start ../server/index.js --no-daemon

i have readed the sourse code, num is get from "cat /proc/cpuinfo", numcpus is get from "sysconf(_SC_NPROCESSORS_CONF)", but _SC_NPROCESSORS_CONF might be possible for the operating system to disable individual processors。 so num may by not equal numcpus。

i want to know how to fix it~

Thanks all~

@chaohi
Copy link
Author

chaohi commented May 26, 2016

i can provide any information when needed

@soyuka
Copy link
Collaborator

soyuka commented May 26, 2016

nodejs/node#6252 ?

@Unitech
Copy link
Owner

Unitech commented Jul 30, 2016

Official Docker image released that includes:

  • Alpine Linux
  • Node.js 4 prebuilt
  • PM2 v2 with pm2-docker command
  • dumb-init to handle signals in a clean way
  • Optional Keymetrics integration

Here is the link to the Docker hub: https://hub.docker.com/r/keymetrics/pm2-docker-alpine/
Github repository: https://github.com/keymetrics/pm2-docker-alpine

@Unitech Unitech closed this as completed Jul 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants