Server using way to much RAM

Discussion in 'Bukkit Help' started by Mike1022, Sep 16, 2013.

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

    Mike1022

    So here are the stats with 0 players on:

    Maximum memory: 19,000 MB
    Allocated memory: 19,000 MB
    Free memory: 7,000 MB

    (These are rough values, they are not exact, but you get the idea.)

    So I wait about 1 hour and try again.

    This time the free memory is 10 GB (10,000 MB)

    I wait more time. Then it's 12 GB. Then it starts to hover between 7 and 12 GB.

    If you don't see the problem here I will explain. Problem: My server is using between 7 and 12 GB of RAM with 0 players on.

    Help is wanted.

    Mike
     
  2. Offline

    MrTomTomHD

    If you want less ram used, why not just allocate less?
     
  3. Offline

    Mike1022

    Ok, but I want to know why my server is using that much RAM to begin with. I will try that though.

    I have finished that and now I have another problem. It appears that my max. amount of RAM has decreased from 19 GB to 17 GB even though my startup script says that there is 19 GB dedicated. I'm thinking it might be a glitch with the /lag command though.

    <Merged double post - Use edit button to edit your post - Necrodoom>
     
  4. Offline

    Necrodoom

    Can you paste your startup script?

    Also, if you think the lag command shows wrong used RAM value, check your task manager or equivalent of it to see if shows a similar value.
     
  5. Offline

    PolarCraft

    As necrodoom said we need the startup log. (Console) To see if you get any errors.
     
  6. Offline

    Mike1022

    Here is my startup script:

    Code:
    #!/bin/bash
    cd "$( dirname "$0" )"
    java -Xms1G -Xmx19G -jar craftbukkit.jar -o true
    
    Here is my startup log: Log

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  7. Offline

    Mike1022

    bump -_-
     
  8. Offline

    Bobcat00

    Your startup script says that 19 GB is the maximum amount (-Xmx19G). So it's perfectly normal to be using less than that.
     
  9. Offline

    Mike1022

    That's not my question. I am trying to say that I set my maximum amount of RAM to 19 GB, but when I do the /lag command it says I have 17 GB as my maximum amount of RAM instead of 19 GB. Please take note that I am not talking about the allocated RAM.
     
  10. Offline

    5thblock

    Can you paste the output of /pl or /plugins so we can see if there are any outdated/memory hogs?
     
  11. Offline

    Mike1022

    There is not need to do that, as I have just updated all my plugins a few days ago. If you really need to know, check the startup log (above). Anyway, I am trying to find out way the maximum amount of RAM is lower than it is set to be. This should not be affected amount of plugins or whether they are not they are memory hogs, remember, then is the max. amount of memory, not the free memory.
     
  12. Offline

    PolarCraft

    Okay mike when you do not paste what we ask It gives us a concern. Now can we please see that plugins list? If not than we will not be able to help anyfurther.
     
  13. Offline

    Mike1022

    Plugins:

    WorldEdit, NoCheatPlus, Buycraft, mcore, Vault, PermissionsEx, PlotMe, WorldGuard, Broadcast++, SurvivalGames, CoreProtect, Lockette, ClearLag, ProtocolLib, Modifyworld, Votifier, AutoSaveWorld, GAListener, Essentials, EssentialsProtect, EssentialsSpawn, Multiverse-Core, EssentialsAntiBuild, DisguiseCraft, ChestShop, Multiverse-Downloader, EssentialsChat, Factions, Multiverse-Portals, Multiverse-Inventories
     
  14. So, just wondering, you want to know why /lag only shows a 17GB Maximum instead of 19GB Maximum? Am I reading this correctly?
     
  15. Offline

    Mike1022

    That's right.
     
  16. And your computer has 19GB of ram to allocate?
     
  17. Offline

    Mike1022

    20 actually, it's a dedicated computer.
     
  18. Offline

    lokpique

    See the -Xms1G part? That is it's STARTING allocation, with 19 being the MAX.

    Try using -Xms19G. This will start it with the maximum.
     
  19. Offline

    Mike1022

    That's what I was doing. Doing that fixed the initial problem. (See above)
     
  20. Offline

    Bobcat00

    What's the amount of actual, physical RAM on the server?
     
  21. Offline

    Block34

    If /lag shows 17gb allocated but your computer says 19gb allocated then I would go with what the computer says. I think essentials has a /gc command. It checks memory usage i think.
     
  22. Offline

    Mike1022

    It's 17GB max. :/
     
  23. Offline

    lokpique

    Show us your new startup string, please.

    The one you had previously given had a starting value of 1G and a max value of 19G.
     
  24. Offline

    Mike1022

    That is it.
     
  25. Offline

    lokpique

    Then, like I said... it needs to be changed.

    Try...

    Code:
    java -Xms19G -Xmx19g -jar craftbukkit.jar -o true
    note that -Xms1G is changed to -Xms19G...
     
  26. Offline

    Mike1022

    That's what is was before all this.
     
  27. Offline

    lokpique

    I see nowhere that you mention having a different startup script. All I see is you saying it's not using the 19g in total, and asking why only 17g are reported in use. That startup script would be why.

    As for "why is minecraft using so much ram with nobody on"... that's the nature of java.
     
  28. Offline

    Mike1022

    Well, whatever. I'm switching to a online host today. So all of this will be irrelevant.

    Edit: i.e. I give up
     
  29. Offline

    lokpique

    You should try the startup string I gave you... then give up if you must. You will most likely encounter these issues with someone else hosting if you can't solve them on your own server.
     
  30. Offline

    Mike1022

    Where I'm hosting I don't even have access to the startup script. Because I could edit the amount of RAM I have.
     
Thread Status:
Not open for further replies.

Share This Page