LagMeter
Lets you check the server lag, in ticks-per-second.
Bukkit version does not matter for this plugin.
Description
A lot of plugins tell you that something happens "every X seconds, depending on lag." That's because when the server is overworked, there are less than 20 ticks per second. This plugin will measure the number of ticks per second, and output it on your screen as a "Lag Meter." The plugin can also output the amount of memory free, alert those with a specific permission node when the ticks per second or free RAM goes down too far, and even measure the server's ping to google.com.Tutorials and Reviews
Some of them are a little out of date, but you get the idea.
Download
CI/build (Jenkins) serverYou can always pick up the latest compiled version of LagMeter on my CI server. Note that BukkitDev doesn't warrant the safety of these builds, etc, but it's all pulled from GitHub anyways, so you could compile it yourself or look at the commits. Lagmeter is more stable than Lagmeter-bleed.
Stable
Version: 1.17.0
Build date: 3 March 2016
BukkitDev Download: Latest BuildJavadocs
Version: 1.15.0
Build date: 23 November 2013
Source Code
Bugs and Feature Requests
Features
- Simple, minimum-fuzz installation
- Configurable without drowning you in options
- Checks the server performance
- Ability to check the ping between the server and Google.com
- When someone says "GAH! LAG!", you can /lag, and tell them "Dude, it's your computer sucking."
- Supports Bukkit's built-in permissions system, for example via [the official plugin](http://forums.bukkit.org/threads/permissionsbukkit-official-default-groups-plugin-1000.26785/)
- Support for the "old-school" Permissions, as well as PermissionsEX
- Logging of the lag, if you want it.
- Logging of players online, with the above, if wanted.
- Suggestions?
Change Log
Change LogCommands & Permissions
Commands & PermissionsConfiguration Explanation
ConfigurationExample output:
[####################] 20.0 TPS
...or if your server isn't doing so hot...
[##########__________] 10.0 TPS
-
View User Profile
-
Send Message
Posted Jan 11, 2013@Phaze_One
You will need both Vault and a permissions plugin. I am, however, looking at removing the requirement to have Vault as a dependency and using my own permission-checking code via bukkit to your permissions plugin. In case you have not read the permission node documentation, the nodes are lagmeter.command.<command-name>, where lag would be lagmeter.command.lag and mem would be lagmeter.command.mem and so on.
@ha11oga11o
@Pr4w
Well, this is a bit interesting. I've been working on this since Monday, and I can't figure out for the life of me why colours aren't being sent to the console (it isn't just the fact that I strip the raw colour codes from messages, I removed that from the code but didn't push to GitHub because it would make the next Jenkins build(s) more annoying). That being said, I will continue to work on this issue, but I have no ETA for you. Sorry for the inconvenience!
-
View User Profile
-
Send Message
Posted Jan 11, 2013So I'm 100% confused. I just want my players to be able to use /lag. But they need permission apparently. Do I use Vault and a permissions plugin? Or just the permissions plugin? I'm new to permissions and tried looking it up and got more confused. I thought players would be enabled by default. Any help would be greatly appreciated because I really want to use this, I think it's awesome.
-
View User Profile
-
Send Message
Posted Jan 6, 2013@ha11oga11o
@ha11oga11o
Yeah, I plan on working on that tomorrow. Family stuff still going on today.
-
View User Profile
-
Send Message
Posted Jan 6, 2013@Pr4w
Yeah, works perfectly on client but not on server console. Im waiting quite long time to bring it back. Really need colorization.
I guess holidays consume some real life time. Well, of course real life is permitted :))
Hehehe, cheers!
-
View User Profile
-
Send Message
Posted Jan 6, 2013Since the update, colors don't display correctly in console, why is that ? :( http://puu.sh/1Ki4q
Edit: Ah ! Didn't see it was fixed in a dev build. I'll be using that. :)
-
View User Profile
-
Send Message
Posted Dec 29, 2012@BoxedKian
use ClearLagg for that functionality, in conjunction with the server commands of LagMeter (just execute the ClearLagg commands when LagMeter threshold is exceeded)
-
View User Profile
-
Send Message
Posted Dec 29, 2012@BoxedKian
Sorry, too bulky. I had planned to do this with a flag feature and a per-world system, but it quickly became too messy. I would suggest, if you have WorldGuard, using its built-in system, as it has flags and such.
-
View User Profile
-
Send Message
Posted Dec 28, 2012Love it. Maybe next update include ability to clear entities?
-
View User Profile
-
Send Message
Posted Dec 23, 2012@iS4nd3r
That's a difference of 5 mb, first of all, not 800. And yes, they are - you can check here:
https://github.com/TheLunarFrog/LagMeter/blob/master/src/main/java/com/webkonsept/minecraft/lagmeter/LagMeter.java#L468
My source code is available. Your host probably shows how much memory they're using for their processes too, which LagMeter doesn't show, because they're not attached to the java process of Bukkit.
-
View User Profile
-
Send Message
Posted Dec 21, 2012So, I had this talk with my server host, He said I used 3800MB ram and here LagMeter said I used around 3000MB. He's telling me LagMeter is incorrect... Now I want to know, are the ram-usage numbers correct ?
http://oi47.tinypic.com/k54k84.jpg
-
View User Profile
-
Send Message
Posted Dec 18, 2012@Cayorion
Or maybe you could read through the changelog of versions between your previous version and now. Clearly you didn't even look for anything to disable this.
http://dev.bukkit.org/server-mods/lagmeter/pages/changelog/
-
View User Profile
-
Send Message
Posted Dec 17, 2012Since I updated players on my server now see this huge list above the lagmeter with all the worlds, their chunks and entities. I don't want my players to see that. I suggest making a permission node for seeing such information so that the output from the command can be as simple as before for normal players on the server.
"If you want to use permissions with LagMeter, you will need Vault. You do not need it otherwise." You should never depend on vault for permissions. I suggest using the built in defacto standard Bukkit permissions for this.
-
View User Profile
-
Send Message
Posted Dec 17, 2012Many thnx for your effort! I hope you will be better soon, at least will be OK for Xmas :)
Plugin works fine, so there's no critical issues.
Cheers!
-
View User Profile
-
Send Message
Posted Dec 16, 2012Sorry development is going slowly guys, I'm pretty sick and I've been in bed.
@ronfkingswanson
@ha11oga11o
Ok, I'll re-add it.
@ronfkingswanson
As for separating the tag from the message, that I can't do, as it would probably cause confusion and would require too much refactoring.
-
View User Profile
-
Send Message
Posted Dec 16, 2012@ronfkingswanson Agree,
that coloring was good on console in speed running lines. Will be really nice to have it back, .. to be honest this way i need to type it 2-3 times to actually catch data because it scrolls up fast.
-
View User Profile
-
Send Message
Posted Dec 15, 2012@TheLunarFrog
IMHO, if the users weren't complaining about LagMeter's memory usage before, as much as I can appreciate frugal code, I'd prefer to have the coloring back - it really makes a difference being able to quickly see the stats when scrolling through the console.
In fact, I'd like it even better if you could do the console output without the prefix of "[Lagmeter 1.11.1]". If the output wasn't as indented as all the other plugin/chat spam in the console (meaning it was further to the left) it would also help distinguish it.
The plugin ClearLagg has some very nice stylized output (can't type the colors here, but the formatting alone is great):
the lines are in green and the text between in light blue - super easy to pick out when browsing thousands of lines. There's no prefix on those lines, so the horizontal position on those lines is also different than the rest.
BTW - mega thanks for the chained commands. I now have a completely self-monitoring and self-adjusting server!
-
View User Profile
-
Send Message
Posted Dec 15, 2012@ha11oga11o
Well, I've concluded that the reason that it no longer works is because of changes that I added in effort to reduce memory usage. Without using quite a bit more memory (though, it's not like it uses much now), I can't fix it... So I'm not sure where the users would stand on that.
-
View User Profile
-
Send Message
Posted Dec 15, 2012I know its not prority but still no collors in console:
Build #74 (Dec 13, 2012 7:16:43 PM)
-
View User Profile
-
Send Message
Posted Dec 14, 2012@TheLunarFrog
Hello,
yes it was colored same as in client. But since update i cant see color, it shows only color codes and text is white.
Im using it very often. So i noticed this immediately.
Cheers!
-
View User Profile
-
Send Message
Posted Dec 13, 2012@ronfkingswanson
You probably refreshed before I edited it - that's okay. Copy/pasted and added some explanation.
Anyways, it's 15 past midnight here, and I have class, a test, and a speech tomorrow. The uptime (implemented, but haven't tested) and the colour thing is confusing me - I know what caused it, but what made it work in the first place was a large chunk of memory allocation... but this isn't different from that in any way.
Edit: Good news: when I test the uptime command, my server has apparently been up for 2,221 weeks. That's some math that will need serious fixing.