1. Brief description of the problem
. Compile the Java project under Intellij IDEA and report an error: java.lang.OutOfMemoryError: … (ignore here) GC overhead limit exceeded
2. Problem analysis The
error occurs in the compilation phase, not the runtime phase.
1. The virtual machine used by idea to compile the Java project is separate from the virtual machine used by the idea software itself (that is, a separate process)
2. It can be solved by adding memory to the virtual machine used by the compiler. problem