Hi Greg,
I assume you're developing against the master branch.
Your "make" command looks good, note that ThreadedPermutationWorkerFactory
is already applied [1] so there's no need to specify that in build command.
To use max. 1 thread for GWT compilation, try this:
$ make ... DEV_EXTRA_BUILD_FLAGS="-Dgwt.compiler.localWorkers=1"
I've just tested above command for compiling GWT UI for 2 browsers:
[INFO] Compiling 2 permutations
[INFO] Compiling permutation 0...
... delay ...
[INFO] Compiling permutation 1...
... delay ...
[1] property "gwt-plugin.extraJvmArgs" in frontend/webadmin/modules/pom.xml
Regards,
Vojtech
----- Original Message -----
From: "Greg Sheremeta" <gshereme(a)redhat.com>
To: "Vojtech Szocs" <vszocs(a)redhat.com>, "Alexander Wels"
<awels(a)redhat.com>
Cc: devel(a)ovirt.org
Sent: Thursday, May 15, 2014 3:09:17 AM
Subject: limiting gwt compiler threads to 1
Hi,
On Fedora 20, I sometimes get GWT compiler crashes due to OutOfMemory. So I
tried limiting to 1 thread like so:
make clean install-dev PREFIX=$HOME/ovirt-engine
DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-Dgwt.userAgent=gecko1_8,safari"
BUILD_UT=0 DEV_EXTRA_BUILD_FLAGS="-Dgwt.jjs.maxThreads=1
-Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory"
When the two compiler threads spawn, they seem to fire at the same time.
[INFO] Compiling 2 permutations
[INFO] Compiling permutation 0...
[INFO] Compiling permutation 1...
I would expect there to be a delay while 1 waits for 0:
[INFO] Compiling 2 permutations
[INFO] Compiling permutation 0...
<30 second pause...> <done>
[INFO] Compiling permutation 1...
<30 second pause...> <done>
Do I have the options wrong?
Greg
Greg Sheremeta
Red Hat, Inc.
Sr. Software Engineer, RHEV
Cell: 919-807-1086
gshereme(a)redhat.com