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










share|improve this question









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















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










share|improve this question









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













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










share|improve this question









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






share|improve this question









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.











share|improve this question









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.









share|improve this question




share|improve this question








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


















  • 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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Alexander Vostrykov is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















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






























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.










draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]