5

I know you can set max heap size at startup using -Xmx but is it possible to change it dynamically during runtime?

Is there any tool or (undocumented) api which will allow me to do that?

trincot
  • 317,000
  • 35
  • 244
  • 286
pdeva
  • 43,605
  • 46
  • 133
  • 171

2 Answers2

7

No, it is not possible.

Marko
  • 30,263
  • 18
  • 74
  • 108
2

Once the memory structure is fixed it cant be changed

Umair Ahmed
  • 11,238
  • 5
  • 33
  • 39