- 最新
- 最多得票
- 最多評論
Hi there,
I see that you have issues with your EC2 instance that keeps on crushing frequently.
There are many possible causes that can lead to this such as:
- Memory being over utilized by your applications.
- Application errors/bugs.
- Kernel panics.
Since these are based on the Operating System level, I would recommend that you review /var/log/syslog or /var/log/messages logs which records all activities within your system. I would further recommend that you also benchmark the memory and CPU needs of your applications using some bench-marking tools available like SAR utility. Please refer to the this[1,2] public documentation to learn more about the tools and how to utilize them. Then based on the results of bench-marking, you can either fine tune your application according to the available resources or you could upgrade[3] to an instance with better memory and CPU capabilities.
[1] How do I configure the ATOP and SAR monitoring tools for my EC2 instance running Amazon Linux - https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-configure-monitoring-tools/
[2] linux server administration/sar - https://en.wikiversity.org/wiki/Linux_server_administration/sar#:~:text=sar%20(System%20Activity%20Report)%20is,and%20recent%20recorded%20system%20performance.
[3] Change the instance type - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 9 個月前