Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 Deadlocks
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  04:31:12  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
Getting a lot of deadlock errors on our forum, coming out of inc_func_common.asp, specifically at the end of UpdateLastHereDate.

Does anyone know how to fix this one? I thought maybe adding adRunAsync might (at the risk of loss of "last here" information) solve the problem.

Database server is SQL 2000 and the forum software is the latest version.<

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 September 2008 :  04:38:44  Show Profile  Send ruirib a Yahoo! Message
That is very weird, I have never heard anyone else complaining, even in very busy forums. UpdateLastHere does a single update statement, so it's hard to figure out how that would degenerate into a deadlock situation.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 September 2008 :  04:57:54  Show Profile  Visit HuwR's Homepage
did you create your database using the forums setup.asp or did you migrate it from Access ?<
Go to Top of Page

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  05:00:32  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
Just done a bit more looking through the error logs and I note that it's just after a timeout expires, which might explain things. Looks like i might need to do a dbcc compact on this database, if nothing else...<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 September 2008 :  05:03:58  Show Profile  Send ruirib a Yahoo! Message
Where do you get timeouts? Was your database properly created, as Huw asked?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  05:04:34  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
Yes we created it through setup.asp
<
Go to Top of Page

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  05:06:15  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
Timeouts seem to be down to the loading of the server - it's running about 40 different sites. I think it's maybe time I recommended they upgrade their web server<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 September 2008 :  05:06:29  Show Profile  Send ruirib a Yahoo! Message
So, where does the forum timeout? What connection string are you using?<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  05:07:35  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
Looking through the logs we're getting timeouts on other scripts too, and even on static pages, so now I look into it this isn't the issue. Looks like people are trying to log in, getting a timeout, then trying again, and this is causing the deadlock.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 September 2008 :  05:07:52  Show Profile  Send ruirib a Yahoo! Message
It's not the number of sites, but it can be related to the hardware on the server and the traffic on the server.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 September 2008 :  05:09:24  Show Profile  Send ruirib a Yahoo! Message
Seems like a server issue, then, indeed. I've seen quite a few tens of forums running on SQL server and never saw a deadlock, even after a server timeout, so the situation there must be really serious.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 September 2008 :  05:12:16  Show Profile  Visit HuwR's Homepage
can you tell from the logs what may have caused the timeout ?<
Go to Top of Page

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  05:48:35  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
No because the only logs I get are emailed by the 404 page :-(<
Go to Top of Page

scollis
Starting Member

7 Posts

Posted - 02 September 2008 :  06:41:25  Show Profile  Visit scollis's Homepage  Send scollis an AOL message  Send scollis an ICQ Message
The main problem is that there are about 30-40 global level sites with hundreds of thousands of hits a day running on that server, and because it's a client's server, not mine, I don't have access to performance monitors and similar.

Thanks for your help guys - I'll turn over to their internal techies and see what they can come up with.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07