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

Jenkins no longer cleaning up child processes when build stopped - as of 1.587

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Similar to bug 22641, Jenkins no longer cleaning up child processes when a job is stopped.

      To reproduce : Start any job with a surefire execution, once the tests start running, stop the job through the jenkins interface. The surefire process continues to run.

      Just like bug 22641, this behavior started in 1.553, was resolved in 1.565.2, then started again in 1.587.

      Rating this as critical because processes build up eventually causing issues with running out of memory or hitting the nproc limit.

        Attachments

          Issue Links

            Activity

            Hide
            pyrocks Mor L added a comment -

            Hi,

            We're facing a similar issue - but we're using gradle and not using maven or surefire.

            We use pipeline and call gradle using the bat step (windows 64 bit slaves, master is on windows too).

            This happens on 2 separate projects in which gradle spawns child processes for testing using various other tools. Sometimes 'gradle test' hangs due to bugs in the test code/scenarios and when we stop the build - there are always java processes left up which we have to kill manually.

            Verified that ProcessTreeKiller is not disabled.

            Using Jenkins 2.73.3, pipeline suite 2.5.

            Show
            pyrocks Mor L added a comment - Hi, We're facing a similar issue - but we're using gradle and not using maven or surefire. We use pipeline and call gradle using the bat step (windows 64 bit slaves, master is on windows too). This happens on 2 separate projects in which gradle spawns child processes for testing using various other tools. Sometimes 'gradle test' hangs due to bugs in the test code/scenarios and when we stop the build - there are always java processes left up which we have to kill manually. Verified that ProcessTreeKiller is not disabled. Using Jenkins 2.73.3, pipeline suite 2.5.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Apparently the 32bit OS support was partially broken in WinP: https://github.com/kohsuke/winp/issues/48
            Does anybody see the issue on 64bit systems?

            Show
            oleg_nenashev Oleg Nenashev added a comment - Apparently the 32bit OS support was partially broken in WinP: https://github.com/kohsuke/winp/issues/48 Does anybody see the issue on 64bit systems?
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I will have no time to work on it anytime soon, please see https://groups.google.com/d/msg/jenkinsci-dev/uc6NsMoCFQI/AIO4WG1UCwAJ for the context. I will unassign it so that somebody else can work on it

            Show
            oleg_nenashev Oleg Nenashev added a comment - I will have no time to work on it anytime soon, please see https://groups.google.com/d/msg/jenkinsci-dev/uc6NsMoCFQI/AIO4WG1UCwAJ for the context. I will unassign it so that somebody else can work on it
            Hide
            pi0tras Piotr Zolnacz added a comment -

            Hi, 

            I'm going to fix this bug, this is quite critical for my daily work with jenkins. 

            Oleg Nenashev it seems like it doesn't appear in 64 bit slaves.

            Show
            pi0tras Piotr Zolnacz added a comment - Hi,  I'm going to fix this bug, this is quite critical for my daily work with jenkins.  Oleg Nenashev it seems like it doesn't appear in 64 bit slaves.
            Hide
            josch Johannes Schmieder added a comment -

            Is there a solution in sight? Or is it solved by running a slave at 64 bit?

            Show
            josch Johannes Schmieder added a comment - Is there a solution in sight? Or is it solved by running a slave at 64 bit?

              People

              Assignee:
              pi0tras Piotr Zolnacz
              Reporter:
              dbogardus Don Bogardus
              Votes:
              38 Vote for this issue
              Watchers:
              38 Start watching this issue

                Dates

                Created:
                Updated: