java - Eclipse Gradle STS 扩展 : Could not reserve enough space for object heap

标签 java eclipse jvm gradle sts-springsourcetoolsuite

偶尔当 Gradle STS 扩展在使用已安装 Gradle STS 扩展,

Unable to start the daemon process. The exit value was: 1.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/current/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Could not fetch model of type 'EclipseProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.0-bin.zip'.

这是我的系统规范:

  • Windows 7 32 位
  • Eclipse 3.7 32 位
  • Java jdk1.7.0_07 32 位

这是该插件的已知错误吗?关于如何修复它的任何想法?

最佳答案

在 Eclipse 中,转到 Window、Preferences、Gradle、Arguments 并在对话框中添加 gradle jvmargs -Xms128m -Xmx512m:

Preferences dialog

关于java - Eclipse Gradle STS 扩展 : Could not reserve enough space for object heap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12585506/

相关文章:

java - 使用域驱动设计从服务和 Controller 类返回类型的约定?

java - 如何重构重复的代码?

java - Java 方法声明中的最大参数个数

security - oracle JVM 使用哪种 SSL 实现?

java - Spring Integration DSL 中使用 channel 和网关的 Echo 套接字服务

Java Azure Blob 存储 : buffer must not be null error?

Eclipse Juno OSx 选项卡太大

java - Gurobi 不满意链接错误

jvm - 监控 worker 在 apache Storm 中崩溃

java - docker 容器中的 JDK12 内存行为