jmeter和未知主机异常 [英] jmeter and unknown host exception

查看:434
本文介绍了jmeter和未知主机异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过jmeter记录https请求时,请指导我在jmeter中需要完成哪些所有设置.我在执行相同操作时遇到未知的主机异常. 谢谢

Please guide me what all are the settings needs to be done in jmeter while recording an https request through jmeter. I am getting unknown host exception while doing the same. Thanks

推荐答案

假设1 :您错误地配置了JMeter和/或浏览器.您可以使用

Assumption 1: you have misconfigured JMeter and/or browser. You can get JMeter configured for recording in a couple of clicks using Templates feature.

  • 从JMeter的主菜单中选择File-> Templates-> Recording-> Create
  • 配置浏览器以使用以下代理:

  • From JMeter's main menu select File -> Templates -> Recording -> Create
  • Configure your browser to use the following proxy:

  • 代理主机:运行JMeter的主机名或IP地址
  • 代理端口: 8888
  • 对所有协议使用代理(如果可用)-检查
  • 绕过本地地址(或等效地址)的代理-取消选中
  • Proxy host: hostname or IP address where JMeter is running
  • Proxy port: 8888
  • Use proxy for all protocols (if available) - check
  • Bypass proxy for local addresses (or equivalent) - uncheck

假设2 :您(或您的公司)正在使用公司代理访问Internet和/或Intranet.在这种情况下,您需要将代理详细信息传递给JMeter启动脚本,例如:

Assumption 2: you (or your company) are using corporate proxy to access Internet and/or intranet. In that case you need to pass proxy details to JMeter startup script like:

jmeter -H proxy_host -P proxy_port ...

请参阅在代理后面使用JMeter 指南,以获取有关领域.

See Using JMeter behind a proxy guide for more information on the domain.

您还可以考虑使用另一种解决方案,该解决方案允许从浏览器直接记录JMeter测试,而无需配置代理,无需担心SSL证书等.请查看

You can also consider an alternative solution which allows recording JMeter test right from browser without having to configure proxies, worry about SSL certificates, etc. Check out JMeter Chrome Extension

这篇关于jmeter和未知主机异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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