- 我在 AWS Elastic Beanstalk 上部署了一个 docker - http://paymentsystem-env.elasticbeanstalk.com/ 。该应用程序是 Java Web 应用程序。
它运行大约一天,然后我从 nginx/1.6.2 收到 502 Bad Gateway。
\var\log\nginx\access.log 和\var\log\nginx\error.log 为空。
- Dockerrun.aws.json:
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "kazenguyen/paymentsystem:v1",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "8080"
}
]
}
nginx 日志没有显示任何内容。 我该如何解决这个问题?
最佳答案
根本原因: - 选择 EC 实例 (t1.micro) 没有足够的内存来运行我的 web 应用程序,因此 Glassfish 崩溃。
解决方案: - 选择比 t1.micro 内存更多的 EC 实例(c1.xlarge)。
关于amazon-web-services - 在 AWS Elastic Beanstalk 上运行 Docker 容器 - 502 Bad Gateway nginx/1.6.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29790446/