Can I allocate both “available” and “free” memory to a Minecraft server? (18.04)











up vote
0
down vote

favorite












I have about 4GB of available memory and 1GB of free memory. Can I allocate 5GB to my Minecraft server? I am a noob, just got Ubuntu :D



I have no idea what the difference between free and available memory is.










share|improve this question




















  • 1




    Is the minecraft server running in a VM? if the minecraft server is standalone, it should already be using all the memory... but will only use as much as it needs
    – Joshua Besneatte
    Dec 8 at 6:33










  • i don't reallly know-- but on windows 10, i have a .bat file that has this: java -Xmx4G -Xms4G -d64 -jar spigot-1.13.2.jar nogui obviously on ubuntu it has to be a bash file, but i want to know if i can do -xmx5g -xms5g
    – Zach - LightSpeedYT
    Dec 8 at 12:45

















up vote
0
down vote

favorite












I have about 4GB of available memory and 1GB of free memory. Can I allocate 5GB to my Minecraft server? I am a noob, just got Ubuntu :D



I have no idea what the difference between free and available memory is.










share|improve this question




















  • 1




    Is the minecraft server running in a VM? if the minecraft server is standalone, it should already be using all the memory... but will only use as much as it needs
    – Joshua Besneatte
    Dec 8 at 6:33










  • i don't reallly know-- but on windows 10, i have a .bat file that has this: java -Xmx4G -Xms4G -d64 -jar spigot-1.13.2.jar nogui obviously on ubuntu it has to be a bash file, but i want to know if i can do -xmx5g -xms5g
    – Zach - LightSpeedYT
    Dec 8 at 12:45















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have about 4GB of available memory and 1GB of free memory. Can I allocate 5GB to my Minecraft server? I am a noob, just got Ubuntu :D



I have no idea what the difference between free and available memory is.










share|improve this question















I have about 4GB of available memory and 1GB of free memory. Can I allocate 5GB to my Minecraft server? I am a noob, just got Ubuntu :D



I have no idea what the difference between free and available memory is.







ram






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 13 at 17:58









Zanna

49.8k13130237




49.8k13130237










asked Dec 8 at 3:20









Zach - LightSpeedYT

1




1








  • 1




    Is the minecraft server running in a VM? if the minecraft server is standalone, it should already be using all the memory... but will only use as much as it needs
    – Joshua Besneatte
    Dec 8 at 6:33










  • i don't reallly know-- but on windows 10, i have a .bat file that has this: java -Xmx4G -Xms4G -d64 -jar spigot-1.13.2.jar nogui obviously on ubuntu it has to be a bash file, but i want to know if i can do -xmx5g -xms5g
    – Zach - LightSpeedYT
    Dec 8 at 12:45
















  • 1




    Is the minecraft server running in a VM? if the minecraft server is standalone, it should already be using all the memory... but will only use as much as it needs
    – Joshua Besneatte
    Dec 8 at 6:33










  • i don't reallly know-- but on windows 10, i have a .bat file that has this: java -Xmx4G -Xms4G -d64 -jar spigot-1.13.2.jar nogui obviously on ubuntu it has to be a bash file, but i want to know if i can do -xmx5g -xms5g
    – Zach - LightSpeedYT
    Dec 8 at 12:45










1




1




Is the minecraft server running in a VM? if the minecraft server is standalone, it should already be using all the memory... but will only use as much as it needs
– Joshua Besneatte
Dec 8 at 6:33




Is the minecraft server running in a VM? if the minecraft server is standalone, it should already be using all the memory... but will only use as much as it needs
– Joshua Besneatte
Dec 8 at 6:33












i don't reallly know-- but on windows 10, i have a .bat file that has this: java -Xmx4G -Xms4G -d64 -jar spigot-1.13.2.jar nogui obviously on ubuntu it has to be a bash file, but i want to know if i can do -xmx5g -xms5g
– Zach - LightSpeedYT
Dec 8 at 12:45






i don't reallly know-- but on windows 10, i have a .bat file that has this: java -Xmx4G -Xms4G -d64 -jar spigot-1.13.2.jar nogui obviously on ubuntu it has to be a bash file, but i want to know if i can do -xmx5g -xms5g
– Zach - LightSpeedYT
Dec 8 at 12:45












2 Answers
2






active

oldest

votes

















up vote
1
down vote













Let's see a typical free output:



              total        used        free      shared  buff/cache   available
Mem: 32806952 7552612 780696 949180 24473644 23843300
Swap: 2097148 36864 2060284


Here available is free + part of buff/cache, you could not add them together because free will be counted twice.



