Warmroast: Difference between revisions

no edit summary
m (typos)
No edit summary
Line 1:
Warmroast is a Java utility written by sk89q (the author of World Edit and World Guard). It allows you to audit the Java Virtual Machine you want to target (not always Minecraft) and observe what portions of code take the most CPU time (are the most heavy resource wise). To use it, be sure to have a Java 8 development kit on your PC/server.
 
Warmroast a command line utility that will open a hosted server on a specific port listing the portions of code executed between the start of the utility, and the moment you opened the webpage. See: https://github.com/boubou19/warmroast to see how to properly set it up. Here is a corrected version of Warmroast made by boubou_19 to fix some small bugs: [https://github.com/boubou19/warmroast/releases/tag/1.0.12 Warmroast 1.0.12]
[[File:Exemple of lag monitoring with warmroast.png|center|thumb|1499x1499px|Example of lag monitoring with warmroast]]
In the above picture, we can see that 1.7% of the time, the CPU is expending its computational power on emitting energy to GT cable networks. We can also see on the node below that 1.22% of the time, this is happening on world accelerator logic. Beware not to interpret the report too quickly: values displayed here are relative time based on the report duration. You may see portions of code highlighted as heavy code on very small duration, but not see them in large durations. The picture above was made after 5 hours of sampling, so values are kinda stable and it's safe to assume that world accelerators are lagging a bit the server. However, a broad way to judge the extent to which a server is "lagging" is comparing the amount of time taken to tick, and sleep.