Bootstrap checks failed - initial heap size [130023424] not equal to maximum heap size [2051014656]

I am getting this error in sonar.log and es.log regarding starting elasticsearch:

ERROR: [1] bootstrap checks failed

[1]: initial heap size [130023424] not equal to maximum heap size [2051014656]; this can cause resize pauses and prevents mlockall from locking the entire heap

Most sources advise to set the initial and maximum heap sizes the same in jvm.options. However, they are already set the same in my elasticsearch jvm.options file:

-Xms1g
-Xmx1g

Any suggestions on what to do from here?

Thank you in advance

Hi @sonaruser2,

This is configured in your sonar.properties file (you shouldn’t need to touch ES’s jvm.options). Take a look in <SQ_DIRECTORY>/conf/sonar.properties and check the configuration of sonar.search.javaOpts.

Regards,

Cameron.

Thank you, that worked for me to set the heap sizes using sonar.search.javaOpts in sonar.properties file.

Excellent; glad to hear it!

Regards,

Cameron.