Reputation: 290
It runs about one day and then I get a 502 Bad Gateway from nginx/1.6.2.
\var\log\nginx\access.log & \var\log\nginx\error.log are empty.
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "kazenguyen/paymentsystem:v1",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "8080"
}
]
}
The nginx logs don't show anything. How can I fix this?
Upvotes: 2
Views: 2306
Reputation: 290
Root cause: - Choose EC instance (t1.micro) is not enough memory to run my webapp, so Glassfish crashes.
Soloution: - Choose EC instance (c1.xlarge) which is more memory than t1.micro.
Upvotes: 2