title: Docker PHP API causing 100% CPU Usage on Elastic Beanstalk
body: <p>We have a PHP API that is running on Elastic Beanstalk.</p>
  <p>Originally, we were just uploading the .zip file to an environment running &quot;PHP 7.3 running on 64bit Amazon Linux/2.9.8&quot;. This worked fine and would load balance &amp; scale as expected.</p>
  <p>We just switched over to an environment running &quot;Docker running on 64bit Amazon Linux 2/3.1.2&quot;.</p>
  <p>When running our Docker environment, we see that the instances are getting error messages saying &quot;CPU 100%&quot;. When this happens, we see our database connections getting stuck in a &quot;Clean Up&quot; state for way longer than normal (20+ seconds). This causes our database to start refusing connections because there are too many connections.</p>
  <p>If we switch back to our original setup, everything is fine.</p>
  <p>So my question is:
  Does anyone know what settings / configuration with a Docker environment that could cause this behavior?</p>
  <p>Thanks in advance for any information!</p>