1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
Try setting up CloudWatch agent as a container in your ECS task which pushes all the logs(include PM2 logs) to CloudWatch and allows you to debug things. Follow this blog to setup CloudWatch agent in ECS task https://aws.amazon.com/blogs/devops/send-ecs-container-logs-to-cloudwatch-logs-for-centralized-monitoring/
PM2 restart reasons are a few:
- Application crash
- Empty event loop
As your memory utilization is close to 99%, try finding any data leak is happening inside the application.
Let me know if you have any questions
answered 3 months ago
Relevant content
- asked 6 months ago
- asked 7 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago