Are memory leaks normal?

Discussion in 'Bukkit Help' started by LEOcab, Jan 21, 2012.

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

    LEOcab

    I have the LagMem plugin that I use to check memory usage and server TPS. During peak times, free memory shows as low as 5% but I stopped worrying about it after I saw it jump up to 40%+ one day. It does that all the time, it gets very VERY low then jumps really high up for no apparent reason. I thought it was the Java garbage collector doing its magic so I stopped restarting the server once to twice a day.

    Player count doesn't seem to matter much either. I've restarted the server with the full 15 players online then all of them joined again and after a minute, memory usage wasn't over 70%. It just eats memory over time...

    Today I woke up to a crashed server and this on the log:
    Code:
    2012-01-20 22:47:06 [SEVERE] Exception in thread "File IO Thread"
    2012-01-20 22:47:06 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2012-01-20 22:47:06 [SEVERE]    at java.util.ArrayList.<init>(Unknown Source)
    2012-01-20 22:47:06 [SEVERE]    at net.minecraft.server.RegionFile.<init>(SourceFile:122)
    2012-01-20 22:47:07 [SEVERE]    at net.minecraft.server.RegionFileCache.a(SourceFile:63)
    2012-01-20 22:47:07 [SEVERE]    at net.minecraft.server.RegionFileCache.c(SourceFile:93)
    2012-01-20 22:47:07 [SEVERE]    at com.bergerkiller.bukkit.nolagg.BufferedChunkRegionLoader.c(BufferedChunkRegionLoader.java:148)
    2012-01-20 22:47:09 [SEVERE]    at net.minecraft.server.FileIOThread.b(SourceFile:29)
    2012-01-20 22:47:37 [SEVERE]    at net.minecraft.server.FileIOThread.run(SourceFile:22)
    2012-01-20 22:47:40 [SEVERE]    at java.lang.Thread.run(Unknown Source)
    2012-01-20 22:48:37 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2012-01-20 22:49:00 [SEVERE] Exception in thread "Timer-2"
    2012-01-20 22:49:39 [SEVERE] Exception in thread "Thread-13"
    2012-01-20 22:49:43 [INFO] Stopping server
    2012-01-20 22:51:16 [SEVERE] java.lang.OutOfMemoryError: Ja
    2012-01-20 22:51:28 [SEVERE] va heap spacejava.lang.OutOfMemoryError: Java heap space
    2012-01-20 22:51:44 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    Is that supposed to happen or is it a sign that something is wrong?

    I'm running Bukkit #1784 with the following plugins:
    • BookWorm
    • CommandHelper
    • Essentials
    • EssentialsSpawn
    • Factions
    • FoundBoxx
    • IWarnYou
    • LagMeter
    • LeaverBuster
    • LWC
    • Maps
    • mChatSuite-DEV
    • Multiverse-Core
    • Multiverse-NetherPortals
    • NoCheat
    • NoLagg
    • NoSuffixedKills
    • Orebfuscator
    • Orebfuscator-SpoutBridge
    • PermissionsBukkit
    • PickBoat
    • RealName
    • RedstoneClockDetector
    • RegexFilter
    • Register
    • SimpleRegionMarket
    • SpamHammer
    • spoutplugin-dev-SNAPSHOT
    • Statistician
    • SuperpermsBridge (not sure if required anymore?)
    • Tips
    • VanishNoPacket
    • VIP
    • Votifier
    • wgpfix (WorldGuard Piston Fix)
    • WorldEdit
    • WorldGuard
    • WorldInventories-dev-SNAPSHOT
    This is what I use to start it up:

    Code:
    nice -n -20 ionice -c1 -n0 java -native -server -Xmx3G -Xincgc -XX:UseSSE=4 -XX:ParallelGCThreads=2 -jar craftbukkit-1.1-R1-SNAPSHOT.jar nogui
    I have 4GB of RAM but I set Bukkit to 3GB because of the OS (Slackware), Apache, MySQL, and anything else running in the background such as SVN during backups.

    Thanks in advance! :D
     
  2. Offline

    Pezmantbh

    I have experienced memory leaks before, usually related to plugins. How many players were on the server when it crashed with the Out of Memory error?
     
  3. Offline

    LEOcab

    One player who was online at the time reported 'around 12' which is usually what I get on friday nights. I am using a dev build of Bukkit and like 2 or 3 plugins also on dev builds so I can't really complain, can I? :D

    I guess I'll get to fixing my daily restart script on Cron...
     
  4. Offline

    abdel

    You have to many plugins mate there all saving at the same time lower your plugins and it will be fine
     
  5. Offline

    Pezmantbh

    The only other thing I can think of (other than a plugin issue) is that one of your worlds is corrupt. If you don't use it, try turning off the_end in the bukkit.yml file.

    You can also try my world fix guide (in my signature) :)
     
Thread Status:
Not open for further replies.

Share This Page