|
You last visited: Today at 21:43
Advertisement
Deadlock help!
Discussion on Deadlock help! within the Flyff Private Server forum part of the Flyff category.
01/10/2016, 21:52
|
#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
2016/01/11 01:23:37
query:{call uspSavePocket( '01', '0000125', ?, ?, ?, ?, ?, ?, ?, ?, ?) }
SQLSTATE:40001 error:[Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 140) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
2016/01/11 01:23:42
query:{call uspSavePocket( '01', '0000148', ?, ?, ?, ?, ?, ?, ?, ?, ?) }
SQLSTATE:40001 error:[Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 138) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
|
|
|
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
|
|
|
01/13/2016, 06:03
|
#3
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,739
Received Thanks: 1,669
|
Quote:
Originally Posted by NickHough
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
|
|
|
|
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.
|
|