gpt4 book ai didi

grails - Heroku Grails buildpack: “Incompatible minimum and maximum heap sizes specified”

转载 作者:行者123 更新时间:2023-12-02 14:20:26 25 4
gpt4 key购买 nike

尝试将Grails应用程序推送到Heroku时,出现“指定最小和最大堆大小不兼容”的编译器错误。我不知道在编译期间启用更多详细日志记录的方法,但是我很乐意提供更多信息。

506 ita-signup $ git push heroku master
Counting objects: 31, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (21/21), 2.74 KiB, done.
Total 21 (delta 11), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Grails app detected
-----> Grails 2.0.4 app detected
WARNING: The Grails buildpack is currently in Beta.
-----> Executing grails -Divy.default.ivy.user.dir=/app/tmp/repo.git/.cache compile --non-interactive
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
! Failed to build app
! Heroku push rejected, failed to compile Grails app
To git@heroku.com:XXX-3359.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:XXX-3359.git'

最佳答案

答:我已经设置了user-env-compile功能。使用它强制有效的堆设置起作用:

$ heroku config:set JAVA_OPTS='-Xms384m -Xmx384m -Xss512k -XX:+UseCompressedOops'
$ git push heroku master
...
(success)

关于grails - Heroku Grails buildpack: “Incompatible minimum and maximum heap sizes specified”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12451393/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com