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

Awful job step execution performance over WinRM connection

      I'm using the ec2-plugin to launch Windows nodes in EC2. The instances are launched correctly, and the slave.jar is started over WinRM once a WinRM connection was established.

      Running a simple freestyle job containing a single batch step (echo TEST) works perfectly fine and finishes immediately.

      Running a similar pipeline job (bat 'echo TEST') takes 22 minutes (!!!) to finish. Adding the same node to jenkins manually via JNLP allows this job to also finish immediately. I can consistently reproduce these behaviours.

      Here's some log output from the durable step plugin and the winrm package of the ec2-plugin: https://gist.github.com/anonymous/074223af8b5942b0363f

      There's more log information available, but it looks mostly the same: A lot of InterruptedExceptions all over the place.

      As running the slave over JNLP instead of WinRM seems to work perfectly fine, I believe this to be some weird interaction between the WinRM connection and the Filesystem Monitors in the Durable Task plugin.

          [JENKINS-32547] Awful job step execution performance over WinRM connection

          Arthur Schreiber created issue -
          Jesse Glick made changes -
          Remote Link New: This issue links to "workflow-plugn PR 316 (Web Link)" [ 13760 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Francis Upton made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168191 ] New: JNJira + In-Review [ 209633 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Andrew Bayer made changes -
          Labels Original: performance slave windows workflow New: performance pipeline slave windows workflow
          Andrew Bayer made changes -
          Labels Original: performance pipeline slave windows workflow New: performance pipeline slave windows

            jglick Jesse Glick
            arthurschreiber Arthur Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: