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 Aug 9, 2012@Scripthen
Edit: Fixed in next version. If you want it before it's approved, download it via the dropbox link.
-
View User Profile
-
Send Message
Posted Aug 9, 2012Error creating folder.
Linux Mint MATE x64 - Linux 3.2 x64
OpenJDK 1.6
CB version:
git-Bukkit-1.3.1-R1.0-7-g69d634a-b2326jnks (MC: 1.3.1) (Implementing API version 1.3.1-R1.1-SNAPSHOT)
-
View User Profile
-
Send Message
Posted Aug 9, 2012Error log folder again !
Create folder in root server folder "null;logs"
12:17:34 [INFO] [LagMeter] Using logs folder. This will create a new log for each day (it might log data from tomorrow in today's file if you leave the server running without reloading/restarting). 12:17:34 [SEVERE] java.io.IOException: The system cannot find the path specified
12:17:34 [SEVERE] at java.io.WinNTFileSystem.createFileExclusively(NativeMethod) 12:17:34 [SEVERE] at java.io.File.createNewFile(Unknown Source) 12:17:34 [SEVERE] at com.webkonsept.minecraft.lagmeter.LagMeterLogger.beginLogging(LagMeterLogger.java:130) 12:17:34 [SEVERE] at com.webkonsept.minecraft.lagmeter.LagMeterLogger.enable(LagMeterLogger.java:41) 12:17:34 [SEVERE] at com.webkonsept.minecraft.lagmeter.LagMeterLogger.enable(LagMeterLogger.java:49) 12:17:34 [SEVERE] at com.webkonsept.minecraft.lagmeter.LagMeter.onEnable(LagMeter.java:78) 12:17:34 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) 12:17:34 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) 12:17:34 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:386) 12:17:34 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:264) 12:17:34 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:246) 12:17:34 [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:377) 12:17:34 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:364) 12:17:34 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:198) 12:17:34 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:428) 12:17:34 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 12:17:34 [INFO] [LagMeter 1.9.0] Logging is disabled because: IOException opening logfile
-
View User Profile
-
Send Message
Posted Aug 9, 2012192 blows up on my console after a few minutes. Same as the version the other day. 1.31 Server 2008R2 32 gigs ram, Ivy bridge
-
View User Profile
-
Send Message
Posted Aug 8, 2012Fixed. Uploading.
-
View User Profile
-
Send Message
Posted Aug 8, 2012I'm having the same issue as SavageCore. Worked fine before we updated to 1.9.0.
-
View User Profile
-
Send Message
Posted Aug 8, 2012You're probably already aware of this, but http://pastebin.com/J7NbLZAk
-
View User Profile
-
Send Message
Posted Aug 8, 2012You should be able to disable the logs folder feature. Try adding useLogsFolder: false under the already-existing log category. If that doesn't work, try capitalizing the 'u' in 'use'. I can't check right now; I'm on a machine that doesn't have my code on it. I'll fix this later tonight.
-
View User Profile
-
Send Message
Posted Aug 8, 2012I also get null\logs created in root dir instead of /plugins/lagmeter/logs
-
View User Profile
-
Send Message
Posted Aug 7, 2012@TnTBass
The NPE is from the server being unable to create a logfile. As for the inability to create a logfile, you probably need to give the current user you're using for the server the read/write/create permissions for the plugins folder. I'll toy with this some and see if I can find a solution.
-
View User Profile
-
Send Message
Posted Aug 7, 2012My findings as well... on Linux:
2012-08-07 18:07:34 [INFO] [LagMeter 1.9.0] Enabled! Polling every 40 server ticks. Logging to /home/minecraft/bukkit/plugins/LagMeter\logs/lag08-07-2012.log
Maybe it doesn't like the backwards \ before logs? It also created a directory named "null\logs":
[minecraft@minecraft bukkit]# ls -l ... drwxrwxr-x. 2 minecraft minecraft 4096 Aug 7 17:51 null\logs
-
View User Profile
-
Send Message
Posted Aug 7, 2012@TnTBass
Same as for me. But the plugin works just fine ;)
-
View User Profile
-
Send Message
Posted Aug 7, 2012@TheLunarFrog
If the logs folder doesn't exist, it kicks up an error:
http://pastebin.com/dsmRysbw
Using Lagmeter 1.9.0
Edit: Scratch that, created the "logs" folder, still got an error:
http://pastebin.com/KCEUtBBQ
Edit #2:
Found this on my console when I came back later (most likely due to the logs folder issue):
http://pastebin.com/aamHPwUY
None of this is at all a big deal, just wanted to share my findings. :)
-
View User Profile
-
Send Message
Posted Jul 25, 2012@Kemren
I don't think it's implemented in the current version yet.
-
View User Profile
-
Send Message
Posted Jul 25, 2012Ooh, there's an alert thing already? How do I turn it on? =D
-
View User Profile
-
Send Message
Posted Jul 23, 2012@Kemren
The alert thing is already done, but I'm currently trying to juggle this with many, many other things, such as moving house, schooling, other plugins, etc. and I have to fix an exception that's caused every time LagMeter logs.
As for the average thing, we'll see. LagMeter actually has something that could be used for this already, so I might be able to implement that.
-
View User Profile
-
Send Message
Posted Jul 23, 2012Ooh, it might also be cool if the plugin recorded every 5th or 10th cycle into a a log, that way you could check the lagmeter log to see how the server's performance has been. Maybe it could even average them to give you an average "Server Lag" reading that might be low on servers that are lagging way too much?
I know, the update might turn into quite a project if you tried to include that, but i still think it'd be cool.
-
View User Profile
-
Send Message
Posted Jul 22, 2012Could use an update. Not because it's actually malfunctioning, but simply to get that alert thing implemented. I love that idea.
Preferably have it be by permission. So that only people with lagmeter.alert can see the alert, or something like that. =)
-
View User Profile
-
Send Message
Posted Jul 18, 2012@MrPiggy54
What do you mean? If you want a little button that fixes all the server's lag, you're living in a fantasy world. The plugin is as described.
-
View User Profile
-
Send Message
Posted Jul 17, 2012does this clear lag?