Problem with thread dump

We are having an issue with TeamCity whereby it can’t produce stack dumps.  The error message we get in the browser is "no java processes detected."

Here is the agent's log when we try to create a thread dump…

 

[2010-06-09 11:13:13,932]   INFO - rocesses.ProcessTreeTerminator - Use jetbrains.buildServer.processes.ProcessTreeTerminatorLinux

[2010-06-09 11:13:14,175]   INFO - ses.ProcessTreeTerminatorLinux - Thread is Process thread model: false

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 28328 PPID: 8079 CMD: /bin/ksh /home/devtools/te...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 28330 PPID: 28328 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 22350 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 21744 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 5811 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 22333 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 23847 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 23491 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 21354 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - processes.VisitableProcessTree - Visited process: PID: 5749 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

[2010-06-09 11:13:14,175]   INFO - stacktraces.agent.DoThreadDump - Threaddumps: Running processes

PID: 22350 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 21744 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 5811 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 22333 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 28328 PPID: 8079 CMD: /bin/ksh /home/devtools/te...

PID: 23847 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 28330 PPID: 28328 CMD: /local/opt/sunjava32-1.6.0...

PID: 23491 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 5749 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

PID: 21354 PPID: 28330 CMD: /local/opt/sunjava32-1.6.0...

 

[2010-06-09 11:13:14,175]   INFO - acktraces.agent.nix.JdkLocator - Looking for JPS in agent-running jvm...

[2010-06-09 11:13:14,175]   INFO - acktraces.agent.nix.JdkLocator - Lookup for JPS. Found: jps

[2010-06-09 11:13:14,175]   INFO - r.stacktraces.agent.nix.JpsRun - jps call: jps -q

[2010-06-09 11:13:14,303]   WARN - r.stacktraces.agent.nix.JpsRun - JPS failed with code -1

[2010-06-09 11:13:14,303]   INFO - aces.agent.nix.NixDoThreadDump - detected java processes: []

1 comment

We discussed it by email.

There were some issues in jps detection fixed in TeamCity 5.1.2.

If TeamCity failed to locate java, it will use jps from PATH. Please check
PATH contains working version of 'jps' and 'jstack'

0

Please sign in to leave a comment.