[英]Compile one permutation per time?
有沒有辦法設置gwt compiler
以便在繼續下一個排列之前編譯每個排列直到完成?
目前,即使Xmx
已經在64位系統上設置為2gb,我已經用盡了堆內存。 只要它能夠完成編譯所有排列,我不介意它很慢
將localWorkers
設置為1
(或者甚至更好:核心數減去1)。
我們正在使用maven,在默認配置文件中我們構建了一個FastCompiledGuvnor
模塊,在完整的配置文件中我們使用了真正的Guvnor
模塊:
<plugin>
<!--use -Dgwt.compiler.skip=true to skip GWT compiler-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.1.0-1</version>
<configuration>
<!-- The default profile needs to be fast, so we only build 1 permutation { -->
<module>org.drools.guvnor.FastCompiledGuvnor</module>
<draftCompile>true</draftCompile>
<!-- } -->
<runTarget>org.drools.guvnor.Guvnor/Guvnor.html</runTarget>
<compileSourcesArtifacts>
<compileSourcesArtifact>org.drools:drools-factconstraint</compileSourcesArtifact>
<compileSourcesArtifact>org.drools:drools-ide-common</compileSourcesArtifact>
</compileSourcesArtifacts>
<gwtSdkFirstInClasspath>true</gwtSdkFirstInClasspath><!-- The GWT compiler must the correct JDT version -->
<localWorkers>2</localWorkers><!-- Using all workers can temporarily hang the mouse and isn't much faster -->
<extraJvmArgs>-Xmx512m</extraJvmArgs>
</configuration>
...
</plugin>
... profile ...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<!-- Build all GWT permutations and optimize them -->
<module>org.drools.guvnor.Guvnor</module>
<draftCompile>false</draftCompile>
</configuration>
</plugin>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.