Why memory usage doesn't decrease?
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?
11 Replies
Project ID:
b48723c5-0f1d-4c8c-8ab5-38c338224327
b48723c5-0f1d-4c8c-8ab5-38c338224327
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
How can I do it?
from within the service settings
Ok. I did it. I'll report the result in a few hours. Thanks
sounds good!
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
Solution
then that is simply what your app is using is all
Understood. Thanks for your help
no problem!