none
Is Dynamic Memory allocation possible? Too much memory consumed by containers : URGENT issue on Windows 10 RRS feed

  • Question

  • ........   I have a window 10 enterprise laptop with 16 GB RAM and i7 specs. I have total of 9 containers running a set of functionality for a business application. Before running the containers, I have 3 GB consumed memory in task manager. When I run my compose file to instantiate containers, Docker is assigning 700 MB by default to each container. One of the container is MongoDB. I had to explicitly set mem_limit to 3G to make it work. However now all containers are consuming 8GB of RAM. In total I have only around 2 GB free RAM remaining. It is too low for me to run other application stuff. All containers are very light weight in functionality nature. They are only passing through most of the data. I really wanted to spin up each container as 200 MB at max. However mem_limit is not respected/entertained by Docker engine. Docker is still assigning 700 MB to most of my containers. - Has any one faced any high memory consumption issues on Docker for Windows? - Has any one used mem_limit in a working way? I have explored lot of articles. I can not use Docker mem swap switches as I am not in a Swarm mode. My application only needs to run on a end-user laptop or machines. This memory high consumption issue is really frustrating. I have spent two days of research but no definitive answer to optimize my compose file or containers. I even tried applying -memory switches on individual docker run command. But same results. Docker for Windows : 18.0.6 Community free edition.
    ......

    Moonis Tahir MVP SharePoint, Docker for Windows, Azure, MCTS SharePoint, MCPD.net, MCSD.net, MCTS,SQL Server, KendoUI, HTML5, Web Api, ASP.net MVC



    • Edited by Moonis Tahir Wednesday, September 19, 2018 4:29 PM updated title for windows
    Wednesday, September 19, 2018 4:08 AM

All replies

  • Is this windows or UNIX containers? If it's UNIX containers and you issue with Docker For Windows (which is not the same as windows containers this forum is dedicated to) then it shall be posted to Docker forums and not here.
    Wednesday, September 19, 2018 1:37 PM
  • You did not read thread at all. It clearly says "Docker for Windows : 18.0.6 " 

    It is for Docker for windows. 


    Moonis Tahir MVP SharePoint,MCTS SharePoint 2013/2010/2007, MCPD.net, MCSD.net, MCTS BizTalk,SQL Server, KendoUI, HTML5, Web Api, ASP.net MVC

    Wednesday, September 19, 2018 4:28 PM
  • You do see I asked a question wether you are running Windows or UNIX containers inside ""Docker for Windows : 18.0.6 " ? Please educate yourself what is Docker For Windows and what is windows containers first before posting here.
    Wednesday, September 19, 2018 4:32 PM
  • Greetings,

    Please calm down.

    @Moonis

    Would you mind to post your docker-compose.yaml here?

    Meanwhile, it's better to share the documentation that you are referring to? Are you referring following one?

    https://docs.docker.com/config/containers/resource_constraints/


    Sic Parvis Magna

    Thursday, September 20, 2018 10:39 AM