Ineffective mark-compacts near heap limit Allocation failed
ktranish
PROOP

3 months ago

Solved$10 Bounty

Pinned Solution

domehane
FREETop 5% Contributor

3 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
FREETop 5% Contributor

3 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
FREETop 5% Contributor

3 months ago

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


domehane
FREETop 5% Contributor

3 months ago

let me know if this resolve your issue


domehane
FREETop 5% Contributor

3 months ago

perfect


Status changed to Solved brody 3 months ago


Loading...