官方网站:http://jmeter.apache.org/


一、Jmeter简介

Jmeter是JAVA开发的开源的性能测试软件,其功能如下:

Apache JMeter features include:

  • Ability to load and performance test many different server/protocol types:

    • Web - HTTP, HTTPS

    • SOAP

    • FTP

    • Database via JDBC

    • LDAP

    • Message-oriented middleware (MOM) via JMS

    • Mail - SMTP(S), POP3(S) and IMAP(S)

    • MongoDB (NoSQL)

    • Native commands or shell scripts

    • TCP

  • Complete portability and 100% Java purity .

  • Full multithreading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups.

  • Careful GUI design allows faster Test Plan building and debugging.

  • Caching and offline analysis/replaying of test results.

  • Highly Extensible core:

    • Pluggable Samplers allow unlimited testing capabilities.

    • Several load statistics may be choosen with pluggable timers .

    • Data analysis and visualization plugins allow great extensibility as well as personalization.

    • Functions can be used to provide dynamic input to a test or provide data manipulation.

    • Scriptable Samplers (BeanShell, BSF-compatible languages and JSR223-compatible languages)


二、Windows环境下的下载和安装

(1)Java下载地址http://www.java.com/zh_CN/,直接下载点击下一步安装即可;

(2)Jmter下载地址http://jmeter.apache.org/download_jmeter.cgi,下载apache-jmeter-2.12.zip,并将其解压缩到c:\;

(3)直接运行C:\apache-jmeter-2.12\bin\jmeter.bat即可;


附注:

如果出现以下错误:

*WARNING: Could not open/create prefs root。。。

在注册表HKEY_LOCAL_MACHINE\SOFTWARE下搜索JavaSoft项,并给执行Jmeter的用户以完全控制权限;