When I started Eclipse, I found that when the building workspace in the lower right corner reached 2%, it did not move. Eclipse did not respond for a long time, and then an error message popped up: An internal error occurred during: "Building workspace". GC overhead limit exceeded.
As shown below:
I searched the Internet and said that I need to modify the eclipse.ini file under the Eclipse installation to increase the memory allocation of the Eclipse instance. Open the eclipse.ini file with the following contents:
[html] view plain copy
- -startup
- plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
- --launcher.library
- plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
- -product
- org.eclipse.epp.package.jee.product
- --launcher.defaultAction
- openFile
- --launcher.XXMaxPermSize
- 256M
- -showsplash
- org.eclipse.platform
- --launcher.XXMaxPermSize
- 256m
- --launcher.defaultAction
- openFile
- -vmargs
- -Dosgi.requiredJavaVersion=1.5
- -Dhelp.lucene.tokenizer=standard
- -Xms512m
- -Xmx1024m
The corresponding lines to be edited are as follows
[html] view plain copy
- -Xms512m
- -Xmx1024m
Modify and save, restart Eclipse and it will be ok.