Java Memory Problem

Discussion in 'Bukkit Help' started by blazedd, May 11, 2012.

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

    blazedd

    Perhaps it's my inexperience with java, but when I type /memory I get the following:

    Maximum memory: 6,107 MB
    Allocated memory: 1,037 MB
    Free memory: 352 MB
    screenshot: http://puu.sh/uais

    I'm running this on a CentOS box with 12GB of ram on it and I'd like to give MC at least 6GB of that to play with. What am I missing?

    ps: my startup command:

    Code:
    java -Xmx6G -XX:ParallelGCThreads=8 -server -Xincgc -XX:+UseConcMarkSweepGC -XX:+UsePaNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:PermSize=6G -XX:LargePageSizeInBytes=4m -jar craftbukkit.jar nogui
    
     
  2. Offline

    Paul_VB

    the server has 6GB of ram already.
     
  3. Offline

    Wendo

    This

    Code:
    -Xmx6G
    is telling Java to only use 6GB, which is exactly what you're reporting, so it's working exactly as one would expect
     
  4. Offline

    blazedd

    Code:
    Free memory: 352 MB
    We've actually hit our memory limit and it crashed the server. This tells me that the Free memory is a problem which I can only assume means that java can't get more than 1GB of ram.
     
  5. Offline

    blazedd

  6. Offline

    Retricide

    Post your updated startup script and an output of the "free" command.
     
  7. Offline

    TheBeast808

    You misunderstand it.
    "Maximum memory: 6,107 MB"
    Means that the server can only have 6GB RAM max.

    "Allocated memory: 1,037 MB"
    Means that of the 6GB max that the server can have, it is currently only allocating, or 'asking', to use about 1GB

    "Free memory: 352 MB"
    Of the 1GB that it allocated, 352MB of it is not being used. Therefore, your server is really only using about 700MB/6107MB of RAM.
     
Thread Status:
Not open for further replies.

Share This Page