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

OutOfMemory errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: core
    • Environment:
      Jenkins 1.5.92 (Running in Jenkins App)
      Java HotSpot(TM) 64-Bit Server VM
      MacOSX 10.10.1
      IE 11
      PlugIns provided in attached screenshot.
    • Similar Issues:

      Description

      I get OutOfMemory exceptions every so often.

      I noticed that I can get these to occur if I do a lot of job configuration followed by running them. The jobs themselves are pretty simple.

      I have heap dumps but don't have a way to share them. I've included the Summary page as an attachment.

      The JVM parameters are:
      -Xmx3G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/Users/mobiledevbuilduser/JenkinsCrashes

        Attachments

        1. PlugIns.PNG
          PlugIns.PNG
          41 kB
        2. JavaFlags.txt
          64 kB
        3. HeapDumpSummary.txt
          69 kB

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          What size is the PermGen space? If it's 64M or so, Jenkins needs more than that (depending on plugins etc.)

          Show
          danielbeck Daniel Beck added a comment - What size is the PermGen space? If it's 64M or so, Jenkins needs more than that (depending on plugins etc.)
          Hide
          tcihak Ted Cihak added a comment -

          The MaxPermSize is 85983232. I don't explicitly set it.
          The "JavaFlags.txt" attachment contains all the JVM default values.

          Show
          tcihak Ted Cihak added a comment - The MaxPermSize is 85983232. I don't explicitly set it. The "JavaFlags.txt" attachment contains all the JVM default values.
          Hide
          danielbeck Daniel Beck added a comment -

          The MaxPermSize is 85983232. I don't explicitly set it.

          If that's bytes, it's 82 MB. Try setting that manually to 128m or 256m.

          Show
          danielbeck Daniel Beck added a comment - The MaxPermSize is 85983232. I don't explicitly set it. If that's bytes, it's 82 MB. Try setting that manually to 128m or 256m.
          Hide
          tcihak Ted Cihak added a comment -

          I will increase it's size.

          BTW, the default size of 82 MB makes sense since the Oracle documentation says the default value is 64MB and 64-bit VM's scale it 30% larger.

          Do you think there's a leaking class loader somewhere?

          Show
          tcihak Ted Cihak added a comment - I will increase it's size. BTW, the default size of 82 MB makes sense since the Oracle documentation says the default value is 64MB and 64-bit VM's scale it 30% larger. Do you think there's a leaking class loader somewhere?
          Hide
          danielbeck Daniel Beck added a comment -

          Not necessarily. But Jenkins + a few plugins has a ton of classes already (due to bundled libraries etc.), and the use of Groovy on some pages only generates more (temporarily). So the default may well be a little too low. But you can always keep track of that if you have some concerns.

          Show
          danielbeck Daniel Beck added a comment - Not necessarily. But Jenkins + a few plugins has a ton of classes already (due to bundled libraries etc.), and the use of Groovy on some pages only generates more (temporarily). So the default may well be a little too low. But you can always keep track of that if you have some concerns.
          Hide
          danielbeck Daniel Beck added a comment -

          Assuming an issue with the default JRE PermGen size, which is fixed through configuration (and obsolete with Java 8 anyway), so resolving as Not A Defect.

          Show
          danielbeck Daniel Beck added a comment - Assuming an issue with the default JRE PermGen size, which is fixed through configuration (and obsolete with Java 8 anyway), so resolving as Not A Defect.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tcihak Ted Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: