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/ ...


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.


11

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 ...


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

This greatly depends on the system you are running jMeter on and how heavy the test is. Your system does not look heavy enough for 10k concurrent users, from the jMeter documentation I get the feeling 1k is the target limit for each machine. Have a look at http://jmeter.apache.org/usermanual/remote-test.html for running your tests from multiple remote ...


4

'10000 users' using jmeter is pretty tough on single machine considering given configuration, the maximum number of threads supported by jmeter will be 300 to 400 depending on your script, eventually jmeter will get stuck with 'OutOfMemoryError' and it will create a very large dump file. it would be best to use distributed jmeter and simulate distributed '...


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

Out of box JMeter provides the following scripting languages for BSF: JavaScript via Mozilla Rhino Beanshell via Beanshell Given var statement it looks like JavaScript is being used. By the way, the language needs to be selected in the "Language" dropdown, otherwise BSF PreProcessor will fail with the "unsupported language" exception, take a look there....


3

First use the xpath extractor and extract the string from title the xpath would be //title Give the reference name say "t" and default as "Not Found" Next use in the if controller give condition as "${t}" == "Google" add a sampler in it which hits yahoo.com.(Make sure you use https in protocol inside sampler) Add a View Results Tree in the Thread Group ...


3

Can you please elaborate your question, i.e. which common listeners you are talking about like:- Aggregate Report View Results in tree View Results in table and which fields explanations you need like:- Number of Samples (# Samples) Average 90% line Because JMeter has lots of listeners and a performance tester needs to summarize his/her report in a ...


3

While Loop controller execute its samplers until the condition specified is not set to False. The condition can be any variable or function that eventually evaluates to the string 'false'. So, you need to specify a variable or function in While Loop, that has value 'true' and becomes 'false' somewhere else in the script. Once it changes to 'false', JMeter ...


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

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

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

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 need to refine your scripts for the unwanted requests as per below mentioned ways First you should exclude all the static content (like CSS, images, js files, .properties files, .ico etc.) from your recording, as requests for these samples should be from cache and keeping these requests will only make your script lengthy and heavy. So, in your HTTP ...


2

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



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