官术网_书友最值得收藏!

Installing Apache JMeter

To enable our performance testing, we'll install the open source tool Apache JMeter.

Getting ready

You'll need to install Java JDK Version 6 or higher on a machine to follow this recipe.

How to do it…

Follow these steps to complete the installation of Apache JMeter:

  1. Navigate to http://jmeter.apache.org/download_jmeter.cgi, and select the latest binary version for download. If you're on Windows, it will be easier to proceed with the ZIP file.
  2. The next step will assume that you've selected the ZIP version, or that you know what you're doing with the tar.gz file. Unzip the downloaded file. On Windows, you can right-click and select Extract All; on Linux, you can use the unzip or gunzip commands.
  3. Place the extracted contents in a suitable location. The rest of the recipe will use the location C:\performance-testing\apache-jmeter-2.8.
  4. Within the bin directory, run jmeterw.cmd on Windows, or jmeter.sh on Linux (if using the ZIP bundle, remember to set the file as executable first via the chmod command).
  5. We now have JMeter installed and are ready to use.

How it works…

JMeter is simply a series of JAR files that are bootstrapped by wrapper scripts. There are no complicated installers or dependencies to maintain; all we need is an installation of Java to get going! This methodology extends into the rest of JMeter, so don't be put off if some of the recipes in this chapter don't seem glamorous; this is a powerful tool.

See also

  • The Creating a web service test by using JMeter recipe
主站蜘蛛池模板: 瓦房店市| 清苑县| 永胜县| 崇阳县| 揭西县| 抚州市| 泰兴市| 胶南市| 南安市| 阿鲁科尔沁旗| 灌云县| 镇远县| 深州市| 广安市| 和龙市| 新和县| 广河县| 大理市| 门源| 西乌珠穆沁旗| 云龙县| 蒙自县| 定结县| 神池县| 灵宝市| 枣庄市| 永州市| 会理县| 宜章县| 虞城县| 平舆县| 原阳县| 沙田区| 阿克陶县| 金堂县| 昌图县| 嵩明县| 彭州市| 大宁县| 凤山县| 仪陇县|