-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
Major
-
Component/s: core
-
Environment:Host: SunOS 5.10 Generic_144488-04 sun4u sparc SUNW,Sun-Fire
JVM: java version "1.6.0_12"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_12-b04)
Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)
Run method: java -jar jenkins.war
JVM Args: -server -d64 -XX:+UseConcMarkSweepGC -Xmx5G
Jenkins Args: --ajp13Port=20006 --httpPort=20006Host: SunOS 5.10 Generic_144488-04 sun4u sparc SUNW,Sun-Fire JVM: java version "1.6.0_12" Java(TM) Platform, Standard Edition for Business (build 1.6.0_12-b04) Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode) Run method: java -jar jenkins.war JVM Args: -server -d64 -XX:+UseConcMarkSweepGC -Xmx5G Jenkins Args: --ajp13Port=20006 --httpPort=20006
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.