R
Railway7mo ago
dtobi59

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:
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
Jump to solution
12 Replies
Percy
Percy7mo ago
Project ID: bf97fa8f-db35-490e-9619-15ae17dde8d3
dtobi59
dtobi597mo ago
Project ID: bf97fa8f-db35-490e-9619-15ae17dde8d3
jeremy
jeremy7mo ago
Sounds like a memory leak. Can you share screenshots of the service memory usage? Are you reaching the 8GB of memory?
dtobi59
dtobi597mo ago
No description
dtobi59
dtobi597mo ago
Thanks @jeremy, above is the screenshot of project memory usage. Unfortunately, I'm using up to 8GB of memory. really confused now.
jeremy
jeremy7mo ago
do you have a full error trace of the memory heap? how do you know it crashed? application returns a 500?
dtobi59
dtobi597mo ago
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.
jeremy
jeremy7mo ago
Did you try going to the "Observability" tab to check the logs?
dtobi59
dtobi597mo ago
Log Observability.
No description
No description
Solution
Brody
Brody7mo ago
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
dtobi59
dtobi597mo ago
True, Just observing that now. Thanks @Brody @jeremy
Brody
Brody7mo ago
no problem!