This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major
    • Component/s: core
    • Environment:

      We find that on our solaris host that all jobs hang for about twenty minutes after they have completed. This is true even of jobs that contain no steps. No additional plugins have been installed.

      The threaddump page reveals that the job seems to hang on reading from the proc file system,

      Executor #0 for master : executing noopjob #1

      "Executor #0 for master : executing noopjob #1" Id=82 Group=main RUNNABLE
      at java.io.RandomAccessFile.read(Native Method)
      at hudson.util.ProcessTree$Solaris$SolarisProcess.readLine(ProcessTree.java:846)
      at hudson.util.ProcessTree$Solaris$SolarisProcess.getEnvironmentVariables(ProcessTree.java:826)

      • locked hudson.util.ProcessTree$Solaris$SolarisProcess@6322be0b
        at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:266)
        at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:482)
        at hudson.Launcher$LocalLauncher.kill(Launcher.java:730)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:484)
        at hudson.model.Run.run(Run.java:1404)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:230)

      The noopjob job is a "free-style software project" job and contains no steps.

      I've attached the thread dump and several screenshots

      I have more information now after increasing the logging level of hudson.util.ProcessTree to FINER. I have attached the log entries that were written during the execution of the job with no steps. From the log entries it seems that one or more instances of ProcessTree$Solaris$SolarisProcess are reading the /proc/<pid>/as of several processes (perhaps all processes on the host). It blocks on a few of them: 11665 for just under a minute, 20118 for 4 minutes, 9522 for 1 minute, 11665 for 4 minutes, and 357 for just under a minute. Each of these process have nothing to do with jenkins.

      I've figured out that each of these processes are instances of the same application - a large java application that is running on the same host.

        1. thread_dumpt.txt
          17 kB
        2. noopjob-configuration.png
          noopjob-configuration.png
          25 kB
        3. hudson.util.Process-entries.log
          10 kB
        4. build-status.png
          build-status.png
          43 kB
        5. build-output-of-hanging-job.png
          build-output-of-hanging-job.png
          37 kB
        6. build-output.png
          build-output.png
          37 kB

            Assignee:
            Unassigned
            Reporter:
            Simon
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: