1
Startup bat
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
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
Create an account or sign in to comment.
5
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.
_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.
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.
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.
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.
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
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
Do you even have 30GB of RAM to run that? 0_o
And, details about the crash on startup?
And, details about the crash on startup?