{"id":11176,"date":"2024-08-30T02:29:29","date_gmt":"2024-08-30T06:29:29","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=11176"},"modified":"2024-08-30T02:37:03","modified_gmt":"2024-08-30T06:37:03","slug":"jmeter-console-status-logger","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/","title":{"rendered":"JMeter Local Tests and the Console Status Logger"},"content":{"rendered":"<p><a id=\"post-11176-_3c7l0zw2fwrn\"><\/a> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11177\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-1.png\" alt=\"JMeter Local Tests and the Console Status Logger\" width=\"400\" height=\"300\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-1-300x225.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>Though cloud-based load testing services such as <a href=\"https:\/\/www.redline13.com\/\" target=\"_blank\" rel=\"noopener\">RedLine13<\/a> allow you to easily scale your load test, the majority of <a href=\"https:\/\/jmeter.apache.org\/usermanual\/index.html\" target=\"_blank\" rel=\"noopener\">JMeter<\/a> test plans begin on the local machine. The JMeter GUI is used to assemble the major components. First tests begin inside the GUI, usually monitored with a listener. When transitioning your test to the cloud however, the user interface is stood down to remove the overhead and achieve scale.<\/p>\n<h3><a id=\"post-11176-_vi7929l6duqa\"><\/a>Local Tests from the Console<\/h3>\n<p>As an intermediate step in preparing your JMeter test for the cloud, you could run it from the console without loading the GUI. This would allow you to focus on performance as well as simulate a distributed test run as closely as possible.<\/p>\n<p>Starting a JMeter in non-GUI mode is easily done from the command line. This is accomplished by running JMeter with the \u201c<code>--nongui<\/code>\u201d command line option along with specifying your <a href=\"https:\/\/cwiki.apache.org\/confluence\/display\/JMETER\/JmxTestPlan\" target=\"_blank\" rel=\"noopener\">JMX<\/a> file with \u201c<code>--testfile<\/code>\u201d:<\/p>\n<pre><strong>&gt; jmeter \u2013nongui \u2013testfile test_plan.jmx<\/strong><\/pre>\n<p>You can also use the \u201c<code>-n<\/code>\u201d and \u201c<code>-t<\/code>\u201d shorthand equivalents of these command line options:<\/p>\n<pre><strong>&gt; jmeter -n -t testplan_jmx<\/strong><\/pre>\n<p>One caveat to running your test in this manner is that no visible feedback is given until your test completes or is manually terminated.\u00a0 However, we can change this by adding the <a href=\"https:\/\/jmeter-plugins.org\/wiki\/ConsoleStatusLogger\/\" target=\"_blank\" rel=\"noopener\"><em>Console Status Logger<\/em><\/a> plugin.<\/p>\n<h3><a id=\"post-11176-_zdyk9rf8my8s\"><\/a>The Console Status Logger<\/h3>\n<p>In order to provide meaningful real-time output when running a JMeter test in non-GUI mode from the command line, you can add the <em>Console Status Logger<\/em> plugin to your test. This will periodically print out real-time data about your test including latency, running threads, errors, and more. Here is an excerpt of the basic output generated by this component:<\/p>\n<figure id=\"attachment_11178\" class=\"wp-caption aligncenter\" style=\"max-width: 682px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11178\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-2.png\" alt=\"Real-time output from the command line with the Console Status Logger\" width=\"682\" height=\"168\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-2.png 800w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-2-300x74.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-2-768x189.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-2-425x105.png 425w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><figcaption class=\"wp-caption-text\">Real-time output from the command line with the Console Status Logger.<\/figcaption><\/figure>\n<p>Once you are satisfied with the local performance of your test, you can remove the Console Status Logger and move your test to a cloud-based provider in order to achieve maximum scale.<\/p>\n<hr \/>\n<p>Did you know that RedLine13 offers a full featured, time limited free trial? <a href=\"https:\/\/www.redline13.com\/Service\" target=\"_blank\" rel=\"noopener\">Sign up now<\/a>, and start testing today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Though cloud-based load testing services such as RedLine13 allow you to easily scale your load test, the majority of JMeter test plans begin on the local machine. The JMeter GUI is used to assemble the major components. First tests begin inside the GUI, usually monitored with a listener. When transitioning your test to the cloud however, the user interface is stood down to remove the overhead and achieve scale. Local Tests from the Console As an<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":11177,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[721,128,135,283,723,299,318,722,424],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-11176","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-uncategorized","10":"post_tag-cli","11":"post_tag-cloud-load-testing","12":"post_tag-command-line","13":"post_tag-jmeter","14":"post_tag-jmeter-headless","15":"post_tag-jmeter-plugins","16":"post_tag-load-testing","17":"post_tag-non-gui-mode","18":"post_tag-redline13"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JMeter Local Tests and the Console Status Logger - RedLine13<\/title>\n<meta name=\"description\" content=\"In this post, we will cover how to use the Console Status Logger when running a JMeter test plan in non-GUI mode.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JMeter Local Tests and the Console Status Logger - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this post, we will cover how to use the Console Status Logger when running a JMeter test plan in non-GUI mode.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-30T06:29:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-30T06:37:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Koziel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Koziel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"JMeter Local Tests and the Console Status Logger\",\"datePublished\":\"2024-08-30T06:29:29+00:00\",\"dateModified\":\"2024-08-30T06:37:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\"},\"wordCount\":338,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"cli\",\"Cloud Load Testing\",\"command line\",\"JMeter\",\"JMeter headless\",\"jmeter-plugins\",\"Load Testing\",\"non-GUI mode\",\"RedLine13\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\",\"name\":\"JMeter Local Tests and the Console Status Logger - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2024-08-30T06:29:29+00:00\",\"dateModified\":\"2024-08-30T06:37:03+00:00\",\"description\":\"In this post, we will cover how to use the Console Status Logger when running a JMeter test plan in non-GUI mode.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JMeter Local Tests and the Console Status Logger\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"name\":\"RedLine13\",\"description\":\"(Almost) Free Load Testing in the Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redline13.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\",\"name\":\"RedLine13\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"contentUrl\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"width\":300,\"height\":68,\"caption\":\"RedLine13\"},\"image\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\",\"name\":\"David Koziel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g\",\"caption\":\"David Koziel\"},\"url\":\"https:\/\/www.redline13.com\/blog\/author\/dkoziel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JMeter Local Tests and the Console Status Logger - RedLine13","description":"In this post, we will cover how to use the Console Status Logger when running a JMeter test plan in non-GUI mode.","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:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/","og_locale":"en_US","og_type":"article","og_title":"JMeter Local Tests and the Console Status Logger - RedLine13","og_description":"In this post, we will cover how to use the Console Status Logger when running a JMeter test plan in non-GUI mode.","og_url":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/","og_site_name":"RedLine13","article_published_time":"2024-08-30T06:29:29+00:00","article_modified_time":"2024-08-30T06:37:03+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/08\/word-image-11176-1.png","type":"image\/png"}],"author":"David Koziel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Koziel","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"JMeter Local Tests and the Console Status Logger","datePublished":"2024-08-30T06:29:29+00:00","dateModified":"2024-08-30T06:37:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/"},"wordCount":338,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["cli","Cloud Load Testing","command line","JMeter","JMeter headless","jmeter-plugins","Load Testing","non-GUI mode","RedLine13"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/","url":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/","name":"JMeter Local Tests and the Console Status Logger - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2024-08-30T06:29:29+00:00","dateModified":"2024-08-30T06:37:03+00:00","description":"In this post, we will cover how to use the Console Status Logger when running a JMeter test plan in non-GUI mode.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2024\/08\/jmeter-console-status-logger\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JMeter Local Tests and the Console Status Logger"}]},{"@type":"WebSite","@id":"https:\/\/www.redline13.com\/blog\/#website","url":"https:\/\/www.redline13.com\/blog\/","name":"RedLine13","description":"(Almost) Free Load Testing in the Cloud","publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redline13.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redline13.com\/blog\/#organization","name":"RedLine13","url":"https:\/\/www.redline13.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","contentUrl":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","width":300,"height":68,"caption":"RedLine13"},"image":{"@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20","name":"David Koziel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g","caption":"David Koziel"},"url":"https:\/\/www.redline13.com\/blog\/author\/dkoziel\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=11176"}],"version-history":[{"count":3,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11176\/revisions"}],"predecessor-version":[{"id":11181,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11176\/revisions\/11181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/11177"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=11176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=11176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=11176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}