I have an RCP application which has StackOverflowError if I launch the application through launcher. So wanted to increase the stack size but so far no luck!
XX.exe : launcher
XX.ini : ini file for the launcher.
ini file has entry :
-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-vmargs
-Xms256m
-Xmx2048m
-Xss4m
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:+ScavengeBeforeFullGC
-Declipse.buildId=44.1.2
As a workaround I am using a windows batch file with below input:
@echo off
java -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx256m -Xss2m -jar plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar -application xx.yy.zz.mm.application.application -showSplash splash.bmp
exit
Strangely windows batch script this works perfectly fine! I have no clue on this.
Don't know why the -Xss agrument is not considered by eclipse.ini
Any info would be greatly helpful or any pointer to debug the launcher ??
environment : Windows7+eclipse Neon+ 64bit java1.8