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.
ram
add a comment |
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.
ram
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
add a comment |
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.
ram
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
ram
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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
});
}
});
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%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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 10 at 5:31
Alvin Liang
6067
6067
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Dec 8 at 15:09
answered Dec 8 at 13:13
user535733
7,54722941
7,54722941
add a comment |
add a comment |
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%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
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
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