[英]java.lang.OutOfMemoryError: PermGen with Jenkins and Maven
[英]java.lang.OutOfMemoryError: PermGen (GWT + NetBeans + Maven)
我正在GWT + NetBeans + Maven項目上工作,但我一直走出內存不足錯誤。 我只是通過執行gwt:debug目標來運行項目。
我試圖像這樣在pom.xml中設置更高的內存限制:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
<configuration>
<modules>
<module>cz.bull.iui.User</module>
<!--<module>cz.bull.iui.Login</module>-->
</modules>
<localWorkers>4</localWorkers>
<extraJvmArgs>-Xmx1024M -Xss1024k -XX:MaxPermSize=1024M</extraJvmArgs>
<localWorkers>4</localWorkers>
<draftCompile>true</draftCompile>
<logLevel>INFO</logLevel>
<failOnError>false</failOnError>
<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
<style>OBF</style>
</configuration>
</execution>
</executions>
</plugin>
但是問題仍然存在:
有人可以告訴我,我必須在哪里設置它,以便GWT獲得足夠的內存? 通過檢查任務管理器,我可以看到發生崩潰時,Development Mode控制台正在使用大約500MB的內存,這比定義的要少。
請查看下面的鏈接,其中建議了很多方法來設置Jetty
的vm參數。
唯一的好答案是切換到Eclipse,但它不適用於NetBeans。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.