Getting started with Apache Jmeter
Increasing usage of web based application has raised a need to test the performance of web-based applications for speed i.e. responsiveness of the application, scalability i.e. sustainabilty of an your web application at peak load or maximum users load and stability i.e stable state of the system under peak load. In order to conduct these performance tests against web applications we need to bombard the system with humongous amount of load in terms of requests and monitor system differently depending on the goal of the test. One of the most widely used open source tool for performance testing is JMeter. I will be covering JMeter in detail right from recording to most of commonly used JMeter components like Transaction Controller, Authorization manager and also issues with recording https requests and so on.
What is JMeter?
Apache JMeter is an Open Source tool mainly used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. It can also be used for graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.
Downloading JMeter
You need jdk 1.6 in order to use JMeter 2.8 and above. Make sure that you have made appropriate entry in PATH variable.
You can get latest JMeter build from: http://jmeter.apache.org/download_jmeter.cgi
Launching JMeter
JMeter UI can be launched in two ways:
- Open JMeter folder -> Bin -> Double Click on JMeter.bat file
- Open command prompt and go to Apache JMeter directory using cd command.
And type JMeter.bat
If you are working behind proxy, you are bound to get “socket connection” exception if you launch JMeter as mentioned above. You need to launch JMeter from command prompt as below if you are working behind proxy.
JMeter.bat –H “proxyname” –P “PortNumber” –u “username” –a “Password”
This will resolve initial “socket connection” exception caused due to proxy.
You will see JMeter UI as below once you launch JMeter using any of the above mentioned ways.

When you launch JMeter it has TestPlan and WorkBench by default. We will look into these components one by one.
What is a TestPlan
Test Plan usually contains overall the setting for your JMeter script. You can add user defined variable which can be referred across all the threads coming under the test plan.
You can see three check-boxes when you click on TestPlan.
- Run Thread Consecutively: By default all the threads coming under test plan run concurrently. If you check this option threads will run one after other.
- Run tearDown Thread Groups after shutdown of main threads: if selected, the tearDown groups (if any) will be run after graceful shutdown of the main threads. The tearDown threads won’t be run if the test is forcibly stopped
- Functional Test Mode: If you check this option JMeter will save additional sample information – Response Data and Sampler Data to all result files affecting the performance of system.
What is a WorkBench?
The WorkBench simply provides a place to temporarily store test elements while not in use, for copy/paste purposes, or any other purpose you desire. When you save your test plan, WorkBench items are not saved with it
Certain test elements are only available on the WorkBench:
Now let’s begin with recording in JMeter:
You need to add a ThreadGroup to TestPlan and add HTTP Proxy Server to WorkBench as first step to begin with recording.


We will talk in detail about ThreadGroup and HTTP Proxy Server later. For now make the settings as shown below to begin with recording.

Configuring your web browser to record requests using JMeter
You need to modify your connection settings so that JMeter will capture all the requests which are being sent from your browser to target application. Modify your browser settings as shown below.
Make sure that the port number mentioned in JMeter HTTP Proxy Server and Port number mentioned in connection settings should be same.

Now go to JMeter UI, select HTTP Proxy Server and click on start button as shown below.

Now go to your already configured web browser and type url of the target application. All the requests will be captured in TestPlan->ThreadGroup as you record your workflow as shown below:

Follow above mentioned steps and am sure you shall be able to record HTTP requests using JMeter.







Now days we all are addicted to Google let it be a developer, businessman, architect, engineer or any other professional person. Its use has been intensified in every walk of life. Also with its massive data chunk and billions of indexed web pages, one has to effectively provide a search query (keywords) to get the desired search results.






Ever wondered whether you can access Facebook via command line? Is there any command line interface (CLI) available for those people who like to stick with terminal window? The answer is fbcmd.
When going from one language to another, some things have to be unlearned. What you know from other languages may not be always useful in Python. Over time, a lot of idioms and ideas arose in the Python community about what the right way to use Python is, and also what would be a wrong way. One of the major part of “pythonic” way of coding is making code more readable. In this article, we will discuss the various tools available online/offline for formatting python code according to international standards (See
Have you noticed that blank status on friend’s profile? or someone in your friend’s list tagged with some different name?
Facebook recently launched a bunch of enhancements that impressed most of us. The series of changes like smart lists, chat, timeline just put Facebook ahead of it’s competitors. But, there are few bugs in new interface which Facebook team might have missed.