vm.max_map_count [65530] is too low during deployement
Hi everyone, I currently try to deploy a SonarQube application on Railway and during deployement, I got the following error : max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Do you know where this error can come from ?
I'm Hobby plan, normally I have 8 GB RAM / 8 vCPU per Service.
Or it is because Railway cannot host Elastic Search anymore as I understand ?
Have a good day guys π
16 Replies
Project ID:
473f1330-4814-4387-bb6a-f598705d6102
473f1330-4814-4387-bb6a-f598705d6102
@interstellartaco is the java dood
Try adding a
JAVA_OPTS=-Dvm.max_map_count=262144
environment variable.I've try but it doesn't work, I found this on the sonarqube dockerhub (https://hub.docker.com/_/sonarqube)
In the section "Docker Host Requirements", there is some command to run before running the image
Do you think it is possible to configure the docker host from environement variable of railway ?
sonarqube - Official Image | Docker Hub
SonarQube is an open source platform for continuous inspection of code quality.
If it's not possible, I will try to use DinD to create my own environnement
Do you think it is possible to configure the docker host from environment variable of railway?its not
I will try to use DinD to create my own environmentthats also not possible on railway lets wait and see if aleks can come up with something else
For DinD, it's for security reasons ? Or infrastructure ? Or another reason ?
the containers are not started with the permissions to allow that
Okay ^^
Hmm, I think this is actually a Railway infra thing
@jr since I'm not sure who to ping for what any more (sorry if I should have pinged someone else) - thoughts on increasing various system limits?
is this not a setting for the java virtual machine?
Nop unfortunately it's a setting for the docker host
In the source code of sonarqube, there is already this environment variable set : https://github.com/SonarSource/sonarqube/blob/12639b9a55950a24a971eeee7044e474dbb72e46/server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java#L165
GitHub
sonarqube/server/sonar-main/src/main/java/org/sonar/application/es/...
Continuous Inspection. Contribute to SonarSource/sonarqube development by creating an account on GitHub.
And I don't think it's rewrite elsewhere because I dind't find any other occurance of this key inside the repository
I think sonar is not compatible with railway, don't spend more time on this issue, thanks for your help