• Like
  • Save
Prevent deadlockswithj meter
Upcoming SlideShare
Loading in...5
×

Prevent deadlockswithj meter

  • 3,148 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,148
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. Prevent deadlocks with JMeter O l e k s i i Z o z u l e n k oautomated-testing.info
  • 2. History
  • 3. deadlock - is ... ? Не разрешимая ситуация, которая возникает при попытке одновременно получить доступ к одному ресурсу с нескольких потоков или источников
  • 4. 5%15% 80% Database Threads Sync Others
  • 5. Example
  • 6.  UPDATE products AS p, products AS pp   SET  p.is_low_on_stock =IFNULL(p.products_low_stock_level,IFNULL(pp.products_low_stock_level,0)) >= p.products_quantity,pp.is_low_on_stock =IFNULL(p.products_low_stock_level,IFNULL(pp.products_low_stock_level,0)) >= p.products_quantity WHEREp.products_parent = pp.products_id ANDpp.products_id IN (5000, 10529);
  • 7. Tools
  • 8. Tools
  • 9. Tools JDBC Sampler BSF Sampler Your Own Sampler
  • 10. Assume Causes
  • 11.  SELECT p.is_low_on_stock,p.products_low_stock_level,p.products_quantity, pp.is_low_on_stockFROM products AS p, products AS ppWHERE p.products_parent =pp.products_id AND pp.products_id IN(5000, 10529); INSERT into products(product_id,product_title, is_low_on_stock,products_low_stock_level) values (NULL,‘sometitle’, 5,0);
  • 12. Users = Requests
  • 13. Failure Example
  • 14. ThanksOleksii Zozulenkoozozulenko@gmail.comautomated-testing.info