php - Docker PHP API causing 100% CPU Usage on Elastic Beanstalk
问题描述
We have a PHP API that is running on Elastic Beanstalk.
Originally, we were just uploading the .zip file to an environment running "PHP 7.3 running on 64bit Amazon Linux/2.9.8". This worked fine and would load balance & scale as expected.
We just switched over to an environment running "Docker running on 64bit Amazon Linux 2/3.1.2".
When running our Docker environment, we see that the instances are getting error messages saying "CPU 100%". When this happens, we see our database connections getting stuck in a "Clean Up" state for way longer than normal (20+ seconds). This causes our database to start refusing connections because there are too many connections.
If we switch back to our original setup, everything is fine.
So my question is: Does anyone know what settings / configuration with a Docker environment that could cause this behavior?
Thanks in advance for any information!
解决方案
推荐阅读
- javascript - 单击“加载更多”按钮时,键盘焦点应该在哪里
- python - 为什么我的 txt 文件没有正确导出换行符?
- python - Python中图像中每个像素的标准偏差
- javascript - 如何使文本文件在获取并添加到 div 时具有相同的布局
- python - Pyglet text_input 示例改编“只能分配相同大小的序列”按键
- c++ - Qt 等跨平台的 windows 框架是如何工作的?它们是原生 API 的包装器吗?
- jpa - 使用 JPA 标准为带有标准构建器的 postgres jsonb 列构建谓词
- java - 在 DAO 模式中使用泛型
- sqlite - 如何在 group by 中使用 case 语句?
- html - 角度模板中 html 元素上的 contenteditable 需要右键单击才能在 chrome 中正常工作