2 months 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
0 Replies
2 months 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?
2 months ago
please send metrics for your service, is it topping out?
2 months 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?
2 months 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
2 months 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
2 months ago
But that won't remove the memory leak though, it will only give your app more mem to use before crashing
2 months ago
!s
Status changed to Solved medim • about 2 months ago