RAM
RAM - A Lightweight Memory Checking Utility
Introduction
RAM was created by mikeyg6754. The server was crashing daily due to the infamous “Java out of Memory” error. In order to find and stop this memory leak, a plugin was needed to check how much RAM (or Memory) was being used on command. Yes, there are other plugins that have this feature, but it is packaged up with a ton of unwanted functions that could bog your server down even more. Then RAM was created, a lightweight plugin with only one purpose. Of course, you could just have the plugin installed on your server for the convenience. You don’t need to wait for something to go wrong on your server to install this. This makes for a great administration tool, to make sure your current plugins are not taking up too much RAM.
Feature Summary
- Check The Amount of RAM That Your Server is Using
- Check From the Console
- Check From In Game
Installation & Setup
Just download the RAM.jar and place it in your plugins directory. That’s it, no configuration files, no extra folders created!
Commands
/ram – This command works both in game and from the console. It will show Total Memory, Used Memory, and Free Memory in MB
/mem - This is an alias to the /ram command
Permissions
/ram - ram.command - Defaults to OP (tested with permissionsEX)
Source
Want to use the function in a server mod of your own? Feel free to use the source. It is packaged with every release inside the jar. Just open the JAR with a program like WinRAR and extract the source folder.
Thanks for the simple and easy to use plugin. got it working on a 1.6.4 tekkit/cauldon server :D thanks man.
Thanks for putting this together, but just knowing I'm running short on memory isn't enough to diagnose and fix a root issue - any chance you could determine which parts of the server are using which amounts of memory? Breakdown by plugin would be great.
@TWSSYesterday
That shows CPU usage instead or RAM usage, correct?
@Trishh_
that will be awesome!
Could it show how much RAM each plugin etc is using?
could you add this command: /pings for 1.7.2 version and /ms for 1.6.4 it will be great
This is a nice tool, I've been looking for something like this. Thanks :)
Unfortunately I get the same issue on CB development build for Minecraft 1.4.2 as reported below. RAM doesn't show the correct values for me. I've made a ticket, hope it helps :)
Can you make the source repository public instead of private?
does this take into account the amount of ram used by the craftbukkit jar file?
@simpsda
Sounds like a challenge :P, I'll see what I can do, I already have an AutoCheck and SMS/Email notifications implemented, just waiting for the next RB to publish.
"/gc" tells you:
Maximum memory:
Allocated memory:
Free memory:
and more...
To make this plugin great, would being able to view which how much each individual plugin takes up. That would be wonderful :)
- Simpsda
@imilkywayz
I didnt say that it was not hard to make, but I like the ideas. The restart idea is cool, and maybe I can build off of that. But, you can get a java out of memory error if your server runs out of memory, it can happen both ways. I like the user input and I will implement some of these features ASAP, This is what I want, If you want more features tell me and Ill see what I can do.
I'll post another comment when I'm done with the new features. Maybe even email / sms notification dif your server is about to run out of memory.
The reason I made this was primarily for my own use, I didn't want to use a big bundle of plugins, I just wanted to check the ram. Thanks again for the suggestions I will implement them soon!
EDIT: It is impossible to restart your server from a plugin.
Honestly this need a lot more features. No configuration or any other features? This probably took like 10 minutes to make. Make it so that if the ram usage comes close to limit, it restarts the server. Make it auto check the ram for x amount of time defined in config. Make it reduce the ram usage... Literally any server with essentials can use /gc and it displays ram, ptweaks has the same command, nolagg I'm sure can do the same... Please improve and ill take a better look at it :) EDIT: You say its bundled with other things that bog down your server, essentials is big yes, but its "Essential" .. basically. Im trying to not hate, but this plugin isnt useful.. Also its a bit misleading because the java ran out of memory error is client side and checking for ram wouldn't do anything to effect that, even if the ram was about to run out, it just says can't keep up and it lags..
@MusicMonkey5555
Updated the plugin and added permissions compatibility. I tested it with PEX and it is working. You can download the new version and use the permissions node ram.command
@MusicMonkey5555
There are currently no permissions for this plugin. If you OP yourself you can use it. Or if you would like me to implement a permission system I can.
When I try and use the command it says you must be OP. I am using PEX, is there a permissions node?
@Aterruit
All set now
@DjBuRnOuTQc
Should be all set now, the JAR was there, I guess it just didn't update when the plugin was approved by Bukkit
Seems great, We need the download link now :P I need this plugin so much.