<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>load testing &#8211; blog.boro2g .co.uk</title>
	<atom:link href="https://blog.boro2g.co.uk/tag/load-testing/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.boro2g.co.uk</link>
	<description>Some ideas about coding, dev and all things online.</description>
	<lastBuildDate>Wed, 13 Mar 2019 14:21:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>
	<item>
		<title>Build yourself a JMeter load testing server</title>
		<link>https://blog.boro2g.co.uk/build-yourself-a-jmeter-load-testing-server/</link>
					<comments>https://blog.boro2g.co.uk/build-yourself-a-jmeter-load-testing-server/#respond</comments>
		
		<dc:creator><![CDATA[boro]]></dc:creator>
		<pubDate>Wed, 13 Mar 2019 14:21:36 +0000</pubDate>
				<category><![CDATA[Sitecore]]></category>
		<category><![CDATA[load testing]]></category>
		<guid isPermaLink="false">https://blog.boro2g.co.uk/?p=1015</guid>

					<description><![CDATA[<p>As you come close to launching your new web application, whether it be Sitecore, Node or plain ol&#8217; HTML, it&#8217;s always good to validate how well it performs. The cloud opens up lots of possibilities for how to approach this &#8211; including lots of online LTAAS (er, is load test as a service even a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.boro2g.co.uk/build-yourself-a-jmeter-load-testing-server/">Build yourself a JMeter load testing server</a> appeared first on <a rel="nofollow" href="https://blog.boro2g.co.uk">blog.boro2g .co.uk</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>As you come close to launching your new web application, whether it be Sitecore, Node or plain ol&#8217; HTML, it&#8217;s always good to validate how well it performs.</p>



<p>The cloud opens up lots of possibilities for how to approach this &#8211; including lots of online LTAAS (er, is load test as a service even a thing!?!? :))</p>



<p><strong>Iteration 1 &#8211; LTAAS with Azure Devops</strong></p>



<p>We are using Azure Devops within our current project, so thought it be good to give their load testing features a blast. This came with mixed success, and a mixed $$$ cost.</p>



<p><em>Pro&#8217;s</em></p>



<ul><li>You don&#8217;t need to manage any of the kit</li><li>The sky&#8217;s the limit with the amount of concurrent machines to run (&lt; 25)</li><li>It supports various methods for building a script</li></ul>



<p><em>Con&#8217;s</em></p>



<ul><li>The feedback loop can feel slow</li><li>You get limited support for JMeter scripts, and limited graph&#8217;s of your results. <em>Note, this could be due to inexperience with the tool</em></li><li>It costs per minute of load test you run. We managed to un-wittingly rack up quite a substantial bill with a misconfigured script.</li></ul>



<p><strong>Iteration 2 &#8211; DIY</strong></p>



<p>Another approach is that you actually setup the infrastructure yourself. For our capacity and requirements this ended up being a much more favourable option &#8211; once we&#8217;d managed to get the most out of our kit.</p>



<p><em>Pro&#8217;s</em></p>



<ul><li>Assuming you use JMeter, you can quickly iterate through tests and get a wide spread of results as you go</li><li>If you need more grunt, you can always increase the box spec&#8217;s</li></ul>



<p><em>Con&#8217;s</em></p>



<ul><li>You need to tune the box to get the most out of it</li><li>Large boxes in e.g. AWS cost $$$</li></ul>



<p><strong>Configuring things yourself</strong></p>



<p>Here are a few steps to follow if you really want to max out your load test box, as well as you web infrastructure:</p>



<ul><li>Pick a box with plenty of RAM &#8211; we opted for and AWS  <br>r5.2xlarge  &#8211;  8 core and 64GB RAM</li><li>Ensure JMeter can use all the RAM it can. Within JMeter.bat you can set the heap size available to the program &#8211; by default this is 512mb. If you add <code>set HEAP=-Xms256m -Xmx60g</code> then JMeter will sap up all 60GB of RAM it can</li><li>Ensure Windows can use as many TCPIP connections as possible. Again, by default this is quite low. You need to set 2 registry keys &#8211; see <a rel="noreferrer noopener" aria-label="http://docs.testplant.com/epp/9.0.0/ePP/advovercoming_tcpip_connection_li.htm (opens in a new tab)" href="http://docs.testplant.com/epp/9.0.0/ePP/advovercoming_tcpip_connection_li.htm" target="_blank">http://docs.testplant.com/epp/9.0.0/ePP/advovercoming_tcpip_connection_li.htm</a> for more details. <ul><li>Until we&#8217;d set these values, our tests would bomb out after a couple minutes as the box simply couldn&#8217;t connect to our website any more.</li></ul></li></ul>



<p><strong>Other tips</strong></p>



<p>JMeter has some really good plugins for modelling load, in particular around step&#8217;d load and realtime visualization of results. </p>



<p>I&#8217;d recommend checking out:</p>



<ul><li><a rel="noreferrer noopener" aria-label="https://jmeter-plugins.org/wiki/ConcurrencyThreadGroup/ (opens in a new tab)" href="https://jmeter-plugins.org/wiki/ConcurrencyThreadGroup/" target="_blank">https://jmeter-plugins.org/wiki/ConcurrencyThreadGroup/</a></li><li><a href="https://jmeter-plugins.org/wiki/TransactionsPerSecond/" target="_blank" rel="noreferrer noopener" aria-label="https://jmeter-plugins.org/wiki/TransactionsPerSecond/ (opens in a new tab)">https://jmeter-plugins.org/wiki/TransactionsPerSecond/</a></li></ul>



<p><strong>Some good additional reading</strong></p>



<p><a href="https://www.blazemeter.com/blog/9-easy-solutions-jmeter-load-test-%E2%80%9Cout-memory%E2%80%9D-failure">https://www.blazemeter.com/blog/9-easy-solutions-jmeter-load-test-%E2%80%9Cout-memory%E2%80%9D-failure</a></p>



<p>Happy testing! <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a rel="nofollow" href="https://blog.boro2g.co.uk/build-yourself-a-jmeter-load-testing-server/">Build yourself a JMeter load testing server</a> appeared first on <a rel="nofollow" href="https://blog.boro2g.co.uk">blog.boro2g .co.uk</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.boro2g.co.uk/build-yourself-a-jmeter-load-testing-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
