How to clear cache,swap and what are the limits?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I am trying to run Docker but I need more memory on my Ubuntu 16.04



 free -m
total used free shared buff/cache available
Mem: 7914 4024 3072 83 817 3448
Swap: 8127 14 8113


When I run docker



Setting advertised host to 127.0.0.1.
Operating system RAM available is 3344 MiB, which is less than the lowest
recommended of 5120 MiB. Your system performance may be seriously impacted.


What should I do to get more RAM?Is this possible?







share|improve this question




















  • You will need to identify those process using the most memory and decide whether they can be stopped to retrieve memory or not. The top command will help you in this instance. Alternatively, you can vertically scale your system and add more memory to the system.
    – Raman Sailopal
    Jan 23 at 13:24










  • Ok.I have decided to kill pid with Cassandra Java,that akes 25% memory.
    – MikiBelavista
    Jan 23 at 13:33














up vote
2
down vote

favorite
1












I am trying to run Docker but I need more memory on my Ubuntu 16.04



 free -m
total used free shared buff/cache available
Mem: 7914 4024 3072 83 817 3448
Swap: 8127 14 8113


When I run docker



Setting advertised host to 127.0.0.1.
Operating system RAM available is 3344 MiB, which is less than the lowest
recommended of 5120 MiB. Your system performance may be seriously impacted.


What should I do to get more RAM?Is this possible?







share|improve this question




















  • You will need to identify those process using the most memory and decide whether they can be stopped to retrieve memory or not. The top command will help you in this instance. Alternatively, you can vertically scale your system and add more memory to the system.
    – Raman Sailopal
    Jan 23 at 13:24










  • Ok.I have decided to kill pid with Cassandra Java,that akes 25% memory.
    – MikiBelavista
    Jan 23 at 13:33












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I am trying to run Docker but I need more memory on my Ubuntu 16.04



 free -m
total used free shared buff/cache available
Mem: 7914 4024 3072 83 817 3448
Swap: 8127 14 8113


When I run docker



Setting advertised host to 127.0.0.1.
Operating system RAM available is 3344 MiB, which is less than the lowest
recommended of 5120 MiB. Your system performance may be seriously impacted.


What should I do to get more RAM?Is this possible?







share|improve this question












I am trying to run Docker but I need more memory on my Ubuntu 16.04



 free -m
total used free shared buff/cache available
Mem: 7914 4024 3072 83 817 3448
Swap: 8127 14 8113


When I run docker



Setting advertised host to 127.0.0.1.
Operating system RAM available is 3344 MiB, which is less than the lowest
recommended of 5120 MiB. Your system performance may be seriously impacted.


What should I do to get more RAM?Is this possible?









share|improve this question











share|improve this question




share|improve this question










asked Jan 23 at 13:14









MikiBelavista

317515




317515











  • You will need to identify those process using the most memory and decide whether they can be stopped to retrieve memory or not. The top command will help you in this instance. Alternatively, you can vertically scale your system and add more memory to the system.
    – Raman Sailopal
    Jan 23 at 13:24










  • Ok.I have decided to kill pid with Cassandra Java,that akes 25% memory.
    – MikiBelavista
    Jan 23 at 13:33
















  • You will need to identify those process using the most memory and decide whether they can be stopped to retrieve memory or not. The top command will help you in this instance. Alternatively, you can vertically scale your system and add more memory to the system.
    – Raman Sailopal
    Jan 23 at 13:24










  • Ok.I have decided to kill pid with Cassandra Java,that akes 25% memory.
    – MikiBelavista
    Jan 23 at 13:33















You will need to identify those process using the most memory and decide whether they can be stopped to retrieve memory or not. The top command will help you in this instance. Alternatively, you can vertically scale your system and add more memory to the system.
– Raman Sailopal
Jan 23 at 13:24




You will need to identify those process using the most memory and decide whether they can be stopped to retrieve memory or not. The top command will help you in this instance. Alternatively, you can vertically scale your system and add more memory to the system.
– Raman Sailopal
Jan 23 at 13:24












Ok.I have decided to kill pid with Cassandra Java,that akes 25% memory.
– MikiBelavista
Jan 23 at 13:33




Ok.I have decided to kill pid with Cassandra Java,that akes 25% memory.
– MikiBelavista
Jan 23 at 13:33










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










Use the below command to identify top 10 Memory consuming resources. so that you can trouble accordingly



ps axo %mem,command,pid| sort -nr | head


To drop cache use below command



sync;echo 1 > /proc/sys/vm/drop_caches





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419075%2fhow-to-clear-cache-swap-and-what-are-the-limits%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    Use the below command to identify top 10 Memory consuming resources. so that you can trouble accordingly



    ps axo %mem,command,pid| sort -nr | head


    To drop cache use below command



    sync;echo 1 > /proc/sys/vm/drop_caches





    share|improve this answer
























      up vote
      3
      down vote



      accepted










      Use the below command to identify top 10 Memory consuming resources. so that you can trouble accordingly



      ps axo %mem,command,pid| sort -nr | head


      To drop cache use below command



      sync;echo 1 > /proc/sys/vm/drop_caches





      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        Use the below command to identify top 10 Memory consuming resources. so that you can trouble accordingly



        ps axo %mem,command,pid| sort -nr | head


        To drop cache use below command



        sync;echo 1 > /proc/sys/vm/drop_caches





        share|improve this answer












        Use the below command to identify top 10 Memory consuming resources. so that you can trouble accordingly



        ps axo %mem,command,pid| sort -nr | head


        To drop cache use below command



        sync;echo 1 > /proc/sys/vm/drop_caches






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 23 at 14:15









        Praveen Kumar BS

        1,010128




        1,010128






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419075%2fhow-to-clear-cache-swap-and-what-are-the-limits%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay