Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70694

Sonar Plugin Causes Hung Threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • sonar-plugin
    • None

      The sonar plugin seems to be causing hung threads on our jenkins server. When requesting certain pages, like the Pull Request list on multibranch-pipeline jobs, or the blue ocean view for some jobs, the browser page will load forever and eventually time out in apache. I tested bypassing apache reverse proxy and it just hung indefinitely.

      I ran a thread dump on the jenkins server and I see hung threads for each time I attempted to load the page, that are waiting on code in the sonar plugin. These threads have persisted indefinitely, until the Jenkins server was restarted.

      The jobs that have issues have large (~80) parallel build matrixes, each with a sonar stage, so we may be overloading the sonar server when trying to get the status of all of the jobs. However it seems like the requests should have a client timeout/retry on the jenkins side so that the threads don't get stuck forever.

       

      I have attached one of the stack traces of the threads as a txt file

            sonarteam Sonar Team
            msedlik Mason
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: