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 Dec 13, 2012@TheLunarFrog
Huzzah! (sorry to make you repeat - seriously the last two paragraphs of your post were not visible to me - seemed to end at "if you like.")
-
View User Profile
-
Send Message
Posted Dec 13, 2012@ronfkingswanson As said in the previous post:
Separate the commands with a semicolon (;) and the commands will run in the order in which you specify them, i.e.: ConsoleCommand: /lag;/mem;/lagmeter
or
ConsoleCommand: /butcher -a;/stoplag;/broadcast Automatically halting server-intensive activity due to high lag detected.;/lmp
So, you just configure it as normal, but just add more commands after the first, with a semicolon separating them. Don't add a space after the semicolon, but if the command contains a space, it's fine.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@TheLunarFrog
Yes, it had beautiful formatting up thru 1.11.0. thanks for pushing a new build so quickly, but I just tried #73 and I'm still not seeing color, though the funky codes are gone, so it's at least readable (just doesn't pop out as easily amongst all the other console spam)
if I read that right, you added the feature of chaining commands? (is that also in build 73?) if so, how is it done?
-
View User Profile
-
Send Message
Posted Dec 13, 2012@ha11oga11o
@ronfkingswanson
I've pushed some code that should fix these issues. On my local server, it works with such code, but I'd like to make sure of something: did the plugin output to console in colour before? I don't actually remember, mainly because I don't actually really use the plugin, I just continue it for users who like it.
Edit:
@ronfkingswanson
Feature added. Will push to GitHub, and you can pick up a snapshot build off my Jenkins if you like.
Separate the commands with a semicolon (;) and the commands will run in the order in which you specify them, i.e.: ConsoleCommand: /lag;/mem;/lagmeter
or
ConsoleCommand: /butcher -a;/stoplag;/broadcast Automatically halting server-intensive activity due to high lag detected.;/lmp
-
View User Profile
-
Send Message
Posted Dec 13, 2012@ronfkingswanson
I can definitely implement this! Thanks for the suggestion.
@ronfkingswanson
@ha11oga11o
I will look into this over the weekend. As a clarification, did it output in colour before, or did it just not show the colour codes like it does now?
@ronfkingswanson
This has already been suggested, and I have an idea on how to do it. Actually, I have several ideas on how to do it. It's definitely possible, and it'll probably be done over the weekend.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@TheLunarFrog
just tried build #72 from Jenkins - console coloring bug is not fixed for me :-(
-
View User Profile
-
Send Message
Posted Dec 13, 2012One last question (might not actually be a feature request) - Is it possible to execute multiple console commands at once? I'm in love with the automatic firing of a command when TPS or memory drops below a threshold - but I have multiple things I want to do (mob clearing, output stats, etc) when that threshold is hit. Is there a special syntax in bukkit to chain multiple commands on one line?
If not, is there some way we could chain commands on that single line in settings.yml?
-
View User Profile
-
Send Message
Posted Dec 12, 2012Still same issue in console;
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Entities in world "Jugoslavia": 11178
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Entities in world "Jugoslavia_nether": 121
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Entities in world "Jugoslavia_the_end": 11
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Entities in world "Yugoslavia": 74
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Entities in world "Creative": 205
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Total entities: 11589
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Chunks in world "Jugoslavia": 4403
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Chunks in world "Jugoslavia_nether": 625
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Chunks in world "Jugoslavia_the_end": 49
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Chunks in world "Yugoslavia": 697
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Chunks in world "Creative": 674
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§6Total chunks loaded on the server: 6448
08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§f[§a
####§f§f] 20.0 TPS08:36:13 [INFO] [LagMeter 1.12.0-SNAPSHOT] §a§f[§a
###§f_§f] 1482.0MB/2031.0MB (72%) freelatesr dev build: Build #72 (Dec 12, 2012 1:01:45 PM)
Im on Ubuntu 12.04 64bit server if that means something because of color coding.
Cheers!
-
View User Profile
-
Send Message
Posted Dec 12, 2012@ronfkingswanson
Already been suggested and he said he will look into it :)
-
View User Profile
-
Send Message
Posted Dec 12, 2012Since you've been so amazingly responsive with my requests thus far, I will make one more: the only thing that the Essentials output has that Lagmeter doesn't is "server uptime". This, combined with the TPS and players makes it easy for me to glance at the console every now and then and quickly judge the server health (I have "/lmp" periodically executed by stormannounce, I'm that lazy...)
Maybe the command to also show uptime could be "/lmpu"?
-
View User Profile
-
Send Message
Posted Dec 12, 2012@LegndPowerdNube
@zSwayz
As nice as that feature would be, that's an impossible request. Bukkit does not keep track of memory usage between each plugin, and I can't inspect each plugin to do that, due to restrictions with Bukkit. Sorry.
-
View User Profile
-
Send Message
Posted Dec 12, 2012@LegndPowerdNube
Is that even possible? I'd love to find out what plugins have memory leaks. Having to disable plugins 1 by 1 is terribly annoying..
-
View User Profile
-
Send Message
Posted Dec 12, 2012You should have it tell you which plugins are using the most resources and what not. It would be very easy to then figure out which plugins are causing server lag instead of going one by one!
-
View User Profile
-
Send Message
Posted Dec 12, 2012@ha11oga11o
Will be fixed in a Jenkins build later today. Thanks for reporting that.
-
View User Profile
-
Send Message
Posted Dec 12, 2012For me,
LagMeter 1.11.1
Does not have colored bar and font anymore:/
It looks like this now :(
lm
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Entities in world "Jugoslavia": 10941
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Entities in world "Jugoslavia_nether": 0
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Entities in world "Jugoslavia_the_end": 64
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Entities in world "Yugoslavia": 74
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Entities in world "Creative": 182
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Total entities: 11261
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Chunks in world "Jugoslavia": 4428
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Chunks in world "Jugoslavia_nether": 0
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Chunks in world "Jugoslavia_the_end": 169
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Chunks in world "Yugoslavia": 697
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Chunks in world "Creative": 711
12:23:44 [INFO] [LagMeter 1.11.1] §a§6Total chunks loaded on the server: 6005
12:23:44 [INFO] [LagMeter 1.11.1] §a§f[§a
####§f§f] 20.0 TPS12:23:44 [INFO] [LagMeter 1.11.1] §a§f[§a
##§f__§f] 1397.0MB/2031.0MB (68%) free
-
View User Profile
-
Send Message
Posted Dec 10, 2012@TheLunarFrog
LagMeter 1.11.1 is now awaiting approval.
You can view the changelog here: http://dev.bukkit.org/server-mods/lagmeter/pages/changelog/
-
View User Profile
-
Send Message
Posted Dec 10, 2012@joehot200
@Melekaiah
@aazlm I have completely fixed the lag and memory watchers in 1.11.1 (a simple typo caused the bug). All of your needs will be met with this. :)
@ronfkingswanson
Bug fixed in 1.11.1.
-
View User Profile
-
Send Message
Posted Dec 10, 2012@ronfkingswanson
Ah. Ok, thanks for posting your stacktrace. I will fix that shortly!
Edit: Your configuration should still reload regardless, but I will fix the error (it's stuck on sending you a message about it). Edit 2: Works in-game, not console. Whee, time to restructure the entire message sending system I have.
-
View User Profile
-
Send Message
Posted Dec 10, 2012@aazlm
It already has a function for this, but I think I coded it wrong, not really sure if I ever finished testing it, to be honest.
-
View User Profile
-
Send Message
Posted Dec 10, 2012thankyou! this is a wonderful plugin.
I think the auto server restart would have been a wonderful idea if it could work. Either by time of day, or by extended low memmory usage.
Id also like it to be able to throw warnings to OP/selected people via a permission. wait doesnt it do this already?
eg. if TPS is below 20. send warning.