Questions tagged [jmeter]

Apache JMeter is an open source Java application, designed to load-test functional behavior and measure performance. Originally designed for testing Web Applications, it has since expanded to other test functions as well.

jmeter
Filter by
Sorted by
Tagged with
191 votes
13 answers
299k views

How do I install jmeter on a Mac?

We want to use JMeter. I've downloaded the production version as directed in the user manual at http://jmeter.apache.org/usermanual/get-started.html But how do I get started and install the software?...
Michael Durrant's user avatar
128 votes
4 answers
157k views

How to send request with content type header?

How can we change content type in request header of HTTP request for restful web services? From where do we exactly change it?
Thonas1601's user avatar
  • 1,367
81 votes
6 answers
54k views

Jmeter alternative [closed]

I'm looking for a freeware / simpler alternative to JMeter. It is a very complete yet complex tool and all I need is to simulate a number of simultaneous calls to a site, grab stats about performance (...
pistacchio's user avatar
  • 57.9k
77 votes
6 answers
134k views

Testing with JMeter: how to run N requests per second

I need to test if our system can perform N requests per second. Technically, it's 2 requests to one API, 2 requests to another, and 6 requests to third one. But the important thing that they should ...
alexeypro's user avatar
  • 3,673
70 votes
3 answers
114k views

How to insert delay between each requests in Jmeter

I wanted to execute a Test Plan as Below. Example : I wanted every http request should take delay of two minutes http_request_1, delay (2 minutes) http_request_2 All request are in same thread group
user3282573's user avatar
68 votes
17 answers
115k views

Jmeter does not send JSON data in POST

I am trying to do a POST in jmeter with a json as the body data but I just get a 400 back. The URL I am sending to only accepts json. I have used the same curl in Postman and it worked just fine. I ...
Justin Thompson's user avatar
68 votes
6 answers
107k views

Running multiple Thread Groups sequentially in JMeter

I have a Test plan in which there are multiple Thread Groups. I want to run all of the Thread Groups sequentially. Thread Groups are as below: Thread Group1 Thread Group2 Thread Group3 . . . Thread ...
Just_another_developer's user avatar
66 votes
10 answers
111k views

How do I pass a variable from one Thread Group to another in JMeter

I have a JMeter test with 2 Thread Groups - the first is a single thread (which creates some inventory) and the second has multiple threads (which purchase all the inventory). I use BeanShell ...
Todd R's user avatar
  • 18.4k
64 votes
5 answers
121k views

Using RestTemplate, how to send the request to a proxy first so I can use my junits with JMeter?

I have a web service running on my dev box implemented using Spring-MVC 3.0. I have various JUnits that test against that service using RestTemplate. What I would like to do is have JMeter pick up ...
AHungerArtist's user avatar
61 votes
5 answers
179k views

How to analyze a JMeter summary report?

I get the following result when I run a load test. Can any one help me to read the report? the number of thread = '500 ' ramp up period = '1' Sample = '500' Avg = '20917' min ...
user3021346's user avatar
57 votes
5 answers
95k views

JMeter - how to log the full request for a failed response?

i'm using JMeter command line to stress test our website api. Now, here's a sample result i'm getting back: Creating summariser <summary> Created the tree successfully using street_advisor.jmx ...
Pure.Krome's user avatar
  • 85.7k
55 votes
11 answers
82k views

JMeter Basic Authentication

I am trying to imply the basic authentication process for a web service using JMeter. But everytime it throws out an error 401:Unauthorized. I tried using the HTTP Header manager to add a header ...
Depy's user avatar
  • 559
55 votes
16 answers
184k views

How to resolve the error "Unable to access jarfile ApacheJMeter.jar errorlevel=1" while initiating Jmeter?

Download Jmeter and execute the batch file (Jmeter\apache-jmeter-2.6\bin\jmeter.bat). We get the error message in the console: Unable to access jarfile ApacheJMeter.jar errorlevel=1 Kindly help me ...
Dr.Selvaraj Malaiyarasan's user avatar
53 votes
7 answers
101k views

Conversion Error when opening JMX file from JMeter 2.7 in JMeter 2.11

I am trying to open a jmx file written with Apache JMeter 2.7 in the last release Apache JMeter 2.11. I am getting this errors log : 2014/09/10 09:29:44 INFO - jmeter.gui.action.Load: Loading file: ...
Sylvie CHABE's user avatar
53 votes
5 answers
93k views

Session/cookie management in Apache JMeter

We have a simple performance test flow in an application. We login Search based on some criteria repeat searches for different parameters. We are using Jmeter to do a performance testing. We need ...
Priyank's user avatar
  • 14.3k
52 votes
9 answers
112k views

JMeter understanding ramp-up

This is the configuration of my test plan thread properties: Number of Threads (users): 100 Ramp-up Period (in seconds): 10 Loop Count : Forever Delay thread creation until needed: No Scheduler: No ...
Frank Smith's user avatar
  • 1,727
52 votes
2 answers
64k views

Workbench section not showing in apache jmeter

I am new to jmeter. I successfully installed jmeter into my windows machine. I opened "jmeter.bat" under apache-jmeter-4.0\bin. But the jmeter window is not showing the workbench section in the left ...
Aravinth's user avatar
  • 696
52 votes
7 answers
62k views

How to analyse JMeter result?

I am new in JMeter tool. Can anyone help me for the best way to analyse JMeter reports?
john's user avatar
  • 521
48 votes
3 answers
22k views

Which gets the measurements right, JMeter or Apache ab?

I started writing some basic tests in JMeter and was surprised that the measurements are so different from those from Apache ab. I have a gigabit LAN connecting an Intel i7 server running Nginx and ...
Rick-777's user avatar
  • 9,990
47 votes
3 answers
24k views

How to clear the results in Aggregate Report's table in JMeter automatically when executing the same test plan again?

So after executing a test run, I have the Aggregate Report's table filled with the data of the test plan that just finished running. Now, when I execute the test plan again, the results are getting ...
Srikanth's user avatar
  • 12k
47 votes
2 answers
67k views

jmeter - showing the values of variables

My group does a lot of test automation with JM. Typically we have a properties file which has a bunch of variables defined. These in turn are mapped to "User Defined Variables" of which we have a ...
wmitchell's user avatar
  • 5,705
45 votes
4 answers
72k views

Jmeter Current Thread Number?

I am using a Thread Group with Number Of Threads = 5 with an HTTP request. In the request I want to include a parameter with the value of the thread number, e.g., "pageno": ${threadno} I want to ...
Raju's user avatar
  • 747
44 votes
4 answers
68k views

jmeter pass command line variables into a jmx

I'm trying to automate some perf testing. I'd to pass server locations into a generic jmx from a Jenkins job. I'd like to be able to do something like: jmeter -n -t foo.jmx -JtestingIP=IP and ...
GeorgeFabian's user avatar
42 votes
3 answers
80k views

JMeter Alter HTTP Headers During Test

I'm attempting to test an HTTP service with JMeter. The HTTP service requires authentication through a simple bearer token mechanism. I'm trying to proceed as follows: POST authentication request ...
Bennett's user avatar
  • 487
41 votes
9 answers
120k views

Jmeter - Run .jmx file through command line and get the summary report in a excel

I am new to jmeter. I have the .jmx file containg all the required http samplers. I could run it throught the Jmeter UI using "Run-> Start" and view the result in the "Summary Report". I can then save ...
user1788294's user avatar
  • 1,853
40 votes
9 answers
27k views

Why am i not able to click on open icon in Jmeter?

Below is the error i get,while clicking on open icon: 2021-05-20 12:11:25,651 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main] java.lang.IllegalAccessError: class com....
presty prajna's user avatar
40 votes
10 answers
25k views

What is the highest number of threads that is reasonable to simultaneously run in Jmeter?

I want to use the highest possible number of threads (to use less computers) but without making the bottleneck to be in the client.
flybywire's user avatar
  • 267k
39 votes
7 answers
188k views

Jmeter - get current date and time

I want to get the current date and time as example date: 11/10/2014 and time 8:30 am or 6:00 pm and pass it as parameters to my Jmeter test. Can some help me do this.
user3920295's user avatar
39 votes
3 answers
47k views

java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.MenuFactory

when i open apache-jmeter-3.1 and right click the test-plan button,it turns out to be no response and throws lists of errors in the jmeter.log as follows 2016/12/17 16:24:30 ERROR - jmeter.JMeter: ...
User.Super's user avatar
39 votes
5 answers
61k views

How to create and run Apache JMeter Test Scripts from a Java program?

I want to use the API provided by Apache JMeter to create and run test scripts from a Java program. I have understood the basics of ThreadGroup and Samplers. I can create those in my Java class by ...
Alim Ul Gias's user avatar
  • 6,611
38 votes
4 answers
71k views

multiple user logins in jmeter

I am using jmeter to test a php application. I need to create a different thread with a unique session for each user. Because in my application you can only have one login per user at a time so ...
Catalin Marin's user avatar
38 votes
9 answers
112k views

How do I save my Apache jMeter results to a CSV file?

I've created my jMeter test which make 20,000 HTTP requests. I've included the "View Results in Table" listener. After running the test, I would like to save the table results to a CSV file.
dacracot's user avatar
  • 22.1k
38 votes
1 answer
34k views

JMeter - Changing user defined variables from command line

I'm trying to update a "user defined variable" in a jmeter test plan using the command line jmeter -n -t SimpleJmxExample.jmx -l log.jtl -Jtestproperty=202 as you can see I'm using the -J argument. ...
CraftyFella's user avatar
  • 7,560
37 votes
4 answers
29k views

JMeter upload file with relative path from the jmx file

I am creating a HTTP Request Sampler in JMeter to automate uploading file to a http service. Is there a way to set the "File Path" in the "Send Files With the Request" to a relative path from the ...
Eatdoku's user avatar
  • 6,759
36 votes
3 answers
27k views

Setting up JMeter for Distributed testing in AWS with connectivity issues

I have to do distributed testing using JMeter. The objective is to have multiple remote servers in AWS controlled by one local server send a file download request to another server in AWS. How can I ...
null's user avatar
  • 7,520
35 votes
6 answers
60k views

How do threads and number of iterations impact test and what is JMeter’s max. thread limit

Would you please tell me the max limit of no. of threads that i can use in JMeter 2.4 for conducting a load test? Is there any difference in taking all threads in a single loop or by taking less no. ...
Parvez's user avatar
  • 439
34 votes
6 answers
26k views

JMeter - Loopback address error when launching jmeter-server on Linux

I'm trying to set up a distributed load testing environment using JMeter. I need to set up the remote clients using something portable like a Linux Live CD, but whenever I attempt to launch jmeter-...
Syndog's user avatar
  • 1,591
34 votes
1 answer
14k views

How to get JMeter to request gzipped content?

My website serves gzipped content. I verified with Firebug and YSlow. However, JMeter does not request the gzipped content. Therefore, it gets all uncompressed content. As a result, my test cases ...
Bill Paetzke's user avatar
  • 13.5k
34 votes
1 answer
62k views

jMeter loop through all values in CSV

I am trying to do some test with jMeter. I have CSV file with the urls and want to iterate over all of them and make HTTP Request. I have achieved that by typing exact number of urls in the ...
firen's user avatar
  • 1,394
33 votes
3 answers
85k views

JMeter latency vs load time(sample time)

I was running a test on my HTTP server and the transfer speed went really slow when I switched the server from localhost(used a laptop) to a AWS EC2 t.micro server. I want to know the difference ...
Jee Seok Yoon's user avatar
33 votes
2 answers
69k views

Configuring response timeout in Apache JMeter

I am trying to check if a particular HTTP request's response time is over 30 seconds, and if it is, then mark it as failed and stop the thread. Sometimes I can see response times close to 80 seconds, ...
Dominik Antal's user avatar
32 votes
4 answers
35k views

JMeter how to NOT fail 500 Internal Server Errors

I am using JMeter as a unit test tool, in parameterised calls where I expect some of the responses to be 500 internal server errors. I am using BeanShell Assertions to check the responses. I want ...
Gazen Ganados's user avatar
32 votes
5 answers
13k views

How to use jmeter ui on ultra high resolution display

The jmeter UI on windows 8 with a 3200X1800 Lenovo Laptop is unusable. Fonts on the far left pane are toooo small and on the right side the line spacing is too small for the fonts. If I change my ...
user3911406's user avatar
31 votes
2 answers
22k views

JMeter mathematical function

I have one random variable and one variable which I read from page. How can I subtract or multiply that two variables and where or in which component in JMeter.
Ballon's user avatar
  • 7,036
31 votes
5 answers
55k views

Running Selenium scripts with JMeter

I have Selenium automation scripts ready with functional flow, now I want to integrate those scripts with JMeter for load-testing. Is that possible? If so how to integrate both? My first aim is to ...
Rahul Mendiratta's user avatar
30 votes
6 answers
95k views

How do I generate a Dashboard Report in jmeter?

I am running jmeter2.12 on Fedora. What are the steps to generate a Dashboard Report?
Vairamuthu's user avatar
29 votes
9 answers
121k views

JMeter "if controller" with parameters?

I was reading the JMeter documentation and came across this info box about "If Controllers": No variables are made available to the script when the condition is interpreted as Javascript. If you ...
Ben Flynn's user avatar
  • 18.7k
28 votes
4 answers
60k views

Use request value from list of values in JMeter

I'm sure I've already done this in the past but somehow I cannot figure out how ;-) So, here's my problem: I'm trying to create a JUnit test plan in which a HTTP request is modified each iteration ...
Christian Seifert's user avatar
28 votes
2 answers
67k views

How to parse Jmeter response and make a new request

I'm using jMeter to test a Tomcat application. I need to parse the jMeter response and make a second request. The first response looks like this: <responseData class="java.lang.String">&lt;...
Simon Wang's user avatar
  • 2,245
27 votes
5 answers
58k views

Message is not printing on the console in jmeter using JSR223 and groovy

println() inside static void main method is not printing anything anywhere, whereas only println() prints in terminal. Here is my code: class CalcMain { static void main(def args) throws Exception { ...
Pratik's user avatar
  • 952

1
2 3 4 5
393