Tutorial — Troubleshooting a killed process
Edit on GitHubOne of the reasons for a process being killed is OOM Killer(Out of memory Killer).
The OOM Killer is a process that the Linux kernel employs when the system is critically low on memory. This happens when the Linux kernel over-allocates memory to its processes.
If the primary container process was killed by OOM Killer, the container exit status is 139
. To check the exit status of a process, do the following:
- In the AWS Management Console, go to Services > Elastic Container Service.
- In the navigation pane, select Clusters.
- Select the cluster of the environment to which an unavailable service belongs.
- On the page of the cluster, select the unavailable service.
- On the page of the service, check if the Running count is equal to the Desired count. If the numbers are equal, the service is running correctly.
- Switch to the Tasks tab.
- Check if the Last status is Running.
- If the task is not running, switch to the Events tab and check the errors.
- Switch to the Tasks tab.
- For the Desired task status, select Stopped.
- Select the latest stopped task.
Multiple stopped tasks
If there are multiple stopped tasks, to identify the latest one, open the page of every task and compare the Stopped at dates and times.
-
In the Containers section, select the arrow before the container name.
-
In the Details section, check the exit code and the errors.
Thank you!
For submitting the form