[INFO]MemMonitor v1.2.1 - Watch your Memory![953]

Discussion in 'Inactive/Unsupported Plugins' started by rmb938, Jun 25, 2011.

  1. Offline

    rmb938

    MemMonitor v 1.2.1

    Ever wonder how much ram your server is using but to lazy to check? Well use MemMonitor! It outputs your servers Max Memory,Total Memory,Free Memory and Used Memory every minute the server is online! This is very lite plugin so no need to worry about lag! This plugin can also be used to detect memory leaks in your server. Just keep an eye on "Used Memory" and if it keeps increasing with nothing major happening on the server then there is a leak!


    [​IMG]

    Download v1.2.1
    Download v1.2
    Download v1.1
    Download v1.0
    Source

    ChangLog:
    6/28/11:
    v1.2.1 - Fixed version error

    6/26/11
    v1.2 - Added memory per player

    v1.1 - Added config file and output for Players and world info

    6/25/11
    Released 1.0
     
    Kane likes this.
  2. Offline

    ChrizC

    You need to fix your title. It's all over the shop.

    Refer to the guidelines.

    Chris
     
  3. Offline

    rmb938

    Fixed sorry about that.
     
  4. Offline

    Kane

    Works as advertised.

    I like to see more advance things added to this in the future like entities loaded and chunks and etc. maybe players online. Something good for debugging server crashes to get an idea of what happen last.
     
  5. Offline

    rmb938

    Alright I will add those things as well.
     
  6. Offline

    Evilscotsman999

    would it be possible to track memory usage of plugins? like to see what plugin is using the most memory.
     
  7. Offline

    DrAgonmoray

    That would be awesome.
     
  8. Offline

    rmb938

    The would have to be server sided so they would need to implement it via craftbukkit but to my knowledge you only can track the whole jvm.
     
  9. Offline

    Kane

    That would be amazing. But I have yet to hear of anyone knowing a way. I'm sure there is a way aka each plugin must include a small script or something inside the jar idk.


    Thanks so much!
     
  10. Offline

    Numenorean95

    I like this, good job!
     
  11. Offline

    SPACEDUDE360000

    Cool, but do you know anywhere I can get virtual duct tape to seal the server leaks?
     
    PatrickFreed likes this.
  12. Offline

    rmb938

    Haha I wish it was that easy xD
     
    Kane likes this.
  13. Offline

    Kane

    Just want to remind you to not forget to update your version within the plugin on each update ;) Not a big deal now but with things like /wg report it's Best to keep her updated for the admins.

    I wish there was some way someday to monitor things more in depth. Like usage per plugin and memory usage and ugh the works. One the things I hate about java a little hard to monitor things. I assume though if each plugin had a special monitor system added and run by the core maybe then it could do it who knows.
     
  14. Offline

    rmb938

    Wow I actually completely forgot about that lol
     
    Kane likes this.
  15. Offline

    shadrxninga

    the category in the title should to be capitalized
     
  16. Offline

    papand13

    Would it be possible to get the info onto a website? (maybe iframe style? :p ) Just asking. Would be awesome! :D
     
  17. Offline

    rmb938

    Well that would destroy the liteness of this plugin having to write to a file every minute.
     
  18. Offline

    hayhay89

    Is there a command i can use ingame instead of having to bring up the console also that makes it pointless if use this on a gsp since you dont have access to that.
     
  19. Offline

    Plague

    Update the plugin to latest recommended build and change the title accordingly.
    Failure to do so will result in this moving to INACTIVE section.
     
  20. Offline

    Malth

    Is there any way to change how often it updates?
     
  21. Offline

    pim_

    Indeed can I specify how often it updates somewhere? And is there a command for just forcing to update?

    Thanks.
     
  22. Offline

    grandwazir

    Useful for debugging but the memory per player figure is to simplistic too be useful. It appears to just divide the total memory used by the number of players; which doesn't count the memory used by the server itself or the additional plug-ins.

    Maybe a work around would be to gauge how much memory is used when one player is on the server (minus server footprint when they joined) and then use that figure to guesstimate for other players. It would still be slightly inaccurate though.
     
  23. Offline

    Kartus

    error and plugin crash at startup, #953:

    Code:
    2011-07-10 01:47:19 [INFO] Done (0,256s)! For help, type "help" or "?"
    2011-07-10 01:47:19 [INFO] [FalseBook Block] 6 Areas loaded.
    2011-07-10 01:47:19 [INFO] [FalseBook Block] 8 Bridges successfully loaded.
    2011-07-10 01:47:19 [INFO] [FalseBook Block] 0 Doors successfully loaded.
    2011-07-10 01:47:19 [INFO] [FalseBook Block] Gates successfully loaded.
    2011-07-10 01:47:19 [INFO] [MemMonitor]Max Memory:803 MB
    2011-07-10 01:47:19 [INFO] [MemMonitor]Total Memory:431 MB
    2011-07-10 01:47:19 [INFO] [MemMonitor]Free Memory:350 MB
    2011-07-10 01:47:19 [INFO] [MemMonitor]Used Memory:81 MB
    2011-07-10 01:47:19 [INFO] [MemMonitor]Players Online 0
    2011-07-10 01:47:19 [WARNING] Task of 'MemMonitor' generated an exception
    java.util.NoSuchElementException
        at java.util.AbstractList$Itr.next(Unknown Source)
        at com.mineempire.mem.MemMonitor$1.run(MemMonitor.java:80)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-10 01:47:19 [INFO] [FalseBook IC] 11 Transmitters loaded.
    2011-07-10 01:47:19 [INFO] [FalseBook IC] 10 Receivers loaded.
    2011-07-10 01:47:19 [INFO] [FalseBook IC] 12 Sensors loaded.
    2011-07-10 01:47:55 [INFO] Kartus [/xxxx] logged in with entity id 67 at ([world] -582.71875, 70.0, 1013.71875)
     
  24. Offline

    scout109

    I would love to see this have a in game command. My server runs off a differant computer and I think my players would like to see the memory usage too!
     
  25. Offline

    Kane

    @rmb938 I seam to get an error with 953

    Thanks :)

    Code:
    04:29:28 [WARNING] Task of 'MemMonitor' generated an exception
    java.util.NoSuchElementException
            at java.util.ArrayList$Itr.next(Unknown Source)
            at com.mineempire.mem.MemMonitor$1.run(MemMonitor.java:80)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  26. Offline

    svict4

    This is great!
    One feature you might want to consider is if the used memory gets over a certain threshold, to do a restart of it :p
     
  27. Offline

    sicksurfer123

    where can i see the available mem maybe a command such as /memory or something
     
  28. Offline

    ZombieRampage

    This works with Bukkit 1000, you should update it. Thanks for the plugin, works as advertised and is very light.
     
  29. Offline

    Mercury

    What is the command for?
     
  30. Offline

    ZombieRampage

    Sorry, there is no command for it. It shows up in the server console every minute. No log either since it was designed to be very light on both memory and processor use. If you don't have access to your server's console you won't be able to utilize this mod.

    EDIT: You can look at your server.log file and find the MemMonitor Info posts to see your memory usage. Sorry for the bad information, there is a way to see this even if you don't have the server console.
     

Share This Page