1

I have one complex web application which intensive interact with the database. I lock db (MySQL InnoDB) within some request`s subset to prevent data integrity violation (use 'begin' ... 'commit' command sequence). Before request amount is less than N app works good. But when request amount will be greater than N locking errors has appears ('Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction'). I have a lot of functional test. All functional tests use 'single-client schema' emulation to test various scenarious of app using. They all is passed well. But how can I test my app with multiple clients connections (I want to able verify DB state at any time while test is run)? It means this is not simple load testing AFAIK.

4

1 回答 1

1

您可以使用 JMeter 来实现:

  • 启动时的 Http 采样器

  • 一旦确定了所涉及的查询,如果您想更简单或更快速地重现以测试分辨率,则可以使用 db sampler

问候

于 2012-08-27T21:28:15.097 回答