Is it possible to dynamically change maximum java heap size?

后端 未结 2 478
小蘑菇
小蘑菇 2020-12-21 01:25

I know you can set max heap size at startup using -Xmx but is it possible to change it dynamically during runtime?

Is there any tool or (undocumented) api which wi

相关标签:
2条回答
  • 2020-12-21 01:31

    No, it is not possible.

    0 讨论(0)
  • 2020-12-21 01:45

    Once the memory structure is fixed it cant be changed

    0 讨论(0)
提交回复
热议问题