My STS stops responding within few minutes after the Workspace is built. What might be the possible reason for this?
I removed below property from STS.init, now it is working fine for me.
--add-modules=ALL-SYSTEM
try increasing the memory it's allowed to use in the STS.ini file
C0243321#IKHCPKISBN0084S /cygdrive/c/opensource/sts-bundle/sts-3.6.4.RELEASE
$ cat STS.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20150204-1316
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.browser.IEVersion=10001
If you are using any antivirus then turn off when using STS.
Its works for me.
you can open file STS.ini and add
openFile
-C:\Program Files\Java\jdk1.8.0_191\bin\javaw.exe
Related
Fisrt I got an error "eclipse out of memory error and gc overhead limit exceeded" and,
Then I tried looking for the answer, and then found this.
After I edited the .ini just like Silvio's answer my eclipse won't start.
It just disappear after chosing workspace folder.
Edit :
I already tried opening a new eclipse and still eclipse won't start.
Entries in the eclipse.ini file :
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
--launcher.defaultAction openFile
-vmargs
-Xms1024m
-Xmx1024m
-XX:+UseParallelGC
-XX:PermSize=1024M
-XX:MaxPermSize=1024M
I hope fix your problem.
I use Eclipse Kepler SR2 on Ubuntu 14.04 and the following is my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
3072m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/DevTools/xulrunner -Dorg.eclipse.swt.browser.Defau$
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=3072m
-Xms2048m
-Xmx3072m
But in eclipse the heap size shows the following:
397 of 453M
And if I mouse over on the Heap size info it shows:
Heap size: 397M of total: 453M max: 455M mark: 397M
I am expecting the max value should be close to 3072M since that is what being set in eclipse.ini
Any insight is appreciated.
Each entry in the eclipse.ini must be on a separate line, your line:
-vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/DevTools/xulrunner -Dorg.eclipse.swt.browser.Defau$
will not be recognized as the start of the VMargs. It should be:
-vmargs
-Dorg.eclipse.swt.browser.XULRunnerPath=/DevTools/xulrunner
... more args on separate lines ...
I think manual installations cause such problems as my eclipse ignores eclipse.ini completely when run via the launcher in Ubuntu (14.04) (used lock to launcher). So the workaround for me is to run it any other way. Desktop icon works too. Property Path must be set within that file.
I just installed eclipse on my windows 8 computer and I get this error when trying to run eclipse. I'm not really sure whats going on I already have the Java SDK on my computer.
Error message:
My Eclipse.ini text file (its just one long line in textpad):
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.java.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
Try right clicking on the eclipse icon and "run as administrator", worth a shot!
Fixed it by adding:
-vm
C:\Program Files\Java\jdk8\bin\javaw.exe
before -vmargs
Make sure there is a new line after -vm
I was wondering if someone could explain why my eclipse is crashing. Eclipse says its trying to build and then there is a message not responding and I receive this message as eclipse close in figure 1
figure 1
The startup jvm memory allocated to eclipse seems to be low, in the screenshot provided:
-Xms40m -Xmx512m
Increasing these values might provide eclipse more memory to build project.
(Try closing all unused projects in the eclipse workspace)
Assuming your machine has RAM > 2-3 GB,
Modify the file eclipse.ini (in your case at C:\eclipse\eclipse.ini)
Update values of '-Xms' and '-Xmx' to following
....
-Xms512m
-Xmx1024m
The problem is Memory dedicated to eclipse .
this is the way my problem solved
fist :~>locate eclipse.ini
/home/ your - user /eclipse/eclipse.ini
Second
vi /home/ your - user /eclipse/eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=1024m
-Xms512m
-Xmx2048m
Then change This lines
--launcher.XXMaxPermSize
512m // mine was 256
-XX:MaxPermSize=1024m // mine was 512
-Xms512m // mine was 40
-Xmx2048m // mine was 512
Done :)
I have downloaded eclipse and looked into its eclipse.ini file which contains this:
-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.reporting.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Why does it contain the option:
--launcher.XXMaxPermSize
256M
two times where 'M' is used in the first case and 'm' is used in the second case?
Looks to be a bug in packaging or a plugin. Please open a bug report at bugs.eclipse.org. Make sure to specify exactly which package you've downloaded and if you installed any plugins (list which ones) after you've extracted the initial package.
I went into many options for the eclipse.ini.
I use Java 7 with a Intel Core i7 with 8Go of Ram, and windows 7. The performance of eclipse and the impact of eclipse.ini depends on the configuration of the machine.
We have big projects with big workspaces.
Here is my eclipse.ini:
-vm
C:/Java/jdk1.7.0_21/jre/bin/server/jvm.dll
-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.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Dhelp.lucene.tokenizer=standard
-vmargs
-XX:ParallelGCThreads=4
-XX:+CMSClassUnloadingEnabled
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:+UseFastAccessorMethods
-XX:ReservedCodeCacheSize=64m
-XX:CompileThreshold=500
-XX:MaxHeapFreeRatio=70
-XX:ErrorFile=./hs_err_pid<pid>.log
-Xms512m
-Xmx1024m
-Dsun.java2d.opengl=true
-Dsun.java2d.d3d=true
-Dawt.nativeDoubleBuffering=true
-Duser.language=en_US
-Xverify:none
-XgcPrio:deterministic
-XpauseTarget:20
-XX:+UseTLAB
-XX:MaxTenuringThreshold=0
-XX:SurvivorRatio=128
I wish good luck to you.
If you have time to test it and have any comment, please help us improve it.
Regards
ECI