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
Works 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.
@TanveerGT5
Yes.
@TanveerGT5
I would imagine so.
@Zelnehlun_
Thanks for the detail. This has been fixed in the next version.
I 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.
Preview 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.
Any 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.
@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 :)
@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.
Hey,
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
not working in 1.5.2 R0.1 unsupported major minor version junk from java as usual
Does it work on 1.5.2?
Java 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.
@ha11oga11o
Like I said (@TheLunarFrog), this change has already been added.
@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 :)
@mattmess1221
Fixed in next version; sorry about that.
ping 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.
@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.