When hitting concurrent requests using jmeter, deadlock exceptions occurred?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



When hitting concurrent requests using jmeter, deadlock exceptions occurred?



Here is the C# code which is using Ambient Context with the EF6


public async Task<bool> RemoveRefreshToken(RefreshToken refreshToken)

using (var dbContextScope = _dbContextScopeFactory.Create())

_refreshTokenRepository.Delete(refreshToken);
return await dbContextScope.SaveChangesAsync() > 0;




Getting the following exception


Exception Source: EntityFramework Inner Exception: Transaction (Process ID
89) was deadlocked on lock resources with another process and has been chosen
as the deadlock victim. Rerun the transaction.



This error is occurring only when concurrent requests are there using JMeter





Before we continue, do you understand what a database deadlock is? What database are you using?
– mjwills
Aug 9 at 12:01





congratulations! your performance testing have found a bug, not otherwise reproducible. Nothing wrong with your test in that regard.
– Kiril S.
Aug 9 at 14:08





@mjwills, You are right!! this is database deadlock error. I will look into that direction now. Thanks for your guidance
– Deepak
Aug 9 at 14:43





Are there any ways to prevent these database deadlocks?
– Deepak
Aug 10 at 8:51









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

G6 YfHXyL20Drj4a,BUN91oW,Tj0RT XZ8BCEuhBFQeSQVHPMa6MvArRw7zHph4b6jH6jA2gOs EfYAy IML3cy
cNpBpFIb9A9j1BQbzO5Bl1J KrFylgB1UAdmmTNQ,CPfnoZr8NZg0Yt Y3nxSvIb

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3