How to determine which plugin is causing a memory leak?

Discussion in 'Bukkit Help' started by AyshineMatt, Mar 29, 2013.

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

    AyshineMatt

    Hey guys! I need help on determining which plugin is eating up my memory. Not only does it eat all my memory, but also my TPS. On a regular occasion, where about 15-20 people are on, my TPS is at a max of 20, and my free memory is almost at a GB. But, sometimes, when I check using "/memory", my TPS is around 10-15, sometimes even lower. As for my RAM usage, the lowest it's been is around 90MB. I'm going to assume it's one of my plugins just eating up all the memory, but not sure which plugin. Below are some information that may come in handy. If you need any further information, just ask.

    RAM Allocated: 4GB of RAM
    Intel Xeon Processor (Sorry for the vague information here.)
    How many plugins are running? 53. Yes, that is a lot...
    Plugins list:

    TuxTwoLib, GroupManager, Buycraft, Slot_Manager, Vault, MobBountryReloaded, uSkyBlock, TopPVP, SimpleWarnings, Chairs, EasyWelcome, AntiAd, SurvivalGames, FlyNoKill, PrettySigns, TrollAdmin, MobArena, TimTheEnchanter, Jobs, Citizens, BowWarfare, ImageGenerator, WorldEdit, NoCheatPlus, HeadGrabber, TagAPI, LWC, WorldGuard, TF2, Parkour, CoreProtect, BookRules, ClearLag, ScheduledAnnouncer2, SuperSpleef, Vote4Diamondz, findIP, Essentials, PlotMe, EssentialsChat, EssentialsXMPP, EssentialsProtect, EssentialsSpawn, EssentialsGeoIP, VanishNoPacket, EssentialsAntiBuild, PayDay, Multiverse-Core, Multiverse-Inventories, GriefPrevention, Factions, Multiverse-Portals, and BattleTags.
     
  2. Offline

    Clucky

    I recommend installing nolagg and running /nolagg examine 72000. Doing this will give you a breakdown of which plugins are causing problems. I have 70 plugins, and (until recently) my server ran lag free. However, now for some reason it just randomly crashes...
     
  3. Offline

    TheBeast808

    What OS is your server running?
     
  4. Offline

    Onionbro

    Enable plugin profiling and do some timings analysis.
     
  5. Offline

    Clucky

    Can you give step by step instructions on how to carry this out, starting with changing the configuration to seeing which plugin is causing issues?
     
  6. Offline

    AyshineMatt

    If it randomly crashes with that happening, I probably shouldn't do that as for it might upset my players :p

    To be honest with you, I don't even know. I just sent my hosting company a ticket and asked them, hopefully they'll respond soon.

    Hmm, interesting, never actually thought of this. I'll do this is a few hours, as for it's a bit late where I live. This might find out which plugin is leaking.

    http://wiki.bukkit.org/Bukkit.yml#plugin-profiling

    I just did this. I enabled plugin-profiling, restarted my server, then typed: /timings merged. I went to /timings/timings.txt and all of my plugins took less than a second to load? Is it just the fact that I am running too many plugins?

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

    midnightfang22

    You have to let the server run for a few hours. The timings records how long the plugins take to do tasks since startup. If you do it right as it starts, then it records essentially nothing. How long you should wait really depends on player count.
     
  8. Offline

    minicl55

    Does nolagg actually do anything? In my experience it does nothing besides annoy people.
     
Thread Status:
Not open for further replies.

Share This Page