Skip to content

Memory usage (external) reports a negative value? #21570

@bertlea

Description

@bertlea

Running some http server process in node.js in REPL environment (under tmux), the function: process.memoryUsage() function can return a negative value. Is that a bug? The process (server) was run for many days, and I sometimes use process.memoryUsage() to check the values and I found:

> process.memoryUsage()
{ rss: 33452032,
  heapTotal: 9031680,
  heapUsed: 5112064,
  external: -503806 }

The external memory is negative, but it was still postive 2 days ago when I checked. Notes, I run the node.js with flags:

--expose-gc --max-old-space-size=256

This is running on a Raspberry Pi ZERO W.


Metadata

Metadata

Assignees

No one assigned

    Labels

    httpsIssues or PRs related to the https subsystem.memoryIssues and PRs related to the memory management or memory footprint.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions