The incomprehensible and eternal problem of RAM

Discussion in 'Bukkit Help' started by martini002, Jan 18, 2014.

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

    martini002

    Hello,

    My english isnt enought for explain this,
    but ill try...

    I have a dedidaced server on OVH with Centos OS
    8 GB Ram
    I3 Processor
    100MB of internet conection

    I have the following plugins

    Show Spoiler

    Plugins (56):

    TuxTwoLib, *
    GroupManager, *
    Buycraft, *
    mcore, *
    Vault, *
    Multiverse-Core, ***
    uSkyBlock, -
    TreeAssist, *
    dynmap, *
    Announcer, *
    SurvivalGames, -
    DailyLog,
    ProtocolLib, *
    Votifier,
    MobArena,
    GAListener,
    MoreHearts,
    WorldChat,
    EXPBottles,
    MultiInv,
    NoCheatPlus,
    WorldEdit, *
    MagicSigns,
    MaxBans,
    No PvP Log,
    War,
    HealthBar,
    PlayerHeads,
    WorldGuard,
    Lottery,
    ClearLag,
    AutoSaveWorld,
    RandomTP,
    Essentials, *
    Orebfuscator,
    WorldBorder, *
    Multiverse-Portals,
    HeavySpleef,
    Chairs,
    Horses,
    EssentialsChat,
    WGCustomFlags,
    Residence,
    UltimateArena,
    EssentialsProtect,
    EssentialsSpawn,
    VanishNoPacket,
    EssentialsAntiBuild,
    AutoRank,
    resfly,
    ResidenceSigns,
    WGRegionEffects,
    ResProtect,
    ChestShop,
    Factions,
    FactionChat


    And...
    I have the following configuration in the start up script

    Code:
    java -Xmx7G -jar craftbukkit-1.6.4-R2.0.jar -o true
    As you see at the last line its running with 7 GB of RAM

    I tried changing that by this:

    Code:
    java -Xms7G -Xmx7G -jar craftbukkit-1.6.4-R2.0.jar -o true
    And what i had its a server crashing after some time...
    need to kill the screen and restart a new one with the MC Server.
    So that didnt work properly, then i get back my first memory assignment.

    But im having a serious trouble with lag maybe due by my inexperience.

    I tried everything, i decided to start this post because i dont know what to do with this:

    When i use the /lag cmd ingame it shows me this:

    [​IMG]

    Daaa fuck?

    TPS: 20. Nice, but take care i just restarted the whole server.
    Max RAM 6300.
    are you kidding me?

    Localized memory 1739? WAT?

    Free Memory 32 What the hell?

    I just restarted the dedicated server and start the MC Server and thats all what you can give me?
    32MB of free memory?

    Ok, keep calm and check the TOP cmd in centos...

    Thats what it show me...

    [​IMG]

    Total RAM 8GB Correct :)
    Used RAM 3GB mmmmmm ok...
    Free RAM 5GB ok well...
    whats that cached memory? 361MB?
    Before i restarted the server the last one has 3GB...

    My server its having a problem,
    when i use the LAG cmd (Essentials i guess)
    and when its comes very tiny like these 32MB
    then it start to lagging everyone...

    I have 16 maps and more than 3500 chunks loaded
    maybe is this the cause of this lag?
    I must be sincere, not everytime, but several times in one day

    I need your help for guide me how to take control of this massive lag...

    Any idea coming up?

    Any plugin to take care about chunk loading?
    Im programmer but im starting to learn JAVA
    so please dont be very rude with me in this language.

    Any configuration with Bukkit?

    Bukkit Config
    http://pastebin.com/XU6Kwhi3

    Server properties
    http://pastebin.com/APKFVpwi

    Hope you guys can enlighten me :)

    Thanks in advance.
     
  2. Offline

    Twitmuck2000

    Well, 7G ram does actually not mean 7G.
    You need to assign 7168 MB
     
  3. Offline

    Bobcat00

    Two things:

    1. I think you're not leaving enough memory for the operating system. I would suggest startiung with 6G and see what happens:
    -Xms6G -Xmx6G

    2. You can reduce memory by telling Multiverse not to keep the spawn areas loaded. For each world:
    /mv modify set keepspawninmemory false arena01
    /mv modify set keepspawninmemory false arena02
    etc...

    See if that helps.
     
  4. Offline

    martini002

    If im not wrong i tried that and have the same results.

    Now, i just trying that config not to keep the spawn areas loaded for each world
    and it inproved a lot the performance, so thanks very much

    [​IMG]

    My question its now: whats the impact on keep it off?
    because i tped myself to another player in arena01 and the map
    seems not loading correclty, after several seconds it loaded
    but there was some chunks without load

    bump
     
  5. Offline

    Bobcat00

    If someone teleports to spawn, there will be a (hopefully short) delay until the chunks are loaded. But it's really no different than if they had tp'ed to a random location away from spawn; they'd have to wait for the chunks to load in that case.

    The other side effect is that any redstone devices near spawn won't be running, and repeater clocks may not start. Again, it's the same way as locations away from spawn that would not normally be loaded.
     
  6. Offline

    martini002

    Allright,

    I restarted the server and i did notice,
    the chunks in each map keep in memory again,
    so i di again:

    /mv modify set keepspawninmemory false arena01
    /mv modify set keepspawninmemory false arena02
    etc...

    is there any way to keep this config?

    thanks bob :)
     
  7. Offline

    Bobcat00

    It should be permanent. Maybe your server isn't allowed to write the config files? Look in the multiverse world .yml files and see what the settings say.
     
  8. Offline

    martini002

    Its writing that file, but when the server restar it seems like its reloaded.

    Here its a extract for arena01 by example:

    After /mv modify set keepspawninmemory false arena01

    I can add the LAG dissapear a bit, thats very good. :)

    Code:
    arena01:
        ==: MVWorld
        hidden: 'false'
        alias: arena01
        color: WHITE
        style: NORMAL
        pvp: 'true'
        scale: '1.0'
        respawnWorld: ''
        allowWeather: 'false'
        difficulty: NORMAL
        spawning:
          ==: MVSpawnSettings
          animals:
            ==: MVSpawnSubSettings
            spawn: 'true'
            spawnrate: '-1'
            exceptions: []
          monsters:
            ==: MVSpawnSubSettings
            spawn: 'true'
            spawnrate: '-1'
            exceptions: []
        entryfee:
          ==: MVEntryFee
          amount: '0.0'
          currency: '-1'
        hunger: 'true'
        autoHeal: 'true'
        adjustSpawn: 'true'
        portalForm: ALL
        gameMode: SURVIVAL
        [B]keepSpawnInMemory: 'false'[/B]
        spawnLocation:
          ==: MVSpawnLocation
          yaw: 0.0
          pitch: 0.0
          z: 23.0
          y: 63.0
          x: 18.0
        autoLoad: 'true'
        bedRespawn: 'true'
        worldBlacklist: []
        environment: NORMAL
        seed: '1848815210'
        generator: 'null'
        playerLimit: '-1'
     
Thread Status:
Not open for further replies.

Share This Page