How to change Java properties at runtime?

前端 未结 5 1537
温柔的废话
温柔的废话 2021-02-07 08:33

The question: Is there some way to \"connect\" to a running JVM and change system properties (given by -Dproperty=value) without stopping the JVM and without having programmed a

5条回答
  •  孤城傲影
    2021-02-07 08:51

    Not a long-term solution, but you could connect a debugger and hot-swap some code that returns the property value you want instead of looking up the property. This requires that you enabled remote debugging when you started JBoss though.

提交回复
热议问题