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

java.lang.OutOfMemoryError: GC overhead limit exceeded

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

       

      We are seeing our CI jenkins server crashing frequently(atleast once in a day) with error: 
       
      java.lang.OutOfMemoryError: GC overhead limit exceeded

      {{}}

      We collected Heap dump and tried to analyse using Eclipe Memory Analyser tool(Eclipse MAT).We see below message in the report:

       
      The thread java.lang.Thread @ 0x5d69c4500 Handling GET /job/<job_name>/descriptorByName/hudson.tasks.ArtifactArchiver/checkArtifacts from 10.158.222.25 : qtp1830908236-16408 keeps local variables with total size 1,949,995,728 (24.49%) bytes.

      what does this mean?

      In that job,we archive a file by proving variable name.How do we fix this issue?

      More info on Heap size used:

      Heap Configuration:
      MinHeapFreeRatio = 0
      MaxHeapFreeRatio = 100
      MaxHeapSize = 8589934592 (8192.0MB)
      NewSize = 2147483648 (2048.0MB)
      MaxNewSize = 2147483648 (2048.0MB)
      OldSize = 6442450944 (6144.0MB)
      NewRatio = 3
      SurvivorRatio = 6
      MetaspaceSize = 21807104 (20.796875MB)
      CompressedClassSpaceSize = 1073741824 (1024.0MB)
      MaxMetaspaceSize = 17592186044415 MB
      G1HeapRegionSize = 0 (0.0MB)

        Attachments

          Activity

          Hide
          moksha mokshavathi P added a comment -

          since couple of days, facing java.lang.OutOfMemoryError: GC overhead limit exceeded with jenkins 

          Show
          moksha mokshavathi P added a comment - since couple of days, facing java.lang.OutOfMemoryError: GC overhead limit exceeded with jenkins  
          Hide
          wolfgang_fahl_bitplan Wolfgang Fahl added a comment - - edited

          almost all my jenkins jobs fail since beginning of 2020-04 due to this issue when trying to parse poms.

          Show
          wolfgang_fahl_bitplan Wolfgang Fahl added a comment - - edited almost all my jenkins jobs fail since beginning of 2020-04 due to this issue when trying to parse poms.
          Show
          wolfgang_fahl_bitplan Wolfgang Fahl added a comment - https://wiki.jenkins.io/display/JENKINS/Builds+failing+with+OutOfMemoryErrors and https://stackoverflow.com/questions/3101128/java-lang-outofmemoryerror-permgen-space-in-maven-build/3101178#3101178 helped The default is probably to low

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            issac1993 Daniel Issac
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: