Chris Potts
03/12/2026, 3:10 PMkapa.ai
03/12/2026, 3:11 PMMauricio Cabezas
03/12/2026, 4:56 PMChris Potts
03/13/2026, 9:19 AMMauricio Cabezas
03/13/2026, 1:45 PMChris Potts
03/13/2026, 2:08 PMMauricio Cabezas
03/13/2026, 3:28 PMvalidate run, the CLI loads all YAML objects and builds the dependency graph locally. For larger repositories this can consume quite a lot of memory, and Node has a default heap limit (~2 GB).
If the error happens during gd validate, you could try increasing the Node heap size for that command, for example:
NODE_OPTIONS="--max-old-space-size=8192" gd validate
(Probably you tried with 4097, please try now with 8192)
This increases the available memory to ~8 GB for the process.
If that resolves the issue, you can also export the option once and run all CLI commands with the larger heap:
export NODE_OPTIONS="--max-old-space-size=8192"
gd clone
gd validate
gd deploy
Since you mentioned that clone works, it’s likely that validate is the step where the CLI loads and processes the full YAML model, which can be more memory-intensive.Chris Potts
03/13/2026, 4:56 PMMauricio Cabezas
03/13/2026, 5:19 PM$env:NODE_OPTIONS="--max-old-space-size=8192"
gd validate
Option 2 — in Command Prompt (cmd):
set NODE_OPTIONS=--max-old-space-size=8192
gd validate
Since you mentioned this works with a smaller workspace, that also points to the size of the definitions being the trigger rather than something on the GoodData side.
Increasing the Node heap size as shown above usually resolves it. You may also find quite a few discussions about this Node.js error online if you search for "JavaScript heap out of memory" as it’s a common Node runtime limitation.Chris Potts
03/16/2026, 9:44 AMJoseph Heun
03/23/2026, 9:12 AMChris Potts
03/23/2026, 9:32 AM