AWS Elastic Beanstalk Docker PHP application

I have a docker container running on AWS EB on a t1.micro, which is a PHP application that loops through some tasks, sleeps for a few minutes, and loops through its tasks again. Tasks involve moving some data on an FTP, and updating records from a Redis store.

It always builds and runs fine, but after a day the health of the application changes to “Warning”, the causes state that CPU is running at 100%, I don’t see any activity on the FTP that it processes, and the logs show nothing indicating the application failing.

  • Dokku Port configuration problems EC2
  • Can't connect to Amazon RDS from Docker container
  • Deploy Docker container using Kubernetes
  • How to change express.js microservice application for ecs auto scaling
  • Graylog2 Docker unable to start
  • Running multiple docker instances in EC2
  • Is this just a case of upgrading the EC2 instance to a higher spec? Or is there a flaw in the way i’m running the container that would release resource after each iteration.

    Thanks

  • Why change NGINX file locations?
  • Why is networking so slow in this Fig/Docker container?
  • Docker Ignores limits.conf (trying to solve “too many open files” error)
  • Private environment variables when deploying with Docker on AWS Elastic Beanstalk
  • Pulling images from private registry in Kubernetes
  • Version error when installing docker toolbox on OSX
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.