Ever growing RAM usage

Hey guys. I just noticed that even if no one is using the app, the RAM usage keeps growing. Three days ago it was $0.81, now it is $2.30. What triggers RAM usage here? If this continues, I would end up with a $44 bill just for RAM usage. Railway seems very expensive, even with the hobby plan.
No description
13 Replies
Percy
Percy9mo ago
Project ID: N/A
Matheus Almeida
Matheus Almeida9mo ago
N/A
Fragly
Fragly9mo ago
Your app's memory allocation for the docker container determines your RAM usage
Matheus Almeida
Matheus Almeida9mo ago
I'm not using a docker image for the app, only for the data base. I removed an environment of the application and RAM usage fall by half from 2gb to 1gb, but the usage in USD is still growing
Fragly
Fragly9mo ago
Your app gets deployed into a docker container, if you don't provide the docker image then Railway just makes one for you The memory usage of your app is dependant only on your app and how it's made If you're looking to lower the memory usage of your app then I'd suggest taking a look at this thread: https://discord.com/channels/713503345364697088/1199445403477758022 a few tips was shared here
Matheus Almeida
Matheus Almeida9mo ago
But no one is using the app. How can you have a bill that keeps growing? My app also doesn't have a memory leak as I'm testing locally. This unfortunately can't help. I've seen other comments about how expensive railway is, I think that's it.
Fragly
Fragly9mo ago
But no one is using the app. How can you have a bill that keeps growing?
Two things to keep in mind: 1. Apps will most likely still have idle memory even when no one uses them 2. Railway's billing is not constant, it's pay-as-you-go When you deploy an app on Railway, then all of your minutely resource usages gets calculated and added to your "Current Usage" bill, and you get charged for that The "Current Usage" will keep growing over your billing cycle because it displays the cost of the usage you've used up until that point, and since you keep using Railway - it'll keep growing
My app also doesn't have a memory leak as I'm testing locally.
My apologies, I assumed you did have a memory leak since your post is titled "Ever growing RAM usage" the contents of the thread is still useful for lowering high RAM usage though
This unfortunately can't help. I've seen other comments about how expensive railway is, I think that's it.
If your app's resource usage is within expected range then I guess underestimating the cost is the best explanation Although Railway is relatively inexpensive for the platform it provides
Matheus Almeida
Matheus Almeida9mo ago
Thanks for your explanation! But I don't think $44/month would be inexpensive for a hobby project.
!                            SAM
! SAM9mo ago
at this price I believe you can get a vps ( with pretty good specs ).
ThallesComH
ThallesComH9mo ago
you can try enabling app sleeping https://docs.railway.app/reference/app-sleeping
Railway Docs
App Sleeping | Railway Docs
Documentation for Railway
Matheus Almeida
Matheus Almeida9mo ago
Yeah. I will look for that.
ThallesComH
ThallesComH9mo ago
and also, i doubt you could reach 44$ one of my projects uses about 2~3gb and it's pretty far from that but sure, if your app is resource intensive and you can't pay for all of that then railway is not for you. try vps with coolify.io or easypanel
Matheus Almeida
Matheus Almeida9mo ago
Cool. Thanks for the recommendations
Want results from more Discord servers?
Add your server