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
LagMeter 1.9.3: Review By: UltiByteLagMeter 0.1: Review By: BrandonHopkins
LagMeter 0.1: Review By: ValBGaming
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.
Jenkins: latest builds
Stable
Version: 1.17.0
Build date: 3 March 2016
BukkitDev Download: Latest Build
Javadocs
Version: 1.15.0
Build date: 23 November 2013
Dropbox Download (zipped; standard doclet)
Source Code
GitHub: TheLunarFrog's SourceGitHub: Original Source by DemmyDemon (v.0.4)
Bugs and Feature Requests
Bug reports & Feature RequestsFeatures
- 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
First idea: Average lag/mem per 24 hours?
Second idea: It sounds a little complex but i'd also +1 the idea of having Users Versus Lag/Mem statistics reported on a web page? We could track our peak performance, where we need improvement, when the server is most used.
Great plugin i use it all the time :D
@TheLunarFrog I've got a little Request:
It would be super awsome, if lagmeter has a command to show
how many mobs are on the Server and would log it.
mySQL support would also be interesting for some users / online-statistics.
i use the log for this ^^
@EszesBence92
@LEOcab
I'll build one for R6 in a short while (15 mins?)
Edit: Done.
Pls update for R5 need for 1.2 server :(
I can haz 1.2 build? <3
Here's a tip for people using Linux to host their server (I use MineOS CRUX - mineos.codeemo.com).
I run this shell script every 5 minutes via cron, just shortly after my lagmeter logs.
The script checks for connections to the OS on port 25565 and then cross references that with the most recent occurrence of the IP in the server.log to discover the player names. The end result is it prints the player names of who was online into the lag.log file. Might be useful on smaller servers.
Obviously you'll have to change the paths and if you use a different port than the standard, you'll have to use this. Again, Linux servers only.
@sharkale31
Good enough I suppose. Thanks.
@TheLunarFrog
ops sorry, anonymous upload i dont know how to delete. i removed the link.
@sharkale31
Wow, I can't believe I was so oblivious to realize you can just use the method in the string instead of just using a variable, oops. Anyways, thanks. Uploading a version that works with that, can you delete that paste, please? Don't want LagMeter's source floating around.
@TheLunarFrog sorry i decompile the plugin because i need the player count. link edited
you use a variable init when the class open in the server start (always 0) i say it before. you dont need variable, you can use the plugin instance. check the source.
@Crayder
Hmm, I'll look into a way to add this and have it configurable. The thing is, the reason why the ping meter in Minecraft on Bukkit doesn't work at the moment is because it took way too many packets and caused your bandwidth usage to be insane. So, I'll look at it, but I can't guarantee anything.
Great plugin! Another suggestion, maybe a latency check? Have the server ping a central location (Google?) and then report back the milliseconds in response time?
Ok, R5+ bug has been fixed in 1.6, awaiting approval.
@TheLunarFrog
Ok :D
@kukelekuuk00 This plugin uses no listeners. The only reason it breaks when people use the *dev build* (not reccommended build) is because the Bukkit team removed the deprecated configuration code that LagMeter still uses. That means anyone who still has those methods in their plugin will have to rewrite all of it. Did it once for my other plugin, now for this one... Bleh.
@EHAndrew Likely, yes. Depends on if I have time to rewrite all the config code.
Im curious if this plugin is updated to the new events system as the old one was removed starting CB 1944. Just a headsup before the coming RB which will cause quite the mess
Are we going to see an R5 update?
@RealityIntern
no, he never fix the player count
Does this actually show the player count for anyone?