After working a while under Eclipse while excessively using photon applications like filemanager, voyager, mozilla, ped and so on, i often get a Stack Overflow and Eclipse asks if it should end itself. If one agrees it saves all open files at least. After going down Photon is unstable and most of the time i have to kill it with Strg+Alt+Shift+Backspace because it doesn’t react anymore. The eclipse logfile always shows a java.lang.StackOverflowError
I know that one can tell j9 how big the stack size should be with the -Xss parameter. I guess, i could somehow enlarge the stack for Eclipse by modifying /opt/share/eclipse/eclipse.sh
because there is a parameter -vmargs behind exec $ECLIPSE/eclipse
Did anyone run into similar problems and could solve them by enlarging the stack size? If so, what size would be appropriate and what would the correct notation for the line in eclipse.sh be?
exec $ECLIPSE/eclipse -vmargs -Xss12345?
P.S. If such stack overflow occured, i have to reboot or Eclipse will produce another error with any action (even after restarting photon).
Edit:
I tried the eclipse.sh script but it seems to be a remains of the installation procedure, because after executing it, it shows a welcome screen and my eclipse looks like fresh installed so this is probably not the location to fumble with
Edit2:
i noticed /opt/usr/bin/eclipse-launcher definetely needs /opt/share/eclipse/eclipse.sh
I found some suggested options for J9 1.5 and Eclipse and since i set the last line of my eclipse.sh to
exec $ECLIPSE/eclipse -vmargs -ms:32 -mm:2048 -mo:32768 -moi:32768 -mca:32 -mco:128 -mx:2000000 -nojit -Dswt.system.font=TextFont08
it didn’t crash again. Maybe that was the trick, i will test it for a while