max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Viewed 1325

I get this error when starting sonarqube.
I have tried:

sudo sysctl -w vm.max_map_count=262144

Which returns:

sysctl: setting key "vm.max_map_count"

And then:

sudo sysctl vm.max_map_count

It still says

vm.max_map_count = 65530

Does anyone know why Ubuntu 18.04 doesn't update vm.max_map_count?

Image with response from server commands

Thanks in advace,
Xander

2 Answers

The changes have not been applied on system. Run the sudo sysctl -p command to apply them and check the value again sudo sysctl vm.max_map_count.

running on docker or kubernetes, it is an optional to Elasticsearch bootstrap check be ignored in docker env

  containers: 
    - name: sonarqube
      image: sonarqube
      args: 
        - -Dsonar.web.context=/sonar
        - -Dsonar.es.bootstrap.checks.disable=true
Related