Question: Processor load 100% when I run an application under load
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hello everyone,
I ran into the following problem, there is an application written in Nuxt 2 and used to run the process manager pm2, on startup at the slightest load (+ - 10 requests per second), the server crashes at 100% CPU load.
The application is running in cluster mode, the server itself is 8vCPU, 16 GB.
Maybe there are some tools for profiling, and figuring out what's going on inside. The application is running on a DigitalOcean droplet, without containers or anything else. Reverse proxy via Nginx
Ecosystem.config.js
module.exports = {
apps: [
{
name: 'wingly',
script: './node_modules/nuxt/bin/nuxt.js',
args: 'start',
port: 3000,
instances: 'max',
exec_mode: 'cluster',
cwd: './',
},
],
}
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 ecosystem.config.js and reproduce the reported load using the Nuxt 2 application in PM2 cluster mode behind Nginx. Profile the Node.js processes under roughly 10 requests per second; done requires identifying whether PM2, clustering, Nuxt, or the application causes the 100% CPU load and documenting a confirmed fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nginx, nodejs, nuxtjs
- Domain
- backend, devops, performance
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100