Comments (9)
看代码其实没怎么发现通过jemter_api的方式进行分布式压测的,能说明一下么
from stresstestplatform.
看代码其实没怎么发现通过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.
get啦, 看源码比较少,看来得多多钻研了
from stresstestplatform.
from stresstestplatform.
说是jmeter4.0的特性,根据网上的方法说『修改server.rmi.ssl.disable=true』 然后就修改了
但是还是报错,所以在部署之前有啥其他操作么
改的是本地的jmeter.propertis 文件吗? 改过之后应该不会提示这个吧。
from stresstestplatform.
说是jmeter4.0的特性,根据网上的方法说『修改server.rmi.ssl.disable=true』 然后就修改了 但是还是报错,所以在部署之前有啥其他操作么改的是本地的jmeter.propertis 文件吗? 改过之后应该不会提示这个吧。
你这个是分布式节点的连接吗? 那slave也需要改的,或者你配置出来ssl的key。
from stresstestplatform.
通过jmeter_api的方式执行分布式,报错的位置是服务端, 然后改了本地的jmeter.propertis 文件,代码里说加载本地jmete.propertis
然后我也改了slaver的jmeter.propertis,也都配置了sslkey
from stresstestplatform.
通过jmeter_api的方式执行分布式,报错的位置是服务端, 然后改了本地的jmeter.propertis 文件,代码里说加载本地jmete.propertis
然后我也改了slaver的jmeter.propertis,也都配置了sslkey
我查了一下,我本地也没有这个jks文件,同时我也是设置了 server.rmi.ssl.disable=true 的。
看了一下,你应该是使用分布式节点压测的时候报的这个错误。
建议:
- 你本地设置的Jmeter_home 能否正常使用压测功能 如 ./jmeter -n -t xxxx.jmx
- 看看你设置为 server.rmi.ssl.disable=true 的properties 文件 是否是程序真正加载的文件。
from stresstestplatform.
通过jmeter_api的方式执行分布式,报错的位置是服务端, 然后改了本地的jmeter.propertis 文件,代码里说加载本地jmete.propertis
然后我也改了slaver的jmeter.propertis,也都配置了sslkey我查了一下,我本地也没有这个jks文件,同时我也是设置了 server.rmi.ssl.disable=true 的。
看了一下,你应该是使用分布式节点压测的时候报的这个错误。建议:
- 你本地设置的Jmeter_home 能否正常使用压测功能 如 ./jmeter -n -t xxxx.jmx
- 看看你设置为 server.rmi.ssl.disable=true 的properties 文件 是否是程序真正加载的文件。
第二点提醒了我,然后我去看了看我的服务,是直接用root用户启动的(而且在/root目录下),然后修改为普通用户临时提升权限的方式启动后,问题没了(至于为啥,部署相关的知识不了解吧)
from stresstestplatform.
Related Issues (20)
- 分布式节点使用同一份csv文件时的困惑 HOT 3
- 生成报告报错异常 HOT 5
- 新增分布式节点并正常启用后,压测执行脚本,点击启动报错 HOT 3
- 脚本带有Constant Throughput Timer运行时会出现Constant Throughput Timer失效的情况
- 有操作文档或者关键内容的截图吗,想看看效果
- 运行带参数化文件的脚本时,运行一次后,后续的所有脚本再执行都报错 HOT 5
- 多脚本执行的时候报Engine is busy - please try later HOT 2
- jmeter_test HOT 1
- 本地部署撥錯 HOT 4
- 用例管理上传jmx文件失败(前端结果显示上传成功) HOT 1
- JMeter路径正确,但是启动应用的时候回抛出如下异常 HOT 1
- 用例管理中创建的用例无法同步到脚本文件管理和其他几个页面中去 HOT 1
- 求助:本地无法启动运行,报错 500--Servlet.service() for servlet [dispatcherServlet] in context with path [/renren-fast] threw exception [Filtered request failed.] with root cause HOT 6
- dubbo插件化如何支持 HOT 2
- hi,你好大神,请问,前端的源码能给下吗,我看前端是编译好的。多谢了 HOT 4
- 想请问下工程有做容器化部署吗 HOT 4
- jmeter运行mqtt协议报错如下,插件加载mqtt-xmeter-2.0.2-jar-with-dependencies.jar
- 请问一下,本地运行不起来
- 如何多用户使用 HOT 1
- 本地启动报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stresstestplatform.