【问题标题】:Launching GWT Super Dev Mode is very slow. How can I speed it up?启动 GWT 超级开发模式非常慢。我怎样才能加快速度?
【发布时间】:2015-08-18 05:51:30
【问题描述】:

我将我的应用程序升级到GWT 2.7 版本并使用超级开发模式,但在 SDM 中启动应用程序需要将近 5 分钟:

Super Dev Mode starting up
   workDir: C:\Users\SAM~1.IND\AppData\Local\Temp\gwt-codeserver-8409402920962843736.tmp
   Loading Java files in com.example.ex.onlineexample.Result.
   Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to DEBUG or WARN to see all errors.
   Ignored 27 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Module setup completed in 297949 ms
2015-08-18 11:10:26.902:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2015-08-18 11:10:27.383:INFO:oejs.AbstractConnector:Started SelectChannelConnector@127.0.0.1:9876

The code server is ready at http://localhost:9876/

297949 毫秒 = 4.96582 分钟,几乎需要 5 分钟。有什么我需要纠正的吗?有什么建议吗?如何最小化这个时间?

【问题讨论】:

  • 对此有何建议?

标签: gwt gwt-super-dev-mode


【解决方案1】:

首先,我会尝试以下方法来减少编译时间:

  • 为 SuperDevMode-JVM 提供更多 RAM(例如,通过添加 -Xmx1024M 作为 JVM 参数)。
  • 从模块的.gwt.xml 文件中删除所有不必要的库(检查所有<inherits /> 标签)和代码(检查所有<source /> 标签)。未编译的所有内容都不需要时间。

此外,您应该考虑 all answers in this question 展示如何最小化 GWT 的编译时间。

【讨论】:

    猜你喜欢
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-19
    • 2012-08-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多