I get this error message when the JUnit test executes:
java.lang.OutOfMemoryError: GC overhead limit exceeded
Does the OutOfMemoryError come from an overhead of the garbage collector?
I get this error message when the JUnit test executes:
java.lang.OutOfMemoryError: GC overhead limit exceeded
Does the OutOfMemoryError come from an overhead of the garbage collector?
Java provides a garbage collector to automatically look for object's that aren't needed anymore.
All Java objects are stored in your program memory's heap.The heap, which is also referred to as the free store, represents a large pool of unused memory allocated to your Java application.The heap may be quite large, depending on your environment, but there is always a limit to its size.If your program keeps instantiating objects and leaving them on the heap, eventually it will run out of memory.