Bukkit eats my whole memory ? with 11 players on board.

Discussion in 'Bukkit Help' started by jareq, Oct 25, 2011.

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

    jareq

    Code:
           total       used       free     shared    buffers     cached
    Mem: 15983      15898         85          0        116       2608
    -/+ buffers/cache:      13173       2809
    Swap:                            1027         37        990
    
    my plugins:
    Code:
     [INFO] Plugins: Tuto,
     Orebfuscator,
     iConomy,
     Stargate,
     ConsoleScheduler,
     WorldEdit,
     nChat,
     WorldGuard,
     Essentials,
    AuthMe,
    KRegions,
     EssentialsSpawn,
     NoCheat,
     DimensionDoor,
     MineBackup,
     Playtime,
    MoneyDrop,
    OKReload,
     PermissionsEx,
     Lockette,
     SpoutEssentials,
     Spout,
    CommandHelper,
     OrebfuscatorSpoutBridge,
    mcMMO,
    ChopTree,
     Permissions,
     dynmap,
     ChestShop,
    Register,
    SimpleRegionMarket
    
    My bukkit version: 1337
    My dedicated server specs:
    Code:
    Procesor: Intel Core i5-2400 4 x 3.1+ GHz
    RAM: 16 GB DDR3
    DYSK: Intel SSD 320
    
    My starting command:
    Code:
     java -server -Xmx8192M -Xms8192M -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=4 -jar server.jar nogui
    I've tried also with: java -Xmx8192M -Xincgc -jar server.jar"

    When i restart the server it eats memory second by second.
     
  2. Offline

    Zaros

    I'm pretty sure it's the plugins. Does the memory ever cap, or does it stop rising at a point?
     
  3. Offline

    jareq

    Im just checking right now w8.
    after starting:
    Code:
    
                 total       used       free     shared    buffers     cached
    Mem:         15983       7321       8662          0         17       1691
    -/+ buffers/cache:       5613      10370
    Swap:         1027         35        991
     
    5 minutes later...
    Code:
     [code]
    
                 total       used       free     shared    buffers     cached
    Mem:         15983      14560       1423          0         19       1693
    -/+ buffers/cache:      12847       3136
    Swap:         1027         35        991
    
    There is around 5-15 ppls on server.
    i'll try to remove ChopTree since its outdated.
    [edit]
    Still the same...
    do you have any idea wich plugin may cause this ?
     
  4. Offline

    Acrobot

    Your start-up line is wrong.
    First, you need Xmx14G instead of that (for 14 GB of ram - why wouldn't you use them?)
    Second - from Sun's site:
    Code:
    -Xincgc
     Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will eliminate occasional garbage-collection pauses during program execution. However, it can lead to a roughly 10% decrease in overall GC performance.
    
    Try without it.
     
  5. Offline

    jareq

    as i said, with this:
    Code:
    [SIZE=13px][FONT=Consolas] java -server -Xmx8192M -Xms8192M -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=4 -jar server.jar nogui
    i have same error, and there is not -Xincgc
     
  6. Offline

    TnT

    @jareq
    You understand, of course, that you are allocating 8GB RAM to your initial Java heap size, and 8GB RAM to your maximum Java heap size. It will use all 8GB because you've told it to.

    The -Xincgc command is a different Garbage collector. You usually would not want to use it in conjunction with your other java flags for garbage collection.

    Try this command:
    Code:
    java -Xms1G -Xmx8G -XX:+UseFastAccessorMethods -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=4 -jar server.jar
    Note: I only changed your min Java heap to 1G. This starts the server with 1 GB RAM and will allocate up to 8GB RAM. I did not modify, nor take any responsibility for the GC flags you use.

    Try this to start and report back.
     
    jareq likes this.
  7. Offline

    jareq

    Okay i found out what causes this.
    I had minecraft restarter wich had infinite loop.
    After disabling it everything is fine.
    By the way, are thoose flags dangerous ? (i mean GC flags i use)
    cause they were set by friend of mine.
     
  8. Offline

    TnT

    Nope, not dangerous. GC flags are very server specific, so if you've found ones you like using, great.
     
    jareq likes this.
  9. Offline

    jareq

    Do you have any idea what may cause this:
    Code:
    
    20:20:14 [INFO] Megol66 lost connection: disconnect.quitting
    20:20:14 [SEVERE]       at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
    20:20:14 [SEVERE]       at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    20:20:14 [SEVERE]       at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    20:20:14 [SEVERE]       at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    20:20:14 [SEVERE]       at java.io.DataOutputStream.flush(DataOutputStream.java:106)
    20:20:14 [SEVERE]       at net.minecraft.server.NetworkWriterThread.run(SourceFile:104)
    
    when player disconnects.
     
  10. Offline

    TnT

    He's hitting the red 'X' in the top right of his window instead of the disconnect button. Safe to ignore.
     
    jareq likes this.
  11. Offline

    jareq

    One more question, do you have any idea why when i modify around 10 000 blocks my server crashes ? and i if //set or //copy around 5k blocks server LAG REALLY HARD. I remember i had a machine with 3gb ram and 1.2ghz processor and i could easly modify larger areas with world edit without crash /big lag
     
  12. Offline

    TnT

    Honestly, my first guess would be disk I/O, but I see you have an SSD. Ensure you have the latest version of the WorldEdit plugin for your server build.
     
  13. Offline

    haws1290

    Same with me if i have like my server running like 70% of my CPU is being used
     
  14. Offline

    jareq

    Yea, that was my first guess too..
    I'll try to make srv without any plugins and try to copy smthing. Thank you very much.
     
  15. Offline

    Greylocke

    My guess would be that you're running the Orebfuscator plugin. I've seen similar symptoms fixed by disabling it with /ofc disable before doing your world modifications. If not Orebfuscator, then something similar that is listening to the world map data stream.
     
  16. Offline

    jareq

    Yes! You were righ! Thank you very much!
     
Thread Status:
Not open for further replies.

Share This Page