Internal error occurred during building workspace java heap space

Internal error occurred during building workspace java heap space

While working on eclipse if you are depends on its default memory configuration where default is allocated is quite less then certainly you will get exception:

An internal error occurred during: “Building workspace”.
Java heap space

Solution: To fix Java heap space issue please go to your eclipse home directory and open “eclipse.ini”.

  • Default configuration:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
  • Change below memory. (Note: You can increase or decrease based on your computer total memory). If you computer memory is less then you will have to decrease -Xmx size.

-Xms512m
-Xmx1024m

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
  • For more information about eclipse please visit official site here 

Leave a Reply

Your email address will not be published. Required fields are marked *