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.