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

EventDispatcher and ConcurrentLinkedQueue ate my JVM

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • sse-gateway-plugin

      We started running out of memory in our JVM (Xmx 8G) and when looking at Melody's memory (heap) histogram (JENKINS_URL/monitoring?part=heaphisto) the top two items were:

       

      Class Size (Kb) % size Instances % instances Source
      org.jenkinsci.plugins.ssegateway.sse.EventDispatcher$Retry 2,890,399 44 92,492,793 43  
      java.util.concurrent.ConcurrentLinkedQueue$Node 2,167,981 33 92,500,553 43  

       
      77% (and growing as we were researching the problem) of the memory was being used by these two items.

      I have two support bundles from this time and an .hprof as well.

      I can either screen share with someone or if you can tell me how to analyze these files I would be happy to.

          [JENKINS-51057] EventDispatcher and ConcurrentLinkedQueue ate my JVM

          Christian Höltje created issue -
          Christian Höltje made changes -
          Labels New: leak memory memory-leak
          Maxfield Stewart made changes -
          Attachment New: image-2018-09-05-18-59-08-587.png [ 44203 ]
          Olivier Lamy made changes -
          Link New: This issue is related to JENKINS-45488 [ JENKINS-45488 ]
          Baptiste Mathus made changes -
          Assignee Original: Tom FENNELLY [ tfennelly ]
          Olivier Lamy made changes -
          Assignee New: Olivier Lamy [ olamy ]
          Olivier Lamy made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Devin Nusbaum made changes -
          Link New: This issue relates to JENKINS-58684 [ JENKINS-58684 ]

            olamy Olivier Lamy
            docwhat Christian Höltje
            Votes:
            16 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved: