Unitech / Unitech/pm2

PM2 crashes every 88 seconds

Open
#5,441 2 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

My coworkers and I spent the entire day trying to figure out why our app kept crashing every 88 seconds.

Originally we did not know that our app was crashing on a consistent time basis. We had assumed it was tied to traffic and/or a background worker.

After watching pm2 monit, we discovered it was crashing every 88 seconds. We searched this StackOverflow which suggested running pm2 update.

This was really frustrating because we have no idea if this is going to happen again. Is this something that is "pre-baked" into PM2 to cause apps to crash when they are not updated? Or if you could provide some more insight as to why this would resolve our issue, that would be greatly appreciated.

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 by reviewing the reported behavior with pm2 monit and the effect of pm2 update, then compare it with the linked Stack Overflow discussion. Done means identifying whether PM2 causes the 88-second crash and documenting a reproducible cause or corrective change.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, devops
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.