jmeter Non HTTP response code: java.net.ConnectException

无人久伴 提交于 2019-12-23 05:46:10

问题


I am ruining a simple HTTP Request gmail login page. i am getting below error.can anyone please help to solve this problem.

Thread Name: mygroup 1-1 Sample Start: 2017-02-22 12:23:25 CAT Load time: 21094 Connect Time: 21093 Latency: 0 Size in bytes: 2206 Headers size in bytes: 0 Body size in bytes: 2206 Sample Count: 1 Error Count: 1 Data type ("text"|"bin"|""): text Response code: Non HTTP response code: java.net.ConnectException Response message: Non HTTP response message: Connection timed out: connect Response headers: HTTPSampleResult fields:


回答1:


I would not recommend practicing load testing using applications you don't own, you can be blacklisted or even worse. Try out the following options instead:

  • Welcome: Mercury Tours
  • BlazeDemo

However for practicing purposes it is better to use a web application deployed in your local intranet so you could measure the load from operating system perspective (CPU, RAM, Disk, Network usage). You can deploy some free and open source CMS like Drupal or Joomla somewhere and use it for your load testing excercises.


If you need to check email it is better to do it using JMeter's Mail Reader Sampler which can fetch email messages using POP3 or IMAP protocols. Check out Load Testing Your Email Server: How to Send and Receive E-mails with JMeter article for more information and example configuration.




回答2:


If your web application having SSL certificate which is not trusted in this case JMeter/Blazemeter through below error
Non HTTP response code: java.net.ConnectException
Non HTTP response message: Connection timed out (Connection timed out)

Solution:

Change your HTTP sampler implementation to HttpClient4
1. Click to advanced Tab of sampler or HTTP Request
2. Select HttpClient4 option from implementation
Click to see image



来源:https://stackoverflow.com/questions/42388993/jmeter-non-http-response-code-java-net-connectexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!