我无法推送https://github.com/Pivotal-Field-Engineering/PCF-demo文件

时间:2018-03-15 03:30:53

标签: cloud cloudfoundry pivotal-cloud-foundry pcf pivotal-web-services

这是我的第一个应用程序,我试图将其推入Pivotal云代工厂。最后在最后阶段失败.PWS中的状态为崩溃。

https://github.com/Pivotal-Field-Engineering/PCF-demo

示例日志如下:

d97aea708a payload: {"instance"=>"d2108b14-9252-4db6-69c6-1aff", "index"=>0, "reason"=>"CRASHED", "
exit_description"=>"APP/PROC/WEB: Exited with status 1", "crash_count"=>3, "crash_timestamp"=>15210
84086634418047, "version"=>"26617120-9c7a-49be-bb8d-404313ee655e"}
   2018-03-14T22:21:27.24-0500 [CELL/0] OUT Successfully destroyed container

由于

1 个答案:

答案 0 :(得分:0)

我尝试重新部署应用程序,除了您提到的错误消息,我还得到了:

2018-03-19T21:27:33.35+0000 [APP/PROC/WEB/0] ERR Cannot calculate JVM memory configuration: There is insufficient memory remaining for heap. Memory limit 512M is less than allocated memory 603988K (-XX:ReservedCodeCacheSize=240M, -XX:MaxDirectMemorySize=10M, -XX:MaxMetaspaceSize=91988K, -Xss1M * 250 threads)

您尝试部署的应用程序似乎无法分配足够的内存。这是因为在manifest.yml the memory limit is set to 512M中,但根据上面的错误消息,应用程序需要的不仅仅是启动。您可以在CF应用程序here的上下文中找到有关内存限制的更多信息。

您可以通过增加manifest.yml中的内存量或通过覆盖命令行中的内存限制来解决此问题:

$ cf push -m 1G

通过这样做,我能够成功部署并启动应用程序。