I restarted my dedicated server this morning. as a result my SQL Server was very responsive. I could query 1.500.000 records table, results returns within couple secs.
after a while I see my CPU started growing, and it's not so fast anymore 30-50 secs for the same queries.
I checked sp_who2, no blocking transactions. I rebuilt the index. No changes still slow
What is the best way to troubleshoot this kind of behaviour? How to improve performance?
Here is my task manager
My number one recommendation for monitoring your SQL Server performance metrics is SolarWinds Database Performance Analyzer (DPA). DPA enables cross-platform database tuning across a handful of SQL Servers including Oracle, Azure SQL Database, Microsoft SQL Server, MySQL, and PostgreSQL.
The Performance Dashboard in SQL Server Management Studio helps to quickly identify whether there is any current performance bottleneck in SQL Server.
I'm sniffing a memory pressure problem. The page buffer may be full or some other memory constraint get's hit. Start with monitoring essential system performance counters like:
Capture them from the moment you restart the machine and then plot it with excel or some other graphing tool. Add some SQL counters to the mix. There's many resources online if you search for "sql server performance monitor coutners". Try the perf counters mentioned here: http://www.sql-server-performance.com/2007/performance-monitor-general/
It is essential to observe the progress in time and correlate it with other indicators and the percieved performance.
Another thing to look for would be plan recompilations. Check for SP:Recompile
events in Profiler trace and see if any correlate with performance degradation. - ref https://support.microsoft.com/en-us/kb/243586
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With