File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2861,6 +2861,13 @@ The `process.memoryUsage()` method iterates over each page to gather
28612861information about memory usage which might be slow depending on the
28622862program memory allocations.
28632863
2864+ ### A note on process memoryUsage
2865+
2866+ On Linux or other systems where glibc is commonly used, an application may have sustained
2867+ ` rss` growth despite stable ` heapTotal` due to fragmentation caused by the glibc ` malloc`
2868+ implementation. See [nodejs/node#21973][] on how to switch to an alternative ` malloc`
2869+ implementation to address the performance issue.
2870+
28642871## ` process .memoryUsage .rss ()`
28652872
28662873<!-- YAML
@@ -4575,6 +4582,7 @@ cases:
45754582[debugger]: debugger.md
45764583[deprecation code]: deprecations.md
45774584[loading ECMAScript modules using ` require ()` ]: modules.md#loading-ecmascript-modules-using-require
4585+ [nodejs/node#21973]: https://github.com/nodejs/node/issues/21973
45784586[note on process I/O]: #a-note-on-process-io
45794587[process.cpuUsage]: #processcpuusagepreviousvalue
45804588[process_emit_warning]: #processemitwarningwarning-type-code-ctor
You can’t perform that action at this time.
0 commit comments