We have deployed a springboot application with a custom Dockerfile in railway. The container starts with 250mb ram usage on idle and after a load test the ram usage increases up to 1.5gb as configured. However after the load test ends, the application ram usage decreases up to 600mb on idle at most. When we do the same test with a docker container of the same app that is hosted on another platform, Ram usage decreases to its initial state of 250mb after the end of the load test. We are thinking that there is a problem with measuring ram usage in railway.
What could be the reason for this anomaly? Feel free to contact me so I can elaborate on this issue.