I’ve just installed Spoofax Nightly (from http://download.spoofax.org/update/nightly/) in a fresh downloaded copy of the latest Eclipse (Eclipse Standard 4.4 32-bit on Windows), and I’ve setup the eclipse.ini file like this:

-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.v20140603-1326
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xss8m
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-server
-Djava.net.preferIPv4Stack=true

However, Spoofax gives a warning on start-up:

Spoofax needs Eclipse to be started with (can be set in eclipse.ini):
-vmargs -server -Xmx1024m -Xss8m

The following options are currently missing:
-server

Submitted by D. Pelsmaeker on 11 July 2014 at 17:17

On 11 July 2014 at 18:36 Gabriël Konat commented:

There is no 32 bit server VM, install the 64 version.


On 11 July 2014 at 18:36 Gabriël Konat closed this issue.

On 11 July 2014 at 19:42 Oskar van Rest reopened this issue.

On 11 July 2014 at 19:42 Oskar van Rest commented:

I have 64 bit version, but still get this warning.


On 11 July 2014 at 20:30 Guido Wachsmuth commented:

@Gabriël: Does this mean Spoofax requires a 64 bit VM? If so, the installation instructions are not clear about it.


On 11 July 2014 at 21:49 Oskar van Rest commented:

On 11 July 2014 at 21:53 D. Pelsmaeker commented:

I switched to the 64-bit Eclipse, and the warning indeed went away.


On 11 July 2014 at 22:06 Oskar van Rest commented:

Ignore my previous comments. The warning did only show up in my second Eclipse instance because I forgot to set the vmargs in my run configuration.

@Gabriël: I guess we should just add to the download page that users should install 64 bit JRE and 64 bit Eclipse. And if server VM is default for 64 bit like you said, then we can remove this argument and maybe change the warning message to “install 64 bit JRE and 64 bit Eclipse”.


On 11 July 2014 at 22:16 Oskar van Rest commented:

Seems like Server VM is possible with 32 bit too though:

Windows:

-vm [your JRE path]\bin\server\jvm.dll 

Linux:

-vm [your_jdk_folder]/jre/lib/i386/client/libjvm.so

On 12 July 2014 at 03:13 Gabriël Konat commented:

So the 32-bit Java has a server VM, but it is not used when passing the -server argument? Wierd.

I did some more reading and the server VM is activated by default only on ‘server-grade machines’, but there is no specification or explanation what a server-grade machine is. So we should recommend people to install a 64-bit VM for optimal performance. The warning in Spoofax should make clear that -server is not required but recommended, and if a 32 bit VM is detected the warning should recommend installing a 64-bit VM.

Log in to post comments