Unitech / Unitech/pm2

pm2 sometimes kills processes on its own

Open
#5,854 0 comments 1 reaction 0 assignees View on GitHub

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:
image
image

this is the container monitoring information at the time, did not find any problems with memory and CPU
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.