Also if you allocate all available memory to your minecraft server, it means your computer will not have any memory left to use disk cache. OS will try to swap something out, and could be incredibly slow.






share|improve this answer




























    up vote
    0
    down vote













    Follow the 'Available' estimate, or your system will start to swap (and slow down). Remember that it's an estimate - it might be high, it might be low.



    Let's review the relevant memory definitions: (from https://askubuntu.com/a/859664/19626)




    Total = Used + Free



    Available: Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use.




    Note that 'Available' and 'Free' are apples-and-oranges. Do not add them and expect a useful result.






    share|improve this answer























      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',
      autoActivateHeartbeat: false,
      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
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099314%2fcan-i-allocate-both-available-and-free-memory-to-a-minecraft-server-18-04%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Let's see a typical free output:



                    total        used        free      shared  buff/cache   available
      Mem: 32806952 7552612 780696 949180 24473644 23843300
      Swap: 2097148 36864 2060284


      Here available is free + part of buff/cache, you could not add them together because free will be counted twice.



      Also if you allocate all available memory to your minecraft server, it means your computer will not have any memory left to use disk cache. OS will try to swap something out, and could be incredibly slow.






      share|improve this answer

























        up vote
        1
        down vote













        Let's see a typical free output:



                      total        used        free      shared  buff/cache   available
        Mem: 32806952 7552612 780696 949180 24473644 23843300
        Swap: 2097148 36864 2060284


        Here available is free + part of buff/cache, you could not add them together because free will be counted twice.



        Also if you allocate all available memory to your minecraft server, it means your computer will not have any memory left to use disk cache. OS will try to swap something out, and could be incredibly slow.






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          Let's see a typical free output:



                        total        used        free      shared  buff/cache   available
          Mem: 32806952 7552612 780696 949180 24473644 23843300
          Swap: 2097148 36864 2060284


          Here available is free + part of buff/cache, you could not add them together because free will be counted twice.



          Also if you allocate all available memory to your minecraft server, it means your computer will not have any memory left to use disk cache. OS will try to swap something out, and could be incredibly slow.






          share|improve this answer












          Let's see a typical free output:



                        total        used        free      shared  buff/cache   available
          Mem: 32806952 7552612 780696 949180 24473644 23843300
          Swap: 2097148 36864 2060284


          Here available is free + part of buff/cache, you could not add them together because free will be counted twice.



          Also if you allocate all available memory to your minecraft server, it means your computer will not have any memory left to use disk cache. OS will try to swap something out, and could be incredibly slow.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 10 at 5:31









          Alvin Liang

          6067




          6067
























              up vote
              0
              down vote













              Follow the 'Available' estimate, or your system will start to swap (and slow down). Remember that it's an estimate - it might be high, it might be low.



              Let's review the relevant memory definitions: (from https://askubuntu.com/a/859664/19626)




              Total = Used + Free



              Available: Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use.




              Note that 'Available' and 'Free' are apples-and-oranges. Do not add them and expect a useful result.






              share|improve this answer



























                up vote
                0
                down vote













                Follow the 'Available' estimate, or your system will start to swap (and slow down). Remember that it's an estimate - it might be high, it might be low.



                Let's review the relevant memory definitions: (from https://askubuntu.com/a/859664/19626)




                Total = Used + Free



                Available: Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use.




                Note that 'Available' and 'Free' are apples-and-oranges. Do not add them and expect a useful result.






                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Follow the 'Available' estimate, or your system will start to swap (and slow down). Remember that it's an estimate - it might be high, it might be low.



                  Let's review the relevant memory definitions: (from https://askubuntu.com/a/859664/19626)




                  Total = Used + Free



                  Available: Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use.




                  Note that 'Available' and 'Free' are apples-and-oranges. Do not add them and expect a useful result.






                  share|improve this answer














                  Follow the 'Available' estimate, or your system will start to swap (and slow down). Remember that it's an estimate - it might be high, it might be low.



                  Let's review the relevant memory definitions: (from https://askubuntu.com/a/859664/19626)




                  Total = Used + Free



                  Available: Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use.




                  Note that 'Available' and 'Free' are apples-and-oranges. Do not add them and expect a useful result.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 8 at 15:09

























                  answered Dec 8 at 13:13









                  user535733

                  7,54722941




                  7,54722941






























                      draft saved

                      draft discarded




















































                      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%2f1099314%2fcan-i-allocate-both-available-and-free-memory-to-a-minecraft-server-18-04%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

                      數位音樂下載

                      When can things happen in Etherscan, such as the picture below?

                      格利澤436b