JavaScript heap out of memory

The process needed more memory than was available. Apps run with 256 MB of RAM and no swap.

Last updated November 25, 2026

The error

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Why it happens

The process needed more memory than was available. Apps run with 256 MB of RAM and no swap.

How to fix it

Lower memory use, and cap the heap below the container limit so garbage collection runs earlier.

ezhst env set NODE_OPTIONS=--max-old-space-size=200
ezhst redeploy

Still stuck

Read the build log and runtime logs, or browse all errors.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

$npx ezhst skill install