“无法为对象堆保留足够的空间”当我在GRAILS运行命令3.2.7应用程序文件夹:Grails的3错误
grailsw generate-all com.mycmp.myapp.*
我得到错误:
Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine.
我在窗口10 x64与Java 1.8.0 x64。 从网上看,应该添加Gradle的JVM选项,但不知道应该在哪里完成。 试图在gradle.properties添加
org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=524m
,但没有运气可言。任何提示?
这是完全错误消息:
| Resolving Dependencies. Please wait... | Error Error initializing classpath: Unable to start the daemon process. 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 https://docs.gradle.org/3.4.1/userguide/gradle_daemon.html Please read the following 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. (Use --stacktrace to see the full trace)