There was an Out of Memory (OOM) exception in your Jenkins environment.
- CloudBees Jenkins Enterprise
- CloudBees Jenkins Operations Center
Usually, this error is thrown when there is insufficient space to allocate an object in the Java heap. In this case, The garbage collector cannot make space available to accommodate a new object, and the heap cannot be expanded further. Also, this error may be thrown when there is insufficient native memory to support the loading of a Java class. In a rare instance, a
java.lang.OutOfMemoryError may be thrown when an excessive amount of time is being spent doing garbage collection and little memory is being freed.
To determine the cause of this exception. The text of the exception includes a detail message. There are different types of OOM Exception as you can see Java 8 - Understand the OutOfMemoryError Exception. From them, we would like to highlight in the Jenkins context (
A. Native Memory exhausted
> java.lang.OutOfMemoryError: unable to create new native thread
B. PermGen Area exhausted
> java.lang.OutOfMemoryError: PermGen space
C. Java Heap exhausted
java.lang.OutOfMemoryError java.lang.OutOfMemoryError: GC overhead limit exceeded java.lang.OutOfMemoryError: Java heap space
Solution: Java Heap Out of Memory Exception