I have been trying to fix a production issue, where some of the client transaction are timing out.
The client has a requirement that a transaction must finish with in 2 seconds other wise it is considered as a time out.
This is a simple insert in a table which is taking time.
I have not yet moved to perfmon (disk queue etc) to collect the counters. I will be doing that tomorrow.
Till now, I have just Changed the fill factor to 80% suspecting page spits might be causing this.
When I try the same inserts in the Test environment it finishes in avg 50Milliseconds only where as in production they take some time as much as 1-4 seconds which is very high.
I am now going to change the clustered index key from identity to some other column to see if the issue might be due to a busy hotspot.
On a side note, I saw there had been too much of blocking on the server through out the day. I have captured the server activity on trace.
Captured all transaction which took more than a second. Also captured the tempdb sorts and Blocked process report, just in case you need this data too.
Any other quick advice.
Sql server 2008 R2
Windows 2008