Giter VIP home page Giter VIP logo

Comments (9)

RegHugo avatar RegHugo commented on May 10, 2024

看代码其实没怎么发现通过jemter_api的方式进行分布式压测的,能说明一下么

from stresstestplatform.

zyanycall avatar zyanycall commented on May 10, 2024

看代码其实没怎么发现通过jemter_api的方式进行分布式压测的,能说明一下么

是的,分布式压测启动这里Jmeter的API已经封装的很完全了,仅需要分布式slave节点的ip+port的字符串 + jmx脚本,就可以进行分布式压测了。
核心代码如下:
DistributedRunner distributedRunner = new DistributedRunner();
distributedRunner.setStdout(System.out); // NOSONAR
distributedRunner.setStdErr(System.err); // NOSONAR
distributedRunner.init(hosts, jmxTree);
engines.addAll(distributedRunner.getEngines());
distributedRunner.start();

内在是使用java的rmi的方式执行slave的压测的,核心都在:
org.apache.jmeter.engine.ClientJMeterEngine
org.apache.jmeter.engine.RemoteJMeterEngineImpl 类中。

from stresstestplatform.

RegHugo avatar RegHugo commented on May 10, 2024

get啦, 看源码比较少,看来得多多钻研了

from stresstestplatform.

RegHugo avatar RegHugo commented on May 10, 2024

image

说是jmeter4.0的特性,根据网上的方法说『修改server.rmi.ssl.disable=true』 然后就修改了

image

但是还是报错,所以在部署之前有啥其他操作么

from stresstestplatform.

zyanycall avatar zyanycall commented on May 10, 2024
image

说是jmeter4.0的特性,根据网上的方法说『修改server.rmi.ssl.disable=true』 然后就修改了
image

但是还是报错,所以在部署之前有啥其他操作么

改的是本地的jmeter.propertis 文件吗? 改过之后应该不会提示这个吧。

from stresstestplatform.

zyanycall avatar zyanycall commented on May 10, 2024
image 说是jmeter4.0的特性,根据网上的方法说『修改server.rmi.ssl.disable=true』 然后就修改了 image 但是还是报错,所以在部署之前有啥其他操作么

改的是本地的jmeter.propertis 文件吗? 改过之后应该不会提示这个吧。

你这个是分布式节点的连接吗? 那slave也需要改的,或者你配置出来ssl的key。

from stresstestplatform.

RegHugo avatar RegHugo commented on May 10, 2024

通过jmeter_api的方式执行分布式,报错的位置是服务端, 然后改了本地的jmeter.propertis 文件,代码里说加载本地jmete.propertis
image
然后我也改了slaver的jmeter.propertis,也都配置了sslkey

from stresstestplatform.

zyanycall avatar zyanycall commented on May 10, 2024

通过jmeter_api的方式执行分布式,报错的位置是服务端, 然后改了本地的jmeter.propertis 文件,代码里说加载本地jmete.propertis
image
然后我也改了slaver的jmeter.propertis,也都配置了sslkey

我查了一下,我本地也没有这个jks文件,同时我也是设置了 server.rmi.ssl.disable=true 的。
看了一下,你应该是使用分布式节点压测的时候报的这个错误。

建议:

  1. 你本地设置的Jmeter_home 能否正常使用压测功能 如 ./jmeter -n -t xxxx.jmx
  2. 看看你设置为 server.rmi.ssl.disable=true 的properties 文件 是否是程序真正加载的文件。

from stresstestplatform.

RegHugo avatar RegHugo commented on May 10, 2024

通过jmeter_api的方式执行分布式,报错的位置是服务端, 然后改了本地的jmeter.propertis 文件,代码里说加载本地jmete.propertis
image
然后我也改了slaver的jmeter.propertis,也都配置了sslkey

我查了一下,我本地也没有这个jks文件,同时我也是设置了 server.rmi.ssl.disable=true 的。
看了一下,你应该是使用分布式节点压测的时候报的这个错误。

建议:

  1. 你本地设置的Jmeter_home 能否正常使用压测功能 如 ./jmeter -n -t xxxx.jmx
  2. 看看你设置为 server.rmi.ssl.disable=true 的properties 文件 是否是程序真正加载的文件。

第二点提醒了我,然后我去看了看我的服务,是直接用root用户启动的(而且在/root目录下),然后修改为普通用户临时提升权限的方式启动后,问题没了(至于为啥,部署相关的知识不了解吧)

from stresstestplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.