PluginMemory - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html) +--- Thread: PluginMemory (/thread-2025.html) |
PluginMemory - xoft - 06-28-2015 This plugin allows you to view the amount of memory that is consumed by each plugin in the server. Either use the console command "plugmem" to see the current memory usage in the console, or have a look at the webadmin page that has per-plugin live graphs of the memory use: Source: https://github.com/madmaxoft/PluginMemory Download: https://github.com/madmaxoft/PluginMemory/archive/master.zip RE: PluginMemory - worktycho - 06-28-2015 Just a suggestion, but if you're loading jquery for the graphs, you could use $.post, http://api.jquery.com/jquery.post/ to simplify your ajax request. RE: PluginMemory - LO1ZB - 06-28-2015 the url is http://api.jquery.com/jQuery.post/ RE: PluginMemory - NiLSPACE - 06-28-2015 Awesome ;D I used to use my executor plugin that would execute this: cPluginManager:Get():ForEachPlugin( function(a_Plugin) if ((a_Plugin:GetName() ~= cPluginManager:GetCurrentPlugin():GetName()) and (a_Plugin:IsLoaded())) then print(a_Plugin:GetName(), string.format("%.4f", cPluginManager:CallPlugin(a_Plugin:GetName(), "collectgarbage", "count") / 1024) .. "MB") end end ) But this is much nicer ;D RE: PluginMemory - xoft - 06-28-2015 @NiLSPACE I finally learnt how to make the graphs live, now we can use the same technology for PerfPages RE: PluginMemory - NiLSPACE - 06-28-2015 That would be great |