What is an OutOfMemoryError and how do I debug and fix it
An OutOfMemoryError is an exception thrown by the Java Virtual Machine (JVM) because it needs to allocate memory for a (new) object, but insufficient memory is available for the object. The JVM will have first tried to free memory used by dead objects, by running the garbage collector. As an OutOfMemoryError is a VirtualMachineError, the … Read more