Node JS Backend keeps crashing after 1/2 days
New to production Node JS, new to hosting on railway. My Production Node JS Backend keeps crashing after 1/2 days I have tried looking at the deploys log but can't find the reason for the crash. Saw few errors such as memory heap allocation but after that i noticed the service restart it's self automatically but the crash is what i don't understand because each time it crashes like that i have to manually restart. Please help, Thanks Guys.
Solution:Jump to solution
it says you're on the trial plan, you're likely running into the 512mb of memory on the trial plan. if you're running a production app you should be on the pro plan
12 Replies
Project ID:
bf97fa8f-db35-490e-9619-15ae17dde8d3
Project ID: bf97fa8f-db35-490e-9619-15ae17dde8d3
Sounds like a memory leak. Can you share screenshots of the service memory usage? Are you reaching the 8GB of memory?
Thanks @jeremy, above is the screenshot of project memory usage. Unfortunately, I'm using up to 8GB of memory. really confused now.
do you have a full error trace of the memory heap? how do you know it crashed? application returns a 500?
Nope, not sure I know how to get that. Railway sent an email to inform me that my application crashed then i will have to restart application manually.
Did you try going to the "Observability" tab to check the logs?
Log Observability.
Solution
it says you're on the trial plan, you're likely running into the 512mb of memory on the trial plan. if you're running a production app you should be on the pro plan
True, Just observing that now. Thanks @Brody @jeremy
no problem!