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?
No description
No description
Solution:
then that is simply what your app is using is all
Jump to solution
11 Replies
Percy
Percy4mo ago
Project ID: b48723c5-0f1d-4c8c-8ab5-38c338224327
Great_Alfa777
Great_Alfa7774mo ago
b48723c5-0f1d-4c8c-8ab5-38c338224327
Brody
Brody4mo 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
Great_Alfa777
Great_Alfa7774mo ago
How can I do it?
Brody
Brody4mo ago
from within the service settings
Great_Alfa777
Great_Alfa7774mo ago
Ok. I did it. I'll report the result in a few hours. Thanks
Brody
Brody4mo ago
sounds good!
Great_Alfa777
Great_Alfa7774mo 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
Solution
Brody
Brody4mo ago
then that is simply what your app is using is all
Great_Alfa777
Great_Alfa7774mo ago
Understood. Thanks for your help
Brody
Brody4mo ago
no problem!
Want results from more Discord servers?
Add your server