Note, this is not about GC
When I am doing a performance test on a SpringBoot application. I use JVisualVM to monitor the process and I curious to found it release memory to OS sometimes:
While monitoring an app created in my own framework, although there are huge gap between used heap size and the allocated memory, it still hold the memory instead of release some back to OS:
Does anyone know how can I force JVM to release memory back to OS if needed?