Register for your free account! | Forgot your password?

You last visited: Today at 21:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Deadlock help!

Discussion on Deadlock help! within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 11
Received Thanks: 0
Deadlock help!

i got this error in my server side any one can help me how to fix this i search on google but i see the sir pumaa post but its deadlink

zedei26 is offline  
Old 01/12/2016, 12:52   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 233
Received Thanks: 64
Deadlocks occur when a process runs the same sql query or procedure but does it in different orders, this is common with Flyff servers as there are functions that use these procedures in different orders with different variables.

You will have to look over the source code for these or possibly even the database procedures to see if you can re-arrange it slightly to always run in the same order calling the information in the same order
NickHough is offline  
Old 01/13/2016, 06:03   #3
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,739
Received Thanks: 1,669
Quote:
Originally Posted by NickHough View Post
Deadlocks occur when a process runs the same sql query or procedure but does it in different orders, this is common with Flyff servers as there are functions that use these procedures in different orders with different variables.

You will have to look over the source code for these or possibly even the database procedures to see if you can re-arrange it slightly to always run in the same order calling the information in the same order
Bullshit.

Deadlocks occur when queries like selections or even updates take too much time on one resource (which are mostly tables).
If another process tries to do a query on the same object and another isn't finished, we call it a deadlock.


How to prevent it? Proper indexing:
Code:
USE [CHARACTER_01_DBF]
GO


CREATE CLUSTERED INDEX [IDX_tblPocket_idPlayer] ON [dbo].[tblPocket]
(
	[idPlayer] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 85)
GO


CREATE NONCLUSTERED INDEX [IDX_tblPocket_idPlayer_nPocket] ON [dbo].[tblPocket]
(
	[idPlayer] ASC,
	[nPocket] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 85)
GO


CREATE CLUSTERED INDEX [IDX_tblPocketExt_idPlayer] ON [dbo].[tblPocketExt]
(
	[idPlayer] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO




CREATE NONCLUSTERED INDEX [IDX_tblPocketExt_idPlayer_nPocket] ON [dbo].[tblPocketExt]
(
	[idPlayer] ASC,
	[nPocket] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO
xTwiLightx is offline  
Thanks
5 Users
Reply


Similar Threads Similar Threads
DEADLOCK
07/01/2015 - Flyff Private Server - 3 Replies
Anyone who knows how to fix DEADLOCK on SQL? Here's my Error: 2015/07/01 16:40:26 query:{call CHARACTER_STR('U1','0000007','01','',?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?, 0, 0, 0,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, ?,?)} SQLSTATE:40001 error:Transaction (Process ID 130) was deadlocked on lock resources with another process and...
deadlock fix
05/07/2015 - Flyff Private Server - 2 Replies
can someone reupload me the deadlock fix of pumaa because the link is down ... thanks! :mofo:
Deadlock fix
04/06/2014 - Flyff Private Server - 5 Replies
.
[Request] Help me Please with a Deadlock
08/27/2011 - Rappelz Private Server - 0 Replies
Hello all, i have a big Problem with my Database. Heres the Error 2011/08/27 03:08:08 DB COM ERROR(Thread:2, HRESULT:80004005, GUID:0C733A63-2A1C-11CE-ADE5-00AA0044773D) : DB_UpdateItem(dbo.smp_update_item: @IN_SID: 501809) : Transaction (Process ID 57) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction. 2011/08/27 03:12:45 DB COM ERROR(Thread:2, HRESULT:80004005,...
Unavoidable Deadlock
05/14/2011 - CO2 Private Server - 0 Replies
#edit: Obviously avoidable because it's fixed now. Thanks to everyone that helped us as a team figure out what my problem was. 生活和学习 (Live and learn). Sincerely, Fang



All times are GMT +2. The time now is 21:43.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.