1 GB ram usage with only one person on server.

Discussion in 'Bukkit Help' started by dobrakmto, Jul 19, 2012.

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

    dobrakmto

    Hello, I am having problems with my bukkit server.
    I have dedicated 1,5 GB ram to my minecraft server. I have about 30 plugins on my server and 2 worlds. But the ram usage of the server is enormn. I've done test. I and my fried was been on that server and the used memory was fine (about 500 MB). But when he left the server, the ram usage wents to 1 GB of used ram! When the server reaches the last 400 MB free, then it freed to 700 MB.

    Is that bug or it is bad java configuration?
    What should I do?

    Plugins (39): LagMeter, FoundBoxx, Minequery, NoCheatPlus, WorldEdit, InventorySQL, VoxelSniper, Websend, ColoredSigns, Vault, Multiverse-Core, PermissionsEx, AntiCreeper3, NarrowtuxLib, MCDocs, mChatSuite, AutoMessage, Spectate, VoxelUpdate, iConomy, DisguiseCraft, Showcase, xAuth, HawkEye, OpenInv, RedstoneClockDetector, Modifyworld, FalseBookCore, Essentials, Residence, Citizens, Jobs, EssentialsProtect, FalseBookBlock, EssentialsSpawn, VanishNoPacket, CashFlow, LWC, ChestShop
     
  2. Offline

    Tallcraft

    It's because you have got so many plugins. Some plugins are very performance intensive.
     
  3. Offline

    Omnitv

    ^^ Yup.
    Also keep in mind when your server starts up, your server loads chunks and entities. so it uses up more ram.
     
  4. Offline

    dobrakmto

    Yea, but i've run the server with same plugins and 4 worlds on 1 GB of ram and it runs without lags with 17 players on it. I've recenlty changed the server provider. Can it be cause by Java 6?

    Any thoughts?

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

    yttriuszzerbus

    Try replacing your -XmsXXXXM in your start script with -Xincgc to auto-start the garbage collector
     
  6. Offline

    TnT Retired Staff

    dobrakmto
    What is the line you use to start your server?
     
  7. Offline

    dobrakmto

    TnT
    It should be java -Xmx1500M -Xms1500M -Djline.terminal=jline.UnsupportedTerminal -jar craftbukkit.jar nogui
     
  8. Offline

    TnT Retired Staff

    You start your server with ~1.5 GB RAM and set your max amount of RAM to ~1.5GB. This is why you see that kind of RAM usage. Its expected, normal, behavior.
     
  9. Offline

    dobrakmto

    So, GC is not disposing objects if the ram usage is smaller then the maximum when i use -Xms1500M?
     
  10. Offline

    TnT Retired Staff

    No, you're telling the server to run with that much RAM to start with, so Java will take it from the operating system and never return it. Switch the -Xmx1500M to -Xincgc, which will enable the incremental garbage collection, and remove the starting value.
     
  11. Offline

    Toxic__Waste

    30 plugins on 1500 you can change your script all you want i run 27 and boot up near 1000 after that it gets to 1500 in an hour faster with more people garbage collection only works if it has room to free 17 people and 30 plugins will take at least 1500 to run so nothing to free

    get more ram other wise set your member that allowed to join to 15
     
Thread Status:
Not open for further replies.

Share This Page