Can't find cause of memory leak after numerous attempts.

Discussion in 'Performance Tweaking' started by ItsHarry, Apr 11, 2013.

  1. Hello,

    Trying to find the source of this pesky memory leak on my server.
    I'm not the best when it comes to Java profiling, posting it here is my only option left because I can't find it myself.

    I'm using this java profiler called YourKit.

    Okay so this is the fourth time I'm trying, I'm getting the same results every time.
    It's obvious that the leaked object is EntityPlayer. However, I can't find what is holding it in memory.

    Here's a screenshot:
    http://gyazo.com/6fda082d173e3f3b99dfc32891f5bb76

    There are thousands of instances of EntityPlayer loaded, and they all show the same GC roots as the screenshot above.

    There were 0 players online at the time I captured this memory snapshot.
    I have also forced garbage collection just before capturing it.

    Does anyone see an obvious answer? I can only see it being held by Bukkit itself, but that seems quite rare, right?

    If you need more information, please tell me and I'll be happy to give it you as soon as possible.

    Thank you in advance!

    Harry
     
  2. Post timings as it may show what plugins maybe causing issues
     
  3. It may be jhbridge
     
  4. CustomForms

    CustomForms Retired Moderator
    Retired Supporter

    When you say you restarted the server do you mean the minecraft server or server box?
     
  5. Minecraft server
     
  6. That plugin copies a file every 10 minutes, shouldn't be the cause, especially since it's my own plugin :p