Hot answers tagged

12

It is very likely you will get differing results. Especially in response times. This is mainly due to latency caused by the Geographical distribution. This will become important if response times is one of the metrics you are using to understand the website's ability to cope/scale under load. A simple reflection of this is; go to http://amazon.co.uk/ ...


12

Well I don't think JMeter will help you do performance or load testing of the click action/event of a button. If the click of a button makes an HTTP request to the server, then you can most definitely do performance or load testing for that. How JMeter works is, it takes an HTTP request and throws the specified number of instances (threads/users) on the ...


11

Try to record your script with Blazemeter and run the test. See if you get same error. If not then compare the two scripts and check what went wrong with your script. Blazemeter is an extension of Google Chrome. You can create a free account and record your script and then export the JMX file. Use this file in Jmeter to run the test.


10

Open you test plan in the Jmeter GUI and check the HTTP Response Timeout limit. For this, in Jmeter, Open the TEST Plan Got to the HTTP Request Sampler under Threads In the Timeouts section set the Response Timeout limit and Save the Test Plan. Now try to run your test from the command line. It will stop the test after the timeout limit is reached!


8

Although you can do it directly with Jmeter but as you mentioned above there is so much that you will have to do for it and you will require to have strong knowledge of Java & Jmeter. OR You can do it the easy way. Use Blazemeter. Blazemeter has a Chrome extension using which you can record user actions in Chrome and then export the test script. Those ...


8

After a lot of Googling and trial and error I found out that a tag in the JMX file that Blazemeter's Chrome Extension generates was creating a problem. The JMX file included a <hashTree/> in several places and this tag was causing the JMX file to not being read by Jmeter in non GUI mode. So I removed this tag and tried to run the test and got a hell ...


6

To avoid mutual interference it is much better to run JMeter and Application Under Test on different hosts. Theoretically you can have them on same machine but results won't be reliable. Load Testing is not only about getting main metrics and KPIs like response time, transactions per second, throughput, etc. - a lot of other information needs to be ...


5

Option 1: You can keep the user count as 1 and Loop count as 100 in your thread group. This way your script will be executed 100 times, without concurrency of users and one user at a time. you can use CSV file if you want to change the user login credentials and other data at each loop starting i.e. different data for different user. Option 2: Another ...


5

First ask your client that 'How many users their website intend to support?' From client you should get the number of users during Peak Load (Y) and Normal Load (X) and their expected Response Time, some clients say make it as fast as possible, but never go for this wording, ask him about the numbers. Then start running your script from 1 to X to Y in an ...


5

It is impossible to say something like "this hardware will able to simulate that much virtual users" as the maximum load you can produce from hardware strongly depends on the nature of your test. For instance, if your test is simple hammering one or several pages with GET requests - you'll be able to simulate X users. If your test assumes massive pre/...


5

Answering the comments above, Well I had Java and Jmeter installed correctly with ClassPath and everything. I also tried running Command Prompt as Administrator but got the same result. There was no problem in that. That is why the GUI version was working properly in first place. After a lot of R&D and Googling I found out that the problem was with the ...


4

You are running the JMeter on your local machine. The load on your local machine comes from creating the requests to be sent to the server and handling the responses from the server. You may want to check for example this blog post for performance tuning tips, such as running real load tests in non-gui mode.


3

Yes, there is a way possible to do this. You need to add a 'HTTP Request Default' configuration element from 'Configuration Elements' option i.e. Right click test plan and add this 'HTTP Request Default'. In this 'HTTP Request Default' there is an option Connect in 'Timeouts (milliseconds)', you can specify your connection timeout value in this field and ...


3

What questions should I ask the developers so that i can proceed with automating? It depends what kind of test you want to have, if it is only end2end testing then "Base URI" should be enough for you. If you need to test more than that (e.g Tests which need mocking), you may need to have access to the project code to add your test code there. For ...


3

You should show them a report in which you include Response Time (if there is any kind of SLA with client that each of the 13000 users will get a response in X seconds). If this doesn't matter in how much time users are getting response then leave this value. Based on the result of Response Time mark your test as Pass or Fail in your report. If your ...


