My sonar analysis takes a long time to complete. Initially it took around 20-30 mins. Later it increased to 1hr+. Now after 5 months it takes whole 5 hours. Can someone suggest the reason and how to rectify the same.
I use sonarqube 4.4 with postgresql 9.3 db. The sonar db takes up almost 40G of space.
If you check my log below you will notice that most of the time is spent on IndexProjectPostJob.
08:53:47.437 INFO - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
08:53:48.687 INFO - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
12:56:24.924 INFO - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
12:56:26.601 INFO - -> Keep one snapshot per day between 2015-06-10 and 2015-07-07