Advertisement

05.08.2007 at 07:26AM PDT, ID: 22559130
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

Unidentified blocking problem; server configuration? (SQL 2000, SP3)

Asked by FSIFM in MS SQL Server

Tags: , ,

One of our clients has been experiencing intermittent periods of slowness using our application, and we have identified a number of processes in the SYSPROCESSES table which report a blocking process. We have been querying the SYSPROCESSES table at 1 minute intervals, and recording the executing SQL statement of a blocking process via the fn_get_sql(sql_handle) function as follows:

DECLARE @HANDLE BINARY(20)
SET @HANDLE = SELECT [SQL_HANDLE] FROM MASTER..SYSPROCESSES WHERE SPID = {Blocking SPID}
SELECT [TEXT] FROM ::FN_GET_SQL(@HANDLE)

Note: We have only been recording the SQL statement of the blocking process where the COUNT(BLOCKED) > 10 and WAITTIME > 10000 MS

In the first instance, we had hoped to identify a single statement which was causing a Row, Page or Tablelock forcing other SPIDs to be blocked during its execution, but have recorded a range of statements including UPDATEs, INSERTs and SELECTs, some of which include the NOLOCK query optimiser hint? In all of the aforementioned cases the blocks are never permanently held and can last anything from our 10 second threshold up to 7 minutes!

Performance Monitor hasn't highlighted any obvious Processor, Physical Disk or Memory bottlenecks on the SQL Server at the time of the fault, and the server is subject to a nightly index rebuild.

Whilst it's not ideal, several of our applications key 'large tables' include an INSERT, UPDATE, DELETE TRIGGER which inserts the ColumnName, OldValue and NewValue into a separate table for manipulation; Subject to the width of the table, this trigger may insert up to 97 rows. A simple self-update to this table via SQL Query Analyser can take up to 30 seconds until it has been cached, thereafter it takes approximately 2 seconds. My feeling is that common statements are falling out of the SYSCACHEOBJECTS table and forcing other statements to wait during their recompilation... Possibly because of Parallelism, which is set to 0?

We don't pretend to be MSSQL experts, but have been unable to repeat the problem in our environment or identify bottlenecks during the fault; therefore we believe the clients SQL Server Configuration to be at fault and would appreciate your thoughts, suggestions, experiences and opinions.

Server Specification as follows:

Microsoft SQL Server 2000 Enterprise Edition SP3 w/ Cumulative Patch MS03-031 (8.00.818), clustered on 2 x Compaq ProLiant DL580 G2's:
      
Microsoft Windows 2000 Advanced Server 5.0.2195 Service Pack 4 Build 2195
8 x x86 Family 15 Model 2 Stepping 5 GenuineIntel ~2799 Mhz
4GB RAM

SQL Server is set to use memory dynamically, Minimum (MB): 0, Maximum (MB): 3808, Use Processors: [0-7], Boost SQL Server Priority: 0, Max Worker Threads: 255, Parallelism: 0, Parallelism Threshold: 5.

Thanks and Kind Regards,

FSI FM
Start Free Trial
 
Loading Advertisement...
 
[+][-]05.08.2007 at 07:37AM PDT, ID: 19050138

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2007 at 08:18AM PDT, ID: 19050521

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2007 at 05:57AM PDT, ID: 19056504

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: microsoft, sql, worker
Sign Up Now!
Solution Provided By: ptjcb
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.01.2008 at 10:57AM PDT, ID: 22361867

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.05.2008 at 09:25PM PDT, ID: 22405872

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32