metersphere / metersphere

MeterSphere 是新一代的开源持续测试工具,让软件测试工作更简单、更高效,不再成为持续交付的瓶颈。
https://metersphere.io/v3/index.html
GNU General Public License v3.0
11.71k stars 2.57k forks source link

[BUG]metersphere dubo接口性能压测成功,接口自动化调用失败 #34435

Open wangxingxi opened 2 days ago

wangxingxi commented 2 days ago

联系方式

MeterSphere交流群69 兴习 277618103@qq.com

MeterSphere 版本

v2.10.17-lts

使用外置数据库

问题描述

1、dubbo协议接口自动化调试时,前台页面一直转圈圈无反应 image 2、点击调试之后,页面一直处于该状态: image 3、/opt/metersphere/logs/node-controller/info.log中: image 4、/opt/metersphere/logs/node-controller/info.log中: image 5、性能压测该接口是没有问题,可以连通的,dubbo接口版本2.6

重现步骤

正常录入dubbo接口,配置参数,调试和执行时都无反应

期待的正确结果

dubbo接口调试正常,正确返回调试和

相关日志输出

/opt/metersphere/logs/node-controller/info.log
2024-11-28 11:08:27,699 [MS-JMETER-RUN-TASK:5073] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO MS-JMETER-RUN-TASK:5073 Setting Locale to en_US

2024-11-28 11:08:27,700 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine Running the test!

2024-11-28 11:08:27,700 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine List of sample_variables: []

2024-11-28 11:08:27,701 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine 8e4733d0_c65ff2d2-a905-62ad-afcc-f042cece22e4: Starting worker with class: class io.metersphere.api.jmeter.MsApiBackendListener and queue capacity: 5000

2024-11-28 11:08:27,701 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine 8e4733d0_c65ff2d2-a905-62ad-afcc-f042cece22e4: Started  worker with class: class io.metersphere.api.jmeter.MsApiBackendListener

2024-11-28 11:08:27,921 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine Starting ThreadGroup: 1 : 8e4733d0

2024-11-28 11:08:27,921 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine Starting 1 threads for group 8e4733d0.

2024-11-28 11:08:27,921 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine Thread will continue on error

2024-11-28 11:08:27,921 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false

2024-11-28 11:08:27,922 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine Started thread group number 1

2024-11-28 11:08:27,922 [StandardJMeterEngine] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO StandardJMeterEngine All thread groups have been started

2024-11-28 11:08:27,922 [8e4733d0 1-1] INFO  JMETER ? - JMETER-LOG 2024-11-28 11:08:27 INFO 8e4733d0 1-1 Thread started: 8e4733d0 1-1

2024-11-28 11:08:27,922 [8e4733d0 1-1] INFO  i.g.n.j.p.dubbo.sample.DubboSample ? - sample中的实例idio.github.ningyu.jmeter.plugin.dubbo.sample.DubboSample@273a8103,element名称c65ff2d2-a905-62ad-afcc-f042cece22e4
2024-11-28 11:08:27,923 [8e4733d0 1-1] INFO  i.g.n.jmeter.plugin.util.CheckUtils ? - check zookeeper connect
2024-11-28 11:08:27,923 [8e4733d0 1-1] INFO  org.apache.zookeeper.ZooKeeper ? - Initiating client connection, connectString=10.86.75.240:32759 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@55a9402b
2024-11-28 11:08:27,923 [8e4733d0 1-1] INFO  o.apache.zookeeper.ClientCnxnSocket ? - jute.maxbuffer value is 1048575 Bytes
2024-11-28 11:08:27,923 [8e4733d0 1-1] INFO  org.apache.zookeeper.ClientCnxn ? - zookeeper.request.timeout value is 0. feature enabled=false
2024-11-28 11:08:28,036 [8e4733d0 1-1-SendThread(10.86.75.240:32759)] INFO  org.apache.zookeeper.ClientCnxn ? - Opening socket connection to server 10.86.75.240/10.86.75.240:32759.
2024-11-28 11:08:28,036 [8e4733d0 1-1-SendThread(10.86.75.240:32759)] INFO  org.apache.zookeeper.ClientCnxn ? - SASL config status: Will not attempt to authenticate using SASL (unknown error)
2024-11-28 11:08:28,036 [8e4733d0 1-1-SendThread(10.86.75.240:32759)] INFO  org.apache.zookeeper.ClientCnxn ? - Socket connection established, initiating session, client: /172.30.10.12:50592, server: 10.86.75.240/10.86.75.240:32759
2024-11-28 11:08:28,038 [8e4733d0 1-1-SendThread(10.86.75.240:32759)] INFO  org.apache.zookeeper.ClientCnxn ? - Session establishment complete on server 10.86.75.240/10.86.75.240:32759, session id = 0xff93259d4b87f1c5, negotiated timeout = 40000
2024-11-28 11:08:28,140 [8e4733d0 1-1] INFO  org.apache.zookeeper.ZooKeeper ? - Session: 0xff93259d4b87f1c5 closed
2024-11-28 11:08:28,140 [8e4733d0 1-1-EventThread] INFO  org.apache.zookeeper.ClientCnxn 568 - EventThread shut down for session: 0xff93259d4b87f1c5

/opt/metersphere/logs/node-controller/ms-jmeter-run.log:
2024-11-28 11:09:45,704 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[apiDebug][接收到测试请求 start ]
2024-11-28 11:09:45,704 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[apiDebug][REPORT-ID: c742b4b1] 开始检查MinIO配置:
2024-11-28 11:09:45,704 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[initMinioClient][MinIOClient已初始化,无需再配置。]
2024-11-28 11:09:45,704 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[apiDebug][REPORT-ID: c742b4b1] 开始同步插件JAR:
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[ALLATORIxDEMO][本次执行[c742b4b1]在文件库中需要下载[0]个文件,已下载完毕。]
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[apiDebug][REPORT-ID: c742b4b1] 进入node执行方法开始处理任务
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[debug][REPORT-ID: c742b4b1] 开始检查MinIO配置:
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[initMinioClient][MinIOClient已初始化,无需再配置。]
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[debug][REPORT-ID: c742b4b1] 开始同步插件JAR:
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[apiDebug][REPORT-ID: c742b4b1] 开始拉取脚本和脚本附件:http://10.86.59.226:8081/api/jmeter/download?testId=c65ff2d2-a905-62ad-afcc-f042cece22e4&reportId=c742b4b1&runMode=DEFINITION&reportType=INDEPENDENCE&queueId=null
2024-11-28 11:09:45,710 qtp1772686209-41 INFO  ms-jmeter-run-log ? - Method[outApiThreadPoolExecutorLogger][API 并发队列详情:
 核心线程数:50
 活动线程数:2
 最大线程数:50
 系统当前线程数:124
 线程池活跃度:4.00%
 任务完成数:5024
 队列大小:10000
 当前排队线程数:0
 队列剩余大小:10000
 执行队列大小:29
 队列使用度:0.00%]
2024-11-28 11:09:45,711 MS-JMETER-RUN-TASK:5074 INFO  ms-jmeter-run-log ? - Method[run][REPORT-ID: c742b4b1] 开始执行队列中任务
2024-11-28 11:09:45,711 MS-JMETER-RUN-TASK:5074 INFO  ms-jmeter-run-log ? - Method[addQueue][REPORT-ID: c742b4b1] 开始为报告添加BackendListener
2024-11-28 11:09:45,711 MS-JMETER-RUN-TASK:5074 INFO  ms-jmeter-run-log ? - Method[addQueue][REPORT-ID: c65ff2d2-a905-62ad-afcc-f042cece22e4] 报告添加BackendListener 结束
2024-11-28 11:09:45,711 MS-JMETER-RUN-TASK:5074 INFO  ms-jmeter-run-log ? - Method[addQueue][REPORT-ID: c742b4b1] LocalRunner 开始执行报告
2024-11-28 11:09:45,712 StandardJMeterEngine INFO  ms-jmeter-run-log ? - Method[testStarted][测试计划开始执行:TestPlan]
2024-11-28 11:09:45,920 c742b4b1 1-1 INFO  ms-jmeter-run-log ? - Method[executeSamplePackage][REPORT-ID: send.c742b4b1] 开始推送调试结果到KAFKA
2024-11-28 11:09:45,921 c742b4b1 1-1 INFO  ms-jmeter-run-log ? - Method[executeSamplePackage][REPORT-ID: send.c742b4b1] 推送调试结果到KAFKA完成

附加信息

metersphere帖子:https://bbs.fit2cloud.com/t/topic/9414/7

13290445582 commented 1 day ago

您好,未复现dubbo接口调试失败问题,建议升级至最新版本使用。