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

Jenkins freezes at startup on ensureLoad call.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Environment:
      Tomcat 7 & Java 6 hosted on Windows Server 2008 R2
    • Similar Issues:

      Description

      Dear Jenkins users,

      We've got few jenkins masters deployed in Tomcat 7 & Java 6 hosted on Windows Server 2008 R2.
      They are restarted every mornings. Unfortunately since the 1.550 update, they randomly freeze on startup every day.

      The freeze symptoms are a blank page or a tomcat 500 error because the http thread pool is full.

      Using visualvm, it seems that the http requests are locked on the ExtensionList.ensureLoad.
      The thread locking this method is also locked on few calls:

      • Kernel32Utils.getWin32FileAttributes or Kernel32Utils.isJunctionOrSymlink used by the disk usage plugin
      • Kernel32Utils.getTempDir used in the constructor of HsErrPidList

      In both case Kernel32Utils calls are locked on a com.sun.jna.Pointer calls.

      Uninstalling the disk usage plugin and deleting the jenkins.diagnosis package in jenkins-core.jar resolves the problem (extensions are then not load).
      It seems that in the latest jenkins release, hudson.Util.isSymlinkJava7 corrects the Kernel32Utils.isJunctionOrSymlink freeze but not others.

      Best regards.

        Attachments

        1. jenkins-jna-getTempDir.png
          55 kB
          soumynona soumynona
        2. jenkins-jna-http-locked.png
          24 kB
          soumynona soumynona

          Issue Links

            Activity

            Hide
            janario Janario Oliveira added a comment - - edited

            Moving to the right component

            Show
            janario Janario Oliveira added a comment - - edited Moving to the right component
            Hide
            danielbeck Daniel Beck added a comment -

            This report needs to be updates with information on current Jenkins releases. Does this issue still occur with the current releases 1.609.1 or 1.610 and newer? Which Jenkins versions specifically are affected? Please also install the Support Core Plugin and attach a support bundle to this report.

            Show
            danielbeck Daniel Beck added a comment - This report needs to be updates with information on current Jenkins releases. Does this issue still occur with the current releases 1.609.1 or 1.610 and newer? Which Jenkins versions specifically are affected? Please also install the Support Core Plugin and attach a support bundle to this report.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            No response in the ticket, no new updates. I conditionally merge it to JENKINS-39179, which is more active and addresses similar problem in Kernel32Utils

            Show
            oleg_nenashev Oleg Nenashev added a comment - No response in the ticket, no new updates. I conditionally merge it to JENKINS-39179 , which is more active and addresses similar problem in Kernel32Utils

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              efeat soumynona soumynona
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: