OpenMods / OpenData

MIT License
32 stars 16 forks source link

[Suggestion] Give openEye the ability to start profiling #35

Closed mcenderdragon closed 6 years ago

mcenderdragon commented 6 years ago

OpenEye is a realy good tool as it give the devs crashes even if the players dont. Lately we had issues on our server: the TPS suddenly drops under 1 for about 10 minuits and before we can get visual VM running it is gone.

I would suggest to add a config option to start profiling as soon as the server starts to print the "Skipped x ticks" line. I am sure this would help alot of people.

boq commented 6 years ago

How about using Sampler? It can be activated with command.

mcenderdragon commented 6 years ago

yeah, the /debug start/stop is similar, the problem is, we are not fast enough to start this while it is happening. Or is this possebile by using the "event-based" command triggering from sampler ?

boq commented 6 years ago

Seems like /sampler trigger ticktime <ms> may be exactly that.