Ineffective mark-compacts near heap limit Allocation failed
ktranish
PROOP

2 months ago

Solved$10 Bounty

Pinned Solution

domehane
FREE

2 months ago

go to your service settings → deploy → resource limits and bump up the ram slider to like 16-32gb. also add this in your service variables tab

NODE_OPTIONS=--max-old-space-size=16384

also check and remove any hardcoded --max-old-space-size from Dockerfile ENV statements or package.json start scripts or any launch commands node.js should auto-detect container limits if not hardcoded.

4 Replies

domehane
FREE

2 months ago

go to your service settings → deploy → resource limits and bump up the ram slider to like 16-32gb. also add this in your service variables tab

NODE_OPTIONS=--max-old-space-size=16384

also check and remove any hardcoded --max-old-space-size from Dockerfile ENV statements or package.json start scripts or any launch commands node.js should auto-detect container limits if not hardcoded.


domehane
FREE

2 months ago

because resource limits control the maximum amount of resources available to a service


domehane
FREE

2 months ago

let me know if this resolve your issue


domehane
FREE

2 months ago

perfect


Status changed to Solved brody about 2 months ago


Loading...