Railway service keeps crashing due to memory leak
zavien1
PROOP

a year ago

Project keeps crashing and having a very hard time understanding whats causing it, I believe its a memory leak but I cannot figure out what causing it. The deploy crashes every couple of hours

Solved$10 Bounty

18 Replies

zavien1
PROOP

a year ago

ae620a01-d3a8-4dca-a2b5-93af7c8cd912


a year ago

What are you running? What is this service doing?

I don't think Railway is at fault here, what are the last logs before crashing?


zavien1
PROOP

a year ago

1401294247193481277


zavien1
PROOP

a year ago

1401294310867075152


zavien1
PROOP

a year ago

omg


a year ago

please send metrics for your service, is it topping out?


zavien1
PROOP

a year ago

@Adam memory looks fine


zavien1
PROOP

a year ago

1401957808433266819


zavien1
PROOP

a year ago

I think those dips are when app crashes in memory?


a year ago

Hm yeah, potentially. It's very unlikely Railway is at fault here, have you tried running your API locally for this long to ensure it doesn't crash?


zavien1
PROOP

a year ago

yeah


zavien1
PROOP

a year ago

but then again running api locally doesnt have traffic so


a year ago

Sure, that's fair. Unfortunately there's not a whole lot to go on here, but it's likely a code issue. More logging would be helpful to diagnose this


zavien1
PROOP

a year ago

brutal


a year ago

If it's a nodejs app you can try using the NODE_OPTIONS=--max-old-space-size=32768 env var, it sets it to 32gb


a year ago

But that won't remove the memory leak though, it will only give your app more mem to use before crashing


zavien1
PROOP

a year ago

real


a year ago

!s


Status changed to Solved medim 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...