Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap check fails from insufficient vm.max_maps_count setting #310

Closed
WingsLikeEagles opened this issue Aug 22, 2019 · 6 comments
Closed

Comments

@WingsLikeEagles
Copy link

WingsLikeEagles commented Aug 22, 2019

Solution: Please enable the flag for disabling mmapfs (node.store.allow_mmapfs=false).

Issue: When trying to start SonarQube in a Docker container, the default setting for memory maps on most hosts is 65536 (systctl vm.max_maps_count=65536). ElasticSearch by default uses memory map file system (hybrid actually, niofs and mmapfs). It checks to see that the max map count is high enough to not run out of memory maps, and if not it tries to set the system setting "sysctl -w vm.max_map_count=262144". This fails in a Docker container as the /proc/ is mounted as Read-Only.

To get around this, Version 6.5+ of ElasticSearch allows you to disable mmapfs, and use only NIOFS. That then also removes the check for max_map_count since it's no longer using memory maps.

@WingsLikeEagles
Copy link
Author

@WingsLikeEagles
Copy link
Author

@WingsLikeEagles
Copy link
Author

Ok, so this is implemented... but the name is off...
https://jira.sonarsource.com/browse/SONAR-12264

@WingsLikeEagles
Copy link
Author

Currently, setting this Environment Variable in the Rancher service disables using mmap and allows the container to start.
sonar.search.javaAdditionalOpts=-Dnode.store.allow_mmapfs=false

@WingsLikeEagles
Copy link
Author

This option is available, but incorrectly named. See
https://jira.sonarsource.com/browse/SONAR-12264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant