How to make my server using less RAM

Discussion in 'Spigot Help' started by ezra24rct3, May 25, 2015.

  1. So, I have a 1gb VPS with Spigot 1.8.4 running on it but the MC server crashes without any errors when it reaches the 1000mb RAM usage. I don't have any errors. It usually happens when there are around 2 people in the server. The server uses around 750MB when no one is playing on it.

    Plugins I use:
    MCMMO
    WorldEdit
    AuthMe
    Essentials 1.8
    Lockette

    I've also editted the spigot.yml and the bukkit.yml files. This is how they are now:

    Spigot.yml:
    # This is the main configuration file for Spigot.
    # As you can see, there's tons to configure. Some options may impact gameplay, so use
    # with caution, and make sure you know what each option does before configuring.
    # For a reference for any variable inside this file, check out the Spigot wiki at
    # http://www.spigotmc.org/wiki/spigot-configuration/
    #
    # If you need help with the configuration or have any questions related to Spigot,
    # join us at the IRC or drop by our forums and leave a post.
    #
    # IRC: #spigot @ irc.spi.gt ( http://www.spigotmc.org/pages/irc/ )
    # Forums: http://www.spigotmc.org/

    config-version: 8
    settings:
    debug: false
    save-user-cache-on-stop-only: false
    bungeecord: false
    late-bind: false
    sample-count: 12
    player-shuffle: 0
    filter-creative-items: true
    user-cache-size: 1000
    int-cache-limit: 1024
    moved-wrongly-threshold: 0.0625
    moved-too-quickly-threshold: 100.0
    timeout-time: 60
    restart-on-crash: true
    restart-script: ./start.sh
    netty-threads: 4
    attribute:
    maxHealth:
    max: 2048.0
    movementSpeed:
    max: 2048.0
    attackDamage:
    max: 2048.0
    messages:
    whitelist: You are not whitelisted on this server!
    unknown-command: Unknown command. Type "/help" for help.
    server-full: The server is full!
    outdated-client: Outdated client! Please use {0}
    outdated-server: Outdated server! I'm still on {0}
    restart: Server is restarting
    commands:
    tab-complete: 0
    log: true
    spam-exclusions:
    - /skill
    silent-commandblock-console: false
    replace-commands:
    - setblock
    - summon
    - testforblock
    - tellraw
    stats:
    disable-saving: false
    forced-stats: {}
    world-settings:
    default:
    verbose: true
    entity-tracking-range:
    players: 25
    animals: 20
    monsters: 20
    misc: 20
    other: 64
    ticks-per:
    hopper-transfer: 24
    hopper-check: 24
    hopper-amount: 3
    random-light-updates: false
    save-structure-info: true
    anti-xray:
    enabled: false
    engine-mode: 1
    hide-blocks:
    - 14
    - 15
    - 16
    - 21
    - 48
    - 49
    - 54
    - 56
    - 73
    - 74
    - 82
    - 129
    - 130
    replace-blocks:
    - 1
    - 5
    nerf-spawner-mobs: false
    max-bulk-chunks: 8
    max-entity-collisions: 2
    dragon-death-sound-radius: 0
    seed-village: 10387312
    seed-feature: 14357617
    hunger:
    walk-exhaustion: 0.2
    sprint-exhaustion: 0.8
    combat-exhaustion: 0.3
    regen-exhaustion: 3.0
    max-tnt-per-tick: 100
    max-tick-time:
    tile: 10
    entity: 20
    mob-spawn-range: 4
    growth:
    cactus-modifier: 800
    cane-modifier: 800
    melon-modifier: 800
    mushroom-modifier: 800
    pumpkin-modifier: 800
    sapling-modifier: 800
    wheat-modifier: 800
    entity-activation-range:
    animals: 16
    monsters: 12
    misc: 2
    arrow-despawn-rate: 1200
    item-despawn-rate: 6000
    merge-radius:
    item: 4
    exp: 6
    enable-zombie-pigmen-portal-spawns: true
    view-distance: 4
    wither-spawn-sound-radius: 0
    hanging-tick-frequency: 100
    zombie-aggressive-towards-villager: true
    chunks-per-tick: 80
    clear-tick-list: false

    bukkit.yml:
    # http://wiki.bukkit.org/Bukkit.yml
    #
    # If you need help on this file, feel free to join us on irc or leave a message
    # on the forums asking for advice.
    #
    # IRC: #spigot @ irc.spi.gt
    # (If this means nothing to you, just go to http://irc.spi.gt/iris/?nick=&channels=spigot )
    # Forums: http://www.spigotmc.org/forums/help.40/
    # Bug tracker: http://www.spigotmc.org/forums/bugs-feature-requests.8/


    settings:
    allow-end: true
    warn-on-overload: true
    permissions-file: permissions.yml
    update-folder: update
    ping-packet-limit: 100
    use-exact-login-location: false
    plugin-profiling: false
    connection-throttle: 4000
    query-plugins: true
    deprecated-verbose: default
    shutdown-message: Server closed
    spawn-limits:
    monsters: 50
    animals: 10
    water-animals: 3
    ambient: 4
    chunk-gc:
    period-in-ticks: 300
    load-threshold: 300
    ticks-per:
    animal-spawns: 400
    monster-spawns: 2
    autosave: 3000
    aliases: now-in-commands.yml
    database:
    username: bukkit
    isolation: SERIALIZABLE
    driver: org.sqlite.JDBC
    password: walrus
    url: jdbc:sqlite:{DIR}{NAME}.db

    If someone finds any mistakes in those files or has any other tips for me they will be highly appreciated. :)
     
  2. 1 gigabyte is not very much for the plugins you are using. I suggest trying those plugins on your local host with more RAM assigned and see if it still crashes.