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 wi
No, it is not possible.
Once the memory structure is fixed it cant be changed