1、 The exception is as follows:
exception in thread “main” java.lang.OutOfMemoryError : GC overhead limit exceeded
2、 Explanation:
JDK6 adds a new error type. Thrown when the GC takes a lot of time to free a small space.
It’s usually because the pile is too small. Cause of exception: not enough memory.
3、 Solution:
1. Check whether the system has large memory code or dead loop.
2. You can add the startup parameters of the JVM to limit the use of memory: – XX: – usegcoverheadlimit