OpenMods / OpenData

MIT License
32 stars 16 forks source link

Suggestion - Log freezes and micro lags #18

Open Slind14 opened 10 years ago

Slind14 commented 10 years ago

Hey,

after a big modpack creator (ftb, tekkit) most mods get quite stable and the pack overall, too. But in most cases only crashes get fixed and freezes and micro lags get ignored as there is no "crash-report" that can be reported easily.

I would like to suggest adding a watchdog that notices if the client/server freezes for +2 or 5 seconds and reports a thread dump (in 95% it is the server/client thread). Further more it would be great if this watch dog also monitors the update-time and if it drops drastically for just a second -> create a thread dump and report it. This way we would get data showing us which parts of mods cause lag spikes or even freeze the game.

I have been in many situations reporting server freezes and lag spikes even with valid thread dumps but got more or less ignored because I was the only one reporting it and could not give a "accepted" report.

Please let me know what you think. I know it is possible as we use a bukkit plugin that does this just for us, but we don't have the "acceptance" as openeye.

ghost commented 9 years ago

Another somewhat related idea: it would be awesome if it could detect memory leaks.. and if it could be mod-specific, all the more better.