SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Trace using Tuning template turn server unavailable


Trace using Tuning template turn server unavailable

Author
Message
lluaces
lluaces
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 12
I was trying to gather traces to do a database tuning.

Using "Tuning" template in SQL Profiler I started a trace to gather events for 1 hour. Data gathered was stored in a table of a Debug database.

However, after several minutes the server went to it's knees and users started complaining.

I stopped the trace and the server went back to normal.

I understand that running Tuning Advisor is resource-demanding and should only be run off peak hours, but should traces also be avoided?

Please help!
Adiga
Adiga
SSCertifiable
SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)SSCertifiable (5.8K reputation)

Group: General Forum Members
Points: 5834 Visits: 21012
It is not recommended to run Profiler trace on a Production instance. Instead run a server side trace using as appropriate. An example here

Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)SSC Guru (93K reputation)

Group: General Forum Members
Points: 93461 Visits: 33008
You should absolutely not run profiler on a production system as was mentioned. In addition, you should output your trace to file, not a database and especially not a database on the same server. You can use fn_trace_gettable to read the files and input them into a table.

Here is an excellent book on Profiler. Brad's the man.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
lluaces
lluaces
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 12
Thank you Pradeep and Grant for the replies and tips.

I was not aware that Profiler stages the trace on C: drive. In addition, to ad injury to insult, I found that a daily C: drive defrag was scheduled for that same time on that server! I will create a server side trace instead. And of course, have the defrag rescheduled.

Thanks!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search