1

Startup bat

Woordvoerder's Avatar Woordvoerder3/5/14 3:50 am
1 emeralds 219 5
3/12/2014 12:10 am
iMurder's Avatar iMurder
First of all i have no idea what im doing

I want to setup the bat file to the best so if anyone can help me with this and explain what is doing what than it would be nice.

If i do this line:
java -Xmx1024M -jar craftbukkit.jar -o true
PAUSE

The server crash or wont even start up.

Also i need to add ipconfig /flushdns in my bat file otherwise people get the message: "Failed to login: the authentication are currently down for maintenance"

Even with this code i need to restart the server twice a day.

Can somone explain me what the following codes does ?
-Xmx{}G
-XmS{}G
-XX:PermSize={}m
-XX:MaxPermSize={}m
-Djava.net.preferIPv4Stack={} (I think this is that the lanip adres ipv4 is selected if its on true)
-o (what does this do?)

The {} is custom input.

Anyway i want to run the server on 30G or something.

This is the startup.bat file i use now but i believe strongly that it can improve.

ipconfig /flushdns
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx30G -Xms20G -XX:PermSize=1024m -XX:MaxPermSize=2048m -Djava.net.preferIPv4Stack=true -jar craftbukkit.jar -o true
PAUSE

Anyway let me know please.
Its a bukkit server btw
Posted by Woordvoerder's Avatar
Woordvoerder
Level 12 : Journeyman Miner
0

Create an account or sign in to comment.

5

iMurder
03/12/2014 12:10 am
Level 7 : Apprentice Explorer
iMurder's Avatar
Woordvoerder i have 61 plugins running or isnt that recommended ?

No, that is defiantly not recommended at all. Anything above 30 really can start to break things and slow things down.
1
Woordvoerder
03/06/2014 1:54 am
Level 12 : Journeyman Miner
Woordvoerder's Avatar
_ENDER_DRAGON_

I'm gonna use your line now for a while to test if it work better than my line.
I did change the MaxPermSize to 1024M because i have 61 plugins running or isnt that recommended ?

Any thank you for the reply and just want to ask you 1 thing

What does it all mean like Xincgc, Xmx, Xms and so on.
1
_ENDER_DRAGON_
03/05/2014 5:51 pm
Level 26 : Expert Dragon
_ENDER_DRAGON_'s Avatar
Try something along the lines of:

java -Xincgc -Xmx30G -Xms512M -XX:+AggressiveOpts -XX:MaxPermSize=256M -jar "craftbukkit.jar"

I usually have "spigot.jar" instead of "craftbukkit.jar" but they should still work.
Increase the maxpermsize if you have alot of plugins. I only have 25.
1
Woordvoerder
03/05/2014 7:54 am
Level 12 : Journeyman Miner
Woordvoerder's Avatar
Thank you for the reply.
I have 64G RAM on my system
Have btw Windows forgotten to mention it

But the error if i do not enter flushdns in my startup bat file is:
Couldn't verify username because servers are unavailable

The startup line:
java -Xmx30G -jar craftbukkit.jar -o true
PAUSE

gives this error:
http://pastebin.com/PN3FCqdb

Original is longer, it goes with everyplugin and get the message Permgen or something

Same happens if i change it into -Xmx30720M

Server works fine with my startup bat file but i dont even know how it works
Sometimes it gives me error in console like:
Did the system time change or can't the server keep up
1
iMurder
03/05/2014 7:29 am
Level 7 : Apprentice Explorer
iMurder's Avatar
Do you even have 30GB of RAM to run that? 0_o
And, details about the crash on startup?
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome