使用JMeter测试XMPP聊天服务器 [英] Testing XMPP Chat Server with JMeter

查看:514
本文介绍了使用JMeter测试XMPP聊天服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用JMeter在XMPP / HTTP Web服务服务器上执行一些性能和负载测试。我是JMeter的新手,并开始了解基础知识,但我希望尽快完成这些测试并运行,以便寻求帮助。

I'm looking to do some performance and load testing on a XMPP/HTTP Web services server using JMeter. I'm new to JMeter and am starting to get my head around the basics, but I would like to get these tests up and running ASAP so am reaching out for some help.

我能够找到一个示例JMeter 测试计划我希望我能够适应并立即启动并运行,但是并没有真正发挥作用,使用Wireshark,来自客户端的消息使用TCP发送。我尝试使用这个yandex插件,但是当我尝试使用它时会抛出错误它。

I was able to find a sample JMeter Test Plan which I was hopeful I could adapt and get up and running in no time, however that didn't really pan out, using Wireshark, messages from the client are sent using TCP. I tried using this yandex plugin, but It is throwing errors when I try to use it.

这是我得到的错误。

2014/02/10 15:11:18 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2014/02/10 15:11:18 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2014/02/10 15:11:18 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
2014/02/10 15:11:19 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 
2014/02/10 15:11:19 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 
2014/02/10 15:11:19 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error 
2014/02/10 15:11:19 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 
2014/02/10 15:11:19 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1 
2014/02/10 15:11:19 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started 
2014/02/10 15:11:19 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 
2014/02/10 15:11:49 ERROR - ru.yandex.jmeter.XMPPClientImpl: Error reading data java.lang.RuntimeException: Retries more than 1000, aborting read
    at ru.yandex.jmeter.XMPPClientImpl.read(XMPPClientImpl.java:116)
    at org.apache.jmeter.protocol.tcp.sampler.TCPSampler.sample(TCPSampler.java:414)
    at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Thread.java:744)

2014/02/10 15:11:49 ERROR - jmeter.protocol.tcp.sampler.TCPSampler:  java.lang.RuntimeException: Error reading data
    at ru.yandex.jmeter.XMPPClientImpl.read(XMPPClientImpl.java:152)
    at org.apache.jmeter.protocol.tcp.sampler.TCPSampler.sample(TCPSampler.java:414)
    at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.RuntimeException: Retries more than 1000, aborting read
    at ru.yandex.jmeter.XMPPClientImpl.read(XMPPClientImpl.java:116)
    ... 4 more

2014/02/10 15:11:49 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 
2014/02/10 15:11:49 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2014/02/10 15:11:49 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 

我想要能够发送聊天消息,状态更新和组成服务器更新,并增加用户数量。这是测试对我们有用的基本要求。

I would like to be able to send chat messages, presence updates and composing updates to the server, and ramp up the number of users. this is the basic set of requirements for the tests to be useful to us.

非常感谢任何帮助或示例测试计划的链接。

Any help or links to sample test plans would be greatly appreciated.

谢谢。

推荐答案

有一个可通过JMeter插件管理器安装的XMPP插件:

There is a plugin for XMPP that is installable through JMeter Plugins Manager:

  • https://jmeter-plugins.org/?search=xmpp

它应该做你期望的事情

这篇关于使用JMeter测试XMPP聊天服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