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

Heath metrics produces serious performance issues

XMLWordPrintable

      1. The issue

      The weather icon at folder level is very expensive to be computed and it produces serious performance issues.

      Usually, the issue is manifested because the main Jenkins dashboard can't be accessible, but you can access to /manage or /whatever - as long as you don't reach out the main dashboard

      The issue happend with cloudbees-folder:6.7:not-pinned and `2.164.3.2`

      1. Thread dump
      Handling GET / from XX.XX : qtp2007328737-18019 View/index.jelly WeatherColumn/column.jelly
      "Handling GET / from XX.XX : qtp2007328737-18019 View/index.jelly WeatherColumn/column.jelly" Id=18019 Group=main BLOCKED on hudson.model.RunMap@54e0b52f owned by "Handling GET / from XX.XX : qtp2007328737-17568 View/index.jelly WeatherColumn/column.jelly" Id=17568
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:370)
      	-  blocked on hudson.model.RunMap@54e0b52f
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:346)
      	at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:276)
      	at jenkins.model.lazy.LazyBuildMixIn.getLastBuild(LazyBuildMixIn.java:245)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.getLastBuild(WorkflowJob.java:242)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.getLastBuild(WorkflowJob.java:105)
      	at hudson.model.Job.getBuildHealthReports(Job.java:1205)
      	at hudson.model.Job.getBuildHealth(Job.java:1198)
      	at com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric.getHealthReport(FolderHealthMetric.java:48)
      	at com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric$ReporterImpl.observe(WorstChildHealthMetric.java:86)
      	at com.cloudbees.hudson.plugins.folder.AbstractFolder.getBuildHealthReports(AbstractFolder.java:939)
      	at sun.reflect.GeneratedMethodAccessor757.invoke(Unknown Source)
      

            allan_burdajewicz Allan BURDAJEWICZ
            fbelzunc FĂ©lix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: