Is it possible to modify JVM args using java code at runtime?

Possible duplicate:
Modify JVM Arguments Inside JVM

I found an old question about this Change JVM Arguments from JVM . He is asked 3.5 years ago. Want to know if this is possible now?

+4
source share
2 answers

Cannot change JVM arguments at runtime. For most settings, this will most likely never be possible.

+7
source

Generally not.

However, there are some situations where you can change some specific configuration parameters at runtime, see for example:

However, it is probably a good idea to try changing the JVM arguments at runtime - they are intended for one-time setup of the runtime. If you find that you want to change the JVM arguments at runtime, I suspect that something is wrong with your design in your case, and you should look at alternative ways to achieve your goal.

+1
source

Source: https://habr.com/ru/post/1439629/


All Articles