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

Building on multiple cores causes plugin to stall

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: msbuild-plugin
    • Labels:
      None
    • Environment:
      Windows 7 Pro 64 bit
      MSBuild 15
      Jenkins 2.150.3 (self-updated after install from the official 2.150.1 windows installer)
      MSBuild-plugin 1.29
    • Similar Issues:

      Description

      When using multiple (logical) cores for the build (/M switch), msbuild.exe spawns extra msbuild.exe processes (depending on the number of cores and build tasks). These spawned worker processes do not (immediately) shut down after build is finished, but they are re-used by subsequent invocations of msbuild.exe, so that's not a problem.

      What is a problem though, is that the plugin hangs around for these worker processes to exit (I suppose), and with the 2 minute process termination waiting period introduced in 2.141, causes the build to stall for a period of a multiple of 2 minutes. As far as I can see, these worker processes are not a problem, and thus should not be forced to shut down. Setting -DSoftKillWaitSeconds=0 affects other things than this plugin, so I don't think that's a viable workaround.

        Attachments

          Activity

          Hide
          matthiesenj Jesper Matthiesen added a comment -

          I found out that by using the option /nr:false (node reuse=false), the spawned build processes are terminated as soon as the parent is done, and so fixes the stall. Since the plugin insists on waiting for the spawned processes to end, this option should probably be implicit.

          Show
          matthiesenj Jesper Matthiesen added a comment - I found out that by using the option / nr:false (node reuse=false), the spawned build processes are terminated as soon as the parent is done, and so fixes the stall. Since the plugin insists on waiting for the spawned processes to end, this option should probably be implicit.

            People

            Assignee:
            marshall777 Lionel Cabasson
            Reporter:
            matthiesenj Jesper Matthiesen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: