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 @@ -2807,6 +2807,13 @@ The `process.memoryUsage()` method iterates over each page to gather
28072807information about memory usage which might be slow depending on the
28082808program memory allocations.
28092809
2810+ ### A note on process memoryUsage
2811+
2812+ On Linux or other systems where glibc is commonly used, an application may have sustained
2813+ ` rss` growth despite stable ` heapTotal` due to fragmentation caused by the glibc ` malloc`
2814+ implementation. See [nodejs/node#21973][] on how to switch to an alternative ` malloc`
2815+ implementation to address the performance issue.
2816+
28102817## ` process .memoryUsage .rss ()`
28112818
28122819<!-- YAML
@@ -4547,6 +4554,7 @@ cases:
45474554[debugger]: debugger.md
45484555[deprecation code]: deprecations.md
45494556[loading ECMAScript modules using ` require ()` ]: modules.md#loading-ecmascript-modules-using-require
4557+ [nodejs/node#21973]: https://github.com/nodejs/node/issues/21973
45504558[note on process I/O]: #a-note-on-process-io
45514559[process.cpuUsage]: #processcpuusagepreviousvalue
45524560[process_emit_warning]: #processemitwarningwarning-type-code-ctor
You can’t perform that action at this time.
0 commit comments