Hi Sumit,

this really helped! Thanks, the compilation is even faster now and I
don't need the -Xss argument anymore.
I really spend a lot of time on this and I'm glad that you guys fixed
it.

My machine was chocking with the current settings.

But how come you didn't find this before releasing the GWT 1.6.4 ?

Were large applications not part of the test suite ?

Regards & Thanks again for the tip.

Rockster.

On Apr 17, 10:43 pm, Sumit Chandel <[email protected]> wrote:
> Hi Rockster,
> Passing in a stack size of 128M seems awfully huge. How much memory does
> your machine have exactly? You might want to try compiling with a more
> reasonable stack size, say -Xss2048k or -Xss4096k.
>
> Scott has been working on fixing the issue with the compiler requiring too
> much stack, so if this still doesn't solve the problem, you might want to
> try the patched dev JAR attached to Issue #3510 as a workaround for now.
>
> Issue #3510:http://code.google.com/p/google-web-toolkit/issues/detail?id=3510
>
> Hope that helps,
> -Sumit Chandel
>
>
>
> On Tue, Apr 14, 2009 at 5:20 AM, Rockster <[email protected]> wrote:
>
> > I get this stackerror:
>
> > [gwt-compile] Exception in thread "main" java.lang.OutOfMemoryError:
> > unable to create new native thread
> > [gwt-compile]   at java.lang.Thread.start0(Native Method)
> > [gwt-compile]   at java.lang.Thread.start(Thread.java:574)
> > [gwt-compile]   at java.lang.Shutdown.runHooks(Shutdown.java:128)
> > [gwt-compile]   at java.lang.Shutdown.sequence(Shutdown.java:173)
> > [gwt-compile]   at java.lang.Shutdown.exit(Shutdown.java:218)
> > [gwt-compile]   at java.lang.Runtime.exit(Runtime.java:90)
> > [gwt-compile]   at java.lang.System.exit(System.java:869)
> > [gwt-compile]   at com.google.gwt.dev.Compiler.main(Compiler.java:137)
>
> > This is wrapped in a java.lang.StackOverflowError
>
> > I'm using maven (2.0.9), jdk.1.5 (18) and ant.
>
> > This is the ant code I'm using:
>
> > <target name="GWTCompile" depends="compile">
> >                <java classname="com.google.gwt.dev.Compiler"
> > taskname="gwt-compile"
> >                        failonerror="true" fork="true"  >
> >                        <jvmarg value="-Xmx512M" />
> >                        <jvmarg value="-Xss128m"/>
> >                        <jvmarg value="-Xms128M"/>
> >                        <classpath>
>
> >                                <pathelement path="${gwt-src}/" />
> >                                <pathelement path="${compile_classpath}" />
> >                                <pathelement path="./src" />
> >                        </classpath>
> >                        <arg value="com.company.MyModule" />
> >                </java>
>
> > I tried many different values for the heapsize. I even tried using
> > jdk1.6 (with no success).
>
> > Maven calls the antscript with maven-antrun-plugin
>
> > What is going wrong ?
>
> > Any help is welcome!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to