错误“连接重置"在 JMeter(SOAP XML 网络服务)中 [英] Error "Connection reset" in JMeter (SOAP XML web-service)

查看:16
本文介绍了错误“连接重置"在 JMeter(SOAP XML 网络服务)中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 JMeter 中有下一个测试计划:

I have the next test plan in JMeter:

在屏幕截图上,您可以看到第一个线程组的设置,其中测试计划中有 50% 的公共请求(在每个线程组中放置了 10 个不同的子请求).因此,使用这些设置平均每秒增加 +1 个请求.

on the screenshot you can see the settings for the 1st ThreadGroup, wich has 50% of common amout of request in test plan (in each Thread Group are 10 different subrequests placed). So, +1 request per second is added in average using these settings.

然后我运行了这个测试并看到了这张图片(Error % 列):

Then I ran this test and saw this picture (Error % column):

我将错误保存在文件中,所有这些错误都有相同的文本:

I save errors in file and all these errors have the same text:

<sample t="30129" lt="0" ts="1356710138314" s="false" lb="WebService(SOAP) Request 1" rc="000" rm="**Connection reset**" tn="jp@gc - Stepping Thread Group1 3-247" dt="text" by="0"/> 

服务器的cpu截图:

和数据库:

出现错误后,我的comp开始慢慢地工作(尽管错误不再出现)...同时服务器的cpu逐渐降到0.

After the errors have appeared my comp started work slowly and slowly (although the errors stopped to appear further)... And in the same time the server's cpu progressively dropped to 0.

你能告诉我吗,

这个错误的原因是什么?

我是否已达到服务器超时?(因为Max在表中超过30s).

Have I reached the server timeout? (Because Max is more than 30s in the table).

更新.我使用下一个设置重新运行测试:每 02:46:40 1000 个用户(每 10 秒 +1 个线程组和循环中每个新线程内的 10 个请求).IE.我将测试时间和总线程组减少了 2 倍,但节省了添加 Thead 的强度.

UPD. I have rerun test with next settings: 1000 users per 02:46:40 (+1 Thread Group per 10 second and 10 requests inside each new Thread in the Loop). I.e. I have reduced the time of test and total Thread Groups by 2 times, but save intensivity of Thead's adding.

结果是一样的(包括服务器上的cpu使用率).我在 990 线程启动后收到错误连接重置".有截图:

The results are the same (including cpu usage on the server). I've received the error «Connection reset» after 990 thread started. There are screenshots:

有什么想法吗?

推荐答案

首先,WebService(SOAP) Request 不是在 JMeter 中测试 Web 服务的最佳方式,它将在即将推出的 2.9 版本中弃用.HTTP Sampler 是首选,因为它的性能要好得多.

First, WebService(SOAP) Request is not the best way to test Webservices in JMeter, it will be deprecated in upcoming 2.9 version. HTTP Sampler is the one to choose as it performs much better.

第二,连接重置意味着您的服务器已切断连接.它可能来自似乎很高但不确定的 CPU.

Second, Connection Reset means your server has cut connection. It could be coming from the CPU which seems high but it's not sure.

如果您所说的我的组件"是托管 JMeter 的计算机开始缓慢运行,那么您的 JMeter 实例将被您配置的线程数量(2003 年或更多?)淹没.它可能来自很多因素,请阅读:

If what you call "my comp" is the computer hosting JMeter started working slowly then your JMeter instance is overwhelmed by the number of threads (2003 or more?) you've configured. It can come from a lot of factors, read this:

这篇关于错误“连接重置"在 JMeter(SOAP XML 网络服务)中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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