Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EC2 Instance Freezes

I am facing sudden freezes in one of my instances.

Here are some details about the instance:

Type: t2.micro
Region: ap-southeast-1
Platform: Ubuntu
Platform details: Linux/UNIX

I have two apps running on this instance, and also I have a celery service working there. these freezes start to happen since I run the celery service.

I am not really sure how to find and trace the issue.

Thanks.

like image 807
Nasrin Avatar asked May 08 '26 17:05

Nasrin


1 Answers

When an EC2 instance freezes that is quite often due to it running out of memory. So what you can do is to enable memory metrics (there is a guide in the AWS documentation how to do it) on your EC2 Celery nodes, and next time this happens check memory utilisation to confirm that machine was out of memory when it froze.

like image 124
DejanLekic Avatar answered May 10 '26 11:05

DejanLekic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!