Why memory usage doesn't decrease?
mateo
PROOP

2 years ago

I have a deployment that starts with a normal memory usage, but throughout the day, the memory usage gradually increases. The memory only decreases when I redeploy the app, but it rises again with continued use. On the other hand, when running the app locally, the memory metrics decrease regularly. I'm using VisualVM for java. Because of this, I want to know: Does memory usage in Railway decrease by itself at any point, or how does it work?

10 Replies

mateo
PROOP

2 years ago

b48723c5-0f1d-4c8c-8ab5-38c338224327


2 years ago

There is a slim chance that this is an issue with the legacy runtime, can you try switching to the V2 runtime in your service settings and report back after a few hours


mateo
PROOP

2 years ago

How can I do it?


2 years ago

from within the service settings


mateo
PROOP

2 years ago

Ok. I did it. I'll report the result in a few hours. Thanks


2 years ago

sounds good!


mateo
PROOP

2 years ago

I've just checked, and the metrics increased a bit but it didn't decrease. Metrics just stayed at the same value of memory usage


2 years ago

then that is simply what your app is using is all


mateo
PROOP

2 years ago

Understood. Thanks for your help


2 years ago

no problem!


Loading...