I'm really new to JMeter. I'm trying to make a simple test as I saw in some videos. When I try to run simple test it gives me an error in results tree. It says: Response code: Non HTTP response code. I saw a lot of things on stackoverflow, but nothing with the error I have. Really sorry if it is a duplicate question, but I didn't found any solution for my case.
-
You dont have a header manager under your request? Try to record the google url from your browser with the HTTP(S) Test Script Recorder – Janp95 Feb 08 '19 at 15:21
5 Answers
Please do not point performance testing tools at sites you do not own, manage or control OR have permission from those that do have those roles. Your GOOGLE end user agreement especially forbids the use of automated tools on its interface, with the only supported interfaces for automation the published web services APIs.
Performance Testing tools are the equivalent of tactical nuclear software. They are designed to place maximum stress on the target, up to and including destroying it's ability to continue operation. Pointing any tool of this type at a site you down't own or have permission to target is no different than throwing bombs at random houses from the back of a pickup driving through a neighborhood. I haven't been through the Jmeter license recently, but all commercial performance testing tools ban this activity under license.
Download a GNU application, install it yourself and then test that. May I recommend SugarCRM

- 5,606
- 1
- 14
- 14
-
Maybe it is because I've made it at work where we have restricted access to websites ? But I have access to google.com – brithwulf Feb 10 '19 at 09:34
-
1There is an ethical issue here. When you agree to use a site, including the restrictions, you should honor them. This is also true of the tools you use - there are many license restrictions I dislike, but i strictly adhere to them. Why would anyone accept test results from a tester with a willingness to violate licenses and agreements? In my own organization such a tester would no longer be allowed to work in the role. You are placing someone else's work under load without their permission. Bad Magic. – James Pulley Feb 10 '19 at 17:45
So my expectation is that:
- You should stop sending requests to google.com. Consider using either your own web application or sites which are designed for this form of practice like http://blazedemo.com/ or http://www.newtours.demoaut.com/. If the tutorial you're referring to assumes real life websites - I wouldn't trust this tutorial a lot.
- You're being blocked either on Google side or on your ISP side or on your router / firewall which may have automated fraudulent behaviour detection and prevention logic

- 159,985
- 5
- 83
- 133
Your configuration works for me. Please try the server adress www.google.com. When calling google.com there are two requests made:
- The first request "GET http://google.com/" returns HTTP 301 Moved Permanently. First Request when calling google.com
- The following request "GET http://www.google.com/" returns a HTTP 200 Second Request when calling google.com
When you call www.google.com the 301 will not be returned: Request with www result in only one request
Make sure, that you network connection is ok.

- 349
- 2
- 9
-
Maybe it is because I've made it at work where we have restricted access to websites ? But I have access to google.com – brithwulf Feb 10 '19 at 09:34
-
Then it might be a proxy issue. Please use the script recorder https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.html – Johann Feb 10 '19 at 11:46
If you look at the response message you may notice the cause of the error: "Connection timed out: Connect".
Your connect time is close to 21 seconds and then you receive a timeout. This is a default TCP connection timeout (see Where does the socket timeout of 21000 ms come from?).
I would suggest to check the network connection to the host where you run JMeter.

- 614
- 5
- 8
I just went through the sampler result tab of the images. I guess this is not an issue with your Jmeter configuration. If you look at the sampler results it looks like this.
Load time: 21074
Connect Time: 21074
Latency: 0
Size in bytes: 2723
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 2723
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: Non HTTP response code:
Response message: Non HTTP response message: google.com:80 ... connection timeout
HTTPSampleResult fields:
ContentType:
DataEncoding: null
If you look at the Load time and the Connection time they are more than 27 seconds and both have the same value. Then the Sent bytes value and the Headers size in bytes is 0. The Response message says it's a connection time out
Looking at those results it looks like Jmeter tried make the connection for 27 seconds and then timed out with out sending any request. That's why the sent bytes value is 0.
Since the response says connect to google.com:80 I suspect this is due to a proxy issue or probably due to a slow connection issue.
As a solution first check if your proxy connection is on port 80. if so try to remove proxy and run the test again. If not check the net work connection speed. your script have no issues.
Good luck

- 1,216
- 8
- 24