Memory options ElasticSearch

I’m trying to grant more memory to ElasticSearch, as we’re seeing some performance issues and I’m trying to troubleshoot how we can improve them. However, I keep hitting road blocks when trying to set any -Xmx and/or -Xms parameters

My latest attempt seems to have worked (at least, the Helm chart doesn’t give any problems anymore and the Pod is not stuck in a CrashLoopBackoff anymore). However, I have no clue if what I did actually worked or had an impact.

I added this line to my to my sonarProperties:
sonar.search.javaOpts: -Xms2g -Xmx2g

Is there a way to check the Pod to ensure that ES is indeed running with these settings? And is there a guide I can follow that contains instructions on what parameters to set when you want to grant more memory to ES?

Hey there.

Sorry for the late response here.

Once your SonarQube instance has started, you can check your global Administration > System to see what memory settings have been taken for the Search JVM.

1 Like