Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Deadlock & Slowness in SQL 2005

Author  Topic 

harin25
Starting Member

3 Posts

Posted - 2009-10-12 : 07:19:36
Hi,

We recently migrated to SQL Server 2005 with out client and our application is

web-based using Java technology. The Client has two identical servers (One

Production and other Disaster Recovery) with the following configuration;
Intel Xeon 2.13GHz - Dual Core, 4 GB RAM, 400 GB RAID HDD. (S/w: JDK 1.4.2)

The installed applications are also identical at both the applications. Both the servers

have both Application & Database on the same server.

**The Problem:**
We have multi-threaded processes being hit on the database (Multiple Inserts) and

there are simultaneous select operations performed on the table.

In the production server, the multi-threaded application console, shows Deadlock

messages and asking user to re-run the transaction, whereas at Disaster site, there

are no such issues and operation is fast.

Since the "Deadlock" is seen on the main server, the entire server slows down,

dis-allowing any user operation on the server.

I checked through forums and a configuration, ISOLATION level has to be set

explicitly in SQL 2005. Now this setting **SET READ_COMMITTED_SNAPSHOT ON**

is set on our database.

Any other suggestions to help to check the slowness of the application/database

during parallel inserts / updates?

Please help.

Regards,
Hari N

SreenivasBora
Posting Yak Master

164 Posts

Posted - 2009-10-13 : 13:47:50
Hari,

Please verify,

1. Any Transactional Control statements are using in between INSERT & UPDTAES...

Example: Begin Tran
Insert table A
Update Table B

2. Please check the ORDER of exeuction..
3. Verify the time to INSERT the record and check any unnecessary INDEXES causing delay in INSERTION / UPDATES
4. Use NOLOCK on Select statements.

With Regards
BSR
Go to Top of Page

SreenivasBora
Posting Yak Master

164 Posts

Posted - 2009-10-13 : 13:49:15
and also reduce no.of treads and verify the output
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-10-13 : 14:01:35
We aren't able to provide much help with the information that you have given. You'll need to identify the deadlock owner and deadlock victim. You can do that via SQL Profiler or via the 1222 trace flag. Once you have both queries, please post them here for us to help out.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

harin25
Starting Member

3 Posts

Posted - 2009-10-14 : 09:33:33
Thanks Sreenivas and Tkizer. Will revert after checking.
Since it is a Production system, deadlock re-occurrence are hard to be re-tested and verified..

Regards,
Hari N
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-10-18 : 11:38:42
How much memory you have for your server?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-10-18 : 15:55:18
Memory information is posted in the original post.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -