memory use does not decrease
sebastianpanotto
TRIALOP

2 years ago

For my business models in my app I have an income of users (20 to 30 approximately) in time slots well marked about two hours in the morning and three hours in the afternoon. The rest of the time there are no users using the app. I have noticed that when there is activity the memory usage increases, which makes sense; but during the periods where there are no users this memory usage does not decrease, it stays at the maximum reached. To make it decrease to a “normal” level I have to reset the service. Is there something wrong with my configuration? I would appreciate an explanation.

2 Replies

lima-e-silva
HOBBY

2 years ago

I have a pretty similar problem with a nextjs app... each user access increases the memory usage, but it never goes down, except when i restart the deploy.

I have tried a lot of things but found no solution. By the way, in dev enviroment, the RAM usage do not increase as in prod (it keeps something arround 150MB).


2 years ago

Probably not what you want to hear, but I think I should get it out of the way - This would be an application level issue as Railway is simply reporting on what your app uses.

Although, with that said, users have had better luck with memory consumption when using an alpine based image to run their apps, this means writing a custom Dockerfile that uses an alpine image.


Loading...