In most real world web application environments the machine running the web
application is not the machine which is sitting on your desk. However to get a
true estimate of performance you would like to be measuring the true response
time of your server, not any (highly variable) network bottle-necks that might
exist between you and the machine on which your web application is running. At
the same time using a GUI especially a Java GUI over the network is at best
painful (using Un*x and X) and at times not possible (using windows).
Webアプリケーション環境の世界では、
たいていの場合Webアプリケーションが走っているマシンは
あなたのデスクトップ上にあるマシンではありません。
しかし、正確に性能を測定するには、
Webアプリケーションが実行されているマシンとあなたとの間の
(極めて変わり易い)ネットワーク上のボトルネックではなく
サーバーの真のレスポンスタイムを測定しなければなりません。
同様に、特にJavaのGUIをネットワーク越しに使用することは
特に骨の折れること(Un*xとXでは)であり、
またある場合は不可能です(windowsを使用している場合)。
To solve this problem JMeter provides a client-server architecture for load
and performance testing which allows the JMeterEngine (the tester) to reside
and run on your application server while the configuration GUI and visualization
executes on the development machine. This offers a number of features:
- True performance measurment without network bottlenecks
- Fast responsive GUI
- Saving of test samples to a local machine
- Managment of multiple JMeterEngines from a single machine
この問題を解決するために、JMeterは負荷性能テストをする際には
クライアント−サーバー構造をとることができます。
GUIによる設定と視覚化は開発マシン上で行う一方、
JMeterエンジン(テスター)はアプリケーションサーバー上に置いて実行します。
このことによりいくつかの機能が得られます。
- ネットワーク上のボトルネックを排した正確な測定
- GUIによるレスポンスの高速化
- テストサンプルをローカルマシン上に保存
- 複数のJMeterエンジンをひとつのマシンからコントロール
Step 1: Start the RMI Registry
Step 1: RMIレジストリのスタート
JMeter uses Remote Method Invocation (RMI) as the remote communication mechanism. Therefore, you need
to run the RMI Registry application (which is named, "rmiregistry") that comes with the JDK and is located in the "bin"
directory. Before running rmiregistry, make sure that the JMeter JAR file (ApacheJMeter.jar) is in your CLASSPATH environment variable.
The rmiregistry application needs access to certain JMeter classes. Run rmiregistry with no parameters. By default the
application listens to port 1099.
JMeterはリモートコミュニケーションのメカニズムとしてリモートメソッドインボケーション(RMI)を使用します。
そのため、JDKに同梱され"bin"に置かれているRMIレジストリアプリケーション("rmiregistry")を実行する必要があります。
rmiregistryを実行する前に、JMeterのJARファイル(ApacheJMeter.jar)がCLASSPATH環境変数に含まれていることを確認してください。
rmiregistryアプリケーションは確実にJMeterのクラスにアクセスできる必要があります。
rmiregistryをパラメータ無しで起動してください。
デフォルトではアプリケーションはポート1099番を監視します。
Step 2: Start the JMeter Server
Step 2: JMeterサーバーのスタート
Once the RMI Registry application is running, start the JMeter Server. For MS-Windows, start the server with the
script "bin/jmeter-server.bat". For UNIX, use the script "bin/jmeter-server".
RMIレジストリアプリケーションを実行したら、JMeterサーバーをスタートします。
MS-Windowsでは、"bin/jmeter-server.bat"を実行します。UNIXでは、"bin/jmeter-server"を使用します。
Step 3: Set the Client in the Properties File
Step 3: Propertiesファイル上にクライアントを設定します
Edit the properties file in the "bin" directory named, "jmeter.properties". Find the property named, "remote_hosts", and
set the value to be your client domain name or IP address.
"bin"ディレクトリ内の"jmeter.properties"というプロパティファイルを編集します。
"remote_hosts"というプロパティの値をクライアントのドメイン名又はIPアドレスにセットします。
Step 4: Start the JMeter Client
Step 4: JMeterクライアントのスタート
Now you are ready to start the JMeter client. For MS-Windows, start the client with the script "bin/jmeter.bat". For UNIX,
use the script "bin/jmeter". You will notice that the Run menu contains two new sub-menus: "Remote Start" and "Remote Stop"
(see figure 1). These menus contain the client that you set in the properties file. Use the remote start and stop instead of the
normal JMeter start and stop menu items.
これでJMeterクライアントの実行準備ができました。MS-Windowsの場合は"bin/jmeter.bat"を実行してください。
UNIXの場合は"bin/jmeter"を実行します。
実行メニューに"Remote Start"と"Remote Stop"という新しいサブメニューがでてきます(Figure 1参照)。
これらのメニューにはpropertiesファイルに書いたクライアント名が含まれているはずです。
JMeterの通常の開始/停止メニューは使用せず、リモートスタート/ストップを使用します。
Figure 1 - Run Menu