Skip to content

Commit ae761e3

Browse files
committed
Merge pull request #964 from creatuity/develop
Improving documentation for jMeter performance tests
2 parents 2b16af7 + d192d09 commit ae761e3

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

dev/tools/performance-toolkit/README.txt

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,46 @@ Performance Toolkit
44
Installation
55
-----------
66
jMeter:
7-
-- go to http://jmeter.apache.org/download_jmeter.cgi and download jMeter in Source section (pay you attention that Java 6 or later is required)
7+
-- go to http://jmeter.apache.org/download_jmeter.cgi and download jMeter in Binary section (pay you attention that Java 6 or later is required)
88
-- unzip archive
99

1010
Plugins (only if you want to use additional reports (like graphs)):
1111
-- go to http://jmeter-plugins.org/downloads/all/ and download JMeterPlugins-Standard and JMeterPlugins-Extras
1212
-- unzip them to appropriate ext directory of your jMeter instance.
13+
-- additional reports can now be enabled via GUI (right click them, then click Enable) or editing the jMeter JMX XML (set 'enabled="true"').
1314

1415

1516
Usage
1617
-----------
18+
Before running the jMeter tests for the first time, you will need to first use generate.php to generate the test data.
19+
20+
If you do not wish to use performance metrics gathered from the server(s) (such as CPU / IO load), or do not wish to configure the jMeter metric gathering software on your server(s), you can disable that either via the GUI (right click on "Performance Metrics Collector" and click Disable) or by editing the jMeter JMX XML from:
21+
<kg.apc.jmeter.perfmon.PerfMonCollector guiclass="kg.apc.jmeter.vizualizers.PerfMonGui" testclass="kg.apc.jmeter.perfmon.PerfMonCollector" testname="Performance Metrics Collector" enabled="true">
22+
to:
23+
<kg.apc.jmeter.perfmon.PerfMonCollector guiclass="kg.apc.jmeter.vizualizers.PerfMonGui" testclass="kg.apc.jmeter.perfmon.PerfMonCollector" testname="Performance Metrics Collector" enabled="false">
24+
Attempting to run with Performance Metrics Collector enabled without appropriately configuring it will result in a timeout error connecting to the collector and the test not running.
1725

1826
1. Run via console
19-
Scenario can accept 5 parameters that are described bellow in format <parameter_name:default_value>:
27+
Scenario can accept parameters that are described bellow in format <parameter_name:default_value>:
2028

2129
<host:''> URL component 'host' of application being tested (URL or IP).
2230
<base_path:'/'> Base path for tested site.
2331
<users:100> Number of concurrent users. Recommended amount is 100. Minimal amount is 10.
2432
<ramp_period:300> Ramp period (seconds). Period the request will be distributed within.
2533
<orders:0> Number of orders in the period specified in the current allocation. If <orders> is specified, the <users> parameter will be recalculated.
2634
<report_save_path:./> Path where reports will be saved. Reports will be saved in current working directory by default.
35+
<admin_path:backend/> Admin backend path. Default is backend.
36+
<admin_user:admin/> Admin backend user. Default is admin.
37+
<admin_password:123123q/> Admin backend password. Default is 123123q.
38+
<view_product_add_to_cart_percent:62/> Percentage of users that will only reach the add to cart stage. Default is 62.
39+
<view_catalog_percent:30/> Percentage of users that will only reach the view catalog stage. Default is 30.
40+
<guest_checkout_percent:4/> Percentage of users that will reach the guest checkout stage. Default is 4.
41+
<customer_checkout_percent:4/> Percentage of users that will reach the (logged-in) customer checkout stage. Default is 4.
42+
<loops:1/> Number of loops to run. Default is 1.
43+
<jmeter_agent_port:3450/> jMeter agent port. Default is 3450.
44+
<db_server_ip:10.62.51.150/> DB Server IP (for jMeter Performance Metrics). Default is 10.62.51.150.
45+
<web_server_1_ip:10.62.51.185/> Web Server 1 IP (for jMeter Performance Metrics). Default is 10.62.51.185.
46+
<web_server_2_ip:10.62.51.186/> Web Server 2 IP (for jMeter Performance Metrics). Default is 10.62.51.186.
2747

2848
All parameters must be passed to command line with "J" prefix: "-J<parameter_name>=<parameter_value>"
2949

0 commit comments

Comments
 (0)