Answers: <p>Please refer to the <a href="https://medium.com/swlh/sonarqube-sonarscanner-setup-1a633b654828" rel="nofollow noreferrer">following article</a> on the SonarQube - SonarScanner setup best practices. It will be good if the following <a href="https://docs.sonarqube.org/latest/requirements/hardware-recommendations/" rel="nofollow noreferrer">hardware recommendations </a> are considered for the SonarQube installations. Following are some of the important considerations.</p>
  <ul>
  <li>SonarQube server should be on a real DB not on H2.</li>
  <li>The analysis should occur very close to the SonarQube DB.</li>
  </ul>
  
Answers: CC BY-SA 4.0
Answers: 2021-02-03T22:34:10.490Z
Answers: I made sure to clarify. It is the scanner that is taking all the memory.
Answers: David West
Answers: CC BY-SA 4.0
Answers: 2021-02-04T17:50:34.897Z
Answers: We made absolutely sure that it is using a real database instead of H2. It is using ?MS SQL  Server. We also checked to see if the database is located in the same datacenter as the jenkins node that runs the scan. They are both in the same datacenter.
Answers: David West
Answers: CC BY-SA 4.0
Answers: 2021-02-03T20:36:14.863Z
Answers: 2021-02-22T18:20:43.977Z
Answers: 2021-02-22T18:20:43.977Z
Answers: Gokul Alex
Body: <p>I am running Sonarqube on a monolithic application on our CI server and the scanner (not the Sonarqube server) is taking over 60GB of memory.</p>
  <p>Is this normal?</p>
  <p>What can I do so the scanner will not use so much memory during the Sonarqube scan?</p>
  
Tags: <continuous-integration><cicd><sonarqube>
Title: Sonarqube taking massive amounts of memory
UserDisplayName: David West
ThreadText: # Sonarqube taking massive amounts of memory
  
  (Asked by: username_0 on 2021-02-03)
  
  I am running Sonarqube on a monolithic application on our CI server and the scanner (not the Sonarqube server) is taking over 60GB of memory.
  
  Is this normal?
  
  What can I do so the scanner will not use so much memory during the Sonarqube scan?
  
  **Tags:** continuous-integration, cicd, sonarqube
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-02-03. Score: 1
  
  Please refer to the [following article](https://medium.com/swlh/sonarqube-sonarscanner-setup-1a633b654828) on the SonarQube - SonarScanner setup best practices. It will be good if the following [hardware recommendations](https://docs.sonarqube.org/latest/requirements/hardware-recommendations/)  are considered for the SonarQube installations. Following are some of the important considerations.
  
  * SonarQube server should be on a real DB not on H2.
  * The analysis should occur very close to the SonarQube DB.
  
  > **Comments:**
  > **username_0**: I made sure to clarify. It is the scanner that is taking all the memory.  
  > **username_0**: We made absolutely sure that it is using a real database instead of H2. It is using ?MS SQL  Server. We also checked to see if the database is located in the same datacenter as the jenkins node that runs the scan. They are both in the same datacenter.  
  
  ---
  
  