This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: core
    • Environment:
      1 master Jenkins server, no slaves. RHEL6, openjdk 1.7. Subversion as SCM software.

      Hi,

      After some testing we upgraded Jenkins in production, from 1.617-1.1 to 1.656-1.1 on April 20. However, since the upgrade we're running into problems that we never saw before and it's now kind of out of control:

      We had to raise the java heap memory. It was at -Xmx4096m, we raised it to -Xmx7168m, then to -Xmx10752m and adjusted the vRAM allocation for this VM accordingly, but it doesn't solve the problem, we're still getting "java.lang.OutOfMemoryError: Java heap space" errors. When that starts happening, we have to restart jenkins because the web interface is not responding anymore (which makes it difficult to troubleshoot because we can't really tell what is running at this specific moment).

      I used VisualVM to see what was going on in the heap and I found out that the old generation space of the heap was filling up, so I tried to increase its size by using this option: JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dcom.sun.management.jmxremote -Xms10752m -Xmx10752m -XX:NewRatio=10" but it didn't help, it looks like it will never be enough.

      I tried to analyse the heap dump with Eclipse's MAT and here is what I found: One instance of "java.util.concurrent.ScheduledThreadPoolExecutor" loaded by "<system class loader>" occupies 6,801,517,856 (89.16%) bytes. The instance is referenced by org.tmatesoft.svn.core.wc.DefaultSVNRepositoryPool @ 0x561b36858 , loaded by "hudson.ClassicPluginStrategy$AntClassLoader2 @ 0x56057c428". The memory is accumulated in one instance of "java.util.concurrent.RunnableScheduledFuture[]" loaded by "<system class loader>". I'm no expert at this... it was my first time looking inside a java heap. Currently compressing the 8.6 GB heap dump. I'll upload it somewhere or here depending of the compressed size.

      See https://groups.google.com/forum/#!topic/jenkinsci-users/qLwBFyQ84Z4 for google group thread.

            Assignee:
            Unassigned
            Reporter:
            Ugo Bellavance
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: