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

Thread dump when a build time out

    Details

    • Similar Issues:

      Description

      Print thread dump when halting build due to time out. This may ease troubleshooting the cause of the time out.

        Attachments

          Issue Links

            Activity

            Hide
            walterk82 Walter Kacynski added a comment -

            With the timeout action available now, you can run a system groovy script to print a stack trace.

            Show
            walterk82 Walter Kacynski added a comment - With the timeout action available now, you can run a system groovy script to print a stack trace.
            Hide
            vrozov Vlad Rozov added a comment -

            I can't find a system groovy script to print a stack trace, so I used the following shell script that relies on the knowledge that the timeout is caused by the unit test fired by maven surefire plugin.

            pgrep -n -f surefire | xargs jstack

            Show
            vrozov Vlad Rozov added a comment - I can't find a system groovy script to print a stack trace, so I used the following shell script that relies on the knowledge that the timeout is caused by the unit test fired by maven surefire plugin. pgrep -n -f surefire | xargs jstack

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                thomaskatalis Thomas Santosa
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: