Rate This Document
Findability
Accuracy
Completeness
Readability

Java Performance Testing Tool Command

Prerequisites

The Java Performance Testing tool has been installed. For details, see Installing the Tool.

Command Function

Performs stress tests on target applications, collects performance data of target processes, and generates stress test reports.

Syntax

entrance [-h] -i IPS_LIST -u USER [--port PORT] [-f PKEY_FILE] [-c PKEY_CONTENT] [-w PKEY_PASSWORD] -D DEVKIT_IP [-P DEVKIT_PORT] [-U DEVKIT_USER] [-W DEVKIT_PASSWORD] -a APPLICATIONS -d DURATION [-g GIT_PATH] [-j JMETER_COMMAND] [-m JAVA_HOME] [-o OUTPUT]

Parameter Description

Table 1 Parameter description

Parameter

Option

Parameter description

-h/--help

-

Obtains help information.

-i/--ips

IPS_LIST

(Mandatory) Address of the server hosting the target application to be collected. Use commas (,) to separate multiple addresses.

-u/--user

USER

(Mandatory) Server user name.

--port

PORT

(Optional) Server port.

-f/--pkey-file

PKEY_FILE

(Mandatory) Private key path used by the worker node for password-free login to all servers specified by -i.

NOTE:

For password-free login details, see the login procedure in described in Batch Installing Tools.

-c/--pkey-content

PKEY_CONTENT

(Optional) Private key content.

-w/--pkey-password

PKEY_PASSWORD

(Optional) Private key password.

-D/--devkit-ip

DEVKIT_IP

(Mandatory) DevKit tool address.

-P/--devkit-port

DEVKIT_PORT

(Optional) DevKit port number, which defaults to 8086.

-U/--devkit-user

DEVKIT_USER

(Optional) DevKit user name, which defaults to devadmin.

-W/--devkit-password

DEVKIT_PASSWORD

(Optional) DevKit password, which defaults to devkit123.

-a/--app

APPLICATIONS

(Mandatory) Name of the application from which data is to be collected. Use commas (,) to separate multiple names.

-d/--duration

DURATION

(Mandatory) Duration for collecting data from the target application, in seconds. When the -j parameter is specified, data collection stops when JMeter finishes execution or when the specified collection duration is reached.

-g/--git-path

GIT_PATH

(Optional) Path to the code downloaded using git clone on the worker node.

-j/--jmeter-command

JMETER_COMMAND

(Optional) JMeter command.

Example: bash /opt/apache-jmeter-5.6.3/bin/jmeter.sh -nt /home/xxx/Request.jmx -l /home/xxx/result.html -eo /home/xxx/report

-m/--java-home

JAVA_HOME

(Optional) JDK path. The JDK version is 11 or later. When the -j parameter is specified and the JDK version on the execution node is earlier than 11 or not installed, the -m parameter must be specified.

-o/--output

OUTPUT

(Optional) Path where the report is generated.