title: How to change Xmx settings for sonar runner?
body: <p>I have a Sonarqube instance running as a docker container. Since I updated it to version 7.1 the analysis of my greatest project fails with <code>GC limit exceeded</code>. If I restart the server, it might succeed once. After a while of researching this issue, I am tempted to believe, I need to increase the <code>Xmx</code> value for the background task.</p>
  
  <p>Where and how can I configure this parameter?</p>
  
  <hr>
  
  <p><strong>docker-compose.yml</strong></p>
  
  <pre><code>version: "2"
  services:
  
    postgres:
      image: postgres:9-alpine
      container_name: postgres
      restart: always
      volumes:
        - /opt/docker-postgres/etc:/etc/postgresql
        - /opt/docker-postgres/log:/var/log/postgresql
        - /opt/docker-postgres/data:/var/lib/postgresql/data
      environment:
        POSTGRES_DB: sonar
        POSTGRES_USER: &lt;SONAR_USER&gt;
        POSTGRES_PASSWORD: &lt;SONAR_PASSWORD&gt;
  
    sonar:
      image: sonarqube:alpine
      container_name: sonar
      restart: always
      ports:
        - "9000:9000"
        - "9092:9092"
      environment:
        SONARQUBE_JDBC_USERNAME: &lt;SONAR_USER&gt;
        SONARQUBE_JDBC_PASSWORD: &lt;SONAR_PASSWORD&gt;
        SONARQUBE_JDBC_URL: jdbc:postgresql://postgres/sonar
      volumes:
        - /opt/docker-sonar/conf:/opt/sonarqube/conf
        - /opt/docker-sonar/data:/opt/sonarqube/data
        - /opt/docker-sonar/extensions:/opt/sonarqube/extensions
        - /opt/docker-sonar/bundled-plugins:/opt/sonarqube/lib/bundled-plugins
  </code></pre>