Message-ID: <2041869941.788630.1386543354025.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_788629_970686479.1386543354024" ------=_Part_788629_970686479.1386543354024 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Description / Features
This plugin collects performance tests results from Apache J= Meter. Apache JMeter may be used to test performance bo= th on static and dynamic resources (files, Servlets, Perl scripts, Java Obj= ects, Data Bases and Queries, FTP Servers and more). It can be used to simu= late a heavy load on a server, network or object to test its strength or to= analyze overall performance under different load types. You can use it to = test your server/script/object behavior under heavy concurrent load.
If it is the first time you have heard of Apache JMeter = then you should try it before using this plugin.
The following metrics are recorded in SonarQube:
If you want to use JMeter Report Server then:
Run the server where your JMeter instance is running:
JMeter installation is very easy. JMeter is developed with Java and it i= s distributed as a compressed file.
You can download it from http://jakarta.apache.org/jmeter= and then run the provided script (bin/jmeter).
You can find a step by step tutorial in JMeter's website: http://jakarta.apache.org/jmeter/user= manual/jmeter_proxy_step_by_step.pdf
It describes how to record a test plan using the JMeter proxy.
You can also take a look at this video tutorial to see how to record a t= est with JMeter:
The SonarQube JMeter plugin uses the results datafile generated by = JMeter (file with extension .JTL) so remember to configure your test plan t= o store the results in a single JTL file.
In this video we show you how to set this JTL file:
JMeter Report Server is a server that generates performance reports from= JMeter results. The SonarQube JMeter Plugin uses this server to get t= he performance metrics from the projects.
It must be installed on the same machine with JMeter tool. The server wi= ll read the JTL files to provide all the data to SonarQube.
JTL files must be provided as a result of JMeter tests. The JMeter Repor= t Server is needed just to make JTL files available remotely.
JMeter Report Server needs to know where the JTL files are located. You = can set your test configuration when running the server through command lin= e system properties:
where name is the test configuration that you will use in SonarQube JMet= er Plugin project settings.
Or you can also set this location by creating a property file "jmet= er-report-server.properties" with all your test configurations:
This is useful if you have multiple projects in your JMeter environment = and you want to manage all your tests with a single JMeter Report Server.= p>
Port and maxConnections are now configurable properties and they can be = set as system properties (using -D in the start command) or as normal prope= rties in the jmeter-report-server.properties file as shown below.
Here you have a test configuration example:
This configuration will set JTL file "/home/carlos/jmeter_work/icew= eb.jtl" to the project "iceweb".
"iceweb" will be the name for your test configuration. So= narQube plugin settings will use that name.
Server is package in a single jar with all dependencies, so just downloa= d JMeter Report Server and put it wherever you want
You can start the server with this command:
NOTE: replace "jmeter-report-server.jar" with the name of the = file downloaded and testconfig property with your project name and the path= to the JTL file.
This video shows how to configure JMeter plugin in SonarQube:
Since version 0.2, there is a jmeter-report-server embedded inside the S= onarQube JMeter plugin, and there is a new configuration option (Loca= l jtl file) where you can set a jtl file path, local to the sonar server. I= f this option is set, no remote jmeter report server is used, and jmeter te= st results are taken from the local file.
Now it is possible to configure units of time in your global or project = settings. You can set seconds, minutes or hours.
Add the JMeter widget to your dashboard and next time you run
sonar:sonar you will retrieve performance metrics from JMeter, and S=
ONAR will show them.
You have to configure your project to be able to do that:
To get sonar-jmeter-plugin working in maven side, there must not be any = configuration values set in SonarQube (all of them must be blank).
|=20||SONARPLUGINS-1339=20||Apache J= Meter 2.5 support=20||=20|
|=20||SONARPLUGINS-1274=20||Allow to= set jtl path as a classpath path=20||=20|
|=20||SONARPLUGINS-1271=20||Sometime= s sockets are not closed in the server=20||=20|
|=20||SONARPLUGINS-1270=20||Limit th= e number of connected clients=20||=20|
|=20||SONARPLUGINS-1259=20||Allow jm= eter-report-server port to be configurable=20||=20|
|=20||SONARPLUGINS-1198=20||Implemen= t JMeterPostJob for getting performance metrics in maven side parsing repor= ts generated by maven-jmeter-plugin=20||=20|
|=20||SONARPLUGINS-1018=20||Configur= ing unit=20||=20|
|=20||SONARPLUGINS-984=20||Add an op= tion to use sonar-jmeter-plugin without JMeter Report Server=20||=20|
|=20||SONARPLUGINS-983=20||Update do= cumentation=20||=20|
|=20||SONARPLUGINS-982=20||Plugin us= ability: command line parameter for JTL file=20||=20|
|=20||SONARPLUGINS-956=20||Code best= practices=20||=20|
|=20||SONARPLUGINS-913=20||Plugin do= cumentation=20||=20|
|=20||SONARPLUGINS-906=20||Upload co= de to SVN=20||=20|