Modify JVM args from inside the JVM

前端 未结 7 1292
野的像风
野的像风 2020-12-21 07:39

Is there a way to modify the jvm args from inside of the jvm? Specifically, I want to be able to change the maximum heap size of the jvm from inside of it. Is this possibl

7条回答
  •  醉话见心
    2020-12-21 08:14

    This is a halfway-serious, completely-off-the-wall hack-thought:

    ...what if you spawned a new instance of java (with the new settings) from the current jvm then killed the old process from the new? I have no idea if this will help or not (or even work)...

提交回复
热议问题