performance-tuning

performance-tuning is a skill for Claude Code from Teddy563/mcwrench. It costs 191 tokens per session (934 once invoked), scanned A, original, MIT.

A Minecraft server troubleshooting guide for diagnosing lag, low ticks per second, high milliseconds per tick, garbage-collection pauses, and out-of-memory crashes. Ticks are the server's regular update cycles, so slow ticks can make gameplay stutter.

In plain words
What is it for?
Use it to inspect server health and profiles, investigate lag during gameplay, tune heap size and JVM settings, and troubleshoot memory pressure.
Why use it?
It encourages measuring the actual cause with Spark before changing memory settings or Java options, helping distinguish workload, memory, garbage collection, and disk problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mcwrench plugin — 13 skills, 19 commands, 2 agents shipped together

Good fit Use it to inspect server health and profiles, investigate lag during gameplay, tune heap size and JVM settings, and troubleshoot memory pressure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/teddy563/mcwrench/performance-tuning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Teddy563/mcwrench --skill performance-tuning
Clone the repo
git clone --depth 1 https://github.com/Teddy563/mcwrench

Made for: Claude Code.

Or install mcwrench, the plugin that ships this one along with the rest of its 13 skills, 19 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for performance-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/teddy563/mcwrench/performance-tuning/github.svg)](https://agentmods.dev/skills/teddy563/mcwrench/performance-tuning)
Your own site
<a href="https://agentmods.dev/skills/teddy563/mcwrench/performance-tuning"><img src="https://agentmods.dev/badge/skills/teddy563/mcwrench/performance-tuning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-tuning

Your own site · 80×15
<a href="https://agentmods.dev/skills/teddy563/mcwrench/performance-tuning"><img src="https://agentmods.dev/badge/skills/teddy563/mcwrench/performance-tuning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 191 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 934 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00191 $0.00934
Opus 5.5 $0.00076 $0.00374
Sonnet 5.5 $0.00038 $0.00187
Haiku 4.5 $0.00019 $0.00093

Measured 2mo ago against content hash 28f81e136f20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-tuning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/performance-tuning/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Performance Tuning

Diagnose first, tune second. Never hand someone a wall of flags without measuring.

Step 1 — Measure with Spark

Spark (spark.lucko.me) is the modern profiler (replaces Timings; Paper bundles it). See references/spark-cheatsheet.md. The minimum diagnostic loop:

  1. /spark tps and /spark health — is it a TPS problem, an MSPT spike problem, or memory?
  2. /spark profiler start --timeout 300 during the lag, then read the uploaded flame graph.
  3. For memory pressure / GC churn: /spark profiler start --alloc, /spark gc, /spark heapsummary.

Identify whether the cost is the main thread (ticking: entities, hoppers, redstone, chunk gen), GC, or I/O (world saves, plugin storage on slow disk).

Step 2 — Heap & JVM flags

See references/aikars-flags.md for the full verified flag set and sizing rules. Key points:

  • Xms == Xmx. Leave 1–1.5 GB headroom for the OS + JVM native memory beyond the heap.
  • Aikar's flags are G1GC-tuned and remain the proven default on the official PaperMC page.
  • Java 25 nuance: Paper 26.1+ requires Java 25. Hosting/community guidance (e.g. WinterNode — NOT PaperMC's own docs) recommends not pairing Aikar's G1 flags with Java 25's Generational ZGC; choose one GC. Present Aikar's/G1 as the safe default and ZGC as an alternative to benchmark, and never mix the two flag sets.
  • On memory-capped containers (Pterodactyl/Pelican), -XX:+AlwaysPreTouch can cause "Cannot allocate memory" at boot — drop it there.

Step 3 — Config tuning (biggest wins first)

In observed frequency order:

  1. view-distance / simulation-distance (server.properties, spigot.yml, per-world paper-world.yml). The lower of the configured values wins per world. Typical sane values: view 6–10, simulation 4–6. Anarchy/huge servers go lower.
  2. Mob farms / entity load — spigot.yml: entity-activation-range, mob-spawn-range, Paper per-player mob spawns; cap with entity-per-chunk-save-limit for experience_orb, arrow, ender_pearl, item.
  3. Hoppers — paper-world.yml hopper tuning / transfer-cooldown; reduce move-event overhead on hopper-heavy economies.
  4. Chunk storms — cap player-max-chunk-load-rate (~100.0) for exploration-heavy servers.
  5. Redstone clocks / lag machines — find them in the Spark profile and address the build.
  6. Sync I/O — move LuckPerms/world storage off slow disks; stagger autosaves.

Read the full file on GitHub · 67 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 67 lines · 191 tokens per session scan A 28f81e136f20

Subscribe to this mod's changes

performance-tuning is a skill published in the GitHub repository Teddy563/mcwrench (1 stars, last pushed 4d ago), licensed MIT. It adds 191 tokens to every session and 934 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

performance-tuning compared with skills from other repositories

performance-tuning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performance-tuningTeddy563/mcwrenchSkill14d agoMITA191Claude Code
code-reviewkambleakash0/agent-skillsSkill109d agoMITA68Claude Code, Codex
gamedev-perf-profileFluxonLab/SkillrySkill83d agononeA29Claude Code
jahro-loggingLogiiiii/unity-agent-skillsSkill326d agoMITA111Claude Code, Codex
jahro-migrationLogiiiii/unity-agent-skillsSkill326d agoMITA74Claude Code, Codex
jahro-troubleshootingLogiiiii/unity-agent-skillsSkill326d agoMITA65Claude Code, Codex
jahro-setupLogiiiii/unity-agent-skillsSkill326d agoMITA69Claude Code, Codex