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 @@ -2890,6 +2890,13 @@ The `process.memoryUsage()` method iterates over each page to gather
2890
2890
information about memory usage which might be slow depending on the
2891
2891
program memory allocations.
2892
2892
2893
+ ### A note on process memoryUsage
2894
+
2895
+ On Linux or other systems where glibc is commonly used, an application may have sustained
2896
+ ` rss` growth despite stable ` heapTotal` due to fragmentation caused by the glibc ` malloc`
2897
+ implementation. See [nodejs/node#21973][] on how to switch to an alternative ` malloc`
2898
+ implementation to address the performance issue.
2899
+
2893
2900
## ` process .memoryUsage .rss ()`
2894
2901
2895
2902
<!-- YAML
@@ -4631,6 +4638,7 @@ cases:
4631
4638
[debugger]: debugger.md
4632
4639
[deprecation code]: deprecations.md
4633
4640
[loading ECMAScript modules using ` require ()` ]: modules.md#loading-ecmascript-modules-using-require
4641
+ [nodejs/node#21973]: https://github.com/nodejs/node/issues/21973
4634
4642
[note on process I/O]: #a-note-on-process-io
4635
4643
[process.cpuUsage]: #processcpuusagepreviousvalue
4636
4644
[process_emit_warning]: #processemitwarningwarning-type-code-ctor
You can’t perform that action at this time.
0 commit comments