SQL Server 2000 performance issues

Status
Not open for further replies.

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
The project I'm working on is using SQL Server 2000 on a 4 processor Compaq server with 1ghz or ram.

We have recently run into a problem with performance. Specifically, any time a large query is run it completely locks out all other queries regardless of there size or complexity. The DB is highly normalized and is only about 2gb in size.

We are supposed to go live on friday but that is serieously becoming less and less of a possibility if we can't solve this, among other problems.

The thing that is the most concerting is that the DB locks up when running only select queries. These queries are not small, but they are still only selects.

I'm going to go google looking for answers, but I wanted to see if anyone here had any ideas as well.

Any help is much appreciated!!!

Mike

[This message was edited by Malyk on January 30, 2002 at 20:51.]
 

Coleman

Ars Legatus Legionis
16,790
Subscriptor
Yeah, need more info to give better answers, however one thing you could try is adding temp tables to handle your results. Your description suggests you are probably doing mega joins, and have a lot of intermediates. The query probably doesn't run that fast anyway, so putting mid-operation results into temp tables shouldn't affect your performance too much. That will reduce the number of locks that you have on your live tables...
-J
 

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
Well, I watched the performance monitor on the server for a little while last night and I noticed some things that were a little disturbing. Even during minimal use the server was doing what I thought was a lot of paging, and a lot of disk access. There would be periods of essentially nothing happening and then there would be a disk usage spike to 100% that would last for 20 or more seconds. Also the processor usage would go from 0 to about 50-75% for long periods of time when not much was going on.

So now I'm not sure whether it's a problem on the server itself, or a problem with the queries we are running...and I'm not sure how to find out.

I think given more time I could track down the problem, but seeing as this has only really cropped up recently I'm really at a loss. I definately need more experience using the tools provided with SQL Server but Ive only been using SQL Server for a little over 7 months now...and haven't really explored the tools at all.

Mike
 
"Locks up" is a too generic a term.

You need to...
...check the locks types/counts
...check the machines stats (page faults, mem, etc)
...check the protocol used (named pipes, tcp/ip, etc)
...check your service pack (SP1, SP2)
...the amount of memory reserved for SQL

OK, I just read you did check the machine stats and saw some alarming symptoms. Make sure you check everything else to get a big picture before you call MS for support.
 
Status
Not open for further replies.