pm2 sometimes kills processes on its own
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
pm2 sometimes kills processes on its own
How could we reproduce this issue?
Supporting information
I am using pm2 running in docker in a k8s environment, pm2 version is 5.4.0
Recently, a pod node automatically restarts every day. I checked the exit log of the container:
this is the container monitoring information at the time, did not find any problems with memory and CPU
This is my pm2 startup script configuration:
{
"apps": {
"name": "framework-prop",
"script": "./dist/index.js",
"instances": 1,
"exec_mode": "cluster",
"out_file": "/dev/null",
"error_file": "/dev/null"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the PM2 5.4.0 startup configuration and the provided container exit logs, then attempt to reproduce the unexplained restart in the reported Docker and Kubernetes setup. Done means identifying a reproducible cause for PM2 killing the process and documenting or validating a targeted fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, javascript, kubernetes, node.js
- Domain
- cloud, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100