启用 VLAN 的系统中的 JMeter 问题 [英] JMeter Issue in VLAN enabled system

查看:14
本文介绍了启用 VLAN 的系统中的 JMeter 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦我的机器启用了 VLAN,我就无法使用 JMeter-2.9 工具准备新脚本,也无法执行我之前在同一台机器上运行的旧脚本.

Once my machine is VLAN enabled, I'm neither able to prepare new scripts using JMeter-2.9 tool nor able to execute my old scripts which I used to run earlier on the same machine.

请查看我在运行旧脚本时收到的以下错误消息:

Please find below error message I got while running the old scripts:

*Thread Name: 46_Drug Issue 1-1
Sample Start: 2014-11-19 16:22:40 IST
Load time: 1001
Latency: 0
Size in bytes: 1720
Headers size in bytes: 0
Body size in bytes: 1720
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: java.net.ConnectException
Response message: Non HTTP response message: Connection refused: connect
Response headers:
HTTPSampleResult fields:
ContentType: 
DataEncoding: null*

在我的 Windows 机器上记录新的测试计划时,我能够在 JMeter 工具中启用 HTTP 代理服务器的情况下浏览不同的页面,但事务控制器中没有记录任何 HTTP 请求.

While recording a new test plan in my Windows machine, I'm able to navigate the different pages with HTTP Proxy server enabled in JMeter tool, but no HTTP request is getting recorded in the transaction controller.

谁能提出建议,如何克服这个问题?

Can anyone please suggest, how to overcome this issue ?

推荐答案

据我所知问题与代理有关.

According to me issue is related to proxy.

Jmeter 位于您的机器和代理之间,这就是它记录进出您机器的所有请求的方式.如果您的代理设置正确,无论您是在 VLAN 还是 WAN 中都没有关系.

Jmeter sits between your machine and proxy and thats how it records all the requests coming to and going from your machine. It doesnt matter you are in VLAN or WAN if your proxy settings are correct.

一旦在 VLAN 中应用类似的代理设置(Localhost,8080),请检查您的代理设置,否则您可以通过使用 JMeter 参数启动 Jmeter 来为您的 Jmeter 提供单独的代理,

Please check your proxy settings once put apply similar proxy settings (Localhost,8080) in VLAN or else you can provide seperate proxy for your Jmeter by starting it with JMeter parameters,

Jmeter.bat -H <hostname> -P <port> -u <username> -a <pwd> 

这篇关于启用 VLAN 的系统中的 JMeter 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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