{"id":342,"date":"2014-06-24T15:55:42","date_gmt":"2014-06-24T15:55:42","guid":{"rendered":"http:\/\/loadfocus.com\/blog\/?p=342"},"modified":"2020-09-12T09:47:51","modified_gmt":"2020-09-12T09:47:51","slug":"run-apache-jmeter-on-mac","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2014\/06\/run-apache-jmeter-on-mac","title":{"rendered":"Run Apache JMeter on Mac"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">minute read<\/span><\/span><!-- pn-tldr --><h2>Key takeaways<\/h2><ul><li>Homebrew is the simplest install path and keeps JMeter updatable.<\/li><li>Check your Java version first, since most startup failures come from a mismatch.<\/li><li>Run non-GUI for real tests and keep the GUI for building the plan.<\/li><\/ul><!-- \/pn-tldr --><p class=\"lead\">Install JMeter on Mac, to do so you have multiple options:<\/p>\n<p>1. brew install jmeter<\/p>\n<p>2. Download Apache JMeter from: http:\/\/jmeter.apache.org\/download_jmeter.cgi:<\/p>\n<ul>\n<li>download the source code and build it yourself<\/li>\n<li>download the binaries<\/li>\n<\/ul>\n<p>In your Finder, uncompress <strong>apache-jmeter-xx.zip<\/strong>, and go to the directory called &#8216;<strong>bin<\/strong>&#8216;.<br>&#8211; Open <strong>ApacheJMeter.jar<\/strong><br>&#8211; from Terminal, use the following command:<\/p>\n<p>[emaillocker id=&#8221;1703&#8243;]<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sh .\/apache-jmeter-xx\/bin\/jmeter.sh<\/code><\/pre>\n\n\n<p>[\/emaillocker]<\/p>\n\n\n<p>With <a href=\"https:\/\/loadfocus.com\/jmeter-load-testing\">JMeter Cloud Load Testing Tool<\/a> from <a href=\"https:\/\/loadfocus.com\">LoadFocus<\/a>, you can upload your Apache JMeter test scripts (.jmx files), run and analyze JMeter results from multiple world locations, everything in a easy to use UI.<\/p>\n<!-- pn-faq --><h2>Frequently Asked Questions<\/h2><h3>What is the simplest way to install JMeter on a Mac?<\/h3><p>Homebrew, with brew install jmeter. It keeps the install updatable, which matters more than it seems once you have been on one version for a year.<\/p><h3>Why will it not start?<\/h3><p>Almost always Java. Check the version first, since most startup failures are a mismatch between JMeter and the JDK on the machine rather than a problem with JMeter.<\/p><h3>Should I run tests from the interface?<\/h3><p>Build the plan there, then run it non-GUI. The interface competes with the test for the resources you wanted for virtual users.<\/p><!-- \/pn-faq --><!-- pn-related-reading --><h2>Related reading<\/h2><ul><li><a href=\"https:\/\/loadfocus.com\/blog\/2016\/04\/how-to-add-jmeter-to-the-path-environment-variable-on-mac-os-x\">Add JMeter to the PATH Variable on Mac OS X<\/a><\/li><li><a href=\"https:\/\/loadfocus.com\/blog\/2020\/09\/how-to-install-jmeter-on-mac\">How to Install JMeter on Mac?<\/a><\/li><li><a href=\"https:\/\/loadfocus.com\/blog\/2020\/09\/why-does-installing-jmeter-with-homebrew-gives-invalid-option-with-plugins\">JMeter Homebrew Error: invalid option with-plugins<\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">minute read<\/span><\/span>Key takeaways Homebrew is the simplest install path and keeps JMeter updatable. Check your Java version first, since most startup failures come from a mismatch. Run non-GUI for real tests and keep the GUI for building the plan. Install JMeter on Mac, to do so you have multiple options: 1. brew install jmeter 2. Download&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2014\/06\/run-apache-jmeter-on-mac\" class=\"more-link\" title=\"Read Run Apache JMeter on Mac\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3724,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache-jmeter"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":0,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media\/3724"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}