{"id":5109,"date":"2019-12-04T05:37:59","date_gmt":"2019-12-04T05:37:59","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=5109"},"modified":"2020-03-18T07:06:23","modified_gmt":"2020-03-18T07:06:23","slug":"apache-jmeter-installation-and-overview","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/","title":{"rendered":"Apache JMeter &#8211; Installation and Overview"},"content":{"rendered":"<p><strong>What is APACHE JMeter ?<\/strong><\/p>\n<p>The\u00a0<b>Apache JMeter\u2122<\/b>\u00a0application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.<\/p>\n<p><a href=\"https:\/\/jmeter.apache.org\/index.html\">Apache JMeter<\/a> is used to test performance both on static and dynamic resources, Web dynamic applications.<br \/>\nIt can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types.<\/p>\n<p>The protocols supported by JMeter are \u2212<\/p>\n<ul class=\"list\">\n<li>Web \u2212 HTTP, HTTPS sites &#8216;web 1.0&#8217; web 2.0 (ajax, flex and flex-ws-amf)<\/li>\n<li>Web Services \u2212 SOAP \/ XML-RPC<\/li>\n<li>Database via JDBC drivers<\/li>\n<li>Directory \u2212 LDAP<\/li>\n<li>Messaging Oriented service via JMS<\/li>\n<li>Service \u2212 POP3, IMAP, SMTP<\/li>\n<li>FTP Service<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.edureka.co\/blog\/content\/ver.1554792280\/uploads\/2019\/04\/Apache_JMeter.png\" alt=\"Apache JMeter - how to install JMeter - edureka\" width=\"749\" height=\"254\" \/><\/p>\n<p><strong>Prerequisites to Install Jmeter :-<\/strong><\/p>\n<p>JMeter is a pure Java desktop application. It requires a fully compliant JVM 6 or higher. You need to download and install the latest version of Java SE Development Kit.<\/p>\n<p>The Operating Systems compatible with JMeter are:<\/p>\n<ul>\n<li>Linux<\/li>\n<li>Windows<\/li>\n<li>Mac OS<\/li>\n<li>Ubuntu<\/li>\n<\/ul>\n<p>In this blog we are using the following versions :-<\/p>\n<pre class=\"lang:default decode:true \">Ubuntu - 18.04\nJava - 1.8.0<\/pre>\n<h2><strong>INSTALLATION :-<\/strong><\/h2>\n<p><em><strong>Step1 :<\/strong><\/em>\u00a0<strong>Install Java<\/strong><\/p>\n<pre class=\"lang:default decode:true\">apt-get install openjdk-8-jdk<\/pre>\n<p><strong><em>Step2 :\u00a0 <\/em>Download Jmeter<\/strong><\/p>\n<p>Go to : &#8211; <em>https:\/\/jmeter.apache.org\/download_jmeter.cgi <\/em>and choose the latest version.<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/jmeter.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5117 aligncenter\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/jmeter-300x145.png\" alt=\"\" width=\"641\" height=\"310\" \/><\/a><\/p>\n<p>Latest version is 5.2. You can choose from the given binaries.<\/p>\n<p><em><strong>Step3 :- <\/strong><\/em><strong>Untar the apache-jmeter-5.2.1.tgz<\/strong><\/p>\n<pre class=\"lang:default decode:true\">tar -xzvf apache-jmeter-5.2.1.tgz<\/pre>\n<p><em><strong>Step4 :-\u00a0<\/strong><\/em><strong>Just go\u00a0 to bin folder inside\u00a0<\/strong><strong>apache-jmeter-5.2.1 directory and run the following command\u00a0<\/strong><\/p>\n<pre class=\"lang:default decode:true\">sh jmeter.sh<\/pre>\n<p>now JMeter will launch:-<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/download.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5119 aligncenter\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/download-300x102.png\" alt=\"\" width=\"715\" height=\"243\" \/><\/a><\/p>\n<p>Now that you have understood the installation process, now you can create your own test plan in JMeter with the help of different elements.<\/p>\n<h2><span style=\"color: #000000\"><strong>Elements of JMeter :-<\/strong><\/span><\/h2>\n<p>The different components of JMeter are called Elements. Each Element is designed for a specific purpose. Some of the main elements are :<\/p>\n<ul>\n<li>Thread Group<\/li>\n<li>Samplers<\/li>\n<li>Listeners<\/li>\n<li>Configuration<\/li>\n<\/ul>\n<p><strong>1. Thread Group<\/strong><\/p>\n<p>A Thread Group is a set of threads executing the same scenario . Each thread represents one user using the application under test. It simulates one real user request to the server. The controls for a thread group also allow you to set the number of threads for each group.<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/oie_qC1h71VtKUxI.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5133 aligncenter\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/oie_qC1h71VtKUxI-300x175.png\" alt=\"\" width=\"816\" height=\"476\" \/><\/a><\/p>\n<p><strong>2. Samplers<\/strong><\/p>\n<p>JMeter supports testing HTTP, FTP, JDBC, and many more protocols. Thread Groups simulate user request to the server. Samplers help the Thread Group to know which type of requests (HTTP, FTP, etc.) it needs to make.<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/Samplersss.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5136 aligncenter\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/Samplersss-300x176.png\" alt=\"\" width=\"775\" height=\"455\" \/><\/a><\/p>\n<ul>\n<li>\n<h4><strong>HTTP request: <\/strong>This sampler lets you send an HTTP\/HTTPS request to a web server.<\/h4>\n<\/li>\n<li>\n<h4><strong>JDBC request: <\/strong>This sampler lets you execute Database Performance Testing. It sends a JDBC Request to a database.<\/h4>\n<\/li>\n<li>\n<h4><strong>BSF Sampler: <\/strong>This sampler allows you to write a sampler using a BSF scripting language.<\/h4>\n<\/li>\n<li>\n<h4><strong>Access Log Sampler: <\/strong>This sampler allows you to read access logs and generate HTTP requests.<\/h4>\n<\/li>\n<li>\n<h4><strong>SMTP Sampler: <\/strong>This sampler is used to send email messages using the SMTP protocol.<\/h4>\n<\/li>\n<\/ul>\n<p class=\"\"><strong>3. Listeners<\/strong><\/p>\n<p class=\"\">Listeners show the results of the test execution. They can show results in a different format such as a tree, table, graph or log file.<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/oie_89Oou3FMzebD.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5134\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/oie_89Oou3FMzebD-300x174.png\" alt=\"\" width=\"890\" height=\"516\" \/><\/a><\/p>\n<ul>\n<li style=\"text-align: left\">Graph result listeners display the server response times on a Graph<\/li>\n<li>View Result Tree show results of the user request in basic HTML format<\/li>\n<li>Table Result show summary of a test result in table format<\/li>\n<li>Log shows the summary a test results in the text file<\/li>\n<\/ul>\n<p><strong>4. Configuration Elements<\/strong><\/p>\n<p>Configuration Elements are used to set up defaults and variables for later use by samplers.<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/Sampler.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5135\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2019\/12\/Sampler-300x176.png\" alt=\"\" width=\"743\" height=\"436\" \/><\/a><\/p>\n<ul>\n<li><strong>CSV Data Set Config :\u00a0<\/strong>The CSV Data Set Config\u00a0 allows you to read different parameters from text file and it is used to read lines from a file, and split them into variables.<\/li>\n<li><strong>HTTP Cookie Manager :\u00a0<\/strong>HTTP Cookie Manager has the same feature as a web browser. If you have an HTTP Request and the response contains a cookie, also the Cookie Manager automatically stores that cookie to use it for all future requests.<\/li>\n<li><strong>HTTP request default :\u00a0<\/strong>This element lets you set default values that your HTTP Request controllers use.<\/li>\n<li><strong>Login Config Element :\u00a0<\/strong>The Login Config Element lets you add or override username and password settings in samplers.<\/li>\n<\/ul>\n<p>Now you are familiar with JMeter, in the upcoming blogs we will see how to perform simple load tests with JMeter.<\/p>\n<p><strong><em>In case of any help or query, please\u00a0<a href=\"https:\/\/cloudkul.com\/contact\/\" target=\"_blank\" rel=\"noopener noreferrer\">contact us<\/a><\/em><em>\u00a0or raise a ticket at<\/em><\/strong><\/p>\n<p><strong><em>\u00a0<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">support@webkul.com<\/a>.<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is APACHE JMeter ? The\u00a0Apache JMeter\u2122\u00a0application is open source software, a 100% pure Java <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[65,243,91,242,244],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apache JMeter - Installation and Overview - Cloudkul<\/title>\n<meta name=\"description\" content=\"Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It is one of the best load testing tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache JMeter - Installation and Overview - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It is one of the best load testing tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-04T05:37:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-18T07:06:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.edureka.co\/blog\/content\/ver.1554792280\/uploads\/2019\/04\/Apache_JMeter.png\" \/>\n<meta name=\"author\" content=\"Ayush Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/\",\"name\":\"Apache JMeter - Installation and Overview - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2019-12-04T05:37:59+00:00\",\"dateModified\":\"2020-03-18T07:06:23+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/bc944fcbc7bf57b5c555d7b088523f1b\"},\"description\":\"Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It is one of the best load testing tool.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apache JMeter &#8211; Installation and Overview\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/bc944fcbc7bf57b5c555d7b088523f1b\",\"name\":\"Ayush Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6c01625f859badb9f845442bb4179cde?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6c01625f859badb9f845442bb4179cde?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Ayush Singh\"},\"url\":\"https:\/\/cloudkul.com\/blog\/author\/ayushsingh-cloud332\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache JMeter - Installation and Overview - Cloudkul","description":"Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It is one of the best load testing tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/","og_locale":"en_US","og_type":"article","og_title":"Apache JMeter - Installation and Overview - Cloudkul","og_description":"Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It is one of the best load testing tool.","og_url":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/","og_site_name":"Cloudkul","article_published_time":"2019-12-04T05:37:59+00:00","article_modified_time":"2020-03-18T07:06:23+00:00","og_image":[{"url":"https:\/\/www.edureka.co\/blog\/content\/ver.1554792280\/uploads\/2019\/04\/Apache_JMeter.png"}],"author":"Ayush Singh","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/","url":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/","name":"Apache JMeter - Installation and Overview - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2019-12-04T05:37:59+00:00","dateModified":"2020-03-18T07:06:23+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/bc944fcbc7bf57b5c555d7b088523f1b"},"description":"Apache JMeter may be used to test performance both on static and dynamic resources, Web dynamic applications. It is one of the best load testing tool.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/apache-jmeter-installation-and-overview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Apache JMeter &#8211; Installation and Overview"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/bc944fcbc7bf57b5c555d7b088523f1b","name":"Ayush Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6c01625f859badb9f845442bb4179cde?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6c01625f859badb9f845442bb4179cde?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Ayush Singh"},"url":"https:\/\/cloudkul.com\/blog\/author\/ayushsingh-cloud332\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/5109"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=5109"}],"version-history":[{"count":53,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/5109\/revisions"}],"predecessor-version":[{"id":6936,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/5109\/revisions\/6936"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=5109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=5109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=5109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}