6

The Grinder (Windows PC上)を使用してネットワークアプリケーションの負荷テストを行っています。アプリケーションの負荷にどのような影響があるかを確認するために、不完全なネットワーク状態をシミュレートしたいと思います。特に、次の影響を確認したいと思います。

  • ネットワーク遅延は可変であるため、クライアントごとに遅延が異なるだけでなく、単一のクライアントのテスト中に遅延が異なる場合があります。
  • ネットワーク接続の切断-ネットワーク接続が突然/ランダムに切断されたときに何が起こるかをシミュレートしたいと思います。

これを行う最も簡単な方法は何ですか?

4

4 に答える 4

5
  1. このマシンのデフォルトルーターとしてLinuxボックスをセットアップします。
  2. Linuxボックスに「netem」をインストールします: http ://www.linuxfoundation.org/collaborate/workgroups/networking/netem
于 2011-07-05T18:55:46.570 に答える
1

Other options:

  • WanEM (OpenSource, clock timing can be a challenge in the default VM install which produces inconsistent results. Best used wen installed on physical hardware instead of within a virtual machine) WanEm Download location
  • Shunra (Commercial, My preference in a chassis solution) Shunra Products
  • Anue (Commercial, now Ixia) Anue on Ixia Website
于 2012-08-30T22:23:48.163 に答える
0

The fact that the Grinder allows you to dive into its Jython script holds a lot of power to customise the manner in which you'd like to control an "agent's" behaviour.
For example - if you'd like to simulate dropped network connections, say your agent has 100 runs. you can generate an array of random numbers [between 0-99] and for the runs matching any of the random numbers, you can instruct the thread to abort.

However, having said that, the conditions you wish to simulate are more like tweaking the behaviour of the server you're testing. What i provided you is a work-around which may or may not fulfill your expectations. The Grinder as a tool doesn't really offer much to influence the behaviour of the server [to be tested]. it's more like a tool to control the user load and behaviour.

Hope this helps.

于 2010-11-16T07:30:28.010 に答える
0

You may also be interested in the bandwidth throttling feature of the grinder, which caps at arbitrary levels how fast your agent threads can send/receive data across the network. Your HTTP connection has a setBandwidthLimit() method which allows you to do this.

于 2011-07-03T00:45:37.787 に答える