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
  • 263,463
  • 30
  • 215
  • 251
pdeva
  • 39,995
  • 43
  • 129
  • 163

2 Answers2

7

No, it is not possible.

Marko
  • 29,332
  • 17
  • 72
  • 108
2

Once the memory structure is fixed it cant be changed

Umair Ahmed
  • 10,652
  • 5
  • 31
  • 38