Page MenuHomePhabricator

create tool to trace garbage collection
Closed, ResolvedPublicSpike

Description

After detecting signs of memory leakage during this week's COW session, we want to build a tool that shows NodeJS's Garbage Collection activity especially when objects are created.

Related Objects

Event Timeline

ecarg triaged this task as High priority.
ecarg changed the task status from Open to In Progress.EditedNov 25 2025, 9:42 PM
  1. in core docker-compose.override.yml, add two new keys under function-orchestrator:
entrypoint: []
command: "npm start"

and add under its environment:

NODE_OPTIONS: --expose-gc
  1. in Orchestrator package.json, replace what's currently in "start": with either "node --trace-gc server.js" or for more verbose GC logs, "node --trace-gc --trace-gc-nvp server.js"
  2. rebuild

Added instructions to our cheatsheet