Railway not respecting heap size flag

When I set the start command for my node.js program to node --max-old-space-size=200 app.js the 200mb limit is not being used.
7 Replies
Percy
Percy2y ago
Project ID: 965c3d56-d979-45fb-b374-21cfdaa3bec9
Squink
SquinkOP2y ago
965c3d56-d979-45fb-b374-21cfdaa3bec9
Brody
Brody2y ago
instead of setting it in your start command, set it in the service variables NODE_OPTIONS = --max-old-space-size=256
Squink
SquinkOP2y ago
thanks that worked
Brody
Brody2y ago
awesome, but uh there might bigger issues if your app is using ~1.2gb
Squink
SquinkOP2y ago
yeah... there's defintely a memory leak I don't want to bother finding, I only need this cron job to run for another week haha
Brody
Brody2y ago
alrighty
Want results from more Discord servers?
Add your server