R
Railway12mo 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
Percy12mo ago
Project ID: bf97fa8f-db35-490e-9619-15ae17dde8d3
dtobi59
dtobi59OP12mo ago
Project ID: bf97fa8f-db35-490e-9619-15ae17dde8d3
jeremy
jeremy12mo ago
Sounds like a memory leak. Can you share screenshots of the service memory usage? Are you reaching the 8GB of memory?
dtobi59
dtobi59OP12mo ago
No description
dtobi59
dtobi59OP12mo ago
Thanks @jeremy, above is the screenshot of project memory usage. Unfortunately, I'm using up to 8GB of memory. really confused now.
jeremy
jeremy12mo ago
do you have a full error trace of the memory heap? how do you know it crashed? application returns a 500?
dtobi59
dtobi59OP12mo 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
jeremy12mo ago
Did you try going to the "Observability" tab to check the logs?
dtobi59
dtobi59OP12mo ago
Log Observability.
No description
No description
Solution
Brody
Brody12mo 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
dtobi59OP12mo ago
True, Just observing that now. Thanks @Brody @jeremy
Brody
Brody12mo ago
no problem!
Want results from more Discord servers?
Add your server