LoginSignup
0
0

JMeterのタイマーの配置場所には気を付ける

Last updated at Posted at 2024-04-11

この記事について

JMeterのタイマーの配置場所が原因で詰まった箇所があった為、その備忘録です。

起きた現象

  • JMeterによる負荷試験をした際に、想定の半分~三割程度のリクエスト数しか出せない状態となってしまっていた
  • ヒープメモリの指定、CPU使用率、ファイルディスクリプタ上限やプロセス数も確認したが、特に問題ない状態

原因

  • JMeterのタイマーの追加場所が正しくなかった

Note that timers are processed before each sampler in the scope in which they are found; if there are several timers in the same scope, all the timers will be processed before each sampler.
Timers are only processed in conjunction with a sampler. A timer which is not in the same scope as a sampler will not be processed at all.
To apply a timer to a single sampler, add the timer as a child element of the sampler. The timer will be applied before the sampler is executed. To apply a timer after a sampler, either add it to the next sampler, or add it as the child of a Flow Control Action Sampler.

複数のタイマーが同一スコープ内に存在する場合、全てのタイマーが各サンプラーの前に処理されるとの事でした。

参考:jmeter.apache.org - 18.6 Timers

結果として

  • 本来、サンプラーの子要素としてタイマーを追加すべき所を、サンプラーと並列で複数のタイマーを追加してしまっていた事が問題となっていた
  • 結果として、各サンプラーでタイマーが実行される事となり、想定以下のリクエスト数となっていた
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0