1. This section of the forums is now closed. You can post and answer support requests on the new support site here

JVM Arguments for Modded Minecraft (Updated 12/30/13)

Discussion in '[Archived] Tech Support' started by Eyamaz, Aug 13, 2013.

  1. reddvilzz

    reddvilzz New Member

    So both min and max memory settings in multiMC settings set to 2048?
    Eyamaz likes this.
  2. Eyamaz

    Eyamaz New Member

    Yup. Setting them both equal results in always having that memory claimed by java and reduces CPU load by a little bit because the JVM no longer needs to dynamically size the Heap if it needs more.
    reddvilzz likes this.
  3. PeggleFrank

    PeggleFrank New Member

    So, I started putting the server optimizations into all of my servers, and I'm starting with my resonant rise server. It crashes upon startup.

    I'm using this: -Xms2048m -Xmx2048m -Xmn512m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseG1GC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=400 -XX:+AggressiveOpts -XX:permSize=1024m -XX:+TieredCompilation -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:CompileThreshold=1000 -jar minecraft_server.jar nogui

    It closes itself too fast for me to write it down and get a detailed log, but this is what I saw after starting it 40 times:

    "-Xms2048m -Xmx2048m -Xmn512m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseG1GC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=400 -XX:+AggressiveOpts -XX:permSize=1024m -XX:+TieredCompilation -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:CompileThreshold=1000 -jar minecraft_server.jar nogui is not recognized as an internal or external command, operable program, or batch file"

    I have 8GB of RAM and the mod list is the default mod list for resonant rise.
  4. Eyamaz

    Eyamaz New Member

    Put "java" in front of it :p (without the quotes)
    PeggleFrank likes this.
  5. PeggleFrank

    PeggleFrank New Member

    Thanks, that fixed it.
    Eyamaz likes this.
  6. Ashzification

    Ashzification New Member

    Also, vanilla Minecraft hasn't even been updated to utilize Java 8 yet. It might "work" for some users, but due to the lack of official release, any issues that are occurring could likely be happening due to Java.
  7. Lawbroken

    Lawbroken New Member

    FTB doesn't either. Maybe another one to add to your list about we don't support it. downgrade if problems etc.
  8. Albeleo

    Albeleo New Member

    I have a build of Java 8 on my Linux machine, and I cannot load FTB at all if I use it. It fails to even start the JVM.

    Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
  9. reddvilzz

    reddvilzz New Member

    I got perm gen crashed error in ftb launcher. Before i put the permsize arguments and now o remove it i got that problem.

    Does it really because i don't have the permsize and the max permsize arguments?
  10. Eyamaz

    Eyamaz New Member

    Unfortunately, the ftb launcher already passes a permsize of 128m. If you are running out of permgen with the ftb launcher, try using multimc.
    reddvilzz likes this.
  11. Ashzification

    Ashzification New Member

    It's already covered ;)
    Maybe that's because it's not a supported environment presently.
  12. MegaRaja54321

    MegaRaja54321 New Member

    I am sorry for the noob question but do I just copy and paste that whole thing (for ftblauncher) in the JVM arguments or do I have to make some changes
  13. Albeleo

    Albeleo New Member

    I am aware of that. I posted because someone suggested using 8, and so I figured people would like to have some idea of whether or not it runs.

    Which, it doesn't.

    Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
  14. Eyamaz

    Eyamaz New Member

    Copy paste the entire set of commands from the FTBLauncher spoiler.
  15. UniZero

    UniZero Popular Member

    Awesome work on this Eyamaz.
    Eyamaz likes this.
  16. Ashzification

    Ashzification New Member

    On the help desk I have had a total of ~40 users report using Java 8. Roughly half have had a working environment. The other half have not.
    It does work, sometimes, with some mods. Just not all yet.
  17. MegaRaja54321

    MegaRaja54321 New Member

    Omg thak you so much fps increased by about 12 frames amazing
    Eyamaz likes this.
  18. Eyamaz

    Eyamaz New Member

    ha, i figured out -Djline.terminal=jline.UnsupportedTerminal is needed to run some minecraft server jars on Multicraft!
    Ashzification likes this.
  19. Kajin Style

    Kajin Style New Member

    Spectacular work Eyamaz! Really truly, amazing. I had some bad stuttering issues with my machine and I was running both the ftb server and client on my machine. Yet these optimization tweaks really did the trick. Now here's my machine for those who don't know:

    -16 gig of RAM
    -Quad core processor
    -GTX 670
    -FiOS internet

    These optimizations worked so well that not only did my minecraft server and client load faster but the ping to my own server had been lowered. Maybe that last one was a fluke, but wow. The dramatic improvement is utterly amazing. Far better than what I had before. If this ain't a stick it needs to be one.
  20. Staxed

    Staxed New Member

    so should the xms/xmx sizes stay at the amounts even on servers with more RAM? (say for example a server with 8gb ram, setting xms/xmx to 5g instead of 2, would it make a difference)

Share This Page