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 Jun 12, 2013Works great with Libigot also, any thoughts on a script or otherwise that can parse the log and reboot the server if the TPS drops below a defined # ? Running on Ubuntu.
-
View User Profile
-
Send Message
Posted Jun 3, 2013@TanveerGT5
Yes.
-
View User Profile
-
Send Message
Posted Jun 3, 2013-
View User Profile
-
Send Message
Posted Jun 2, 2013@TanveerGT5
I would imagine so.
-
View User Profile
-
Send Message
Posted Jun 2, 2013-
View User Profile
-
Send Message
Posted May 15, 2013@Zelnehlun_
Thanks for the detail. This has been fixed in the next version.
-
View User Profile
-
Send Message
Posted May 15, 2013I am using Spigot #855 and the latest LagMeter plugin when stopping the server the following error occurs:
Log is set to false in the LagMeter config.
Pastebin: http://pastebin.com/niPHSPA1
Thanks for reading.
-
View User Profile
-
Send Message
Posted May 11, 2013Preview update notes are available for LagMeter version 1.13.1 in the changelog. In addition, much in-depth detail on the API which has been introduced in 1.13.1 has been added on the new API page.
-
View User Profile
-
Send Message
Posted May 11, 2013Any developers that hook LagMeter will have their plugins broken if they use
to access LagMeter's methods. Instead, use
This is the exact same as using the here-to-fore available static accessor; however, this change was necessary, as some people were annulling the value of the accessor, causing any other plugins to throw a NullPointerException whenever they tried to access LagMeter's methods.
-
View User Profile
-
Send Message
Posted May 10, 2013@TheLunarFrog
ah so thats why, i had no idea what caused it, just remembered that i had seem the same error on many other plugins in the past. thanks for clarifying it :)
-
View User Profile
-
Send Message
Posted May 7, 2013@olmok
Already fixed in next version I believe.
@Marium0505
Works fine.
@mal67
Not my plugin's fault. You're running java 6 and the plugin is made with java 7. Wait for the next version or update to java 7.
-
View User Profile
-
Send Message
Posted May 6, 2013Hey,
Trying to poll the data from LagMeter over rcon, but failing :(
It seems the response it sent to the console, rather than the rcon - is this fixable? Am collection usage data for a few of our servers via rcon, would love to be able to collect tps/mem data for our Bukkit-servers too :)
Olmok
-
View User Profile
-
Send Message
Posted May 5, 2013not working in 1.5.2 R0.1 unsupported major minor version junk from java as usual
-
View User Profile
-
Send Message
Posted May 5, 2013Does it work on 1.5.2?
-
View User Profile
-
Send Message
Posted May 3, 2013Java 6 support may be delayed. There are compliance discrepancies (i.e. switching on a String, since Strings in Java 6 are memory locations of char arrays, while in Java 7 it's an actual type comparison), which means I do need to proofread the code and fix any errors which would occur by switching back to JRE 1.6. This could take time, since most of my code is being written from a phone.
-
View User Profile
-
Send Message
Posted Apr 18, 2013@ha11oga11o
Like I said (@TheLunarFrog), this change has already been added.
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TheLunarFrog
Please dont forget to add node in cfg so we can actually change ping domain or IP. Cause firewalls. I had post before regarding that feature.
Thnx :)
-
View User Profile
-
Send Message
Posted Apr 17, 2013@mattmess1221
Fixed in next version; sorry about that.
-
View User Profile
-
Send Message
Posted Apr 17, 2013ping isn't working on linux systems. I think it's sending to the terminal "ping hops www.google.com" but this sends back a "connect: Invalid argument" error.
It should be "ping -s packetsize -c count google.com"
I assume it works perfectly on windows the way it is currently.
-
View User Profile
-
Send Message
Posted Apr 11, 2013@ha11oga11o
Sorry about the confusion. No offense was intended by my original post, just seemed kind of strange to me to see a server log with a bunch of empty lines for commands.