相关疑难解决方法(0)

Eclipse + GWT - >在开发模式下内存不足

如果我在开发模式下在eclipse中运行我的GWT应用程序并在浏览器中点击一段时间,我总是在eclipse中遇到"内存不足"错误.我的电脑有16 GB Ram,从未使用超过8GB.

我尝试了几个配置参数.我的运行配置中的VM参数包含以下参数:" - Xms8192m -Xmx8192m"

即使在eclipse.ini中我测试了几个配置参数,现在它看起来像这样:

--launcher.XXMaxPermSize
8192M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
8192m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms8192m
-Xmx8192m
Run Code Online (Sandbox Code Playgroud)

但我仍然得到错误.有什么方法可以防止这种情况吗?

java eclipse ide gwt out-of-memory

5
推荐指数
1
解决办法
7870
查看次数

gwt-maven-plugin:如何在pom.xml中为gwt:run目标设置系统属性?

我正在尝试在使用的托管模式下运行的GWT应用程序上设置系统属性mvn gwt:run.从事物的外观来看,这个属性并没有被设定.在我pom.xml的插件配置是: -

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <version>2.2.0</version>
  <executions>
    <execution>
      <configuration>
        <module>com.foo</module>
      </configuration>
      <goals>
        <goal>compile</goal>
        <goal>test</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <runTarget>index.html</runTarget>
    <hostedWebapp>${webappDirectory}</hostedWebapp>
    <systemProperties>
      <property>
        <name>configDir</name>
        <value>${basedir}/local/staging</value>
      </property>
    </systemProperties>
  </configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)

gwt maven-2

4
推荐指数
1
解决办法
6098
查看次数

标签 统计

gwt ×2

eclipse ×1

ide ×1

java ×1

maven-2 ×1

out-of-memory ×1