Hello. I recently purchased a 2048MB VPS and I want to run minecraft on it using the 2048MB.
But, I seem to not be able to add anymore ram than 1024MB to the minecraft server. Any reason why? Or if anyone has any recommendations?
Thank you.
VPS - Unable to add Ram.
-
- New to forums
- Posts: 5
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Jul 31, 2019 7:15 pm
Re: VPS - Unable to add Ram.
Is this on an unmanaged VDS, or a managed VDS?
What method are you using, and what error are you seeing when trying to add more RAM?
What method are you using, and what error are you seeing when trying to add more RAM?
TimeX
-
- New to forums
- Posts: 5
- Joined: Wed Jul 31, 2019 7:15 pm
Re: VPS - Unable to add Ram.
This is unmanaged VDS and I am using the run.bat method to add the ram.
It generates a file and it contains stuff like this:
"There is insufficient memory for the Java Runtime Environment to continue."
# Out of Memory Error (allocation.cpp:389), pid=3040, tid=0x0000000000000950
#
# JRE version: Java(TM) SE Runtime Environment (8.0_221-b11) (build 1.8.0_221-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.221-b11 mixed mode windows-amd64 compressed oops)
# Failed to write core dump.
It generates a file and it contains stuff like this:
"There is insufficient memory for the Java Runtime Environment to continue."
# Out of Memory Error (allocation.cpp:389), pid=3040, tid=0x0000000000000950
#
# JRE version: Java(TM) SE Runtime Environment (8.0_221-b11) (build 1.8.0_221-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.221-b11 mixed mode windows-amd64 compressed oops)
# Failed to write core dump.
Re: VPS - Unable to add Ram.
What do you have set in your run.bat file?
Also, what are you seeing exactly that suggests only 1024MB of RAM is set?
Also, what are you seeing exactly that suggests only 1024MB of RAM is set?
TimeX
-
- New to forums
- Posts: 5
- Joined: Wed Jul 31, 2019 7:15 pm
Re: VPS - Unable to add Ram.
I have the following set in the run.bat file:
java -Xmx1024M -Xms1024M -jar spigot-1.14.4.jar -o true
This is the only way that I know of, unless there are other methods that I don't know about?
java -Xmx1024M -Xms1024M -jar spigot-1.14.4.jar -o true
This is the only way that I know of, unless there are other methods that I don't know about?
Re: VPS - Unable to add Ram.
Those values there show a starting and max value of 1024M of RAM. You will want to change at least the Xmx value (the max value) to 2048M.
To be careful with this if your VDS only has 2048M total, as the OS will need some RAM for itself to function.
To be careful with this if your VDS only has 2048M total, as the OS will need some RAM for itself to function.
TimeX
-
- New to forums
- Posts: 5
- Joined: Wed Jul 31, 2019 7:15 pm
Re: VPS - Unable to add Ram.
Yea, so it basically explains why it doesn't run.
The VDS only has 2048MB of memory and having the minecraft server run at 2048m leaves no room for the OS to function.
So That leaves me with only being able to use half the memory since I cannot do something like 1536m.
The VDS only has 2048MB of memory and having the minecraft server run at 2048m leaves no room for the OS to function.
So That leaves me with only being able to use half the memory since I cannot do something like 1536m.
Re: VPS - Unable to add Ram.
1536M should work. Are you getting an error message with it?
-
- New to forums
- Posts: 5
- Joined: Wed Jul 31, 2019 7:15 pm
Re: VPS - Unable to add Ram.
Yes, I run the server and after like 1 minute or two it just closed byitself.
Then generates the following file with information like I listed before.
http://prntscr.com/onq6lk
Then generates the following file with information like I listed before.
http://prntscr.com/onq6lk
Re: VPS - Unable to add Ram.
I was asking about this statement:
Now is a good time to perform an upgrade, due to our brand-new midsummer sale: viewtopic.php?t=15517. If you upgrade now, it will lock in that price for as long as you keep the same server in the same configuration, as well.
I was trying to understand why 1024 and 2048 would work, but not 1536. Java should allow pretty much any value to be specified. Whether it's enough for your specific Minecraft configuration is another matter, however.So That leaves me with only being able to use half the memory since I cannot do something like 1536m.
Now is a good time to perform an upgrade, due to our brand-new midsummer sale: viewtopic.php?t=15517. If you upgrade now, it will lock in that price for as long as you keep the same server in the same configuration, as well.