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

Javadocs
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
Update this!
@Baffu
What's wrong with them?
What happened to the entity count for worlds in the latest version?
@Bodyash
The reason the ping command doesn't work is because your server isn't in English; therefore, the plugin expects a certain input from the ping process (which is in English), but gets Russian, which is why you're seeing tons of random ASCII characters. I'll attempt a fix at this soon. In the end, the server administrator will likely have to insert what the plugin will look for into the configuration.
Translation was also planned.
Any help for me?
@DevChaiiin
LagMeter will always work with any Bukkit update, as long as the very basic and core features of Bukkit do not change. They will likely never change as well, as it would involve breaking literally almost every plugin that ever existed.
Most of the code utilizes native Java code, so it would be more likely that Java updates would break it – but for the same reason, it won't happen.
If I were to abandon LagMeter, the plugin wouldn't break. It would just stop receiving updates for new features.
LagMeter is still working on 1.6 which is awesome
@TheLunarFrog
Nice to see you back. ;) Continue the great development.
http://cs416922.vk.me/v416922094/5b5a/ynqScePw-p8.jpg
Windows 7 x64. Now /ping works (but fix for linux)
Can i translate this message? Lang.yml or smthg? Using Spigot and Cpfix plugin (Russian Server)
@SharpMelon
@TanveerGT5
@comniemeer
This issue has been fixed in 1.14.1, which has been uploaded. Waiting on approval. Sorry about the issue.
I would just like to inform the developer that I am having the same issues as listed below in previous posts with the new version.
the /mem stopped working after the update! 2013-06-30 11:42:04 [WARNING] Unexpected exception while parsing console command "mem" org.bukkit.command.CommandException: Unhandled exception executing command 'mem' in plugin LagMeter v1.14.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:546) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchServerCommand(CraftServer.java:535) at net.minecraft.server.v1_5_R3.DedicatedServer.an(DedicatedServer.java:263) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:228) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.util.UnknownFormatConversionException: Conversion = '3'
at java.util.Formatter.checkText(Unknown Source) at java.util.Formatter.parse(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.lang.String.format(Unknown Source) at main.java.com.webkonsept.minecraft.lagmeter.LagMeter.sendMemMeter(LagMeter.java:986) at main.java.com.webkonsept.minecraft.lagmeter.LagMeter.onCommand(LagMeter.java:547) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 8 more
@rotiripsnoc
You can you use a batch script to restart the server. I have one for windows but i think you can adapt it to work on linux.
So every time the TPS dorp under a certain value you can execute /stop to stop the server and the script will automatically restart it.
@comniemeer
Looking into this.
Every time I use the /mem command in version 1.14.0, I get this StackTrace:
2013-06-30 11:42:04 [WARNING] Unexpected exception while parsing console command "mem" org.bukkit.command.CommandException: Unhandled exception executing command 'mem' in plugin LagMeter v1.14.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:546) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchServerCommand(CraftServer.java:535) at net.minecraft.server.v1_5_R3.DedicatedServer.an(DedicatedServer.java:263) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:228) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.util.UnknownFormatConversionException: Conversion = '3'
at java.util.Formatter.checkText(Unknown Source) at java.util.Formatter.parse(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.lang.String.format(Unknown Source) at main.java.com.webkonsept.minecraft.lagmeter.LagMeter.sendMemMeter(LagMeter.java:986) at main.java.com.webkonsept.minecraft.lagmeter.LagMeter.onCommand(LagMeter.java:547) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 8 more
@Bodyash
Pinging does not utilize a port.
You'd have to give java.exe ICMP/UDP/TCP output permission.
@TheLunarFrog
On which port?
@Bodyash
Check your firewall. The ping command defaults to pinging google.com, but your firewall can block pings, even when they originate from you (because the server will send a bounceback packet).
/lping doesn`t works :c
/ping too
Running Spigot (Maybe this bug on Bukkit too)
@rotiripsnoc
There's no such ability as to restart the server, from the server. Sorry.