express.process.cpu_user_seconds.total
User CPU timeDimensions:None
Available on:
Prometheus (1)
Interface Metrics (1)
Technical Annotations (18)
Configuration Parameters (2)
exec_moderecommended: clusterinstancesrecommended: maxCLI Commands (4)
htopmonitoringconst { Worker } = require('worker_threads'); function runWorker() { return new Promise((resolve, reject) => { const worker = new Worker('./heavy-task.js'); worker.on('message', resolve); worker.on('error', reject); worker.on('exit', code => { if (code !== 0) reject(new Error(`Worker stopped with exit code ${code}`)); }); }); }remediationpm2 start npm --name my-app -i max -- startremediationpm2 scale my-app +3remediationTechnical References (12)
Node.js single threadconceptclusteringconceptworker_threadscomponentWorkercomponentJavaScript threadcomponentCPU profilercomponentPiscinacomponentchild_processcomponentevent-loop utilizationconceptcluster modulecomponentPM2componentSocket.IO cluster adaptercomponentRelated Insights (10)
High CPU usage from inefficient code or resource-intensive operationswarning
▸
Sustained high CPU usage indicating single-threaded bottleneckwarning
▸
CPU sustained at 100% with no dips indicates saturationwarning
▸
CPU-intensive tasks starve event loop requiring worker threadswarning
▸
Synchronous CPU-intensive operations block event loop and cause latencycritical
▸
CPU-intensive operations block main event loop threadwarning
▸
Multi-core CPU underutilized without cluster modewarning
▸
Event-loop stalls occur without CPU spikeswarning
▸
Single-threaded Node.js process saturates one core despite multi-core availabilitycritical
▸
Node.js struggles to use more than 50% of single CPU before event loop laginfo
▸