How can I optimize Java on my server?

Discussion in 'Bukkit Help' started by odielag, Feb 10, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Nightfear

    ohh yeap. very funny . it was about core. x6 - cores
     
  2. Offline

    boduzapho

    Hello,

    I am running a dedicated Windows 2008r2 Server
    Dual Xeon E5620 @ 2.4
    24 GB Ram
    120 GB SSD

    Below is my Start.bat Does anyone see an Issue here I may be missing or one that could be harmful?

    Thanks in advance, I'm terrible with this sort of thing.

    Echo OFF
    TITLE MINECRAFT-CRAFTBUKKIT
    START "MINECRAFT-CRAFTBUKKIT" /ABOVENORMAL /B java.exe -server -d64 -Xincgc -Xmx20G -Xms4G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:parallelGCThreads=12 -XX:+AggressiveOpts -Djline.terminal=jline.UnsupportedTerminal -jar craftbukkit.jar
     
  3. Offline

    JohnEBH

    Recommendations for Java 7 flags?
     
  4. Offline

    DurtyFree

    Any start command recomendations for my server?
    Server specs:
    -Linux Debian 5 (64bit)
    -i7-980x Cores (6 cores, 12 threads, 3.6 GHz)
    -24GB ram
    -SSD hard drive
    -Java 7

    The server runs actually with this command: java -Xms8192M -Xmx8192M -jar Tekkit.jar

    But the server even crash's sometimes with 30players, with the following error:



    Would be nice to have a recommended start command for our server because I can't figure that out by myself :s
     
  5. Offline

    Jigsaw

    Phaedrus
    I have read this post thoroughly and have came up with a startup command that I think should work the best for me. Based on your recommendations on page 2 of this post I have picked out what I think will work for my server. I am using Ubuntu Server 10.04 so I chose to omit the UseLargePages flag for now. Please let me know if this startup command seems okay. By the way the only thing running on this dedicated server is minecraft.
    System Specs:
    Code:
    Intel Xeon e3 1270 @ 3.4ghz
    16GB Ram
    Java 1.7
    Ubuntu Server 10.04
    
    Code:
    -Xmx14G -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseNUMA -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=50
     
  6. Offline

    marubal21

    Could you please send or re-post the command line arguments you had provided. I'm currently using JRE7 64bit...
     
  7. Offline

    bbtrash

    Hi, i got one simple question about java params.
    My system : 32G ram (5G used for ramdisk , 2G for system , etc.) SO : minecraft can use about 25G. ( debian, 64b , i7 8 logical cores)
    Max players is about 100 , we need expand to 150 players online.
    Our java params is :
    Code:
    screen -DmS minecraft java -server -Xmn2G -Xms4G -Xmx12G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=8 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -jar craftbukkit-1.2.5-R3.0.jar
    Could everyone please send opinion on this settings ? Or some tips ?

    Thanks a lot and regards :)
     
  8. Offline

    HaoSs

    i'm going nuts ! i see a lot of startup scripts or what they are called, and i don't know what to use. all of them seem to work a little different, but i'm not running no nasa server to alocate 10-30 gb of ram to minecraft. i have a small 25 slot server with 2GB of ram. and the problem is this : all the ram gets slowly allocated till i end up with 2 gb max. 2gb allocated, and around 1.2gb free. what GC to use for a small server ? and what option to use so that the ram allocated gets freed up ?

    p.s. i'm using a hosted server on linux. with jdk 1.7.0.5. and i have access at the startup script
     
  9. Offline

    HaoSs

    bump. no one ?
     
  10. Offline

    Phille58

    Okey, so we have a server and looking for 64 player slots. It's running fine at 15-10 TPS, but i could be better, but how?

    The specs are:
    Intel Core i5 750
    16GB RAM
    2TB HDD
    100 Mbit/s up and down
     
  11. Offline

    Pr07o7yp3

    Specs:
    AMD Phenom X4 3.3 Ghz
    8 GB RAM
    60GB SSD

    Now I'm using
     
  12. Offline

    MrMime22

    Hello. Im looking for the best start up script to save CPU and RAM. But mainly RAM.

    Specs:
    16 gigs DDR3 Ram
    Xeon E3 Cpu

    Linex OS
    Java 7
     
  13. Offline

    Atomicbomb

    I would like to get same script as MrMime22. Alltough i have Intel i3 3,4+ GHz and 16gb ram Ubuntu 12.04 LTS Server and Java 7. I hope i get answer soon since my mobs/server is laging like hell :(
     
  14. Offline

    ifly6

    This is a post that EvilSeph posted a while ago from a thread like this.
    http://forums.bukkit.org/threads/op...edback-thx-i-am-back.25994/page-3#post-493421

    tl;dr = Just allow Java to use the defaults with only minor flag changes, like "-server" or "-XX:+AggressiveOpts"
    I personally use:
    Code:
    cd '/home/server/Bukkit Server'
    screen -S minecraft java -d64 -server -Xms128M -Xmx1536M -XX:+AggressiveOpts -jar craftbukkit.jar nogui
     
  15. Offline

    cibus007

    Hi guys! I have question.

    I have a Intel xeon@e5-2640 (6cores and 12HT) 2.5ghz + 32gb ram ddr3 server.
    internet connection : 100/100

    How can i use a more core with java? or i'cant? Always 30 players after the TPS going dow and down.. About 15 or less. Min: 9.5

    What can i do? Should be change to highest freq cpu power? Any tips?

    Please reply guys. I waiting for your anwsers.

    Regards, Robert (Sorry my english)..

     
  16. Offline

    VADemon

    cibus007 By default Java uses as many cores as it can get.
     
  17. Offline

    BaranCODE

    Hi.
    I have a problem with my server: My server slowly uses more and more ram, even though I set a maximum in the script, until it crashes. This always happens, but if there are around 10 players online, it happens quicker, crashing in around 20 minutes. The current script is this:
    Code:
    java -Xms2800M -Xmx2800M -jar craftbukkit.jar nogui
    I read some posts here. Would this startup script be good for me, how can I improve it?
    Code:
    java -server -Xincgc -Xmx2700M -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseNUMA -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=50 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedOops -XX:+OptimizeStringConcat -XX:+AggressiveOpts -jar craftbukkit.jar nogui
    Update: I used the script, the server definitely uses less memory. It is impressive. But I didn't test it with more players on yet, so I don't know if the memory leak is happening. And also, any suggestions on how I can improve it would be welcome.
     
  18. Offline

    fread2281

    It will help it, but the leak will probably still happen. The leak is likely in a Plugin or Mod.
     
  19. Offline

    BaranCODE

    How can I find which plugin it is, and fix it? Or do I have to wait until the developer of that leaking plugin realizes it and fixes it?
     
  20. Offline

    BaranCODE

    It looks like the server hasn't crashed once since the script! Awesome
     
  21. Offline

    MysteryX

    Can someone help me optimize my server?

    Intel Core I7 2600K @ 4.5Ghz
    16 GB DDR3 RAM
    240GB SAMSUNG SSD
    1000/1000 Mbit internet (Gigabit)

    And where do i put that line?
    Im using Mcmyadmin :)
    Thanx alot!

    EDIT: I can pu about 14GB of RAM to the server :)
    And running on Windows 8.1
     
Thread Status:
Not open for further replies.

Share This Page