Performance tuning for SCALA-Ide plugin on Eclipse 2020-03 - eclipse

I'm learning Apache spark with scala and using scala-ide for eclipse on my desktop. Seems like there is a need of performance optimizations for my eclipse-ide since it keeps going into non-responsive state on quite often (and recovers in 2-3 secs). Any suggestions?
My eclipse.ini looks like this -
-startup
plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar
--launcher.library
C:\Users\<username>\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1100.v20190907-0426
-product
org.eclipse.epp.package.jee.product
-showsplash
C:\Users\<username>\.p2\pool\plugins\org.eclipse.epp.package.common_4.15.0.20200313-1200
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:/Program Files/Java/jdk1.8.0_241/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-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/
-XX:PermSize=512m
-XX:MaxPermSize=512m
-Xmx2048m
-Xms1024m

Related

not able to open the eclipse 2012-12

I am not able to open the eclipse by clicking on eclipse.exe file.
version details are :
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2021-12 (4.22.0)
Build id: 20211202-1639
eclipse.ini
-clean
-vm
C:/Program Files/Java/jdk-11.0.11/bin
-startup
plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.400.v20211117-0650
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657/jre/bin
-vmargs
-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
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms256m
-Xmx1064m
--add-modules=ALL-SYSTEM
did I miss anything in the .ini file?

Eclipse 2020-09 with Multiple JDKs

I am trying to run the Eclipse 2020-09. I have two JDKs installed (15 and 1.8) and one JRE (1.8). I have to keep my environment variables pointing to the JDK 1.8. Because everything I work on uses 1.8. Only Eclipse needs JDK 15. How do i get Eclipse to use the JDK 15? I have my eclipse.ini file like this:
-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-vm "C:\Program Files\Java\jdk-15\bin\javaw.exe"
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms1536m
-Xmx3072m
--add-modules=ALL-SYSTEM
But it still doesn't boot up Eclipse. I keep getting the error saying my JDK is 1.8 and I need 11 or higher pop-up message. Please let me know what I am doing wrong here? Or if I need some more configuration changes.
-vm and the path must be on separate lines and must be before the -vmargs line. No quotes around the path:
-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk-15\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms1536m
-Xmx3072m
--add-modules=ALL-SYSTEM

Intermittent PyDev crash "java was started but returned exit code=1" when running/auto-saving

Eclipse 2020-09 (4.17.0) on Windows 10 crashes intermittently with "java was started but returned exit code=1" when attempting to run/auto save a PyDev/Python program. Restarting Eclipse and running the same program works. PyDev is version 8.0.1.202011071328.
crash report
eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-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/

why -vm taking two vales in eclipse.ini?

I have added the following in eclipse.ini before -vmargs:
-vm
C:\Program Files\Java\jdk1.8.0_201\jre\bin\javaw.exe
But when I run I get an error 13. I am seeing two vm in the error log. How do I keep only one? Below is the error.
Below is eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1100.v20190907-0426
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_201\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM

Can't increase Scala Eclipse heap size

I read the docs and append the given snipped in my eclipse.ini. I also read this, and concluded that since I'm on Linux, I have to substitute -XX:MaxPermSize, but that changed nothing either.
I get this error when trying to launch eclipse:
JVM terminated. Exit code=1
/usr/java/default/bin/java
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
--launcher.XXMaxPermSize 256m
-vmargs
-Xms256m
-Xmx1024m
-XX:PermSize=64m
-Xss1M
-server
-XX:+DoEscapeAnalysis
-jar /home/pc/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/pc/eclipse/eclipse
-name Eclipse
--launcher.library /home/pc/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.2.R36x_v20101019_1345/eclipse_1310.so
-startup /home/pc/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-exitdata 1ab0003
-product org.eclipse.epp.package.java.product
-vm /usr/java/default/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
-XX:MaxPermSize=256m
--launcher.XXMaxPermSize 256m
-vmargs
-Xms256m
-Xmx1024m
-XX:PermSize=64m
-Xss1M
-server
-XX:+DoEscapeAnalysis
-jar /home/pc/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
I have the latest 2.9 scala plugin with Helios Eclipse.(Version: Helios Service Release 2
Build id: 20110218-0911)
remove
--launcher.XXMaxPermSize 256m
and only use
-XX:MaxPermSize=256m
The relevant parts of my eclipse.ini look like this:
-vmargs
-Xms2048m
-Xmx2048m
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
-XX:PermSize=256M -XX:MaxPermSize=256M
-Xss2m
-server