3

For your issue about the CPU and Memory usage graph, I will recommend you to use the JMeter plugin and use the Perfmon Metrics Collector listener of this plugin in your scripts. Also, you will need to place and start a file StartAgent.bat (StartAgent.sh for Linux systems) on the server and open the port 4444 on your server. Once this all is done, JMeter will ...


3

The easiest way to resolve this issue is to place the CSV file on all servers (Master and Slaves) inside the Bin directory of JMeter and don't specify any path for the CSV file inside the your JMeter test plan i.e. don't use C:\Data\Files\abc.csv in your test plan, use only abc.csv (and place this file in Bin directory). Also, it will be good to keep the ...


3

The most prominent load testing tools as for now are: Apache JMeter Gatling Grinder Tsung I would recommend checking out Open Source Load Testing Tools: Which One Should You Use? article which provides enough information to decide which one suits your needs in the best way. Personal recommendation: if your project is based on Jasper Reports it means ...


3

The only way to get the reason is looking into jmeter.log file and taking a thread dump using jstack command to see where it hangs and why. You can also add the following line to user.properties file: jmeter.save.saveservice.autoflush=true and look into .jtl results file to see whether it is being updated. You can also open it with the listener of your ...


3

The second one is the only way. It is strictly recommended that you do not run a JMeter test from a server where you already have the application installed which has to be tested.Jmeter test consumes a huge memory resource from server or machine. So if you have JMeter & the application to be tested on the same server, you can't expect to have accurate ...


3

Answer In Short Strictly Recommended Method: Execute JMeter Scripts on remote server. Reason: JMeter use huge memory which affects the performance of machine, hence executing JMeter script on same server will generate the false report.


3

Network is the highest cost resource in terms of adding to response time. When you run on the same server as the web server you are processing requests and responses across the system bus of the system, which is order of magnitude faster than the network where the clients will be collected. You are also shaping the performance curve of the server to ...


2

You can try to use WebDriver plugin which interacts with UI elements. It support explicit wait on some conditions like IsElementVisible.


2

It seems to be server issue, that it is not able to handle heavy load specified by you. But still there can be multiple reasons for your script not working with 3000 users and 60 Ramp up time. Your Ramp Up value is low then required, try same script with higher value of Ramp Up period. Ramp up value is a significant factor for controlling heavy loads using ...


2

See 13000 threads is a huge amount, which can cause your machine to get hang and other issues like "Memory Out of Index", High CPU usage etc. and that depends upon your script too i.e. How many requests are there in your script? -- Generally REST requests are not that heavy and I am considering that you have only 1 REST request in your script. How many ...


2

You can do this by using JMeter Scheduler: In Thread Group tick the Scheduler and set the value as below: Start Time and End Time: No need to input. keep them as they are, because they have no significant after entering Duration and Startup delay value. Delay overrides Start Time, and Duration overrides End Time. For example, if you want to run the test ...


2

I hope you not using JMeter in GUI mode. If you do - please switch to command-line non-GUI mode as JMeter GUI is very resource intensive and may ruin your test. The same for the Listeners: if you have View Results Tree or View Results in Table listeners added and enabled - remove or disable them as they consume a lot of CPU and RAM. Follow ...


2

The most common reasons are: missing or incorrect mandatory dynamic parameter. In that case you need to identify it, extract from 1st response via Regular Expression Extractor and use the extracted value in 2nd request missing HTTP Cookie Manager in case of external authentication (Basic HTTP, NTLM or Kerberos) - missing or improperly configured HTTP ...


2

If you have any SLA defined from the client side, then you should compare the Response Time to that SLA like your client says application should have 5 secs of Response time with 500 users, then if your application is not showing that behavior then you need performance tuning. If you don't have any SLA then you can use the general theory, that any response ...


2

You should use a Post-processor in your first request and extract the Integer value from the response using either Regular Expression Extractor or XPath Extractor, once this value is extracted and stored in a variable as per extractor syntax, use this variable in your next HTTP request URL (path) and this will pass the required value, making your script ...



Only top voted, non community-wiki answers of a minimum length are eligible