Cannot add "-localWorkers" to GWT Compiler when using Eclipse?

1,149 views
Skip to first unread message

Edson Richter

unread,
May 19, 2012, 6:53:31 PM5/19/12
to Google Web Toolkit
Hi,

I've GWT 2.4.0 installed in Eclipse Indigo. Everything works fine,
except that when I add "-localWorkers 4" into compilation
configuration, I get the error described below.

Compiler options:

-war war/secure -deploy ./deploy -extra ./extra -localWorkers 4 -
strict

Error during compilation:

Compiling module MyComponent
Compiling 2 permutations
Compiling permutation 0...
Process output
[ERROR] Could not create the Java virtual machine.
[ERROR] Unknown option or illegal argument: -logLevel.
[ERROR] Please check for incorrect spelling or review
documentation of startup options.
[ERROR]
Compiling permutation 1...
Compile of permutations succeeded
Linking into C:\Users\richter\workspace\...\MyComponent; Writing
extras to C:\Users\richter\workspace\...\extra\MyComponent
Link succeeded
Compilation succeeded -- 108,368s

And system stay calculating permutations on only one thread (my
machine has 8 physical cores, and only one is active during
compilation).

Can someone help me?

Edson Richter

unread,
May 19, 2012, 7:01:15 PM5/19/12
to Google Web Toolkit
Sorry for answering my own question. I've found that I need to add the
following to my VM arguments:

-
Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory

Gain about 40% on compilation with 4 workers on 8 core machine ;-)

Edson.

Roger Studner

unread,
May 19, 2012, 7:07:16 PM5/19/12
to google-we...@googlegroups.com
is thre any documentation out there, other than a really weak javadoc for the ThreadPermutationWorkerFactory that describes what this is/why it works (or doesn't) etc?

Roger
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>

Joseph Lust

unread,
May 19, 2012, 10:19:36 PM5/19/12
to google-we...@googlegroups.com
LocalWorkers are also documented in the Maven-GWT-Plugin page:


Joe

Edson Richter

unread,
May 20, 2012, 10:09:50 AM5/20/12
to Google Web Toolkit
In my humble opinion, would be better to have this very well
documented in GWT Compiling and/or GWT-Eclipse Plugin plugin pages.
Any chance to add a more detailed explanation at page
https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#DevGuideJavaToJavaScriptCompiler
?

Thanks,

Edson.
Reply all
Reply to author
Forward
0 new messages