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
    
                            
                        
                    
            19,617
            questions
        
        
            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?...
            
        
       
    
            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?
            
        
       
    
            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 (...
            
        
       
    
            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 ...
            
        
       
    
            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
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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    ...
            
        
       
    
            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
...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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: ...
            
        
       
    
            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 ...
            
        
       
    
            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
...
            
        
       
    
            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 ...
            
        
       
    
            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?
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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
...
            
        
       
    
            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 ...
            
        
       
    
            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....
            
        
       
    
            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.
            
        
       
    
            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.
            
        
       
    
            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: ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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.
            
        
       
    
            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. ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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. ...
            
        
       
    
            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-...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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, ...
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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.
            
        
       
    
            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 ...
            
        
       
    
            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?
            
        
       
    
            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 ...
            
        
       
    
            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 ...
            
        
       
    
            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"><...
            
        
       
    
            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 {
  ...