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

Add a way to configure JVM options for Compute Engine #83

Closed
rsvoboda opened this issue May 24, 2017 · 2 comments
Closed

Add a way to configure JVM options for Compute Engine #83

rsvoboda opened this issue May 24, 2017 · 2 comments
Labels

Comments

@rsvoboda
Copy link

Right now I can configure SONARQUBE_WEB_JVM_OPTS (https://github.com/SonarSource/docker-sonarqube/blob/master/6.3.1/run.sh#L14) to tune JVM for Web Server. There is no way to configure JVM for Compute Engine.

I suggest to introduce SONARQUBE_CE_JVM_OPTS property.

@Godin
Copy link
Member

Godin commented May 24, 2017

Properties mentioned in https://github.com/SonarSource/sonarqube/blob/5.6.6/sonar-application/src/main/assembly/conf/sonar.properties that control JVM options of underlying processes (sonar.web.javaOpts, sonar.ce.javaOpts and sonar.search.javaOpts) can be passed as following

docker run -d sonarqube -Dsonar.ce.javaOpts=-Xmx2048m

and equivalent of this in a docker-compose notation:

version: "2"

services:
  sonarqube:
    image: sonarqube
    command: -Dsonar.ce.javaOpts=-Xmx2048m

@Godin Godin closed this as completed May 24, 2017
@Godin Godin added the question label May 24, 2017
@rsvoboda
Copy link
Author

Thank you for the tip, it works nicely. I also removed usage of SONARQUBE_WEB_JVM_OPTS and use -Dfoo.bar approach.

@SonarSource SonarSource locked as resolved and limited conversation to collaborators Jan 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants