1. EasyHost
  2. Errors
  3. JavaScript heap out of memory

JavaScript heap out of memory

The process needed more memory than was available. Apps run with 512 MB.

Last updated November 9, 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 512 MB.

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=400
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