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
2861
2861
information about memory usage which might be slow depending on the
2862
2862
program memory allocations.
2863
2863
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
+
2864
2871
## ` process .memoryUsage .rss ()`
2865
2872
2866
2873
<!-- YAML
@@ -4594,6 +4601,7 @@ cases:
4594
4601
[debugger]: debugger.md
4595
4602
[deprecation code]: deprecations.md
4596
4603
[loading ECMAScript modules using ` require ()` ]: modules.md#loading-ecmascript-modules-using-require
4604
+ [nodejs/node#21973]: https://github.com/nodejs/node/issues/21973
4597
4605
[note on process I/O]: #a-note-on-process-io
4598
4606
[process.cpuUsage]: #processcpuusagepreviousvalue
4599
4607
[process_emit_warning]: #processemitwarningwarning-type-code-ctor
You can’t perform that action at this time.
0 commit comments