7

I have the same site running on two different machines (behind the same firewall), same exact code. I have created a test plan with Jmeter that just hits the home page. If I run with first url everything works as expected and get Size in bytes 17265. If I then other size I get a size of 0. Both are returning 200 status.

Is there a setting on the server side that could be causing this? I dont think it is a Jmeter setting since all I am doing for the 2nd request it changing the URL

enter image description here enter image description here

ADDING INFORMATION My HTTP Request Default I just add the URL and change nothing else enter image description here

For the HTTP Request I didn't actuall modify ANY setting enter image description here

This it the response body from one server: enter image description here

And this is the Other that is ALSO returning a 200 Status: enter image description here

Edit: I had seen that article but I had already had those features installed and working unless the is an additional setting somewhere in IIS that says even if these features are installed don't use them. Assuming that the errors in the logs would be under IIS there are no errors.

enter image description here

Lance
  • 3,193
  • 2
  • 32
  • 49
  • Maybe check https://stackoverflow.com/questions/32198732/why-does-iis-return-empty-responses – Ori Marko Sep 20 '17 at 09:22
  • Not quite the same because I can go to both in a browser and everything is fine one both. Pages look identical, only issue is when I am using jmeter – Lance Sep 20 '17 at 15:36
  • How is your request defined (and defaults)? As I don't see any indication of response data being recorded. I also noticed the header size is different and you didn't define the header manager. It could be nothing, but as you are connecting to two different webserver, small configuration differences could influence the outcome.... just pondering here ;-) – Ray Oei Sep 23 '17 at 11:14
  • Note: I would have expected a HTTP/204 if your server didn't have anything to deliver. – Ray Oei Sep 23 '17 at 11:21
  • I would have expected a 204 (or at least something other than 200) as well @RayOei I have add more screen shot. I am adding the HTTP Requests and the only thing that is different is between tests I am changing the Server name on the HTTP Request Default – Lance Sep 23 '17 at 20:45
  • At this stage I would be interested to know what is in the headers. As you don't use a header manager, the jmeter call is likely different from what a browser requests. I would try to get that as similar as possible. My guess would still be that the webservers are not completely configured the same. But I am guessing. Have you tried Fiddler or Wireshark to see what is actually sent and received?? – Ray Oei Sep 23 '17 at 23:13
  • Did you check your IIS/application logs? – Ori Marko Sep 24 '17 at 06:52
  • See also settings that will prevent not showing errors in IIS https://stackoverflow.com/questions/20173698/why-are-blank-pages-being-served-with-200-ok-for-asp-net-errors-in-iis-8-5-wi – Ori Marko Sep 24 '17 at 07:02
  • 2
    @user7294900 why not write an answer instead of comment ? – UBIK LOAD PACK Sep 24 '17 at 19:14

2 Answers2

3

Your server might be requiring headers such as Accept-Encoding which JMeter is not sending by default.

To add it in see here enter image description here

As well here is a JMX file testing your domain. Disable the HTTP Header Manager and you will get a 200 status but no data.

Richard Friedman
  • 932
  • 7
  • 11
  • Great Richard, @Lance just wondering why it works from 1 machine and not from another one. – UBIK LOAD PACK Sep 28 '17 at 18:43
  • Honestly I am not sure either and haven't investigated much. But now that I know what to look for I will post the reason once I figure it out. – Lance Sep 28 '17 at 19:49
1

As you mention in your question this is not a JMeter issue.

It seems the server code or configuration might not be correct as per following links (mentioned by https://stackoverflow.com/users/7294900/user7294900):

And also this one:

Check server logs for error logs.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • Please see my edit. I have those things installed and have looked at that artical previously but it hasn't changed the behavior. I don't think I have anything that would be suppressing a valid 500 error and everything IS working because the browser display correctly. – Lance Sep 26 '17 at 20:09
  • Did you check what is written in this one https://stackoverflow.com/questions/2235182/suppressing-http-500-response-codes?rq=1 ? – UBIK LOAD PACK Sep 27 '17 at 12:02
  • links are only supplement. –  Sep 27 '17 at 16:26
  • I read that question as their server is returning a 500 and they want it to return a 200 regardless whether there is an issue or not. My server is already returning 200. I have tried looking at it in a browser, with fiddler and with jmeter and fiddler. the only real different I see in fiddler is the jmeter hit get a 0 content lenth and so never requests all the assets (css, js etc) but the browser doesn't get 0 content length and does request all of the assets. I am beyond frustrated lol – Lance Sep 27 '17 at 16:48
  • Are you using distributed testing in JMeter for second test when you get empty response ? – UBIK LOAD PACK Sep 27 '17 at 17:54
  • Also can you try with JMeter 3.3 ? – UBIK LOAD PACK Sep 27 '17 at 18:00