Is it possible to modify JVM args using java code at runtime? [duplicate]
Asked Answered
M

2

5

Possible Duplicate:
Modify JVM args from inside the JVM

I found an old question about this Modify JVM args from inside the JVM. It is asked 3.5 years ago. Wondering if it is possible now?

Materfamilias answered 14/10, 2012 at 9:29 Comment(0)
L
8

Nope, it's still not possible to change JVM arguments at runtime. For most of the settings it most likely never will be possible either.

Lait answered 14/10, 2012 at 9:32 Comment(0)
C
1

In general no.

However there are some situations where you can change some specific configuration parameters at runtime, see e.g.:

Still, it is probably a bad idea to try to change JVM args at runtime - they are designed for one-off configuration of the runtime environment. If you find yourself wanting to change JVM arguments at runtime, I suspect that there is something wrong with your design in the first instance and you should look at alternative ways to achieve your objective.

Cabob answered 14/10, 2012 at 9:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.