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?

Community
  • 1
  • 1
DeepNightTwo
  • 4,809
  • 8
  • 46
  • 60

2 Answers2

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.

Aleksander Blomskøld
  • 18,374
  • 9
  • 76
  • 82
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.

mikera
  • 105,238
  • 25
  • 256
  • 415