Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update doc/api/process.md
Co-authored-by: Joyee Cheung <[email protected]>
  • Loading branch information
fengmk2 and joyeecheung authored Jul 11, 2025
commit 2dbee983804b65c2d4fe77b7b7814d5f9ee2e591
9 changes: 4 additions & 5 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2809,11 +2809,10 @@ program memory allocations.

### A note on process memoryUsage

Once you notice that the `rss` continues to rise while the `heapTotal` shows normal,
and the `rss` is more than three times higher than the `heapTotal`,
it is very likely that there is an issue with an external memory leak.
Referer to the discussions in [nodejs/node#21973][] and [nodejs/help#1942][] for
suggestions on switching the system's default `malloc` to `jemalloc` to try to resolve such issues.
On Linux or other systems where glibc is commonly used, an application may have sustained
`rss` growth despite stable `heapTotal` due to fragmentation caused by the glibc `malloc`
implementation. See [nodejs/node#21973][] on how to switch to an alternative `malloc`
implementation to address the performance issue.

## `process.memoryUsage.rss()`

Expand Down
Loading