<p>In the past, I used Microsoft Web Application Stress Tool and Pylot to stress test web applications. I'd written a simple home page, login script, and site walkthrough (in an ecommerce site adding a few items to a cart and checkout).</p>

<p>Just hitting the homepage hard with a handful of developers would almost always locate a major problem. More scalability problems would surface at the second stage, and even more - after the launch.</p>

<p>The URL of the tools I used were Microsoft Homer (aka <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e2c0585a-062a-439e-a67d-75a89aa36495&amp;displaylang=en" rel="noreferrer">Microsoft Web Application Stress Tool</a>) and <a href="https://code.google.com/archive/p/pylt/" rel="noreferrer">Pylot</a>.</p>

<p>The reports generated by these tools never made much sense to me, and I would spend many hours trying to figure out what kind of concurrent load the site would be able to support. It was always worth it because the stupidest bugs and bottlenecks would always come up (for instance, web server misconfigurations).</p>

<p>What have you done, what tools have you used, and what success have you had with your approach? The part that is most interesting to me is coming up with some kind of a meaningful formula for calculating the number of concurrent users an app can support from the numbers reported by the stress test application.</p>

[{'answer_id': 7497, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 5, 'selected': False, 'text': '<p>I\'ve used <a href="http://grinder.sourceforge.net/" rel="noreferrer">The Grinder</a>.  It\'s open source, pretty easy to use, and very configurable.  It is Java based and uses Jython for the scripts.  We ran it against a .NET web application, so don\'t think it\'s a Java only tool (by their nature, any web stress tool should not be tied to the platform it uses).</p>\n\n<p>We did some neat stuff with it... we were a web based telecom application, so one cool use I set up was to mimick dialing a number through our web application, then used an auto answer tool we had (which was basically a tutorial app from Microsoft to connect to their RTC LCS server... which is what Microsoft Office Communicator connects to on a local network... then modified to just pick up calls automatically).  This then allowed us to use this instead of an expensive telephony tool called The Hammer (or something like that).</p>\n\n<p>Anyways, we also used the tool to see how our application held up under high load, and it was very effective in finding bottlenecks.  The tool has built in reporting to show how long requests are taking, but we never used it.  The logs can also store all the responses and whatnot, or custom logging.</p>\n\n<p>I highly recommend this tool, very useful for the price... but expect to do some custom setup with it (it has a built in proxy to record a script, but it may need customization for capturing something like sessions... I know I had to customize it to utilize a unique session per thread).</p>\n'}, {'answer_id': 7498, 'author': 'Mike Stone', 'author_id': 122, 'author_profile': 'https://Stackoverflow.com/users/122', 'pm_score': 0, 'selected': False, 'text': '<p>One more note, for our web application, I found that we had huge performance issues due to contention between threads over locks... so the moral was to think over the locking scheme very carefully.  We ended up having worker threads to throttle too many requests using an asynchronous http handler, otherwise the application would just get overwhelmed and crash and burn.  It meant a huge backlog could pile up, but at least the site would stay up.</p>\n'}, {'answer_id': 7513, 'author': 'grom', 'author_id': 486, 'author_profile': 'https://Stackoverflow.com/users/486', 'pm_score': 4, 'selected': False, 'text': '<p>I\'ve used <a href="https://jmeter.apache.org/" rel="nofollow noreferrer">JMeter</a>. Besides testing the web server you can also test your database backend, messaging services and email servers.</p>\n'}, {'answer_id': 19593, 'author': 'Erick Sasse', 'author_id': 2089, 'author_profile': 'https://Stackoverflow.com/users/2089', 'pm_score': 0, 'selected': False, 'text': '<p>Take a look at <a href="http://www.automatedqa.com/products/testcomplete/tc_lss_testing.asp" rel="nofollow noreferrer">TestComplete</a>.</p>\n'}, {'answer_id': 33200, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 1, 'selected': False, 'text': '<p>I found <a href="http://www.alphaworks.ibm.com/tech/pagedetailer" rel="nofollow noreferrer">IBM Page Detailer</a> also an interesting tool to work with.</p>\n'}, {'answer_id': 66715, 'author': 'rbrayb', 'author_id': 9922, 'author_profile': 'https://Stackoverflow.com/users/9922', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve used <a href="http://www.opensta.org/&quot;openSTA&quot;" rel="nofollow noreferrer">openSTA</a>.</p>\n\n<p>This allows a session with a web site to be recorded and then played back via a relatively simple script language.</p>\n\n<p>You can easily test web services and write your own scripts.</p>\n\n<p>It allows you to put scripts together in a test in any way you want and configure the number of iterations, the number of users in each iteration, the ramp up time to introduce each new user and the delay between each iteration. Tests can also be scheduled in the future.</p>\n\n<p>It\'s open source and free.</p>\n\n<p>It produces a number of reports which can be saved to a spreadsheet. We then use a pivot table to easily analyse and graph the results.</p>\n'}, {'answer_id': 92501, 'author': 'Peter Bernier', 'author_id': 6112, 'author_profile': 'https://Stackoverflow.com/users/6112', 'pm_score': 7, 'selected': False, 'text': '<p>Here\'s another vote for <a href="http://jakarta.apache.org/jmeter/" rel="noreferrer"><strong>JMeter</strong></a>.</p>\n\n<p>JMeter is an open-source load testing tool, written in Java. It\'s capable of testing a number of different server types (for example, web, web services, database, just about anything that uses requests basically).</p>\n\n<p>It does however have a steep learning curve once you start getting to complicated tests, but it\'s well worth it. You can get up and running very quickly, and depending on what sort of stress-testing you want to do, that might be fine.</p>\n\n<p>Pros: </p>\n\n<ul>\n<li>Open-Source/Free tool from the Apache project (helps with buy-in)</li>\n<li>Easy to get started with, and easy to use once you grasp the core concepts. (Ie, how to create a request, how to create an assertion, how to work with variables etc).</li>\n<li>Very scalable. I\'ve run tests with 11 machines generating load on the server to the tune of almost a million hits/hour. It was <em>much</em> easier to setup than I was expecting.</li>\n<li>Has an active community and good resources to help you get up and running. Read the tutorials first and play with it for a while. </li>\n</ul>\n\n<p>Cons:</p>\n\n<ul>\n<li>The UI is written in Swing. (ugh!)</li>\n<li>JMeter works by parsing the response text returned by the server. So if you\'re looking to validate any sort of javascript behaviours, you\'re out of luck.</li>\n<li>Learning curve is steep for non-programmers. If you\'re familiar with regular expressions, you\'re already ahead of the game.</li>\n<li>There are large numbers of (<em>insert expletive</em>) idiots in the support forum asking stupid questions that could be easily solved if they\'d give the documentation even a cursory glance. (\'How do I use JMeter to stress-test my Windows GUI\' shows up quite frequently).</li>\n<li>Reporting \'out of the box\' leaves much to be desired, particularly for larger tests. In the test I mentioned above, I ended up having to write a quick console app to do some of the \'xml-logfile\' to \'html\' conversions. That was a few years ago though, so it\'s probable that this would no longer be required.</li>\n</ul>\n'}, {'answer_id': 109576, 'author': 'tloach', 'author_id': 14092, 'author_profile': 'https://Stackoverflow.com/users/14092', 'pm_score': 0, 'selected': False, 'text': "<p>I second the opensta suggestion.  I would just add that it allows you to do things to monitor the server you're testing using SMTP.  We keep track of processor load, memory used, byes sent, etc.  The only downside is that if you find something boken and want to do a fix it relies on several open-source libraries that are no longer kept up, so getting a compiling version of the source is more tricky than with most OSS.</p>\n"}, {'answer_id': 146104, 'author': 'Jerry B', 'author_id': 22935, 'author_profile': 'https://Stackoverflow.com/users/22935', 'pm_score': 1, 'selected': False, 'text': "<p>We use the Microsoft tool mentioned - Microsoft Web Application Stress Tool. It is the easiest tool I have used. It is limited in many ways, including only being able to hit port 80 on manually created tests. But, its ease of use means it actually gets used. </p>\n\n<p>We supplement the load from this tool with other tools including OpenSTA and link check spiders. </p>\n\n<p>JMeter looks good from my initial evaluation, I hope to include it in our continuous integration going forward. But, JMeter is complex and non trivial to roll out.</p>\n\n<p>I'd suggest opening another question regarding interpreting the MS stress tool results.</p>\n"}, {'answer_id': 151382, 'author': 'Alvin', 'author_id': 23637, 'author_profile': 'https://Stackoverflow.com/users/23637', 'pm_score': 2, 'selected': False, 'text': '<p>I tried <a href="http://www.radview.com/" rel="nofollow noreferrer">WebLoad</a> it\'s a pretty neat tool. It comes with and test script IDE which allows you to record user action on a website. It also draws a graph as it perform stress test on your web server. Try it out, I highly recommend it. </p>\n'}, {'answer_id': 506692, 'author': 'Mathias F', 'author_id': 13442, 'author_profile': 'https://Stackoverflow.com/users/13442', 'pm_score': 0, 'selected': False, 'text': '<p>I played with JMeter. One think it could not not test was ASP.NET Webforms. The viewstate broke my tests. I am not shure why, but there are a couple of tools out there that dont handle viewstate right. My current project is ASP.NET MVC and  JMeter works well with it.</p>\n'}, {'answer_id': 555557, 'author': 'Patrick Lightbody', 'author_id': 62187, 'author_profile': 'https://Stackoverflow.com/users/62187', 'pm_score': 5, 'selected': False, 'text': '<p>A little late to this party. I agree that <a href="https://qatestingtools.com/testing-tool/pylt" rel="nofollow noreferrer">Pylot</a> is the best up-and-coming open source tool out there. It\'s simple to use and is actively worked on by a great guy (<a href="http://www.goldb.org" rel="nofollow noreferrer">Corey Goldberg</a>). As the founder of <a href="http://openqa.org" rel="nofollow noreferrer">OpenQA</a>, I\'m also happy that Pylot now is listed on our home page and uses some of our infrastructure (namely the forums).</p>\n\n<p>However, I also recently decided that the entire concept of load testing was flawed: emulating HTTP traffic, with applications as complex as they have become, is a pain in the butt. That\'s why I created the commercial tool BrowserMob. It\'s an <a href="http://browsermob.com" rel="nofollow noreferrer">external load testing service</a> that uses <a href="http://seleniumhq.org" rel="nofollow noreferrer">Selenium</a> to control real web browsers when playing back load.</p>\n\n<p>The approach obviously requires a <strong>ton</strong> more hardware than normal load testing techniques, but hardware is actually pretty cheap when you are using cloud computing. And a nice side effect of this is that the scripting is <strong>much</strong> easier than normal load testing. You don\'t have to do any advanced regex matching (like JMeter requires) to extract out cookies, .NET session state, Ajax request parameters, etc. Since you\'re using real browsers, they just do what they are supposed to do.</p>\n\n<p>Sorry to blatantly pitch a commercial product, but hopefully the concept is interesting to some folks and at least gets them thinking about some new ways to deal with load testing when you have access to a bunch of extra hardware!</p>\n'}, {'answer_id': 1025227, 'author': 'merkuro', 'author_id': 122489, 'author_profile': 'https://Stackoverflow.com/users/122489', 'pm_score': 2, 'selected': False, 'text': '<p>You asked this question almost a year ago and I don\'t know if you still are looking for another way of benchmarking your website. However since this question is still not marked as solved I would like to suggest the free webservice <a href="http://www.loadimpact.com" rel="nofollow noreferrer">LoadImpact</a> (btw. not affiliated). Just got this link via twitter and would like to share this find. They create a reasonable good overview and for a few bucks more you get the "full impact mode". This probably sounds strange, but good luck pushing and braking your service :)</p>\n'}, {'answer_id': 1869968, 'author': 'Nat', 'author_id': 13813, 'author_profile': 'https://Stackoverflow.com/users/13813', 'pm_score': 1, 'selected': False, 'text': '<p>Visual Studio Test Edition 2010 (2008 good too). This is a really easy and powerful tool to create web/load tests with. </p>\n\n<p>The bonus with this tool when using against Windows servers is that you get integrated access to all the perfmon server stats in your report. Really useful.</p>\n\n<p>The other bonus is that with Visual Studio project you can integrate a "Performance Session" that will profile the code execution of your website. </p>\n\n<p>If you are serving webpages from a windows server, this is the best tool out there.</p>\n\n<p>There is a separate and expensive licence required to use several machines to load test the application however.</p>\n'}, {'answer_id': 3546467, 'author': 'Ben Li', 'author_id': 423840, 'author_profile': 'https://Stackoverflow.com/users/423840', 'pm_score': 3, 'selected': False, 'text': "<p>For simple usage, I perfer ab(apache benchmark) and siege, later one is needed as ab don't support cookie and would create endless sessions from dynamic site.</p>\n\n<p>both are simple to start:</p>\n\n<pre><code>ab -c n -t 30 url\n\nsiege -b -c n -t 30s url\n</code></pre>\n\n<p>siege can run with more urls.</p>\n\n<p>last siege version turn verbose on in siegerc, which is annoy. you can only disable it by edit that file(<code>/usr/local/etc/siegerc</code>).</p>\n"}, {'answer_id': 3634470, 'author': 'DominiCane', 'author_id': 357549, 'author_profile': 'https://Stackoverflow.com/users/357549', 'pm_score': 2, 'selected': False, 'text': '<p>Trying all mentioned here, I found  <a href="http://curl-loader.sourceforge.net/doc/faq.html" rel="nofollow noreferrer">curl-loader</a> as best for my purposes. very easy interface, real-time monitoring, useful statistics, from which I build graphs of performance. All features of libcurl are included.</p>\n'}, {'answer_id': 5711848, 'author': 'Harry Love', 'author_id': 166101, 'author_profile': 'https://Stackoverflow.com/users/166101', 'pm_score': 4, 'selected': False, 'text': '<p><a href="https://httpd.apache.org/docs/2.2/programs/ab.html" rel="nofollow noreferrer">ab</a>, <a href="https://www.joedog.org/siege-home/" rel="nofollow noreferrer">siege</a>, <a href="http://tsung.erlang-projects.org/user_manual/" rel="nofollow noreferrer">tsung</a>, <a href="https://github.com/httperf/httperf" rel="nofollow noreferrer">httperf</a>, <a href="https://github.com/jamesgolick/trample" rel="nofollow noreferrer">Trample</a>, Pylot, <a href="http://request-log-analyzer.com/" rel="nofollow noreferrer">request-log-analyzer</a>, <a href="https://github.com/gperftools/gperftools" rel="nofollow noreferrer">perftools</a></p>\n'}, {'answer_id': 8750147, 'author': 'Chris F', 'author_id': 195931, 'author_profile': 'https://Stackoverflow.com/users/195931', 'pm_score': 3, 'selected': False, 'text': '<p>This is an old question, but I think newer solutions are worthy of a mention. Checkout LoadImpact: <a href="http://www.loadimpact.com">http://www.loadimpact.com</a>.</p>\n'}, {'answer_id': 11492793, 'author': 'Neville Kuyt', 'author_id': 626692, 'author_profile': 'https://Stackoverflow.com/users/626692', 'pm_score': 1, 'selected': False, 'text': '<p>We have developed a process that treats load and performance measurenment as a first-class concern - as you say, leaving it to the end of the project tends to lead to disappointment...</p>\n\n<p>So, during development, we include very basic multi-user testing (using selenium), which checks for basic craziness like broken session management, obvious concurrency issues, and obvious resource contention problems. Non-trivial projects include this in the continuous integration process, so we get very regular feedback.</p>\n\n<p>For projects that don\'t have extreme performance requirements, we include basic performance testing in our testing; usually, we script out the tests using BadBoy, and import them into JMeter, replacing the login details and other thread-specific things. We then ramp these up to the level that the server is dealing with 100 requests per second; if the response time is less than 1 second, that\'s usually sufficient. We launch and move on with our lives. </p>\n\n<p>For projects with extreme performance requirements, we still use BadBoy and JMeter, but put a lot of energy into understanding the bottlenecks on the servers on our test rig(web and database servers, usually). There\'s a good <a href="http://pal.codeplex.com/" rel="nofollow">tool for analyzing Microsoft event logs</a> which helps a lot with this.  We typically find unexpected bottlenecks, which we optimize if possible; that gives us an application that is as fast as it can be on "1 web server, 1 database server". We then usually deploy to our target infrastructure, and use one of the "Jmeter in the cloud" services to re-run the tests at scale. </p>\n\n<p>Again, PAL reports help to analyze what happened during the tests - you often see very different bottlenecks on production environments. </p>\n\n<p>The key is to make sure you don\'t just run your stress tests, but also that you collect the information you need to understand the performance of your application.</p>\n'}, {'answer_id': 12013129, 'author': 'user1227037', 'author_id': 1227037, 'author_profile': 'https://Stackoverflow.com/users/1227037', 'pm_score': 1, 'selected': False, 'text': '<p>There are a lot of good tools mentioned here. I wonder if tools are an answer the question: "How do you stress test a web application?" The tools don\'t really provide a method to stress a Web app. Here\'s what I know:</p>\n\n<p>Stress testing shows how a Web app fails while serving responses to an increasing population of users. Stress testing shows how the Web app functions while it fails. Most Web apps today - especially the Social/Mobile Web apps - are integrations of services. For example, when Facebook had its outage in May 2011 you could not log onto Pepsi.com\'s Web app. The app didn\'t fail entirely, just a big portion of its normal function become unavailable to users.</p>\n\n<p>Performance testing shows a Web app\'s ability to maintain response times independent of how many users are concurrently using the app. For example, an app that handles 10 transactions per second with 10 concurrent users should handle 20 transactions per second at 20 users. If the app handles less than 20 transactions per second the response times are growing longer and the app is not able to achieve linear scalability.</p>\n\n<p>Also, in the above example the transaction-per-second count should be of only successful operations of a test use case/workflow. Failures typically happen in shorter timespans and will make the TPS measurement overly optimistic. Failures are important to a stress and performance test since they generate load on the app too.</p>\n\n<p>I wrote up the PushToTest methodology in the TestMaker User Guide at <a href="http://www.pushtotest.com/pushtotest-testmaker-6-methodology" rel="nofollow">http://www.pushtotest.com/pushtotest-testmaker-6-methodology</a>. TestMaker comes in two flavors: Open Source (GPL) Community version and TestMaker Enterprise (commercial with great professional support.)</p>\n\n<p>-Frank</p>\n'}, {'answer_id': 13359146, 'author': 'yanjost', 'author_id': 16718, 'author_profile': 'https://Stackoverflow.com/users/16718', 'pm_score': 0, 'selected': False, 'text': '<p>I had good results with <a href="http://funkload.nuxeo.org/" rel="nofollow">FunkLoad</a> :</p>\n\n<ul>\n<li>easy to script user interaction</li>\n<li>reports are clear</li>\n<li>can monitor server load</li>\n</ul>\n'}, {'answer_id': 13812176, 'author': 'Steve Owens', 'author_id': 1588620, 'author_profile': 'https://Stackoverflow.com/users/1588620', 'pm_score': 0, 'selected': False, 'text': '<p>At the risk of being accused of shameless self promotion I would like to point out that in my quest for a free load testing tool I went to this article: <a href="http://www.devcurry.com/2010/07/10-free-tools-to-loadstress-test-your.html" rel="nofollow">http://www.devcurry.com/2010/07/10-free-tools-to-loadstress-test-your.html</a></p>\n\n<p>Either I couldn\'t get the throughput I wanted, or I couldn\'t get the flexibility I wanted. AND I wanted to easily aggregate the results of multiple load test generation hosts in post test analysis.</p>\n\n<p>I tried out every tool on the list and to my frustration found that none of them quite did what I wanted to be able to do.  So I built one and am sharing it.</p>\n\n<p>Here it is: <a href="http://sourceforge.net/projects/loadmonger" rel="nofollow">http://sourceforge.net/projects/loadmonger</a></p>\n\n<p>PS: No snide comments on the name from folks who are familiar with urban slang.  I wasn\'t but am slightly more worldly now.</p>\n'}, {'answer_id': 14129991, 'author': 'danriti', 'author_id': 246102, 'author_profile': 'https://Stackoverflow.com/users/246102', 'pm_score': 3, 'selected': False, 'text': '<p>For a web based service, check out <a href="http://loader.io/" rel="noreferrer">loader.io</a>.</p>\n\n<p>Summary:</p>\n\n<blockquote>\n  <p>loader.io is a free load testing service that allows you to stress test your web-apps/apis with thousands of concurrent connections.</p>\n</blockquote>\n\n<p>They also have an <a href="https://api.loader.io/docs" rel="noreferrer">API</a>.</p>\n'}, {'answer_id': 15694205, 'author': 'Ian Fleming', 'author_id': 2217488, 'author_profile': 'https://Stackoverflow.com/users/2217488', 'pm_score': 3, 'selected': False, 'text': "<p>As this question is still open, I might as well weigh in.</p>\n\n<p>The good news is that over the past 5 or so years the Open Source tools have really matured and taken off in the space, the bad news is there are so many of them out there.</p>\n\n<p>Here are my thoughts:-</p>\n\n<p>Jmeter vs Grinder</p>\n\n<p>Jmeter is driven from an XML style specification, that is constructed via a GUI.</p>\n\n<p>Grinder uses Jython scripting within a muti-threaded Java framework, so more oriented to programmers.</p>\n\n<p>Both tools will handle HTTP and HTTPS and have a proxy recorder to get you started.\nBoth tools use the Controller model to drive multiple test agents so scalability is not an issue (given access to the Cloud).</p>\n\n<p>Which is better:-</p>\n\n<p>A hard call as the learning curve is steep with both tools as you get into the more complicated scripting requirements for url rewriting, correlation, providing unique data per Virtual User and simulating first time or returning Users (by manipulating the HTTP Headers).</p>\n\n<p>That said I would start with Jmeter as this tool has a huge following and there are many examples and tutorials on the web for using this tool. If and when you come to a 'road block', that is something you can't 'easily' do with Jmeter then have a look at the Grinder. The good news is both these tools have the same Java requirement and a 'mix and match' solution is not out of the question.</p>\n\n<p>Something new to add – Headless browsers running multiple instances of Selenium WebDriver.</p>\n\n<p>This is a relatively new approach because it relies on the availability of resources that can now be provisioned from the Cloud. With this approach a Selenium (WebDriver) script is taken and run within a headless browser (i.e. WebDriver = New HtmlUnitDriver()) driver in multiple threads.</p>\n\n<p>From experience around 25 instances of 'headless browsers' can be executed from the Amazon M1 Small Instance.</p>\n\n<p>What this means is that all of the correlation, url rewriting issues disappear as you repurpose your functional testing scripts to become performance testing scripts.</p>\n\n<p>The scalability is compromised as more VMs will be needed to drive the load, as compared with a HTTP driver such as the Grinder or Jmeter. That said, if you are looking to drive 500 Virtual Users then with 20 Amazon Small Instances (6 cents an hour each) at a cost of just $1.20 per hour gives you load that is very close to the Real User Experience.   </p>\n"}, {'answer_id': 16429297, 'author': 'alecxe', 'author_id': 771848, 'author_profile': 'https://Stackoverflow.com/users/771848', 'pm_score': 3, 'selected': False, 'text': '<p>Also, there is an awesome open-source pure-python distributed and scaleable <a href="http://locust.io/">locust</a> framework that uses <a href="http://greenlet.readthedocs.org/en/latest/">greenlets</a>. It\'s great at simulating enormous amount of simultaneous users.</p>\n'}, {'answer_id': 19720125, 'author': 'Gerry', 'author_id': 109561, 'author_profile': 'https://Stackoverflow.com/users/109561', 'pm_score': 2, 'selected': False, 'text': '<p>Blaze meter has a chrome extension for recording sessions and exporting them to JMeter (currently requires login). You also have the option of paying them money to run it on their cluster of JMeter servers (their pricing seems much better than LoadImpact which I\'ve just stopped using):</p>\n\n<ul>\n<li><a href="https://chrome.google.com/webstore/detail/blazemeter-the-load-testi/mbopgmdnpcbohhpnfglgohlbhfongabi?hl=en" rel="nofollow">BlazeMeter Chrome Extension</a></li>\n<li><a href="http://community.blazemeter.com/knowledgebase/articles/231479-chrome-extension" rel="nofollow">Blog entry about it</a></li>\n</ul>\n\n<p>I don\'t have any association with them, I just like the look of their service, although I haven\'t used the paid version yet.</p>\n'}, {'answer_id': 33876200, 'author': 'Sunil Kapil', 'author_id': 1801075, 'author_profile': 'https://Stackoverflow.com/users/1801075', 'pm_score': 3, 'selected': False, 'text': '<p>We recently started using Gatling for load testing. I would highly recommend to try out this tool for load testing. We had used SOASTA and JMETER in past. Our main reason to consider Gatling is following:</p>\n\n<ul>\n<li>Recorder to record the scenario</li>\n<li>Using Akka and Netty which gives better performance compare to\nJmeter Threading model</li>\n<li>DSL Scala which is very much maintainable compare to Jmeter XML</li>\n<li>Easy to write the tests, don\'t scare if it\'s scala. </li>\n<li>Reporting</li>\n</ul>\n\n<p>Let me give you simple example to write the code using Gatling Code: </p>\n\n<pre><code>// your code starts here  \nval scn = scenario("Scenario")  \n     .exec(http("Page")\n     .get("http://example.com")) \n// injecting 100 user enter code here\'s on above scenario.   \nsetUp(scn.inject(atOnceUsers(100)))       \n</code></pre>\n\n<p>However you can make it as complicated as possible. One of the feature which stand out for Gatling is reporting which is very detail.  </p>\n\n<p>Here are some links:<br>\n<a href="http://gatling.io/docs/1.5.6/index.html">Gatling</a><br>\n<a href="https://developer.gooddata.com/how-we-do/performance-testing">Gatling Tutorial</a></p>\n\n<p>I recently gave talk on it, you can go through the talk here:<br>\n<a href="https://docs.google.com/viewer?url=http%3A%2F%2Ffiles.meetup.com%2F3872152%2FExploring-Load-Testing-with-Gatling.pdf">https://docs.google.com/viewer?url=http%3A%2F%2Ffiles.meetup.com%2F3872152%2FExploring-Load-Testing-with-Gatling.pdf</a>  </p>\n'}, {'answer_id': 39800274, 'author': 'Vinit', 'author_id': 1050156, 'author_profile': 'https://Stackoverflow.com/users/1050156', 'pm_score': 1, 'selected': False, 'text': '<p>Try <a href="https://www.zebratester.com/" rel="nofollow noreferrer">ZebraTester</a> which is much easier to use than jMeter. I have used jMeter for a long time but the total setup time for a load test was always an issue. Although ZebraTester isn\'t open source, the time that I have saved in the last six months makes up for it. They also have a SaaS portal which can be used for quickly running tests using their load generators.</p>\n'}, {'answer_id': 41373758, 'author': 'QingHai', 'author_id': 3292090, 'author_profile': 'https://Stackoverflow.com/users/3292090', 'pm_score': 1, 'selected': False, 'text': '<p>Take a look at LoadBooster(<a href="https://www.loadbooster.com" rel="nofollow noreferrer">https://www.loadbooster.com</a>). It utilizes headless scriptable browser PhantomJS/CasperJs to test web sites. Phantomjs will parse and render every page, execute the client-side script. The headless browser approach is easier to write test scenarios to support complex AJAX heavy Web 2.0 app，browser navigation, mouse click and keystrokes into the browser or wait until an element exists in DOM. LoadBooster support selenium HTML script too.</p>\n\n<p>Disclaimer: I work for LoadBooster.</p>\n'}, {'answer_id': 44804131, 'author': 'Alireza Fattahi', 'author_id': 2648077, 'author_profile': 'https://Stackoverflow.com/users/2648077', 'pm_score': 0, 'selected': False, 'text': '<p>I vote for <strong>jMeter</strong> too and I want add some quotes to @PeterBernier answer.</p>\n\n<blockquote>\n  <p>The main question that load testing answers is how many concurrent\n  users can my web application support? In order to get a proper answer,\n  <strong>load testing should represent real application usage, as close as\n  possible</strong>.</p>\n</blockquote>\n\n<p>Keep above in mind, <strong>jMeter</strong> has many building blocks <strong>Logical Controllers</strong>, <strong>Config Elements</strong>, <strong>Pre Processors</strong>, <strong>Listeners</strong>  ,... which can help you in this.</p>\n\n<p>You can mimic real world situation with jMeter, for example you can:</p>\n\n<ol>\n<li>Configure jMeter to act as real Browser by configuring  (<code>concurrent resource download</code>, <code>browser cache</code>, <code>http headers</code>, <code>setting request time out</code>, <code>cookie management</code>, <code>https support</code>, <code>encoding</code> , <code>ajax support</code> ,... ) </li>\n<li>Configure jMeter to  generate user requests (by defining <code>number of users per second</code>, <code>ramp-up time</code>, <code>scheduling</code> ,...)</li>\n<li>Configure lots of client with jMeter on them, to do a distributed load test.</li>\n<li>Process response to find if the server is responding correctly during test. ( For example <code>assert</code> response to find a text in it)</li>\n</ol>\n\n<p>Please consider:</p>\n\n<ul>\n<li>It is easy to start a real web application test with jMeter in minutes. The jMeter has a very easy tool which record your test scenario ( know as <code>HTTP(S) Test Script Recorder</code>).</li>\n<li>jMeter has lots of plugins at <a href="http://jmeter-plugins.org" rel="nofollow noreferrer">http://jmeter-plugins.org</a>. </li>\n<li>The jMeter UI is swing based and has made good changes in jMeter 3.2. On the other hand please consider that JMeter GUI should only be used for test and debugging. It is not good practice to use it in GUI mode for actual test. <a href="https://www.blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui" rel="nofollow noreferrer">https://www.blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui</a>. Configure and test your scenario and run it on non-gui mode. </li>\n<li>The are lots of reporting showing tools in jMeter (Known as <code>listeners</code>) but there are not meant to be on during test. You must run your test and generate reports ( <code>.jtl</code> files). Then you must use these tools to analyze result. Please have a look at <a href="https://www.blazemeter.com/blog/jmeter-listeners-part-1-basic-display-formats" rel="nofollow noreferrer">https://www.blazemeter.com/blog/jmeter-listeners-part-1-basic-display-formats</a> or <a href="https://www.tutorialspoint.com/jmeter/jmeter_listeners.htm" rel="nofollow noreferrer">https://www.tutorialspoint.com/jmeter/jmeter_listeners.htm</a>.</li>\n</ul>\n\n<p>The <a href="https://www.blazemeter.com/jmeter" rel="nofollow noreferrer">https://www.blazemeter.com/jmeter</a> has very good and practical information to help you configure your test environment.</p>\n'}]
['https://Stackoverflow.com/questions/7492', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/556/']