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

File pattern (e.g. archive) field validation can run forever

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core

      Every few days, the Jenkins UI hangs and becomes totally unresponsive, i.e. "Jenkins is not picking up HTTP requests, so all attempts to connect hang and no page is ever rendered."
      It doens't seem to be connected with a certain job getting started or anything.

      I couldn't get a thread dump from the UI, nor from jstack, only from jstack -F. I could get the jmap -heap, but not the full heap dump. Both outputs are attached. If I understand that right, we are in a GC spiral.

      Is there anything I can do to help debugging this?

        1. jmap.out
          1 kB
        2. jstack.out
          170 kB
        3. jconsole.png
          jconsole.png
          45 kB
        4. jhat.PNG
          jhat.PNG
          225 kB
        5. config.xml
          1 kB

          [JENKINS-36559] File pattern (e.g. archive) field validation can run forever

          Olaf Lenz created issue -
          Olaf Lenz made changes -
          Environment Original: Jenkins 2.12
          $ uname -a
          Linux socvm459 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Aug 11 13:37:49 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
          $ java -version
          openjdk version "1.8.0_91"
          OpenJDK Runtime Environment (build 1.8.0_91-b14)
          OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
          New: Jenkins 2.12, Linux RHEL7, OpenJDK 1.8

          $ uname -a
          Linux socvm459 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Aug 11 13:37:49 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
          $ java -version
          openjdk version "1.8.0_91"
          OpenJDK Runtime Environment (build 1.8.0_91-b14)
          OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

          Olaf Lenz added a comment -

          Aparently, it looks like a heap memory overflow.
          Within a few minutes after start, when looking at jmap --heap, I see that the Eden space becomes completely filled.

          I have updated to 2.13, but that didn't help.

          Olaf Lenz added a comment - Aparently, it looks like a heap memory overflow. Within a few minutes after start, when looking at jmap --heap , I see that the Eden space becomes completely filled. I have updated to 2.13, but that didn't help.

          Olaf Lenz added a comment -

          It looks as though the memory overflow happens when I start editing a job. The attached screenshot shows the jconsole memory tab.
          Jenkins had already run for about an hour without any trouble.
          At 11:34, I started editing one of the job configurations. After about 2 minutes, memory was full, and GC couldn't recover any memory, so Jenkins hangs.

          Olaf Lenz added a comment - It looks as though the memory overflow happens when I start editing a job. The attached screenshot shows the jconsole memory tab. Jenkins had already run for about an hour without any trouble. At 11:34, I started editing one of the job configurations. After about 2 minutes, memory was full, and GC couldn't recover any memory, so Jenkins hangs.
          Olaf Lenz made changes -
          Attachment New: jconsole.png [ 33265 ]

          Olaf Lenz added a comment -

          More information: it looks as though the problem only happens when I want to edit one particular job. I have attached the job's XML.

          Olaf Lenz added a comment - More information: it looks as though the problem only happens when I want to edit one particular job. I have attached the job's XML.
          Olaf Lenz made changes -
          Attachment New: config.xml [ 33266 ]

          Olaf Lenz added a comment -

          I have managed to create a heap dump shortly before jenkins hangs. Unfortunately, the heap dump is rather big (4.6 GB), so I better do not attach it here.

          Olaf Lenz added a comment - I have managed to create a heap dump shortly before jenkins hangs. Unfortunately, the heap dump is rather big (4.6 GB), so I better do not attach it here.
          Olaf Lenz made changes -
          Attachment New: jhat.PNG [ 33267 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-31981 [ JENKINS-31981 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-7615 [ JENKINS-7615 ]

            danielbeck Daniel Beck
            olenz Olaf Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: