Does the JVM give back free memory to the OS when no longer needed?

后端 未结 3 1896
灰色年华
灰色年华 2020-12-06 01:36

I have an application that temporarily needs some certain amount of memory/heap for some processes. Given a reasonable value of maximum heap size to the JVM as an option, th

3条回答
  •  执念已碎
    2020-12-06 02:20

    Not necessarily. It depends on JVM you use. I know of one case, with IBM's JVM. We also had an issue with a program not freeing memory, even when it's not needed. Some info can be found on IBM's site.

提交回复
热议问题