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

WinSW: Automatically terminate runaway processes in Windows services

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • core

      In Jenkins projects we have many users complaining that the slave/agent is "already connected", because they have a runaway slave/agent process. It happens when WinSW gets terminated without executing the process shutdown logic (force kill) or when WinSW fails to terminate the process.

      As a part of WinSW 2.0, it would be great to create a logic, which...

      • records PID of the created process to the disc
      • performs status check of the previously spawned process upon restart
      • terminates the runaway process if required

      It can be done via WinSW 2 "plugin"
      Issue: https://github.com/kohsuke/winsw/issues/125

          [JENKINS-39231] WinSW: Automatically terminate runaway processes in Windows services

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "winsw/issues/125 (Web Link)" [ 14981 ]
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-28492 [ JENKINS-28492 ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-26020 [ JENKINS-26020 ]
          mariem baccar made changes -
          Attachment New: Slave errors [ 34659 ]

          mariem baccar added a comment -

          I have the same issue with the slave "agent is already connected"". you find attached the whole meassage. I think that this issue decreases the performance of jenkins because it consumes a lot CPU. We are waiting for your help!

          mariem baccar added a comment - I have the same issue with the slave "agent is already connected"". you find attached the whole meassage. I think that this issue decreases the performance of jenkins because it consumes a lot CPU. We are waiting for your help!
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Oleg Nenashev added a comment -

          So there is a pul request for this feature: https://github.com/kohsuke/winsw/pull/133
          The pull request also references the release on GitHub with the binary file for evaluation: https://github.com/kohsuke/winsw/pull/133

          Oleg Nenashev added a comment - So there is a pul request for this feature: https://github.com/kohsuke/winsw/pull/133 The pull request also references the release on GitHub with the binary file for evaluation: https://github.com/kohsuke/winsw/pull/133
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "WinSW Pull 133 (Web Link)" [ 15073 ]

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: