LagMonitor
LagMonitor
Description
Gives you the possibility to monitor your server performance. This plugin is based on the powerful tools VisualVM and Java Mission Control, both provided by Oracle. This plugin gives you the possibility to use the features provided by these tools also in Minecraft itself. This might be useful for server owners/administrators who cannot use the tools.
Furthermore it especially made for Minecraft itself. So you can also check your TPS (Ticks per seconds), player ping, server timings and so on.
Notice: This plugin is in beta. So improvements and bug fixes have to be made. Please report bugs and make suggestions.
Features
- Player ping
- Access to Stacktraces of running threads
- Shows your ticks per second
- Shows system performance usage
- Visual graph ingame
- Ingame timings viewer
- Sample CPU usage
- Analyze RAM usage
- Access to Java environment variables (mbeans)
- Free
- Open Source
Permissions
- lagmonitor.command.ping
- lagmonitor.command.stacktrace
- lagmonitor.command.thread
- lagmonitor.command.tps
- lagmonitor.command.mbean
- lagmonitor.command.system
- lagmonitor.command.timing
- lagmonitor.command.monitor
- lagmonitor.command.graph
- lagmonitor.command.environment
Commands
- /ping - Gets your server ping
- /ping <player> - Gets the ping of the selected player
- /stacktrace - Gets the execution stacktrace of the current thread
- /stacktrace <threadName> - Gets the execution stacktrace of selected thread
- /thread - Outputs all running threads with their current state
- /tps - Outputs the current tps
- /mbean - List all available mbeans (java environment information, JMX)
- /mbean <beanName> - List all available attributes of this mbean
- /mbean <beanName> <attribute> - Outputs the value of this attribute
- /system - Gives you some general information about your server like free ram, number of running threads or cpu usage
- /timing - Outputs your server timings ingame
- /monitor - Monitors the CPU usage of methods
- /graph [cpu/heap/threads] - Gives you visual graph about your server (currently only the heap usage)
Images
Timing command
<</size>>
CPU Graph (blue=process, yellow=system) - Process load
Stacktrace and Threads command
Ping Command
Thread Sampler (Monitor command)
System command
Environment command
Source code
You don't have to decompile the plugin. You can find there the source code with comments and building utilities.
LagMonitor is open source and hosted on the free platform GitHub; feel free to fork, star, or contribute by making pull requests and opening issues.
All Command of this plugin not work, just don't say unkwon command.
In reply to mckite25:
Help!
When I enter "/heap", What is the meaning of "[B" and "[C"
My server memory always eat,so my server will be lower and lower,
at least,server crash.
Help![B is too big!!
[B is a byte array and [C is a char array. This could be total normal that these values are very high because they are often used.
Thanks,but my server still eats my Heap.
Not sure if I glossed over this or what, but definitely going to recommend people who are interested in the "MassiveLag" plugin to use this plugin instead. Definitely looking forward to trying this out on my server, and see if I get any more data that might be missed from timings.
Useful plugin, thanks :)
@zoredache
I'll look into it.
Is there some method to temporarily disable the pagination on the console so I can use a command and get a full dump of all the pages at once into the log file?
When I do
/timing
from the console it is showing that I have 68 pages worth of stuff to look at, but spamming/lagpage next
a bajillion times just seems annoying.Alternatively is there a way to run the various commands and send the output directly to a file instead of the logs?
@XxthedarkkingxX
Then you could try Spigot. If you don't know how to build it, I could help you.
@games647
yea i figured that after the fact. it put in a bunch of new files ive never seen, also not alllll craftbukkit plugins work for paperspigot, i ran it noticed a couple errors stoped showing up but new ones popped up for plugins previously working
@XxthedarkkingxX
They are equal. Only the name is different.
@games647
paperclip749.jar or paperclip.jar???
@XxthedarkkingxX
yes
@games647
so ill be safe downloading that file, putting it into my existing server file, deleting craftbukkit.jar and changing them line of code in my start.bat file to say paperspigot.jar and clicking run and all should work well????
@XxthedarkkingxX
paperclip is like BuildTools, but you can use it as an replacement for the craftbukkit.jar file. If start it up, it will download it and applies the patches. The results will be saved into the /cache folder. After it finished it will startup the server jar from there, but will use the location of your paperclip file as working directory. So you don't need to change the folder structure. Just replace the craftbukkit file.
So you don't download the server. You are just downloading the builder for it.
talk about loophopels!!! so how is paper spigot different from getspigot.org if your downloading the whole file??????
thank you no one has explained it like that, that makes sense
@XxthedarkkingxX
That's why they only make patches now. These patch-files are allowed because they only say line X was modified to Y. When build spigot using BuildTools you download the original mojang server and then apply the patches to it.
So in summary, you are not allowed to give downloads links to the full server.
while i understand that. it is still there. whats the difference between that site and the paper spigot site or the actual way to get a spigot/crafbukkit jar thru the build tools or whatever it is
as far as i understand it, if it isnt minecraft realms, they all fall into the copyright issues since the takedown crap happened
hoest question really?
ill look into the paper spigot tonight
@XxthedarkkingxX
Just use the paperclip.jar as craftbukkit.jar.
I know this website, but because of copyright issues with Mojang it's not allowed. Therefore this website isn't official and can be unsecure.