• 1

    posted a message on New best and decent .bat code updated for the recent Minecraft servers version of Bukkit and Spigot. (WORK!) (PLEASE LOOK!)

    Hello everyone, today I am here, doing my first post in the Minecraft Forum, to bring you the best updated .bat that for certain I, say "I rode" these last few days to my Minecraft Spigot server that I am Recently creating, searching everywhere by Google. B)


    It has been tested for versions 1.5.2 through to version 1.11.1 of Minecraft, (versions below that are outdated, so they will not work) and it is for Windows. (Use at your own risk, I will not be liable for any imcompatibility or general damage to your computer or server. I recommend that you back up your current server files before testing, for safety!) (But do not worry, it's safe, there's no virus or something.) :wacko:


    This .bat is for you to optimize your server performance in a very positive way! It is very fast and efficient.


    Here we go:


    For 32-bit processors:


    @Echo OFF
    title (your server name)
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -version
    java -Xmn512M -Xms1G -Xmx1G -Xnoclassgc -XX:MaxPermSize=128M -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:LargePageSizeInBytes=2M -XX:+UseLargePages -XX:+UseLargePagesInMetaspace -XX:SurvivorRatio=16 -XX:-UseGCOverheadLimit -XX:+UseAdaptiveGCBoundary -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=15 -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=45 -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -verbose:gc -Xloggc:gc.log -d32 -jar (spigot or bukkit).jar nogui -o (false or true)
    PAUSE


    For 64-bit processors:


    @Echo OFF
    title (your server name)
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -version
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" java -Xmn512M -Xms1G -Xmx1G -Xnoclassgc -XX:MaxPermSize=128M -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:LargePageSizeInBytes=2M -XX:+UseLargePages -XX:+UseLargePagesInMetaspace -XX:SurvivorRatio=16 -XX:-UseGCOverheadLimit -XX:+UseAdaptiveGCBoundary -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=15 -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=45 -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -verbose:gc -Xloggc:gc.log -d64 -jar (spigot or bukkit).jar nogui -o (false or true)
    PAUSE


    (Supports the Java 7 and the Java 8!)


    Well, that's all, if you have any questions, talk to me, I'll be updating this post as soon as possible. See you soon and have a good day and thanks for all! xD


    (Sorry for my bad English, I'm Portuguese! D:)


    I strongly hope I have helped you in something!


    If you liked this, please leave your beautiful vote! :3

    Posted in: Server Support and Administration
  • To post a comment, please .