Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A load testing tool

License

Unknown and 3 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE2
GPL-2.0
LICENSE-GPL2
MPL-2.0
LICENSE-MPL-RabbitMQ
NotificationsYou must be signed in to change notification settings

rabbitmq/rabbitmq-perf-test

Test against RabbitMQ stable

This repository contains source code of the RabbitMQ Performance Testing Tool.The client is maintained by theRabbitMQ team at Broadcom.

PerfTest uses theAMQP 0.9.1 protocol to communicate with a RabbitMQ cluster.UseStream PerfTest if you want to testRabbitMQ Streams with thestream protocol.

Installation

This is a standalone tool that is distributed in binary form usingGitHub releases and as a JAR file on Maven Central (see below).PerfTest requires at least Java 8, but some features require Java 11.The latest LTS Java version is recommended.

ADocker image is available as well.

Thelatest snapshot is also available.

Documentation

Usage

Running Performance Tests

Download the latest snapshot:

wget https://github.com/rabbitmq/rabbitmq-java-tools-binaries-dev/releases/download/v-rabbitmq-perf-test-latest/perf-test-latest.jar

Launch a performance test with 1 producer and 1 consumer:

java -jar perf-test-latest.jar

Use

java -jar perf-test-latest.jar --help

to see all supported options.

Producing HTML Output of Runs

The HTML Performance Tools are a set of tools that can help you runautomated benchmarks by wrapping around thePerfTest benchmarkingframework. You can provide benchmark specs, and the tool will take careof running the benchmark, collecting results and displaying them in anHTML page. Learn morehere.

Contributing

SeeCONTRIBUTING.md for an overview of the development process.

Building from Source

To build the uber JAR:

./mvnw clean package -P uber-jar -Dgpg.skip=true -Dmaven.test.skip

The generated file istarget/perf-test.jar.

To build the JAR file:

./mvnw clean package -Dmaven.test.skip

The file is then in thetarget directory.

Running tests

The test suite needs to executerabbitmqctl to test connection recovery. Youcan specify the path torabbitmqctl like the following:

./mvnw clean verify -Drabbitmqctl.bin=/path/to/rabbitmqctl

You need a local running RabbitMQ instance.

Running tests with Docker

Start a RabbitMQ container:

docker run -it --rm --name rabbitmq -p 5672:5672 rabbitmq:4.1

Run the test suite:

./mvnw clean verify -Drabbitmqctl.bin=DOCKER:rabbitmq

Files are then in thetarget directory.

Maven Artifact

Maven Central

perf-test search.maven.org

Logging

PerfTest depends transitively on SLF4J for logging (through RabbitMQ Java Client).PerfTest binary distributionships with Logback as a SLF4J binding and uses Logback default configuration (printing logs to the console). Iffor any reason you need to use a specific Logback configuration file, you can do it this way:

java -Dlogback.configurationFile=/path/to/logback.xml -jar perf-test.jar

As of PerfTest 2.11.0, it is possible to define loggers directly from the command line. This is less powerfulthan using a configuration file, yet simpler to use and useful for quick debugging. Use therabbitmq.perftest.loggerssystem property withname=level pairs, e.g.:

java -Drabbitmq.perftest.loggers=com.rabbitmq.perf=debug -jar perf-test.jar

It is possible to define several loggers by separating them with commas, e.g.-Drabbitmq.perftest.loggers=com.rabbitmq.perf=debug,com.rabbitmq.perf.Producer=info.

It is also possible to use an environment variable:

export RABBITMQ_PERF_TEST_LOGGERS=com.rabbitmq.perf=info

The system property takes precedence over the environment variable.

Use the environment variable with the Docker image:

docker run -it --rm --network perf-test \  --env RABBITMQ_PERF_TEST_LOGGERS=com.rabbitmq.perf=debug,com.rabbitmq.perf.Producer=debug \  pivotalrabbitmq/perf-test:latest --uri amqp://rabbitmq

If you usePerfTest as a standalone JAR in your project, please note it doesn't depend on any SLF4J binding,you can use your favorite one.

Versioning

This tool usessemantic versioning.

Support

See theRabbitMQ Java libraries support pagefor the support timeline of this library.

License

This package, the RabbitMQ Performance Testing Tool library, is triple-licensed underthe Mozilla Public License 2.0 ("MPL"), the GNU General Public Licenseversion 2 ("GPL") and the Apache License version 2 ("ASL").

Packages

No packages published

Contributors23


[8]ページ先頭

©2009-2025 Movatter.jp