LagMeter
![](http://dev.bukkit.org/thumbman/images/45/120/600x99/logo.png.-m1.png)
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
![http://www.hitbullseye.com/images/download_button_small.jpg](http://www.hitbullseye.com/images/download_button_small.jpg)
Javadocs
Version: 1.15.0
Build date: 23 November 2013
Source Code
Bugs and Feature Requests
![](http://forum.shrapnelgames.com/images/icons/Bug.gif)
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
Could you add any function to permit this plugin to execute a command when the server is laggy
For example : When you have a plugin like "SimpleRestart", when the server start having many errors (with low TPS), LagMeter could execute "/restart now" to restart the server.
I think this could be useful !
Is it possible ?
one possible bug: getting this when I attempt to run /lagmeter reload (after I've tweaked the config, and yes I made sure to validate the yaml) and /lagmeter help
@TheLunarFrog
[slow clap]
You sir, are a damn fine gentleman... this is excellent!
@TheLunarFrog
Thank you very much.
LagMeter 1.11.0 is now awaiting approval.
You can view the changelog here: http://dev.bukkit.org/server-mods/lagmeter/pages/changelog/
@Chalkie19
I'll look into adding this.
@ronfkingswanson
Changes have been made, hopefully to your liking. I did not change memory free to a percentage, but rather, added a percentage to the end of it - this is to please both those who want an exact number, and those, such as yourself, who just want to quickly glimpse over it and see that you've got 80% or whatever.
There is one thing, however: in order to keep those who like their logs chunked, as well as those who like their logs on a single line, I had to add configuration. There is only one new node, though.
Put the following configuration node into your settings.yml in the log section:
Edit: I have pushed the code to my GitHub repository, so the new version should be available anywhere from 7:15 to 7:30, EST (GMT-5).
haha i am still using the 1.1 version and this is awsome and fine :)
okay, one more super duper OCD thing - could the option to add playersonline count to the log entries appear on the same line as tps and memory? Maybe even change memory to a free percentage? would make it super easy to read long logs and see the patterns...
this:
[12-08-2012 03:11:56] TPS: 20.0 Memory free: 2302.0/3038.0
Players online: 25
[12-08-2012 03:29:05] TPS: 20.0 Memory free: 2117.0/3038.0
Players online: 18
[12-08-2012 03:34:05] TPS: 20.0 Memory free: 2365.0/3038.0
Players online: 20
becomes this:
[12-08-2012 03:11:56] TPS: 20.0 Memory free: 75% Players online: 25
[12-08-2012 03:29:05] TPS: 20.0 Memory free: 70% Players online: 18
[12-08-2012 03:34:05] TPS: 20.0 Memory free: 74% Players online: 20
love this! only thing I would ask is one more combination command to also show online players in the console output, like /lagmem - maybe /lagmemplay? would allow a simple single command that shows all the relevant server load info in one shot...
@andrewkm
Fixed in 53.
Build52 cannot use lag and lagmem commands in game http://pastie.org/5461372
they work in the console though.
Might be a bit of a pointless request, but can you add an option to display server up time when doing /lag ?
@re3ell Sorry, forgot - wasn't a comment, was a closed ticket. This should solve your problem: http://dev.bukkit.org/server-mods/lagmeter/tickets/37-cant-disable-display-of-entity-counts/
The solution is a comment at the bottom of the ticket.
Today i updated my server to 1.4.5 - all working perfectly!
many thnx again :)
@TheLunarFrog
Maybe you could add the Vault dependency fact in your explanation above (Or did I just miss it?)
I am using 1.10.0 of your plugin. And i´m sorry for not looking up all the comment pages before posting but i do not have enough time to get through it.
Anyways thanks for your help and time.
@re3ell
First off, permissions work fine - assuming you have Vault. LagMeter has a soft dependency of Vault.
Second, I have explained this already to several people, but I suppose I won't force you to look back one page of comments. What version are you using of my plugin, bukkit doesn't matter?
With Bukkit 1.4.5 R0.2 and PEX 1.19.4 the permissions:
lagmeter.command.lag
lagmeter.command.mem
lagmeter.command.lagmem
do not work. Only Ops can use the commands /lag, /mem or /lagmem.
Also when I disable the entity Informations in the config it still shows in chat.
Ah there we go. Now all works fine. My config needed an updating.
@andrewkm
"You guys"? I'm the only dev. Demmy quit and marvinej is just the manager for reasons that he would be embarrassed about. Anyways...
Works fine for me... paste your config please. As far as changing the order, I will do that.
Note that I changed the configuration organization. It now looks like this: