1

我正在尝试将简单的 Playframework Scala 应用程序部署到 AppFog。我创建了新的 Scala 应用程序并从AppFog 文档中添加了一个 JAR 。然后我按照从部署到 AppFog 指南的步骤进行操作。

问题是当保留的内存少于 900MB 时,应用程序将无法启动。错误是:

    Error: Application [pralab-test] failed to start, logs information below.
    ====> /logs/stdout.log <====

    No database found in Play configuration.  Skipping auto-reconfiguration.
    Play server process ID is 13276
    [‹[33mwarn‹[0m] play - Plugin [org.cloudfoundry.reconfiguration.play.JPAPlugin]
    is disabled
    [‹[37minfo‹[0m] play - Application started (Prod)
    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # pthread_getattr_np
    # An error report file with more information is saved as:
    # /mnt/var/vcap.local/dea/apps/pralab-test-0-d6bc1b644e85148149d759499e02b409/ap
    p/hs_err_pid13276.log

当启动更多内存时,应用程序启动并仅使用大约 140MB 的声明 900MB。是 Play 的启动内存峰值还是 AppFog 中的错误?

你们有在 AppFog 上成功部署过 Play 应用吗?

编辑 这在具有 256M 内存的 cloudfoundry.com 上运行良好。

4

1 回答 1

0

I was having this same problem and couldn't get around it. I just had to do what you did and allocate 1G to my app when it was only using around 250m. I opened customer support ticket and got no response.

I believe you are having this same problem that they claim to have fixed for "JAVA" but must not be rolled out to play autodetected apps: https://groups.google.com/forum/#!topic/appfog-users/hxBxUe3c4QI

Current options are just live with more memory allocated.

于 2013-01-15T00:09:15.763 回答