[SonarQube Community] - Running multiple instances on same host

I Need to run 2 SonarQube instances, on the same host:

  • We are currently using 2 different versions:
    • SonarQube 9.9.3
    • SonarQube 10.2
  • We have both on same parent folder, but each one has its own:
    • C:\Sonar\Sonar-9.9.3
    • C:\Sonar\Sonar-10.2
  • We need a SonarQube with historical runs of our previus pipelines, and another one only for Applications
    • SonarQube 9.9.3 being used as historical
    • SonarQube 10.2 being used for applications
  • At the moment we can only run one version at a time. In fact, we are using 2 different databases to achieve this.
    • Azure SQL Server - PaaS
      • Database for version 9.9.3 - SonarHist
      • Database for version 10.2 - Sonar


Welcome to the community!

I don’t understand why you would have gone down this road. You could certainly have kept everything together. And depending on how much history you’ve amassed in your 10.2 instance, I think it’s worth considering starting those projects over in your “historical” instance. (Note that in Enterprise Edition($$) you have the ability to move projects from one instance to another, assuming they’re on the same version.)


You say you can only run one instance at a time. Why is that? I suspect you get errors at startup of the second instance about not being able to bind to ports…? (If you’re not sure, take a look at your server logs.) Take a look at $SONARQUBE-HOME/conf/sonar.properties. Those ports are configurable.