Eclipse builds very slow - java

Hi i am using jar of hibernate,jersey and Extended js framework in my dynamic web project.
Every time I build it , it takes a lot of time.
Always hangs on 23%, and take time to complete.
Please help me to speed it up.
here is the configuration file
-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.v20130807-1835
-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
-Xms256m
-Xmx1G

Speed of the build depends mostly on the parameters of your computer, as the CPU is working hard to get the job done. If you want faster build, you would need to get better hardware.
I would recommend not to use eclipse as it has no support anymore and swithing to android studio

Related

eclipse cannot open if extracted in other than C drive

SHORT STORY OF MY PROBLEMS:I did extract eclipse in "C:\" and used it also created workspace along with eclipse folder then I need to install windows 7 and for that I moved my workspace to another drive(in D:\prog).
Now to avoid deleting my eclipse again when need to format C drive I have extracted eclipse along my workspace folder(in D:\prog). Now eclipse shows error while opening, it show different-different error like sometime exit code=13, sometime exit code=1, but when I sorted out these error by editing eclipse.ini file then it shows failed to create the JVM.
I have read the link I have been gave, but still showing exit code=13, this is my .ini file...
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-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
-vm
C:\Program Files\Java\jdk1.7.0_80\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m

Unable to execute dex: GC overhead limit exceeded, Google Play Services. Freeze when launching

I have encountered this problem after trying to implement Google Play Services in my application.
I figured I did not give enough "power" to eclipse so I changed my eclipse.ini file. However it does not help even though I increase the value.
My eclipse.ini:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
4096m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Xms4096m
-Xmx8192m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
I have tried to reinstall my sdk, changed my BuildPath and even reinstalled Eclipse, but nothing helps. When I try to run my project Eclipse freezes.
Help please!
PROBLEM FINALLY SOLVED
My Mac osx computer had Eclipse installed in two places, one in applications (Where I canged the .ini) and one in Downloads, which I had not touched.
... osx, this took some hours.

Eclipse Not Working

Actually I downloaded the Android SDK from their site it was a bundle for android development and it was working fine. Then I downloaded the Netbeans from Java official site. It said it requires JDK7 so I downloaded that too. Now the Net Beans is working fine but eclipse displays this really long message box saying that Java was started but returned exit code 1 and then followed by some gibberish
My eclipse configuration file has the following text in it:
-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
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
Add '-XX:-UseCompressedOops' to the eclipse.ini

Regarding slow performance of eclipse

I am using eclipse 3.7 indigo , the issue that I am facing is when I start my eclipse my machine gets too slow even the eclipse get hang some times in between , the settings of my eclipse.ini file is below..
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-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
-Xms40m
-Xmx512m
please advise how to overcome from this..!!
Change this values to the higher ones:
--launcher.XXMaxPermSize 256m
-Xms40m
-Xmx512m
Perhaps this will help? I mean, I don't know the specs of the machine you're on, but this is nice on less powerful machines.
What are the best JVM settings for Eclipse?
Check with the eclipse.ini file and add the following java parameters and values.
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=256m
-XX:MaxPermSize=256m
-XX:+UseParallelGC
This worked for me. Might help.

Debug in Eclipse : inspect variable -> errors during evaluation

I'm working on a piece of Java code and I have a dump problem. I'm doing some debugging and for some reason, when I'm trying to evaluate (watch or inspect) some variables declared inside a method it displays the following error:
errors during the evaluation.
I don't get it.
I'm using Eclipse 3.7.
For instance, it does the same even for the method parameters (which should be available until the end of the execution of the method).
My eclipse.ini file is:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024M
It seems that the problem was one of my eclipse plugin.
I had several plugins, some code review plugin. I just uninstalled them all and now it works.

Categories