Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
An instance of SQL Server performs slowly when you use SQL Profiler to perform a client-side trace of the events in the instance
Article ID: 929728 - View products that this article applies to.
Consider the following scenario:
When this problem occurs, you notice the following symptoms if you query the master.dbo.sysprocesses system table in the instance of SQL Server:
When you run SQL Profiler against an instance of SQL Server 2000 or of SQL Server 2005, each active SPID of the instance requires an exclusive latch (LATCH_EX) to write the event to SQL Profiler. The SPID writes the event to the local memory buffer first. Then, the event is transferred to SQL Profiler. If the local memory buffer is full, the SPID discards the event. After the events in the local memory buffer are transferred to SQL Profiler, the SPID can write new events to the local memory buffer. If other SPIDs are waiting to write events to SQL Profiler, these SPIDs wait in a queue.
Because SQL Profiler is a process that is separate from the SQL Server process, transferring each event to SQL Profiler takes some time. If you run SQL Profiler on a different computer, this process takes longer. This process takes longer because of network latency and because of the performance of the computer that is running SQL Profiler. Therefore, the instance of SQL Server performs slowly.
To work around this problem, do not use SQL Profiler to perform a client-side trace of the events in the instance of SQL Server. Instead, use system stored procedures to perform a server-side trace of the events.
You can use the following system stored procedures:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
You can use the PSSDIAG data collection utility to collect the trace data files. For more information about the PSSDIAG data collection utility, click the following article number to view the article in the Microsoft Knowledge Base:
830232For more information about the waittype column in SQL Server 2000 and in SQL Server 2005, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/830232/ )PSSDIAG data collection utility
(http://support.microsoft.com/kb/822101/ )Description of the waittype and lastwaittype columns in the master.dbo.sysprocesses table in SQL Server 2000 and SQL Server 2005
Article ID: 929728 - Last Review: September 30, 2008 - Revision: 3.0