Solved

Sudden occurance of process locks...what to do?

Posted on 2009-07-09
3
308 Views
Last Modified: 2012-08-13
USING:  SQL SERVER 2000

Hi, we noticed the other day that we are getting a lot of process locks on the database coming mainly from our reporting application, cognos.  Performance is generally acceptable and not hampered.  However, the last few days users have been complaining about the slowness of their reports coming back in cognos.

Upon investigation, we are seeing that SQL Server has locks on majority of the requests coming through.  The locks are as follows:

PAGEIOLATCH_SH
LATCH_EX
CXPACKET

The wait resource varies to being blank, saying PARALLEL_PAGE_SUPPLIER followed by a number in brakets or just a wierd number that says something like 5:3:2130532 ....

In reading up on these locks I know they are lightweight locks and deal with network performance, parallelism, and i/o functions... but I'm not really sure what to do about it?

Is this something wrong with SQL that is causing these bottlenecks or is it the cognos application or is it our network?  Is there something in SQL I can do to remedy this or would the networking people need to get involved?

Thanks!
0
Comment
Question by:Roxanne25
3 Comments
 
LVL 22

Expert Comment

by:8080_Diver
ID: 24815148
Can you add one or more covering indexes on the tables that COGNOS is using for the reports?
If you can do that, you may be able to decrease the database contention that is developing.
0
 

Author Comment

by:Roxanne25
ID: 24815350
No, I had made a post on here a few weeks ago about us having too many indexes! :)  We have some tables that have over 21 indexes on them.

I'm more interested in what is going on here and what exactly these locks are telling me.
0
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 500 total points
ID: 24836600
<<Is this something wrong with SQL that is causing these bottlenecks or is it the cognos application or is it our network?  Is there something in SQL I can do to remedy this or would the networking people need to get involved?>>
At first stance, it looks like you have a blocking lock problem related to either poor caching or subsystem unability to respond to the engine request.  No need to involve your network people before you inquire on the blocking.

Please double check the following:

> Look at your procedure cache structure.  See the object count and see if you don't have inner memory pressure
> Look at your swapping RAM/IO.
> Look for your IO contention.
> Look if there not any deadlocks

HTH
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now