[英]GWT Compile crashes JVM (JDK 7 and JDK 8)
I've tried both JDK7 and JDK8 and when I compile our large GWT app, it always crash the JVM (JDK 7 or JDK8) on my Core i3 machine, but not with my AMD quad-core machine. 我已经尝试过JDK7和JDK8,并且在编译大型GWT应用程序时,它总是使Core i3机器上的JVM(JDK 7或JDK8)崩溃,但没有使我的AMD四核机器崩溃。 So I am certain that the app would compile.
因此,我确信该应用程序可以编译。
Now my issue is how to make sure mvn gwt:compile
would not crash the JVM and the PC. 现在我的问题是如何确保
mvn gwt:compile
不会使JVM和PC崩溃。
The problem is that my PC just hangs. 问题是我的PC刚刚挂起。
It isn't clear from your question what exactly exceptions you're getting with crashes. 从您的问题尚不清楚,崩溃到底是什么异常。 High level advice to get GWT Compiler work faster and stable is to allocate more memory for it.
使GWT编译器更快,更稳定地工作的高级建议是为其分配更多的内存。 It should be something like
-Xmx1g
or -Xmx2g
to prevent gwt compiler from throwing java.lang.OutOfMemoryError exception. 它应该类似于
-Xmx1g
或-Xmx2g
以防止gwt编译器抛出java.lang.OutOfMemoryError异常。 Also remember that you should use x64 JDK to be able to allocate such a big amount of memory. 还要记住,您应该使用x64 JDK来分配如此大量的内存。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.