Docker not relasing memory

Hi All,

We are running spring boot application in Docker container and we found that once the utilized some memory it never released it until we restart the container.
Is there any way to release the memory without container restart? Or any solution?

Thanks in Advance.