Diagnostics: locks, waits, deadlocks and plan changes
The Diagnostics tab (agent 0.5 or newer) answers "why is it slow right now?":
- Blocked right now: who is waiting for a lock, who holds it, for how long, and whether the holder is idle inside an open transaction (the usual culprit). Each row has the statement to end the blocker if you decide to.
- Blocking over 24 hours and where time goes waiting: lock and wait history, so you can see whether it's new.
- Plan changes: with
--explain, SQLNirvana keeps each query's plan and flags the ones whose plan changed in the last 7 days. A changed plan is the most common cause of a query that suddenly got slower; the Queries tab marks them too. - Slowest executions: the slowest real run of each statement over 100 ms. Values are replaced by
?on the agent, before anything leaves your server. - Deadlocks (MySQL) and the error log (MySQL 8.0.22+).
Schema checks
The Schema tab finds auto-increment columns and sequences close to their limit, duplicate and redundant indexes, foreign keys without an index (PostgreSQL) and tables still on utf8mb3, each with the SQL to fix it. On PostgreSQL the VACUUM advisor shows dead rows, freeze age against the wraparound limit and stale statistics per table, with per-table settings.
Upgrade assistant
The Upgrade tab checks a MySQL 8.0 → 8.4 or PostgreSQL → 17/18 upgrade against this server: accounts that would stop working, removed settings, changed defaults, extensions, replication slots. It lists the steps and how to roll back.