Get the memory usage of each plugin?

Discussion in 'Plugin Development' started by LeeTheENTP, Mar 25, 2014.

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

    LeeTheENTP

    I'm trying to code a plugin that prints out the RAM usage of each enabled plugin, but I'm not sure what method(s) to use in order to get the amount of RAM that each plugin is using.

    I plan to use an instance of PluginManager and use its getPlugins() method to get the array of enabled plugins, but after that I'm not sure what to do.

    A friend's server is having a memory leak, so a plugin like this would be very helpful for him.
     
  2. Offline

    Barinade

    If your 'memory leak' is from a privately developed plugin you could add size debugs for your heavy fields and process time debugs for your extensive methods

    I can help with this further if there are any personal plugins for the server.
     
  3. Offline

    LeeTheENTP

    There are no privately-coded plugins on the server. We're sure that it's a memory leak (judging by the fact that the server runs fine for a while then suddenly crashes because the JVM ran out of memory), but we're not sure if it's caused by a plugin or something going on in one of the worlds.
     
Thread Status:
Not open for further replies.

Share This Page