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?

2 Answers 2

7

No, it is not possible.

Sign up to request clarification or add additional context in comments.

1 Comment

Which is too bad so we could have GC ergonomic agents.
2

Once the memory structure is fixed it cant be changed

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.