Sonar scans are running slower than usual post-upgrade

Hi! We just recently made an upgrade on our Sonarqube from 6.1 to 7.1. We noticed that ever since performing the upgrade, our sonar scans have been running about 80% slower than they were while on the 6.1 version. I’m not really sure what I can do to go about making these scans go by faster. We are running on RDS using postgres 9.5. We have the following plugins:

sonar-csharp-plugin-7.3.0.5690
sonar-flex-plugin-2.4.0.1222
sonar-groovy-plugin-1.5
sonar-java-plugin-5.6.0.15032
sonar-javascript-plugin-4.2.0.6476
sonar-json-plugin-2.3
sonar-ldap-plugin-2.2.0.608
sonar-php-plugin-2.13.0.3107
sonar-python-plugin-1.9.0.2010
sonar-scm-git-plugin-1.4.1.1128
sonar-scm-svn-plugin-1.8.0.1168
sonar-typescript-plugin-1.6.0.2388
sonar-web-plugin-2.6.0.1053
sonar-xml-plugin-1.5.1.1452

Any advice/guidance would be greatly appreciated! We do plan to upgrade to 7.9 LTS in the near future but we are looking for possible solutions for right now.

Hi,

Do you have any insight into where the extra time is being taken? Is it in server-side analysis report processing or CI-side analysis report creation? In a particular step of analysis? For all languages?

 
Ann

Hi

Thanks for your response. From what I am able to understand, the slowdown starts on the server side analysis reporting. I am able to run jobs on jenkins just fine and it sends the scan to sonarqube. Once it is time for Sonarqube to analyze and publish the report, that’s when it is taking a long time.

Hi,

Okay, thanks for that. Before I started talking I wanted to get a little confirmation of my suspicions. Early in the 7-series we introduced Live Measures, so that your issues counts, for instance, are always up to date. That table can get big and sometimes updating it is slow. I believe that’s what you’re seeing. We solved an Oracle-related performance hotspot on that table in 8.3.

Since 7.1 is past EOL, you should continue your upgrade path at your earliest convenience. From 7.1 you’ll need to move to 7.9.3 before you can transition to 8.3.

 
HTH,
Ann