Elasticsearch heap usage increase after switching from Oracle Java 8 to OpenJDK11

Hello all,

I have started testing of running Elasticsearch on OpenJDK11 and noticed that the jvm heap usage has changed.

I changed the JAVA version and had to adjust jvm.options. I'm using Elasticsearch version 6.8.2.

Heap usage has become much more regular but has gone up by ~20%
I'm using the default jvm.options that is distributed with Elasticsearch (version 7.3 I think, I know it is not the same version as I use but it should be good for OpenJDK11)

I have set

-Xms16g
-Xmx16g

JVM heap usage used to max out at about 12G, now it is a pretty constant 14,2G.

Is this expected? I assume this is due to differences in garbage collection between JAVA versions. JVM heap usage is much more constant now and CPU usage seems to be slightly lower (as reported by Kibana monitoring).

I have 1400+ shards per instance, which I know is over the soft limit for Elasticsearch 7.+, so I should do something about that. Other than that, is this anything to worry about?

I appreciate any info, tips, tricks :slight_smile:
-AB

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