Can't start IDE anymore - perhaps due to recent update? [message #1836097] |
Sun, 20 December 2020 21:10  |
Eclipse User |
|
|
|
Stopped and tried to restart IDE for the first time since it was updated a few days ago. Got an exit=1 error, and when I ran eclipsec.exe (what's the difference between the two executables?) I saw:
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
Is there maybe a huge dump file somewhere it's trying to load into memory when it starts up?
I had been debugging a memory-hogging application at the time of the attempted reset. I had my eye on the task manager because of that, and think I remember seeing the IDE sitting at around a Gig of memory usage at the time I shut it down.
On StackOverflow I saw a number of answers to the error message that advised adding lines like these to my eclipse.ini file:
-Xms256m
-Xmx768m
-Xms1536M -Xmx1536M
-Xms4G -Xmx4G
-XX:MaxHeapSize=512m
I didn't know WHERE to add them to my .ini file, so tried them them and variations of them right after the "-vmargs" line.
I've also learned that P2BU files are backups of the eclipse.exe before updates, so tried swapping out for the penultimate one. No change.
Looked through all the folders under the Eclipse directory, but didn't find any over-sized files
Where do I go from here?
Here's my .ini:
-startup
plugins/org.eclipse.equinox.launcher_1.6.0.v20200915-1508.jar
--launcher.library
C:/Users/Rigel/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.0.v20200915-1442
-product
org.eclipse.epp.package.jee.product
-showsplash
C:\Users\Rigel\.p2\pool\plugins\org.eclipse.epp.package.common_4.18.0.20201210-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
|
|
|
|
|
|
|
|
|
Re: Can't start IDE anymore - perhaps due to recent update? [message #1836161 is a reply to message #1836133] |
Tue, 22 December 2020 15:48   |
Eclipse User |
|
|
|
I think I'll adopt the practice of leaving my IDE un-updated in the future, as well. You gave me some things to try, thank you. Today I did a memory check, and found I was wrong when I said I'd went through all of Eclipse's files: I'd only looked in the program directory, but there are a lot of files within the project directory besides my particular project directories. Could there be a chance that there is some mega-data dump file Eclipse is trying to load on start?
With that in mind, I've come across running Eclipse from the command line with a '-clean' argument, which I tried without effect. There is also a '-clearPersistedState' argument suggested, which I have not tried. Does anyone recommend it or something else for this heap issue? Thank you.
Also, someone asked if the .ini file shared matched what I'm using now. I think so, but I've changed it so much I can't rightfully say. I'll post it again.
Attachment: eclipse.ini
(Size: 0.92KB, Downloaded 115 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06282 seconds