Slowness issues with a java application running on a docker container over AWS ECS

0 votes
I am facing one issue in the Java application which is running on Docker Container over AWS ECS, which is it becomes intermittently slow (dead) sometimes and gets auto-resolved withing 15-20 mins.

The common factors constituting this behavior are high CPU, load, and memory

Which i have already verified and they all are running fine. can someone suggest possible ways to debug the same?
Oct 5, 2020 in Docker by anonymous
• 19,610 points
2,037 views

1 answer to this question.

0 votes
You can set the following two parameters to control container stop and start timeout at the container instance level:

1.    In /etc/ecs/ecs.config, set the value of the ECS_CONTAINER_STOP_TIMEOUT parameter to the amount of time that you want to pass before your containers are forcibly killed if they don't exit normally on their own.

Note: The default value for Linux and Windows is 30s.

2.    In /etc/ecs/ecs.config, set the value of the ECS_CONTAINER_START_TIMEOUT parameter to the amount of time that you want to pass before the ECS container agent stops trying to start the container.

Note: The default value is 3m for Linux and 8m for Windows.

Check this out for more info:

https://aws.amazon.com/premiumsupport/knowledge-center/ecs-tasks-stuck-pending-state/
answered Oct 5, 2020 by Rajendra Prasad

Related Questions In Docker

+1 vote
7 answers

How to connect to a Docker container running mysql on Windows 10?

Avoid using bind_address in your my.cnf file. I don't ...READ MORE

answered Apr 25, 2019 in Docker by Haseeb
12,689 views
0 votes
1 answer

Enter in a Docker container already running with a new TTY?

Here is what you can try. For docker ...READ MORE

answered Oct 27, 2018 in Docker by shubham
• 7,340 points
2,270 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 34,245 views
0 votes
1 answer

How to continue running a docker container which is already exited?

Restart an existing container after you exited ...READ MORE

answered Jul 19, 2018 in Docker by Sophie may
• 10,620 points
2,553 views
0 votes
1 answer

Running docker-compose on a docker gitlab-ci-multi-runner

The problem (as I understand it) is ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 52,350 points
2,133 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Will docker run on I5 or I7 is required?

It will run on i3 as well. ...READ MORE

answered Oct 5, 2020 in Docker by Vel
2,160 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP