If Bamboo stops responding, or is performing poorly, you should create a thread dump to help Atlassian determine the cause of the problem.
This will show the state of each thread in the JVM, including a stack trace and information about what locks that thread is holding and waiting for.
Find the process id of the JVM and issue the command:
Use the ps command to get list of all processes.
kill -3 <pid>
Note: This will not kill your server (so long as you included the "-3" option, no space in between).
The thread dump will be printed to Bamboo's standard output.
Please note that some application servers (like tomcat) redirect stdout (to catalina.out for instance).
Sun JDK 1.5 and above ship with native tool called jstack
to perform thread dump. To use the tool find the Proccess ID and execute the command:
jstack <ProccessID>
1 Comment
Charles Albrecht
Mar 04, 2010Also available is
$JAVA_HOME/bin/jstack
, which prints stack results toSTDOUT
for the invoking process.I've never had particularly good luck with the
kill -3 <pid>
approach in a production environment (launching withbamboo.sh console
).