[HELP] VPS with minecraft server help!

Status
This thread has been locked.

Pepsi

Feedback score
1
Posts
101
Reactions
25
Resources
0
I bought a vps ssd 3 package from ovh and I setup a server on it but when players join players get about 10 seconds of lag, i'm guessing because i'm getting this error "
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 5011144704 bytes for committing reserved memory."

Since my vps has 8GB of ram how much should I allocate to my server?
Does this error mean i'm putting to much or to little?

Thanks in advance!
 
Type
Offering
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Pepsi

Feedback score
1
Posts
101
Reactions
25
Resources
0
Edit: I fixed the error but the whole server freezes whenever someone trys to join
 
Last edited:

VybrusHosting

Truly Powerful Hosting
Supreme
Feedback score
0
Posts
103
Reactions
64
Resources
0
It's always best to leave around 2GB of RAM as head way so I would suggest 6GB of RAM also make sure that your firewall is setup correctly to send and receive connections from your players.
 

Pepsi

Feedback score
1
Posts
101
Reactions
25
Resources
0
It's always best to leave around 2GB of RAM as head way so I would suggest 6GB of RAM also make sure that your firewall is setup correctly to send and receive connections from your players.
How do I do that? Could you help me out with it?
 

VybrusHosting

Truly Powerful Hosting
Supreme
Feedback score
0
Posts
103
Reactions
64
Resources
0
How do I do that? Could you help me out with it?

Sure this is what we suggest:
Code:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
@echo off

Where is says -Xmx1024M is the amount of RAM you will dedicated to the server, 1GB is 1024M if your using 6 it would be 6144M.
As for the -Xms1024M section is the burst RAM which is used if all the dedicated RAM is used up this can help compensate for the player join event.

The code shown above is best used in a run.bat file since you can't use Tuatara off in SSH as for minecraft_server.jar rename that to that jar that you have downloaded. You can get all the latest Spigot & CraftBukkit jars at https://getbukkit.org
 

Pepsi

Feedback score
1
Posts
101
Reactions
25
Resources
0
Sure this is what we suggest:
Code:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
@echo off

Where is says -Xmx1024M is the amount of RAM you will dedicated to the server, 1GB is 1024M if your using 6 it would be 6144M.
As for the -Xms1024M section is the burst RAM which is used if all the dedicated RAM is used up this can help compensate for the player join event.

The code shown above is best used in a run.bat file since you can't use Tuatara off in SSH as for minecraft_server.jar rename that to that jar that you have downloaded. You can get all the latest Spigot & CraftBukkit jars at https://getbukkit.org
I just had a start.sh that would do this:
Code:
while true; do
cd /Factions/start.sh
java -Xmx8192M -Xms8192M -jar PaperSpigot.jar nogui
echo "Restarting in 5 seconds."
sleep 5
echo "Starting!"
done
 

VybrusHosting

Truly Powerful Hosting
Supreme
Feedback score
0
Posts
103
Reactions
64
Resources
0
I just had a start.sh that would do this:
Code:
while true; do
cd /Factions/start.sh
java -Xmx8192M -Xms8192M -jar PaperSpigot.jar nogui
echo "Restarting in 5 seconds."
sleep 5
echo "Starting!"
done

The issue with the command it's thinking you have 16GB of RAM when you have 8GB, it looks all good you just need to sort out the Java command. Change the first one to 6GB worth and the 2nd one to GB worth since you need some head room for the server to function properly.
 

Pepsi

Feedback score
1
Posts
101
Reactions
25
Resources
0
The issue with the command it's thinking you have 16GB of RAM when you have 8GB, it looks all good you just need to sort out the Java command. Change the first one to 6GB worth and the 2nd one to GB worth since you need some head room for the server to function properly.
set the first one to 6 and the second one to 1?
 

VybrusHosting

Truly Powerful Hosting
Supreme
Feedback score
0
Posts
103
Reactions
64
Resources
0
set the first one to 6 and the second one to 1?
Yea since then the server is using 7/8GB you have available to you although 1GB for the system is small it can still run smoothly.
 
Status
This thread has been locked.
Top