Application consuming a lot of memory on railway but not as much when self hosted
ignisda
HOBBYOP

2 years ago

22 Replies

ignisda
HOBBYOP

2 years ago

n/A


ignisda
HOBBYOP

2 years ago

left is self hosted, right is railway. same time range


ignisda
HOBBYOP

2 years ago

This is also very weird because my self hosted instance has a lot more data than the railway one


ignisda
HOBBYOP

2 years ago

Could this be an CPU architecture thing?


2 years ago

Did you limit the amount it could use when self hosting it? Railway will allow the application to use as much resources as it needs/wants. Best method may be to add a cap for your service’s CPU use if you’re worried about it.


ignisda
HOBBYOP

2 years ago

nope i did not.


ignisda
HOBBYOP

2 years ago

how do i add a cap to railway?


2 years ago

you can't


2 years ago

please tell us more information about the application


2 years ago

also, can you send a better self hosted graph, it appears to be cut off


ignisda
HOBBYOP

2 years ago

1265914260995833900


ignisda
HOBBYOP

2 years ago

what information is needed?


2 years ago

anything you can think about


ignisda
HOBBYOP

2 years ago

it is a rust+nodejs application. the idle cpu consumption is ~0.2% in both self hosted and railway.


2 years ago

dockerfile?



2 years ago

are you on the v2 runtime?


ignisda
HOBBYOP

2 years ago

assuming youre talking about this, then yes

1265916875326488600


2 years ago

then it would just be down to how the different platforms report memory


ignisda
HOBBYOP

2 years ago

hmmm alright. is there any docs on what method railway uses to report memory?


2 years ago

there is not


ignisda
HOBBYOP

2 years ago

okay. thanks for the help. can be marked as resolved.


Loading...