10 months ago
Hi there, I'm not sure how or why, but we recently switched to Metal for our hosting within Railway. Initially our memory usage was 1/3 of the original amount, but it has continued to increase at an alarming rate.
I saw our last bill, which is drastically higher than all the other ones, and sure enough, it looks like the memory usage has been growing drastically since our last deployment.
For now I am switching back to non-Metal hosting, but I would love some guidance as to (1) how this happened and (2) if there's configuration issues on our side that could have caused this or (3) if this is how Metal will be charged long-term, confirmation that this is the future of Railway.
4 Replies
10 months ago
Hello Zack,
It seems there's a slight misunderstanding about the memory usage increase you're experiencing. The issue isn't related to Metal itself - Railway simply runs your application and reports on how much memory it uses. What you're describing sounds like a memory leak in your application.
Memory leaks occur when your application continuously allocates memory that isn't properly released over time. This would explain why your memory usage started lower after deployment but has been steadily increasing.
Switching back to non-Metal might temporarily mask the issue, but if there's a memory leak in your code, it will likely manifest there too, just perhaps more slowly (because of the slower hardware) or in different ways.
You might want to consider adding some kind of memory profiling to identify where the memory leak(s) might be occurring.
Best,
Brody
Status changed to Awaiting User Response Railway • 10 months ago
10 months ago
Hey Brody,
Thanks for the quick reply. Can you help me understand how the issue wouldn't have occurred in the previous hosting platform but would with Metal?
What does Metal do differently that the legacy hosting platform does?
Status changed to Awaiting Railway Response Railway • 10 months ago
10 months ago
Hello,
I would love to help with that enquiry but unfortunately, we have no observability into your application so I cannot explain why your application behavior is different on GCP Vs. on Metal, only you can answer that question with profiling.
As for our side, the control systems, metrics systems, and runtime all remain the exact same, the difference being that Metal is much newer hardware, Gen 5 Xeons on Metal Vs. Gen 2 Xeons on GCP, accompanied by faster memory and faster storage.
I'm really sorry we cannot be of more help here, it's just that how much memory any given application uses on the platform is out of our control, it is solely depended on how much the application or software decides to use.
Best,
Brody
Status changed to Awaiting User Response Railway • 10 months ago
Status changed to Awaiting Railway Response Railway • 10 months ago
Status changed to Solved zackafter • 10 months ago
