[TUTORIAL] Reducing lag and (possibly) fixing corrupt worlds

Discussion in 'Bukkit Help' started by ichingpow, Jun 11, 2011.

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

    TheBosser

    Okay it seems that another Java JDK is installed on my machine because after uninstalling sun-java6-jdk, sun-java6-jre, and sun-java6-bin when I type "java -version" I get this :
    Code:
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1)
    OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
    
    So I need to uninstall OpenJDK now...

    [Edit] : When I type "update-alternatives --config java" I get this :
    Code:
    /usr/lib/jvm/java-6-openjdk/jre/bin/java
     
  2. Offline

    matejdro

    Are these garbage collector thingies still needed in Java 7?
     
  3. Offline

    ethanrider


    Try doing

    which java

    (this will show you where first the java on your PATH is coming from)

    You can either remove that java, or put /opt/jdk1.7.0/bin on your path before that part.

    For example, to put Java 7 at the front of your path (not a good default but a good test)
    Try putting it first in your /etc/profile, like:

    export PATH=/opt/jdk1.7.0/bin:$PATH
     
  4. Offline

    ViruSpreadeR

    one error on this paragraph...the cause that u cant have over 1gb of ram is not the 64bit or 32bit...64 bit java cant run minecraft...yet...(thats what i think)
    so lets just stick to 32 bit...the answer is the java versions...java 1.6.*(or java6) cant assign more than 1gb of ram to servers...but in java 1.7(or java7) can handle more than that...so if u want to allocate 2gb or more of your hard drive space to your server ram...use java1.7 instead of java1.6
    here is the link
    http://jdk7.java.net/download.html
     
  5. Offline

    ethanrider

    Let's break this down bit by bit to digest it.
    Firstly, you can run minecraft with 64 bit java.

    Secondarily, the amount of memory you can address *is* directly related to 32 versus 64 bit.

    Again, this is just not the case. 64 bit versions of Java 6 will be able to address more memory than 32 bit versions of Java 6.


    Finally, this is about RAM, not hard drive space.

    You did get the Java 7 link right though!
     
    Mrlovecraft likes this.
  6. Offline

    ichingpow

    Thank you ethanrider for responding to VirusSpreadeR's misinformation, or disinformation.
     
  7. Offline

    ViruSpreadeR

    ok...lets try it again
    i tried 64 bit java running MINECRAFT.exe...NOT the server.exe...and it says its need to be 32bit...minecraft is not compatible with 64 bit...YET...i think it worked for YOU cause u have both 32 bit and 64 bit...and minecraft automatically chose your 32 bit instead of 64 bit...check your programs and features, i know you have both...but me i uninstalled all my java 64 bit and 32 bit just to confirm this again...and installed ONLY 64 bit...and you know what?java 64 is NOT compatible with MINECRAFT...not the SERVER.exe
    on this part...i think im wrong at this one...i just checked it and as u said...64bit CAN allocate more memory than 32 bit...i stand corrected
    i forgot to add more info on this one...i meant in here is that using virtual ram...or paging file...i can put some of my hard drive space to be my ram and allocate that ram to my minecraft server...again...sorry
     
  8. Offline

    ethanrider

    Two things.

    1) This thread is about server configurations not client ones.

    2) You *can* run minecraft clients with 64 bit java, using the jar file or associating the jar with a 64 bit jre to run etc.

    Again you aren't making much sense here, if you want to reduce lag you want to do the exact opposite of this, you want to get stuff off of disk and into RAM. RAM is generally much, much faster to read.
     
    Mrlovecraft likes this.
  9. Offline

    ichingpow

    I have only Java 1.7 64bit installed and Minecraft.exe (client) launcher works just fine, but as ethanrider said, this is a server tweaking thread, not a client discussion thread.
     
  10. Offline

    ViruSpreadeR

    im outnumbered...XD...this turns out to be my error...glad im corrected
    hey...one question...why my minecraft doesnt work with java7 64?i see that ethan said that i have to tweak the minecraft.jar?how do i do that?i have eclipse if thats important to tweak jar files...i do not know how to do that
    so can you help me tweak it so that i can run minecraft with java7 64 bit?

    i got this first error when i run minecraft.exe...

    "No JVM could be found on your system. Please define EXE4J_JAVA_HOME to point to an installed JDK or JRE or download a JRE from www.java.com"

    then i point the EXE4J_JAVA_HOME variable to my java7 folder(64bit)...after that, i got this error when i start minecraft...

    the {0} environment variable does not point to a working 32-bit jdk or jre

    how can you fix this?

    oh and the attached picture is my installed programs with only 64bit java7 and no other versions of java
     

    Attached Files:

  11. Offline

    Liger_XT5

    I'm using rtoolkit wrapper and I tried the command I got an error that did not save to the server log.
    Here's my config from rtoolkit.
    Code:
    #Minecraft Remote Toolkit Properties File
    #Sat Jun 18 01:07:31 PDT 2011
    forced-restart-delay=5m
    maximum-heap-size=728M
    toolkit-autoshutdown-alerts=10m,5m,4m,3m,2m,1m
    restart-on-severe-exception=false
    server-saveall-period=0
    extra-runtime-arguments=-Djline.terminal=jline.UnsupportedTerminal
    #extra-runtime-arguments=-XX:ParallelGCThreads=8 -server -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:PermSize=128m -XX:LargePageSizeInBytes=4m
    force-save-on-restart=true
    server-heartbeat-threshold=1m
    server-restart-alerts=10m,5m,4m,3m,2m,1m
    minecraft-server-jar=craftbukkit.jar
    initial-heap-size=728M
    overridden-process-arguments=
    failed-heartbeat-restart-count=3
    severe-exception-detection-level=1
    server-arguments=nogui
    toolkit-autoshutdown-delay=0
    import-properties=false
    server-restart-delay=6h
    
    
    with java -version:

    java version "1.6.0_20"
    OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-x86_64)
    OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)



    I'm trying out your guide in hope to fix the random server crashes, most saying GCverheadLimit etc...
     
  12. Offline

    drdanick

    extra-runtime-arguments takes a comma separated list of variables.

    Use this:
    Code:
    extra-runtime-arguments=-Djline.terminal=jline.UnsupportedTerminal,-XX:ParallelGCThreads=8,-server,-Xincgc,-XX:+UseConcMarkSweepGC,-XX:+UseParNewGC,-XX:+CMSIncrementalPacing,-XX:+AggressiveOpts,-XX:+CMSParallelRemarkEnabled,-XX:+DisableExplicitGC,-XX:MaxGCPauseMillis=500,-XX:SurvivorRatio=16,-XX:TargetSurvivorRatio=90,-XX:+UseAdaptiveGCBoundary,-XX:-UseGCOverheadLimit,-Xnoclassgc,-XX:UseSSE=3,-XX:PermSize=128m,-XX:LargePageSizeInBytes=4m
    
     
  13. Offline

    Liger_XT5

    Duh, I knew working on the server late at night was a bad idea... lol
    I'll try the line out.

    It started with that line, will see if the server crashes

    edit:
    It worked for well over an hour, then it crashed and wasn't stable for a while after. I ran the server in complete vanilla, CPU% with just me stayed around 9%.
    Went back to CB and stayed around 10-17% with occasional spikes of 50%

    I've been talking to my host on their forums, they're trying to help as well.
    HGS Forum Post

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  14. Offline

    dfdgsdfg

    I am using this flag with java 1.7 x64:

    Code:
    -Xms3072m -Xmx3072M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:MaxGCPauseMillis=2 -XX:GCPauseIntervalMillis=800 -XX:UseSSE=4
    I heard G1 Garbage Collector (G1GC) is brand new thing, and it is good performance on large memory and mulit-core/thred operated application and server.
    Sometimes it's better then CMS Garbage Collector (known -XX\:+UseConcMarkSweepGC flag)

    But, I am not a good at these things.
    Could you try this flag and share your opinion?
     
  15. Offline

    drdanick

    Have you tried running a vanilla server with the wrapper?
     
  16. Offline

    Zint

    Great info. Thanks for taking the time to post this thread!
     
  17. Offline

    dinusocol

    hello i think my world is corrupt i keep getting this message in the console

    Code:
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (24, 11) stored at  (13, 21)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at org.bukkit.craftbukkit.util.LongHashtable.get(LongHas
    htable.java:32)
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:120)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:31:35 [INFO] Chunk (26, 13) stored at  (22, 13)
    17:31:35 [INFO] net.minecraft.server.Chunk
    17:31:35 [SEVERE] java.lang.Throwable
    17:31:35 [SEVERE]       at net.minecraft.server.ChunkProviderServer.getOrCreateC
    hunk(ChunkProviderServer.java:128)
    17:31:35 [SEVERE]       at net.minecraft.server.World.getChunkAt(World.java:271)
    
    17:31:35 [SEVERE]       at net.minecraft.server.World.j(World.java:1796)
    17:31:35 [SEVERE]       at net.minecraft.server.World.doTick(World.java:1645)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:441)
    17:31:35 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    17:31:35 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    >
     
  18. Offline

    Liger_XT5

    Actually, no, I haven't tried that, but lately, the server hasn't been crashing often enough. As stated in my blog, I still can't see a pattern. My guess is, since my host updated java, I am actually using more memory, which is a problem...
    My last 'recorded' crash I got the following error. I know it NOT performance tweaks because each time the server crashes with this error, it mentions a different plugin.

    Show Spoiler

    2011-06-25 15:44:15 [SEVERE] Could not pass event PLAYER_MOVE to PerformanceTweaks
    java.lang.OutOfMemoryError: Java heap space
    at net.minecraft.server.NBTTagByteArray.a(SourceFile:21)
    at net.minecraft.server.NBTBase.b(SourceFile:64)
    at net.minecraft.server.NBTTagCompound.a(SourceFile:24)
    at net.minecraft.server.NBTBase.b(SourceFile:64)
    at net.minecraft.server.NBTTagCompound.a(SourceFile:24)
    at net.minecraft.server.NBTBase.b(SourceFile:64)
    at net.minecraft.server.CompressedStreamTools.a(SourceFile:46)
    at net.minecraft.server.ChunkRegionLoader.a(SourceFile:29)
    at net.minecraft.server.ChunkProviderServer.loadChunk(ChunkProviderServer.java:140)
    at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:69)
    at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:92)
    at org.jbls.LexManos.ChunkPersistance.onPlayerMove(ChunkPersistance.java:133)
    at org.jbls.LexManos.events.MPlayerListener.onPlayerMove(MPlayerListener.java:23)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:140)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-25 15:44:15 [SEVERE] java.lang.OutOfMemoryError: Java heap space
     
  19. Offline

    ichingpow

    Yes, it is corrupt. Follow the instructions.
     
  20. Offline

    iama

    thanks for this useful topic. i have some problem with performance minecraft-server. my specs:

    CPU: Intel(R) Xeon(R) E5320 1.86GHz (4 cores)
    HDD: sata 2 seagate for minecraft & sata 2 hdd for OS
    Network: 100 mbs
    Mem: 12 GB
    OS: Centos 5.6 x64
    its not a vps/virtual machine!

    Estimated load average

    4.30, 3.84, 3.90


    Java:
    $ /usr/java/jre1.7.0/bin/java -version
    java version "1.7.0"
    Java(TM) SE Runtime Environment (build 1.7.0-b146)
    Java HotSpot(TM) 64-Bit Server VM (build 21.0-b16, mixed mode)


    Minecraft:
    1.6
    bukkit 860
    players online 60
    server started 2 weeks ago

    plugins:
    autosave 1.3.0
    permissions 3.1.5
    lwc 3.11
    dynmap 0.18
    herochat 4.10.3
    borderguard 3.10 (4000 limit of map)
    nocheat 1.05
    commandbook 1.5.2-customized
    HTTPConsole 0.3.0
    MyHome 1.9.5
    WorldEdit 4.6
    WorldGuard 66-ba376a6
    xAuth v2.0 (Beta 2) (using mysql)
    iconomy 5.01 (using mysql)
    Jobs v2.0.2 WIP (using mysql)
    citizens 1.0.8h (using mysql)



    startup command:

    Code:
    /usr/java/jre1.7.0/bin/java \
    -Djava.io.tmpdir=/home/minecraft/ \
    -server \
    -d64 \
    -Xincgc \
    -Xms6g \
    -Xmx6g \
    -XX:-UseGCOverheadLimit \
    -XX:+UseConcMarkSweepGC \
    -XX:+UseParNewGC \
    -XX:+CMSIncrementalPacing \
    -XX:ParallelGCThreads=8 \
    -XX:+AggressiveOpts \
    -jar craftbukkit-0.0.1-SNAPSHOT.jar \
    nogui >/dev/null 2>&1 &
    
    problem:
    server are lagged, at most all of my users have problem with a delay of chunks. they set the chunks and they appear after ~1 seconds or more later. I read the first post of this topic and decided to change the startup script to:

    Code:
    /usr/java/jre1.7.0/bin/java \
    -Djava.io.tmpdir=/home/minecraft/ \
    -server \
    -d64 \
    -Xmn1g \
    -Xincgc \
    -Xms6g \
    -Xmx6g \
    -XX:ParallelGCThreads=4 \
    -XX:+UseConcMarkSweepGC \
    -XX:+UseParNewGC \
    -XX:+CMSIncrementalPacing \
    -XX:+AggressiveOpts \
    -XX:+CMSParallelRemarkEnabled \
    -XX:+DisableExplicitGC \
    -XX:MaxGCPauseMillis=500 \
    -XX:SurvivorRatio=16 \
    -XX:TargetSurvivorRatio=90 \
    -XX:+UseAdaptiveGCBoundary \
    -XX:-UseGCOverheadLimit \
    -Xnoclassgc \
    -XX:PermSize=128m \
    -XX:LargePageSizeInBytes=4m \
    -jar craftbukkit-0.0.1-SNAPSHOT.jar \
     nogui >/dev/null 2>&1 &
    



    the result was even worse, the server was unplayable due to, chanks are not disappearing (laged to 2-3 seconds), from the inventory it was impossible to throw.

    Please, help me select and find the most optimal launch parameters, or just tell me how to increase productivity. you are my last hope:(, thanks
     
  21. Offline

    ichingpow

    Try disabling Dynmap, if it is the issue take a look at BananaMap.

    As for the start up line, try this
    Code:
    java -Xincgc -Xmx6144M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    (And actually just that, nothing else. Just for testing purposes.)
     
  22. Offline

    iama

    thanks for your attention. i disable dynmap and start server with:

    Code:
    /usr/java/jre1.7.0/bin/java -Xincgc -Xmx6144M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui >/dev/null 2>&1 &
    server status has improved, but still disappearing chunks of delays, although with a little :(
     
  23. Offline

    bigbass1997

    i have a duel core with hyper threading. do i set it to 4 or 8 threads?
     
  24. I only have 64x and i play minecraft all the time *facepalm*
     
  25. Offline

    ichingpow

    4

    Would you mind typing /debug clock and /debug info in-game and tell me what it says. (This is a feature of CommandBook)
     
  26. Offline

    iama

    debug clock (run command before reboot and +20 players online)

    Code:
    2011-06-28 10:24:32 [INFO] Clock test result: CLOCK BEHIND
    2011-06-28 10:24:32 [INFO] WARNING: You have potential block respawn issues.
    2011-06-28 10:24:32 [INFO] Expected time elapsed: 5000.0ms
    2011-06-28 10:24:32 [INFO] Time elapsed: 6046ms
    2011-06-28 10:24:32 [INFO] Error: -17.30069467416474%
    2011-06-28 10:24:32 [INFO] Actual clock rate: 16.539861065167052 ticks/sec
    2011-06-28 10:24:32 [INFO] Expected clock rate: 20 ticks/sec
    
    debug info
    Code:
    System: Linux 2.6.18-238.12.1.el5 (amd64)
    Java: Oracle Corporation 1.7.0 (http://java.oracle.com/)
    JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 21.0-b16
    Available processors: 4
    Available total memory: 6110.0 MB
    JVM allocated memory: 992.0 MB
    Free allocated memory: 510.0 MB
    
     
  27. Offline

    ichingpow

    I really don't know what's wrong. Can you run "top" in the linux console and tell me programs there are?

    Also please send me your server directory via PM, upload it to mediafire or something.
     
  28. Offline

    iama

    ok, i sent all that you asked
     
  29. Offline

    Bronski

    That was pretty informative. Thanks :D
     
  30. Offline

    amunro

    Ok anyone having problems upgrading to java 1.7, but still get the java 1.6 with java -version, do this:

    remove java 1.6 (either 'yum remove java' or 'apt-get remove java')
    'which java' //should output /usr/bin/java : no directory or something
    'cd /usr/bin'
    'ln -s /<path-to-java-1.7-directory>/bin/java java'

    so mine would be 'ln -s /opt/jdk1.7.0/bin/java java'

    If you get a message to replace it, say yes.
    Now type

    'java -version' and should be working now!
     
Thread Status:
Not open for further replies.

Share This Page