Jet Profiler is a great tool to pinpoint performance problems in MySQL databases.
Let's say I'm having problems with a slow database. First, I connect to the database server and start recording. Jet Profiler will instantly collect performance statistics which I can track on-screen in real-time. The chart shows me that the load is high, as there are a lot of threads running queries. On the lower part of the screen, I'm able to see the top queries. These are the most observed queries in the database, which are causing the high load. Actually being able to see the queries in a top list allows me to focus on the biggest problems. Clicking on a query brings up a query execution plan and a rating. This query seems to do full table scans, no wonder it's slow.
If there are spikes in the load, I can easily zoom in on them to get query top lists for that time frame. This allows me to quickly drill down and discover suspicious queries.
I can also see the top users, which is especially useful on multi-user servers. Or I can have a look at what tables are being used the most. Sometimes this gives me a faster answer than just looking at the queries.
There's a lot more that Jet Profiler can do. Download Jet Profiler and try it yourself.
|
|
Jet Profiler eignet sich hervorragend zum Auffinden von Performance-Problemen in MySQL-Datenbanken.
Nehmen wir an, es gibt Probleme mit einer langsamen Datenbank. Zuerst stelle ich eine Verbindung zum Datenbank-Server her. Jet Profiler beginnt sofort mit dem Sammeln von Daten zur Leistungsstatistik, die ich direkt am Bildschirm verfolgen kann. Das Diagramm zeigt eine hohe Auslastung an, weil viele Threads mit Abfragen gleichzeitig laufen. Hier unten kann ich die häufigsten Queries sehen, welche die hohe Last verursachen. Die Liste ist nach Wichtigkeit sortiert. Durch Klicken auf eine Query, wird ein Ausführungsplan und eine Rangfolge angezeigt. Diese Query scheint einen kompletten Tablescan auszuführen.
Spitzenauslastungen im Graphen kann ich vergrößern, um eine Liste der häufigsten Queries für diesen Zeitraum zu erhalten. So ist schnell eine Detailansicht mit verdächtigen Queries möglich.
Und hier sehe ich die häufigsten Benutzer, was bei Servern mit vielen Benutzern hilfreich ist. Und hier die häufigsten Tabellen. Manchmal komme ich einem Problem damit schneller auf den Grund, als wenn ich mir nur die Queries anschaue.
Jet Profiler kann noch viel mehr. Laden Sie sich Jet Profiler herunter und überzeugen Sie sich selbst. |