Skip to content

user guide

凝雨 edited this page Sep 7, 2018 · 10 revisions

How to Use DubboSample

Use Case

  • Use case reference FAQ for empty parameters
  • Use case reference FAQ for complex parameters

Jmeter Version Support

3.0+

Dubbo Version Support

2.5.x, 2.6.x

Plug-in Install

The plug-in package can be downloaded from github。installation directory ${JMETER_HOME}\lib\ext.

If you're using it jmeter-plugins-dubbo-${version}-jar-with-dependencies.jar Including all dependencies, I recommend this.

If you're using it jmeter-plugins-dubbo-${version}.jar dependencies that need to add their own plug-ins,The dependency package version is as follows:

dubbo-2.5.3.jar
javassist-3.15.0-GA.jar
zookeeper-3.4.6.jar
zkclient-0.1.jar
jline-0.9.94.jar
netty-3.7.0-Final.jar
slf4j-api-1.7.5.jar
log4j-over-slf4j-1.7.5.jar

Interface package

V1.3.x

No interface package dependencies are required.

V1.2.x

api-jar installation directory ${JMETER_HOME}\lib\ext.

Getting Started

Start Jmeter, add DubboSample. such as:

DubboSample UI such as:

Pass in the necessary parameters.

Results Snapshot

Registry

  1. Protocol=none, direct connection
  2. Protocol=zookeeper, use zookeeper registration center
  3. Protocol=multicast, use multicast registration center
  4. Protocol=redis, use redis registration center
  5. Protocol=simple, use simple registration center

Notes

  1. Use register multiple addresses use "," split, Use direct connected address is provider ip:port
  2. timeout:Service method invocation timeout (milliseconds)
  3. version:Service version, consistent with service provider version
  4. retries:Remote service call retry times, not including the first call, do not need to retry set to 0
  5. cluster:Cluster, optional: failover/failfast/failsafe/failback/forking
  6. group: Service grouping, when an interface has multiple implementations, can be distinguished by grouping, and must be consistent with the service provider
  7. interface:Full name of the class
  8. Parameters support any type, base type use:int、float、shot、double、long、byte、boolean、char, Custom classes use the full name of the class
  9. Parameter values, Base types use values directly, Class use json data.
  10. More Dubbo parameters -> http://dubbo.apache.org/books/dubbo-user-book/references/xml/dubbo-reference.html