express.nodejs.heap_size_used_bytes
Used V8 heap sizeDimensions:None
Available on:
Prometheus (1)
Interface Metrics (1)
Dimensions:None
Technical Annotations (36)
Configuration Parameters (6)
resources.requests.memoryrecommended: 256Miresources.limits.memoryrecommended: 512Miresources.requests.cpurecommended: 250mresources.limits.cpurecommended: 500mvm.oom_kill_allocating_taskrecommended: 1package-lock.jsonrecommended: properly locked versionsCLI Commands (9)
node --inspect app.jsdiagnosticnode --prof app.jsdiagnosticnode --prof-process isolate-*.log > profile.txtdiagnosticsudo sysctl -premediationconst fs = require('fs'); const readStream = fs.createReadStream('large-file.txt'); readStream.on('data', chunk => { console.log(`Received ${chunk.length} bytes`); });remediationnpm lsdiagnosticnpm auditdiagnosticnpm deduperemediationnode --inspect your-app.jsdiagnosticTechnical References (21)
Socket.IOcomponentremoveAllListenerscomponentgarbage collectionconceptOOM killconceptV8 GCcomponentNode.js single threadconceptheap_size_used_bytescomponent/etc/sysctl.conffile pathsyslogfile pathstreamcomponentfs.createReadStreamcomponentbackpressureconceptmoment.jscomponentdate-fnscomponentdayjscomponentfast-json-stringifycomponent--inspectcomponentChrome DevToolscomponentheap snapshotsconceptstop-the-worldconceptevent loopconceptRelated Insights (10)
Uncleaned event listeners cause memory leak leading to OOM crashcritical
▸
Missing Kubernetes resource limits cause OOM killscritical
▸
Memory leaks causing progressive performance degradationwarning
▸
Memory leak in long-running Node.js Express applicationscritical
▸
Memory exhaustion causes complete system lockupcritical
▸
Large file processing causes memory exhaustion and event loop lagwarning
▸
Heavy third-party dependencies bloat application and degrade performancewarning
▸
Memory leaks indirectly cause event loop lagwarning
▸
GC pauses cause stop-the-world event-loop stallswarning
▸
Memory leaks cause garbage collection pauses and event loop latencywarning
▸