Irgendwas wie: Java Profiler - JProfiler (Kenn nur JProfiler.) und wie gesagt.. Der Mod von Player is ganz gut um sowas rauszufinden.
Alles anzeigen
Sampler is a small mod designed to obtain performance related information from the game at minimal overhead.
Download 1.60.1 (MC 1.7.10): Link
Download 1.62.1 (MC 1.8.9): Link
Download 1.63.1 (MC 1.9): Link
Download 1.65.1 (MC 1.9.4): Link
Download 1.69.3 (MC 1.10): Link
Download 1.72.1 (MC 1.11): Link
Download 1.73 (MC 1.12): Link
It provides the 2 commands /sampler and /csampler. They are mostly equivalent, the latter just runs the task on the client instead of the server. Running them without parameters gives a list of available subcommands. Both are to be followed with a subcommand (e.g. /sampler tps) and parameters as applicable (e.g. /sampler counts 0).
Sampler can profile the game over a time (between start and stop), at start-up and during ticks with lag spikes (trigger feature). The export subcommand generates a (mostly) VisualVM compatible .nps snapshot for manual analysis. The profiling sampler does is much less overhead compared to other solutions. The typical sequence to acquire a cpu usage profile (nps) is: /sampler start, wait a few minutes, /sampler stop, /sampler export <filename>.
Sampler also detects when the server thread is stalled for a significant time, i.e. probably stuck in an infinite loop or a dead lock. In this case it'll create a report in the stall-reports directory containing stack traces for all threads.
Utility subcommands include:
- tps: Show statistics about the tick time. tps is a frequency, period is 1 / frequency, the period should ideally be always 50 ms. Sampler's measurement includes the full tick time including wait times. The dedicated server gui, Forge and others provide a tps command which lacks the time spent in the often expensive server tick end handlers. The statistical information (average, min and max) in the tps output refers to the past ~1.7 minutes.
- counts: Show counts of dimensions, chunks, ticking tile entities, non-ticking tile entities etc. Call it with the dimension id (0 = overworld, -1 = nether etc.) for more detailed tile entity counts.
- memory: Show information about the memory used and available. It also displays the time spent in GC which shouldn't be too much. Heap, non heap and pool direct have to be added together to get an estimate of the total MC memory consumption, excluding some JVM overhead and OpenGL memory.
- heapdump <filename> [--compress]: Create a heap dump for memory leak analysis in Eclipse MAT or VisualVM. Compress will gzip the output file.
- gc: Force a jvm garbage collection run, causes a lag spike. This will allow you to see the actual/net heap usage in /sampler memory.
- find <class> [<dimId>] [--ticking] [--unloaded]: Find entities or tile entities of a specific (super)class, also in unloaded areas.
Overview - FastCraft - Mods - Projects - Minecraft CurseForge könnte auch Helfen.

