OutOfMemoryError: Java heap space

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

XMLWordPrintable

      Our instance of jenkins has been becoming unresponsive after it has been running for several hours. We are on Windows Server 2008 R2 with Jenkins 1.647 and Java 1.8.0_73-b02. The jenkins process is still running when this happens. If one attempts to access the web dashboard, the jenkins process remains at 0% CPU while the java process consumes 100% of one of the cores. A restart of the jenkins service fixes the issue, but this has become a daily annoyance. I've turned on all logging to see if I could determine the culprit and here's what the log shows as the last few entries.

      Feb 19, 2016 3:30:00 AM hudson.model.AsyncPeriodicWork$1 run
      INFO: Started Fingerprint cleanup
      Feb 19, 2016 3:30:00 AM hudson.model.AsyncPeriodicWork$1 run
      INFO: Finished Fingerprint cleanup. 0 ms
      Exception in thread "SCMTrigger 4" java.lang.OutOfMemoryError: Java heap space
      Feb 19, 2016 6:00:32 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Started Calculation of job directories (without builds)
      Feb 19, 2016 6:00:32 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Finished Calculation of job directories (without builds). 0 ms
      Feb 19, 2016 6:00:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Started Calculation of workspace usage
      Feb 19, 2016 6:00:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Finished Calculation of workspace usage. 0 ms
      Feb 19, 2016 6:00:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Started Calculation of builds disk usage
      Feb 19, 2016 6:00:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Finished Calculation of builds disk usage. 0 ms
      Feb 19, 2016 6:01:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Started Calculation of job directories (without builds)
      Feb 19, 2016 6:01:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Started Calculation of workspace usage
      Feb 19, 2016 6:01:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Finished Calculation of job directories (without builds). 0 ms
      Feb 19, 2016 6:01:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Started Calculation of builds disk usage
      Feb 19, 2016 6:01:33 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Finished Calculation of workspace usage. 0 ms
      Feb 19, 2016 6:01:34 AM hudson.model.AsyncAperiodicWork$1 run
      INFO: Finished Calculation of builds disk usage. 327 ms
      Feb 19, 2016 8:03:11 AM hudson.triggers.SafeTimerTask run
      SEVERE: Timer task hudson.node_monitors.AbstractNodeMonitorDescriptor$1@5a69ca failed
      java.lang.OutOfMemoryError: Java heap space

      Feb 19, 2016 9:39:23 AM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log
      SEVERE: WC: Java heap space
      java.lang.OutOfMemoryError: Java heap space

      I'll be happy to gather more information if instructions for doing so are provided.

            Assignee:
            Oleg Nenashev
            Reporter:
            Lance Held
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: