Docker container eat memory and has large block I/O
up vote
0
down vote
favorite
I try to use Docker and I have little problem. I don't understand why there is an increase in memory usage in my container. For example:
I have container with RabbitMQ, but it's not used. When I start the container, it has only 80Mb of memory, but after ten hours, it takes all limit (256Mb). I check statistics with docker stats -a.
Also, container has huge Block I/O
UPDATE:
RabbitMQ version 3.7.8
I used standart RabbitMQ-docker-image from docker-hub, but my server has't internet connection, and I had to use export/import.
docker export rabbitmq > /work/tmp/rabbitmq-docker-image
docker import /work/tmp/rabbitmq-docker-image rabbitmq:current
docker run -d --memory=256m --restart=on-failure --hostname rabbitmq --name prod-rabbit -p 5673:5672 -p 15673:15672 rabbitmq:current rabbitmq-server
Result of docker stats -a
CONTAINER ID a0e8ad573154
NAME prod-rabbit
CPU % 0.12%
MEM USAGE / LIMIT 255.6MiB / 256MiB
MEM % 99.13%
NET I/O 201kB / 361kB
BLOCK I/O 19.5GB / 31.1GB
PIDS 5533
docker container
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I try to use Docker and I have little problem. I don't understand why there is an increase in memory usage in my container. For example:
I have container with RabbitMQ, but it's not used. When I start the container, it has only 80Mb of memory, but after ten hours, it takes all limit (256Mb). I check statistics with docker stats -a.
Also, container has huge Block I/O
UPDATE:
RabbitMQ version 3.7.8
I used standart RabbitMQ-docker-image from docker-hub, but my server has't internet connection, and I had to use export/import.
docker export rabbitmq > /work/tmp/rabbitmq-docker-image
docker import /work/tmp/rabbitmq-docker-image rabbitmq:current
docker run -d --memory=256m --restart=on-failure --hostname rabbitmq --name prod-rabbit -p 5673:5672 -p 15673:15672 rabbitmq:current rabbitmq-server
Result of docker stats -a
CONTAINER ID a0e8ad573154
NAME prod-rabbit
CPU % 0.12%
MEM USAGE / LIMIT 255.6MiB / 256MiB
MEM % 99.13%
NET I/O 201kB / 361kB
BLOCK I/O 19.5GB / 31.1GB
PIDS 5533
docker container
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Hello and welcome to AU. In order to improve legibility, could you post a 'character' version of the image. Thank you
– Marc Vanhoomissen
Nov 29 at 10:50
Thank you for your involvement, I has updated my question
– Alexander Vostrykov
Nov 29 at 13:33
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I try to use Docker and I have little problem. I don't understand why there is an increase in memory usage in my container. For example:
I have container with RabbitMQ, but it's not used. When I start the container, it has only 80Mb of memory, but after ten hours, it takes all limit (256Mb). I check statistics with docker stats -a.
Also, container has huge Block I/O
UPDATE:
RabbitMQ version 3.7.8
I used standart RabbitMQ-docker-image from docker-hub, but my server has't internet connection, and I had to use export/import.
docker export rabbitmq > /work/tmp/rabbitmq-docker-image
docker import /work/tmp/rabbitmq-docker-image rabbitmq:current
docker run -d --memory=256m --restart=on-failure --hostname rabbitmq --name prod-rabbit -p 5673:5672 -p 15673:15672 rabbitmq:current rabbitmq-server
Result of docker stats -a
CONTAINER ID a0e8ad573154
NAME prod-rabbit
CPU % 0.12%
MEM USAGE / LIMIT 255.6MiB / 256MiB
MEM % 99.13%
NET I/O 201kB / 361kB
BLOCK I/O 19.5GB / 31.1GB
PIDS 5533
docker container
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I try to use Docker and I have little problem. I don't understand why there is an increase in memory usage in my container. For example:
I have container with RabbitMQ, but it's not used. When I start the container, it has only 80Mb of memory, but after ten hours, it takes all limit (256Mb). I check statistics with docker stats -a.
Also, container has huge Block I/O
UPDATE:
RabbitMQ version 3.7.8
I used standart RabbitMQ-docker-image from docker-hub, but my server has't internet connection, and I had to use export/import.
docker export rabbitmq > /work/tmp/rabbitmq-docker-image
docker import /work/tmp/rabbitmq-docker-image rabbitmq:current
docker run -d --memory=256m --restart=on-failure --hostname rabbitmq --name prod-rabbit -p 5673:5672 -p 15673:15672 rabbitmq:current rabbitmq-server
Result of docker stats -a
CONTAINER ID a0e8ad573154
NAME prod-rabbit
CPU % 0.12%
MEM USAGE / LIMIT 255.6MiB / 256MiB
MEM % 99.13%
NET I/O 201kB / 361kB
BLOCK I/O 19.5GB / 31.1GB
PIDS 5533
docker container
docker container
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Nov 29 at 13:29
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 29 at 10:11
Alexander Vostrykov
12
12
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Alexander Vostrykov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Hello and welcome to AU. In order to improve legibility, could you post a 'character' version of the image. Thank you
– Marc Vanhoomissen
Nov 29 at 10:50
Thank you for your involvement, I has updated my question
– Alexander Vostrykov
Nov 29 at 13:33
add a comment |
Hello and welcome to AU. In order to improve legibility, could you post a 'character' version of the image. Thank you
– Marc Vanhoomissen
Nov 29 at 10:50
Thank you for your involvement, I has updated my question
– Alexander Vostrykov
Nov 29 at 13:33
Hello and welcome to AU. In order to improve legibility, could you post a 'character' version of the image. Thank you
– Marc Vanhoomissen
Nov 29 at 10:50
Hello and welcome to AU. In order to improve legibility, could you post a 'character' version of the image. Thank you
– Marc Vanhoomissen
Nov 29 at 10:50
Thank you for your involvement, I has updated my question
– Alexander Vostrykov
Nov 29 at 13:33
Thank you for your involvement, I has updated my question
– Alexander Vostrykov
Nov 29 at 13:33
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Alexander Vostrykov is a new contributor. Be nice, and check out our Code of Conduct.
Alexander Vostrykov is a new contributor. Be nice, and check out our Code of Conduct.
Alexander Vostrykov is a new contributor. Be nice, and check out our Code of Conduct.
Alexander Vostrykov is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097069%2fdocker-container-eat-memory-and-has-large-block-i-o%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hello and welcome to AU. In order to improve legibility, could you post a 'character' version of the image. Thank you
– Marc Vanhoomissen
Nov 29 at 10:50
Thank you for your involvement, I has updated my question
– Alexander Vostrykov
Nov 29 at 13:33