Jmeter test dubbo interface filling pit

There are many posts on the Internet about the method of testing dubbo through jmeter. If you need it, you can go there yourself.

There is a problem that needs to be reminded when using it, because I encountered it, and it took some time, not to mention the middle process. Straightforwardly speaking:

 

The problem is this:

After packaging the consumer of dubbo, put the dependency package of the consumer in the lib directory of jmeter, and then run it, there are many dependency errors. After deleting the duplicate version of the duplicate package, there are still various errors. In short, can't run!

 

Solution: According to your own jmeter version, fill in the jmeter dependency in the pom file correctly.

For example, the latest jmeter is version 4.0, then in pom.xml

<dependency>
 <groupId>org.apache.jmeter</groupId>
 <artifactId>ApacheJMeter_core</artifactId>
 <version>4.0</version>
</dependency>
<dependency>
 <groupId>org.apache.jmeter</groupId>
 <artifactId>ApacheJMeter_java</artifactId>
 <version>4.0</version>
</dependency>

In this way, after repackaging maven, copy the dependent files to the lib directory of jmeter, open jmeter again, and have fun

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324590060&siteId=291194637