Starting up Direwolf20 with improved arguments?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

totte1015

New Member
Jul 29, 2019
391
0
1
So I tried the new direwolf20 pack but I dont understand shit in the arguments I got from some forum guy, that conains this:

java -server -Xincgc -Xmx4G -Xms2G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+DisableExplicitGC -Xnoclassgc -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:parallelGCThreads=2 -XX:+AggressiveOpts -XX:+UseLargePages -XX:ReservedCodeCacheSize=1G -cp ftbserver.jar -jar ftbserver.jar

What is it here I have to change to make it work on Direwolf20s server start?

Putting this .bat in direwolf20 server folder just open and closes it instantly :(
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
Wow... First recommendation. Don't use all of that garbage. Almost all of that is for Java 7 and no longer works or works differently with Java 8. Java 8 has much better memory and garbage management. The only thing I would keep would be -Xmx5G -Xms512M. The -Xmx should be between 5 and 6 with the new 1.10 packs. I hope your system has enough RAM to support it. Windows based systems with only 8GB or less will need more RAM to play 1.10 packs.
 
  • Like
Reactions: jikuja

totte1015

New Member
Jul 29, 2019
391
0
1
Oh, really? I used it for Infinity and it totally ereased my lag I had, but new direwolf seems to be better
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
The other one you can try is -XX:+UseG1GC

It enables the new G1GC garbage collector which is supposed to be the best for Java 8 and modded minecraft at present.
 

totte1015

New Member
Jul 29, 2019
391
0
1
Alright so how should the whole .bat look like?

The main problem is that it wont start up the server with the arguments, I guess it has something to do with the serverfile.jar is not correct in the .bat so it wont find it
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
For that I would need to know what the server jar file is named. All you really need is something like this.
Code:
java -Xms512M -Xmx7G -XX:+UseG1GC -jar forge-1.10.2-12.18.2.2151-universal.jar nogui

Just replace forge-1.10.2-12.18.2.2151-universal.jar with what ever server jar you are using. You really don't need anything else in the start up script.