GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: add note on process memoryUsage · nodejs/node@cbb0a8e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • process.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/process.md‎

Copy file name to clipboardExpand all lines: doc/api/process.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2861,6 +2861,13 @@ The `process.memoryUsage()` method iterates over each page to gather
28612861
information about memory usage which might be slow depending on the
28622862
program 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
@@ -4594,6 +4601,7 @@ cases:
45944601
[debugger]: debugger.md
45954602
[deprecation code]: deprecations.md
45964603
[loading ECMAScript modules using `require()`]: modules.md#loading-ecmascript-modules-using-require
4604+
[nodejs/node#21973]: https://github.com/nodejs/node/issues/21973
45974605
[note on process I/O]: #a-note-on-process-io
45984606
[process.cpuUsage]: #processcpuusagepreviousvalue
45994607
[process_emit_warning]: #processemitwarningwarning-type-code-ctor

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.