I tried stress testing with JMeter software to test a web site as it crashed after a sms campaign. Currently site has been moved to a physical server.

I tested multiple times by adding threads, it worked and gave few errors (for above 1000 threads), and worked for 400 threads with no error. So I tried distributed testing with 4 PCs including my one.

After I tried again with only my PC to send requests to the site by adding 400 threads(ramp up = 1 , loop = 1). But each and every requests gives error. Then I tried using 1 thread. Same error was given.

enter image description here

I checked my network connection, and there is no problem. Then I browsed the web site "", and it works fine.

These are the values I have given in testing.

enter image description here

enter image description here

enter image description here

Under this condition, I cannot perform the testing because it always gives errors. How can I overcome this problem?

6

3 Answers

You're using incorrect JMeter configuration, change it as follows:

  1. Remove http:// from "Server Name or IP" input
  2. Put http to "Protocol input

    HTTP Request Defaults

    It is also possible to have the full URL in "Path" field like

    Path in HTTP Request Defaults

    But using "http://" in "Server Name or IP" won't work.

Also once you defined hostname, port, path, etc. in HTTP Request Defaults it will be automatically applied to all HTTP Request Samplers. You will be able to override an option for particular this or that sampler but if you don't - default value will be used. See Why It's SO Important To Use JMeter's HTTP Request Defaults for more detailed explanation and some use cases.

1

For me it was helpful to setup proxy server: Http Request Defaults-> Advanced

Looks like JMeter tries to connect to myjobs.lk, and you browse to . Try changing so that JMeter also connects to

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy