For elasticsearch 5.x, is it necessary to set up the JVM parameter MetaspaceSize?

Hi,
For elasticsearch 5.x, is it necessary to set up the JVM parameter MetaspaceSize?

Thanks!

Hey,

it is not configured by default (so it could potentially grow unbounded). You can configure it in the jvm.options file if you want to.

--Alex

Hi Alex,
If i do not configure it, will it lead to fullgc ?

The idea is not to generate millions of classes at runtime (for example with scripting), so metaspace should not grow infinetly with normal operations. So it depends on your use-case and might be something you should monitor.

Why are you about metaspace? Is this giving you issues?

--Alex

Thank you for your answer, I'm just interested in it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.