title,body,link,tags,view_count,is_answered,score,answer_count
Web Load Testing,"<p>I'm quite new at the load testing. I want to know what is best tool for web load testing ? I am currently using Blazemeter and Jmeter for load testing. I am using a blazemeter plugin and then, when I record some actions using a blazemeter, I import jmx script into the jmeter. I have read about load testing many things, but I want to ask you if it is the right way to make a Web load testing. 
What I mean in load testing, maybe I have some misunderstandings in load testing. I want to calculate how fast the website loaded with all of data. For example, login page. Calculate login time and in how much time did it redirect me inside. </p>

<p>Sorry if I have questioned it in the wrong way.</p>
",https://stackoverflow.com/questions/56755230/web-load-testing,"['jmeter', 'load-testing', 'blazemeter']",95,True,-1,1
Load testing with locust,"<p>I am using locust for load testing on an api. I am sending POST request is on that api. My USE CASE is that I want to check how many requests can the api take at a time. This is my code </p>

<pre><code>import requests
from locust import HttpLocust, TaskSet
from requests.auth import HTTPDigestAuth
from credentials import *


class UserBehavior(TaskSet):
    def on_start(self):
        if len(USER_CREDENTIALS) &gt; 0:
                self.name, self.password,self.email,self.phone,self.country_abbrev = USER_CREDENTIALS.pop()
    @task
    def registration(self):
        URL = ""ip/user/register""
        PARAMS = {'name':self.name,'password': self.password,'primary_email': self.email,'primary_mobile_number':self.phone,'country_abbrev':self.country_abbrev} 
        self.client.post(url = URL,params = PARAMS,auth=HTTPDigestAuth('user', 'pass'))

class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 5000
    max_wait = 9000


</code></pre>

<p>And then I run locust -f locust.py --host=localhost:8089 </p>

<p>Then I get an option to set hatch rate and number of users. What should I set the values to if I just want to send 100 post requests concurrently once to check if the API can handle 100 requests at one time.</p>

<p>Any help would be appreciated</p>
",https://stackoverflow.com/questions/57708899/load-testing-with-locust,"['python', 'locust']",1509,True,1,2
Docker for Load testing,"<p>I wanted to use docker for JMeter distributed Load testing environment. I would like to know if there are any disadvantages, especially the impact on load-testing using containers wrt latency, network  issues ,memory as when we use docker containers as Load generator environment.
Kindly share your ideas / links if any .</p>

<p>Thanks much in advance.</p>
",https://stackoverflow.com/questions/58927555/docker-for-load-testing,"['docker', 'jmeter', 'containers', 'jmeter-plugins']",2252,True,1,2
Load testing web UI,"<p>I want to test 500 users using my web app at the same time. </p>

<p>I have looked into running Selenium Web Driver in parallel or using JMeter Web Driver but I've seen others advise to only run ~5 of these at one time on one machine.</p>

<p>Is there a viable way to test what I want on one machine (or at least fewer than 100)?</p>
",https://stackoverflow.com/questions/55220372/load-testing-web-ui,"['selenium-webdriver', 'jmeter', 'load-testing']",702,True,0,1
Oauth Jmeter Load testing,"<p>I am performing the Jmeter load testing. Our application is on Oauth authentication. How can i logging using Jmeter so that we can perform load testing on our application.
Right now we are not able to set parameters on ""HTTP Authorization Manager"" for login.</p>
",https://stackoverflow.com/questions/55042426/oauth-jmeter-load-testing,"['http', 'jmeter']",100,True,-2,1
Puppeteer: Load testing using puppeteer,"<p>I am at design phase for a load test setup using headless chrome controlled by Puppeteer. Whats the best approach to follow? I have thought of below two approaches. </p>

<p>Say I need to simulate 1000 users login.</p>

<ol>
<li><p>Using <strong>await puppeteer.launch()</strong> api, create 1000 headless chrome instances. And then access the login page, type user / password, hit the log in button. This looks strait forward, but it may take lot of system resources and simulation of 1000 user logins may not be possible (will it be?)</p></li>
<li><p>Launch only one chrome instance. Create 1000 CDP sessions. However I am not sure if this approach will work, because of same cache (userDataDir) path. Is it possible to set different cache for each CDP session.</p></li>
</ol>

<p>Or is there any better approach for load testing using Puppeteer? </p>
",https://stackoverflow.com/questions/57602530/puppeteer-load-testing-using-puppeteer,"['load-testing', 'puppeteer', 'google-chrome-headless']",6560,True,3,1
Signalr load testing in JMeter,"<p>I'm trying to do JMeter script for an application with Signalr protocol.
I'm able to identify connection-token, bearer-token, connection-id and co relate with request using long polling transport and  receive message, but after third polling I could not receive the correct response, i'm getting response but not the expected and full response.</p>

<p>Could you please help me what could be the issue here?</p>

<p><a href=""https://i.stack.imgur.com/ao89e.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/ao89e.png"" alt=""LongPoll_Request""></a></p>
",https://stackoverflow.com/questions/54388397/signalr-load-testing-in-jmeter,"['websocket', 'jmeter', 'signalr', 'long-polling']",1446,True,2,1
Load testing application using jmeter,"<p>I am load testing a web application.
I am new to JMeter and have too many confusions.</p>

<ol>
<li>I try to access the website link using JMeter, but the application login is handled by a third party(Auth0) and I am not able to find a way how I can successfully access the application with proper authorization.</li>
</ol>

<p>Is it possible to give the access token somewhere in the Jmeter, so I can skip the redirecting to Auth0 page for logging in and entering username and password</p>

<p>If so how can I do it</p>

<ol start=""2"">
<li>Also, even if I access the website pages without username and password, still Jmeter returns a status code 200. </li>
</ol>

<p>Even if I access the application successfully still the status code will be the same.</p>

<p>How do I differentiate if Jmeter is successfully opening the link I passed or is stuck at the login page to which it is redirected to.</p>

<ol start=""3"">
<li>Is there a way to interpret the response body, like what page is Jmeter seeing now,</li>
</ol>

<p>I have been trying to a find a way for so long now, so any help will be greatly appreciated</p>
",https://stackoverflow.com/questions/54081549/load-testing-application-using-jmeter,"['jmeter', 'access-token', 'load-testing', 'auth0', 'bearer-token']",341,True,1,1
Load Testing a C# function,"<p>I want to do load testing (CPU utilization and Memory Usage) for a <code>C#</code> unit test case which accepts some random string. This random string should be a new value on load. Also, the load should be based on concurrent requests. Is there any tool which can help me achieve this?</p>

<p>MSTest is used in the code as a testing framework.</p>
",https://stackoverflow.com/questions/57214473/load-testing-a-c-function,"['c#', 'performance', 'testing']",557,True,1,1
jmeter load testing 403 forbidden,"<p>I am running a load test against our application (250 threads with 10 loops) and it never succeeds. error rate dominates with > 95% every run and have no clue what is going wrong. error is 403 forbidden across both GET and POST requests I have cookie manager with Hc4Cookiehandler implementation and policy is set to standard also got cache manager added in my test plan.</p>

<p>I have tweaked the JMeter settings as suggested in other forums, still no luck.</p>

<pre><code>httpclient4.retrycount=1

http.connection.stalecheckBoolean=true

https.default.protocol=TLSv1.2 
</code></pre>

<p>the interesting part is that certain requests are passing through fine and result 200 success. wondering if something is wrong with the jmeter configuration which is letting major requests to fail.</p>

<p>sample result:</p>

<pre><code>summary =  24000 in 00:00:34 =  702.9/s Avg:   122 Min:     5 Max:  5347 Err: 23795 (99.15%)

403:

1556876389725,12,GET-/visitor/captureJobSearch.do,403,Forbidden,DT-ChildCare 1-45,text,false,Test failed: message expected to contain /OK/,519,945,100,100,11,0,4

200:

1556876387936,1564,GET-/visitor/captureSearchBar.do,200,OK,DT-ChildCare 1-1,text,true,,21616,473,100,100,1561,0,768
</code></pre>
",https://stackoverflow.com/questions/55968028/jmeter-load-testing-403-forbidden,['jmeter'],1811,True,1,1
Performance Indicators for Load Testing?,"<p>Currently I am working my way into the topic of load and performance testing. In our planning, however, the customer now wants to have indicators for the load and performance test named. Here I am personally however over-questioned. What exactly are the performance indicators within a load and performance test?</p>
",https://stackoverflow.com/questions/58055821/performance-indicators-for-load-testing,"['testing', 'jmeter', 'automated-tests', 'performance-testing', 'load-testing']",163,True,1,1
Jmeter load testing in SPA,"<p>I am beginner in Load testing and I am doing load testing using JMeter on a single page web application. The issue which I am facing right now that as you know  in SPA there is a single URL and page contains multiple tabs, how I can switch between the tabs using JMeter. You can see my test plan in below image.
<a href=""https://i.stack.imgur.com/YnUU4.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/YnUU4.png"" alt=""enter image description here""></a></p>

<p>I Know I have little knowledge, any link or guidelines are welcome as there is a limited information on google regarding SPA.</p>
",https://stackoverflow.com/questions/55941735/jmeter-load-testing-in-spa,"['testing', 'jmeter', 'automated-tests', 'single-page-application', 'performance-testing']",1326,True,0,1
JMeter load testing web application,"<p>I need to test a web-application using JMeter.</p>

<p>Every time I give the path, it gets redirected to auth0 to login
Is there a way I can save the credentials, so that every path I mention is accessed with those credentials and doesn't always redirect to login? </p>
",https://stackoverflow.com/questions/54037218/jmeter-load-testing-web-application,"['authentication', 'jmeter', 'performance-testing', 'load-testing']",124,True,0,1
Load testing on an API using python,"<p>I am currently writing python script for load testing an API.I want to check how many requests can an API take at a time.The API is for registration so I have to send unique parameters everytime.</p>

<p>Is there anyway I could achieve it through locust or any other way?</p>

<p>Any help would be appreciated.</p>

<p>This is my code for registration of single user.</p>

<pre><code>def registration:
    URL = ""ip""
    PARAMS = {'name':'test','password':'test1','primary_email':'test667@gmail.com','primary_mobile_number':'9999999999','country_abbrev':'US'} 
    r = requests.post(url = URL,params = PARAMS,auth=HTTPDigestAuth('user', 'pass')) 
    response = r.text 
    print response
</code></pre>
",https://stackoverflow.com/questions/57668512/load-testing-on-an-api-using-python,"['python', 'load-testing', 'locust']",16191,True,10,4
Gatling load testing and running scenarios,"<p>I am looking to create three scenarios:</p>
<ul>
<li>The first scenario will run a bunch of GET requests for 30s</li>
<li>The second and third scenarios will run in parallel and wait until the first is finished.</li>
</ul>
<p>I want the requests from the first scenario to be excluded from the report.</p>
<p>I have the basic outline of what I want to achieve but not seeing expected results:</p>
<pre><code>val myFeeder = csv(&quot;somefile.csv&quot;)

val scenario1 = scenario(&quot;Get stuff&quot;)
.feed(myFeeder)
.during(30 seconds) {
  exec(
      http(&quot;getStuff(${csv_colName})&quot;).get(&quot;/someEndpoint/${csv_colName}&quot;)
  )
}

val scenario2 = ...

val scenario3 = ...

setUp(
  scenario1.inject(
    constantUsersPerSec(20) during (30 seconds)
  ).protocols(firstProtocaol),

  
  scenario2.inject(
    nothingFor(30 seconds), //wait 30s
    ...
  ).protocols(secondProt)

  scenario3.inject(
    nothingFor(30 seconds),  //wait 30s
    ...
  ).protocols(thirdProt)

)
</code></pre>
<p>I am seeing the first scenario being run throughout the entire test.  It doesn't stop after the 30s?</p>
<p>For the first scenario I would like to cycle through the CSV file and perform a request for each line.  Perhaps 5-10 requests per second, how do I achieve that?</p>
<p>I would also like it to stop after the 30s and then run the other two in parallel.  Hence the <code>nothingFor</code> in last two scenarios above.</p>
<p>Also how do I exclude from report, is it possible?</p>
",https://stackoverflow.com/questions/58523447/gatling-load-testing-and-running-scenarios,"['scala', 'testing', 'gatling', 'scala-gatling']",1435,True,2,1
OAuth Login with Locust Load Testing,"<p>I am load testing an application using Locust. It has an IP address rather than a web address, which is say 192.24.130.8080/app. </p>

<p>For the user to log in, the user is redirected to KeyCloak authentication service, that looks something like this: </p>

<p><a href=""http://192.24.130.8080/auth/realms/project/protocol/openid-connect/auth?client_id=v5_prod&amp;redirect_uri=http://192.24.130.8080/app/&amp;response_type=code&amp;scope=openid#/"" rel=""nofollow noreferrer"">http://192.24.130.8080/auth/realms/project/protocol/openid-connect/auth?client_id=v5_prod&amp;redirect_uri=http://192.24.130.8080/app/&amp;response_type=code&amp;scope=openid#/</a></p>

<p>I have the following code, using the username and log in password. However, when I change the password in the code (to the wrong password), the load testing runs just the same. This indicates to me that I am just hitting this re-direct page and not getting past it. </p>

<pre><code>from locust import HttpLocust, TaskSet, task


class UserBehavior(TaskSet):
    def on_start(self):
        """""" on_start is called when a Locust start before any task is scheduled """"""
        self.login()

    def on_stop(self):
        """""" on_stop is called when the TaskSet is stopping """"""
        self.logout()

    def login(self):
        self.client.post(""/app/&amp;response_type=code&amp;scope=openid#/"", {""user"":""user100"", ""password"":""sun""})

    def logout(self):
        self.client.post(""/app/&amp;response_type=code&amp;scope=openid#/"", {""user"":""user100"", ""password"":""sun""})


    @task(3)
    def app(self):
        self.client.get(""/index/#/"")

    @task(1)


      def app2(self):
            self.client.get(""/account/932507"")

    class UserWait(HttpLocust):
        task_set = UserBehavior
        #1000 ms = 1 second
        min_wait = 2000
        max_wait = 3000
</code></pre>

<p>I'm not sure how to get pass this Keycloak oauth. Any help is greatly appreciated!</p>
",https://stackoverflow.com/questions/57592253/oauth-login-with-locust-load-testing,"['python', 'locust']",4568,False,2,1
Load testing with Kafka and Storm,"<p>Our system takes post request and send json body to kafka topic and this topic is configured as spout for topology and topology generate output message to a kafka topic.
How i can load test this system? Number of message processed per second by system.</p>

<p>I am planning to use jmeter for load testing</p>
",https://stackoverflow.com/questions/58982753/load-testing-with-kafka-and-storm,"['performance', 'apache-kafka', 'jmeter', 'apache-storm']",655,False,-1,2
Load testing deprecated in Visual Studio?,"<p>Came across this blog => <a href=""https://devblogs.microsoft.com/devops/cloud-based-load-testing-service-eol/"" rel=""nofollow noreferrer"">https://devblogs.microsoft.com/devops/cloud-based-load-testing-service-eol/</a> saying that - When Visual Studio 2019 Preview 1 shipped in early December, Microsoft announced the plans to deprecate the load test functionality in Visual Studio. Visual Studio 2019 will be the last version of Visual Studio with web performance and load test features."". Have below questions about this:- </p>

<ol>
<li>Does this mean the existing load tests written using the perf testing agents will not work any in Visual Studio? </li>
<li>Or does that mean engineers will not be able to use load testing features in Visual Studio 2019 onwards? </li>
</ol>
",https://stackoverflow.com/questions/59169936/load-testing-deprecated-in-visual-studio,"['visual-studio', 'load-testing']",2687,True,0,1
jmeter(5.0) load testing and reports generation,"<p>I have done load testing with jmeter and my jmeter version is 5.0.</p>

<p>Can you please help me how to generate the reports of the results.</p>
",https://stackoverflow.com/questions/54230063/jmeter5-0-load-testing-and-reports-generation,"['jmeter', 'jmeter-plugins', 'jmeter-5.0']",1518,True,1,2
Java API Load Testing And Monitoring Toolkit?,"<p>I am testing APIs and I would like to load test it with hits/request per second. I would like to measure response time for each request, but I would also like to monitor CPU usage and JVM heap memory as the test is executed.</p>

<p>I found JMeter with perfmon agent to give exactly what I am requesting, but it seems that one has to bend over backwards to maintain the desired RPS and there is always the occasional bug.</p>

<p>I am quite disappointed in that regards, so I am looking for an alternative solution. I have found tools like Gatling but they do not seem to offer JVM monitoring tools with the test. So what are my options?</p>
",https://stackoverflow.com/questions/55055166/java-api-load-testing-and-monitoring-toolkit,"['java', 'performance', 'jmeter', 'benchmarking', 'gatling']",119,False,0,1
Load testing tool has &quot;redirect&quot; http request,"<p>I am testing the load for my application.
It is an application writing by Go. But in my application, It need to redirect between containers (leader and follower mechanism) using HTTP status code 3xx (<code>http.Redirect(abc, xyz, url, 307)</code>)</p>

<p>For <code>curl</code>, I can use <code>-L</code> option.</p>

<p>I want to find a load testing tool (like apache benchmark) but it will have the redirect option which the same with <code>-L</code> option in <code>curl</code>.</p>

<p>Someone can help me. Thank you!</p>
",https://stackoverflow.com/questions/56062088/load-testing-tool-has-redirect-http-request,"['performance', 'http', 'testing', 'load']",409,False,0,1
Json output from Vegeta HTTP load testing,"<p>I am using Vegeta to make some stress test but I am having some trouble while generating a json report. Running the following command I am able to see text results:</p>

<p>vegeta attack -targets=""./vegeta_sagemaker_True.txt"" -rate=10 -duration=2s | vegeta report -output=""attack.json"" -type=text</p>

<pre><code>Requests      [total, rate]            20, 10.52
Duration      [total, attack, wait]    2.403464884s, 1.901136s, 502.328884ms
Latencies     [mean, 50, 95, 99, max]  945.385864ms, 984.768025ms, 1.368113304s, 1.424427549s, 1.424427549s
Bytes In      [total, mean]            5919, 295.95
Bytes Out     [total, mean]            7104, 355.20
Success       [ratio]                  95.00%
Status Codes  [code:count]             200:19  400:1  
Error Set:
400 
</code></pre>

<p>When I run the same command changing -type-text to -type=json I receive really weird numbers ad they don't make sense for me:</p>

<pre><code>{
  ""latencies"": {
    ""total"": 19853536952,
    ""mean"": 992676847,
    ""50th"": 972074984,
    ""95th"": 1438787021,
    ""99th"": 1636579198,
    ""max"": 1636579198
  },
  ""bytes_in"": {
    ""total"": 5919,
    ""mean"": 295.95
  },
  ""bytes_out"": {
    ""total"": 7104,
    ""mean"": 355.2
  },
  ""earliest"": ""2019-04-24T14:32:23.099072+02:00"",
  ""latest"": ""2019-04-24T14:32:25.00025+02:00"",
  ""end"": ""2019-04-24T14:32:25.761337546+02:00"",
  ""duration"": 1901178000,
  ""wait"": 761087546,
  ""requests"": 20,
  ""rate"": 10.519793517492838,
  ""success"": 0.95,
  ""status_codes"": {
    ""200"": 19,
    ""400"": 1
  },
  ""errors"": [
    ""400 ""
  ]
}
</code></pre>

<p>Does anyone know why this should be happening?</p>

<p>Thanks!</p>
",https://stackoverflow.com/questions/55830207/json-output-from-vegeta-http-load-testing,"['http', 'command-line-interface', 'load-testing', 'vegeta']",830,True,0,1
Load testing should be done locally or remotely?,"<p><strike>I am using a vps for my website so I don't believe I can access it from the local network or something.</strike>
I am using digitalocean as a vps.</p>

<p>So where should I install tools like ab, siege, jmeter etc. , <strong>locally on the vps / on my own computer (client) / on another droplet(vps)</strong> in the same region and connect to the web server droplet via private network?</p>

<p>From my understanding if I use those tools on the vps itself, they might use too much of the cpu and ram (same cpu and ram the web server uses) for the test to be correct. </p>

<p>On the other hand testing remotely might end up with bad values because of network bottleneck. Is this the case if I use another vps on the same subnet (digitalocean private network function for example)?</p>

<p>I am lost, both solutions seem wrong so what am I missing?</p>
",https://stackoverflow.com/questions/54882301/load-testing-should-be-done-locally-or-remotely,"['nginx', 'jmeter', 'load-testing', 'vps', 'apachebench']",2251,True,2,2
Unable to automate Jmeter load testing in Bamboo,"<p><div class=""snippet"" data-lang=""js"" data-hide=""false"" data-console=""true"" data-babel=""false"">
<div class=""snippet-code"">
<pre class=""snippet-code-html lang-html prettyprint-override""><code>simple	14-Jan-2019 15:42:18	Build Global Digital - Application - App_Performance_Test - feature-Jmeter-Test-Feature - JMeter #3 (GDA-AP10-JOB1-3) started building on agent Elastic Agent on i-0375978d6d2732720
simple	14-Jan-2019 15:42:18	Elastic agent on instance i-0375978d6d2732720
simple	14-Jan-2019 15:42:18	Build working directory is /media/ephemeral0/build-dir/GDA-AP10-JOB1
simple	14-Jan-2019 15:42:18	Executing build Global Digital - Application - App_Performance_Test - feature-Jmeter-Test-Feature - JMeter #3 (GDA-AP10-JOB1-3)
simple	14-Jan-2019 15:42:18	Starting task 'Checkout jmeter scripts' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
simple	14-Jan-2019 15:42:18	Checking out into /media/ephemeral0/build-dir/GDA-AP10-JOB1
simple	14-Jan-2019 15:42:18	Updating source code to revision: 06bbe6dbc1ab56007bf4b44e270b72d477e7fee6
simple	14-Jan-2019 15:42:18	Fetching 'refs/heads/feature/Jmeter-Test-Feature' from 'ssh://git@stash-QA.gd.com:7999/project/jmeter-scripts.git'. Will try to do a shallow fetch.
simple	14-Jan-2019 15:42:18	Warning: Permanently added '[127.0.0.1]:36663' (RSA) to the list of known hosts.
simple	14-Jan-2019 15:42:19	Checking out revision 06bbe6dbc1ab56007bf4b44e270b72d477e7fee6.
simple	14-Jan-2019 15:42:19	Already on 'feature/Jmeter-Test-Feature'
simple	14-Jan-2019 15:42:19	Updated source code to revision: 06bbe6dbc1ab56007bf4b44e270b72d477e7fee6
simple	14-Jan-2019 15:42:19	Finished task 'Checkout jmeter scripts' with result: Success
simple	14-Jan-2019 15:42:19	Running pre-build action: VCS Version Collector
simple	14-Jan-2019 15:42:19	Running pre-build action: Sauce OnDemand Build Configurator
simple	14-Jan-2019 15:42:19	Running pre-build action: Hung Build Killer PreBuildAction
simple	14-Jan-2019 15:42:19	Skipping execution of task 'Run jmeter scripts' as it is disabled
command	14-Jan-2019 15:42:19	Substituting variable: ${bamboo.capability.system.builder.command.JMeter 3} with /opt/apache-jmeter-3/bin/jmeter
command	14-Jan-2019 15:42:19	Substituting variable: ${bamboo.build.working.directory} with /media/ephemeral0/build-dir/GDA-AP10-JOB1
simple	14-Jan-2019 15:42:19	Starting task 'Test script' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
command	14-Jan-2019 15:42:19	Beginning to execute external process for build 'Global - Application - App_Performance_Test - feature-Jmeter-Test-Feature - JMeter #3 (GDA-AP10-JOB1-3)'\n ... running command line: \n/bin/sh /home/bamboo/bamboo-agent-home/temp/GDA-AP10-JOB1-3-ScriptBuildTask-5020464262256623767.sh\n ... in: /media/ephemeral0/build-dir/GDA-AP10-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=feature/Jmeter-Test-Feature\nbamboo_duration=5\nbamboo_repository_247496707_revision_number=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_planRepository_1_branchDisplayName=feature/Jmeter-Test-Feature\nbamboo_repository_revision_number=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_repository_247496707_name=Global - jmeter-scripts\nbamboo_repository_247496707_git_repositoryUrl=ssh://git@stash-QA.gd.com:7999/project/jmeter-scripts.git\nbamboo_buildKey=GDA-AP10-JOB1\nbamboo_capability_remote=true\nbamboo_capability_system_builder_command_Python_2_7=/usr/bin/python\nbamboo_shortJobName=JMeter\nbamboo_buildResultsUrl=https://bamboo-staging.qa.com/browse/GDA-AP10-JOB1-3\nbamboo_repository_247496707_git_branch=feature/Jmeter-Test-Feature\nbamboo_planRepository_repositoryUrl=ssh://git@stash-QA.gd.com:7999/project/jmeter-scripts.git\nbamboo_agentId=247824395\nbamboo_location=publish\nbamboo_ramp_time=1\nbamboo_planRepository_revision=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_planRepository_previousRevision=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_repository_branch_name=feature/Jmeter-Test-Feature\nbamboo_repository_247496707_branch_name=feature/Jmeter-Test-Feature\nbamboo_ci_password=********\nbamboo_capability_system_builder_command_Python_3=/usr/bin/python3\nbamboo_password=********\nbamboo_capability_ci=true\nbamboo_capability_system_builder_command_foodcritic=/opt/chefdk/bin/foodcritic\nbamboo_dependenciesDisabled=false\nbamboo_locale=en_us\nbamboo_threads=1\nbamboo_planRepository_branch=feature/Jmeter-Test-Feature\nbamboo_planRepository_1_type=bbserver\nbamboo_planRepository_branchName=feature/Jmeter-Test-Feature\nbamboo_environment=lt-000\nbamboo_gdminorversion=6313\nbamboo_capability_release=true\nbamboo_planRepository_1_username=\nbamboo_planRepository_type=bbserver\nbamboo_ManualBuildTriggerReason_userName=bv49406\nbamboo_capability_system_builder_command_rubocop=/opt/chefdk/bin/rubocop\nbamboo_capability_system_builder_node_Node_js=/opt/node/bin/node\nbamboo_capability_system_builder_ant_Ant=/opt/ant\nbamboo_capability_system_builder_mvn3_Maven_3=/opt/maven/current\nbamboo_planKey=GDA-AP10\nbamboo_planRepository_username=\nbamboo_planRepository_1_branchName=feature/Jmeter-Test-Feature\nbamboo_capability_system_agent_environment_ec2_instance_type=c3.xlarge\nbamboo_resultsUrl=https://bamboo-staging.qa.com/browse/GDA-AP10-JOB1-3\nbamboo_capability_system_agent_environment_ebs_optimised=false\nbamboo_build_working_directory=/media/ephemeral0/build-dir/GDA-AP10-JOB1\nbamboo_planRepository_1_name=Global - jmeter-scripts\nbamboo_shortPlanName=feature-Jmeter-Test-Feature\nbamboo_capability_system_builder_command_ansible=/usr/local/bin/ansible\nbamboo_hybris_version=6.3.0.8\nbamboo_capability_system_builder_command_packer=/usr/local/bin/packer\nbamboo_planRepository_name=Global - jmeter-scripts\nbamboo_gdmajorversion=1\nbamboo_capability_system_builder_command_terraform=/usr/local/bin/terraform\nbamboo_buildNumber=3\nbamboo_username=admin\nbamboo_planName=Global - Application - App_Performance_Test - feature-Jmeter-Test-Feature\nbamboo_capability_system_builder_command_git=/usr/bin/git\nbamboo_shortPlanKey=AP10\nbamboo_shortJobKey=JOB1\nbamboo_capability_system_builder_node_npm=/opt/node-7/bin/npm\nbamboo_capability_system_builder_command_JMeter_3=/opt/apache-jmeter-3/bin/jmeter\nbamboo_capability_system_builder_command_berkshelf=/opt/chefdk/bin/berks\nbamboo_buildTimeStamp=2019-01-14T15:42:18.663Z\nbamboo_repository_previous_revision_number=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_repository_git_branch=feature/Jmeter-Test-Feature\nbamboo_buildResultKey=GDA-AP10-JOB1-3\nbamboo_buildPlanName=Global - Application - App_Performance_Test - feature-Jmeter-Test-Feature - JMeter\nbamboo_capability_system_agent_environment_iam_instance_profile=gd-mantl-agent\nbamboo_planRepository_1_revision=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_repository_name=Global - jmeter-scripts\nbamboo_domain=www-bose-com\nbamboo_repository_247496707_previous_revision_number=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_ci_user=gc8281256\nbamboo_buildFailed=false\nbamboo_capability_system_docker_executable=/usr/bin/docker\nbamboo_agentWorkingDirectory=/media/ephemeral0/build-dir\nbamboo_gdtempversion=17216\nbamboo_capability_system_git_executable=/usr/bin/git\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=06bbe6dbc1ab56007bf4b44e270b72d477e7fee6\nbamboo_planRepository_branchDisplayName=feature/Jmeter-Test-Feature\nbamboo_capability_system_builder_mvn3_Maven_3_x=/opt/maven/current\nbamboo_capability_system_builder_command_awscli=/usr/local/bin/aws\nbamboo_plan_storageTag=plan-247365637\nbamboo_repository_git_repositoryUrl=ssh://git@stash-QA.gd.com:7999/project/jmeter-scripts.git\nbamboo_repository_247496707_git_username=\nbamboo_capability_system_builder_command_knife=/opt/chefdk/bin/knife\nbamboo_working_directory=/media/ephemeral0/build-dir/GDA-AP10-JOB1\nbamboo_planRepository_1_repositoryUrl=ssh://git@stash-QA.gd.com:7999/project/jmeter-scripts.git\nbamboo_capability_system_jdk_JDK_1_8=/opt/jdk-8\nbamboo_capability_system_jdk_JDK_1_9=/opt/jdk-9\nbamboo_capability_system_builder_command_chrome=/usr/bin/google-chrome\n
simple	14-Jan-2019 16:02:25	 _   _  ____  _  _
simple	14-Jan-2019 16:02:25	( )_( )(  _ \( )/ )
simple	14-Jan-2019 16:02:25	 ) _ (  ) _ &lt; )  ( 
simple	14-Jan-2019 16:02:25	(_) (_)(____/(_)\_) 
simple	14-Jan-2019 16:02:25	This build has been killed by the HBK (Hung Build Killer). Either Bamboo has detected the build has hung or it has been manually stopped.
simple	14-Jan-2019 16:02:25	Attempting to generate stack trace and terminate spawned sub-processes of process id: 2282
simple	14-Jan-2019 16:02:25	Found related process: pid: 2659 ppid: 2282 pgid: 2174 %cpu: 0.0 %mem: 0.0 cmd: /bin/sh /home/bamboo/bamboo-agent-home/temp/GDA-AP10-JOB1-3-ScriptBuildTask-5020464262256623767.sh
simple	14-Jan-2019 16:02:25	Found related process: pid: 2660 ppid: 2659 pgid: 2174 %cpu: 0.0 %mem: 0.0 cmd: /bin/bash
simple	14-Jan-2019 16:02:25	getStackTraceAndKillRelatedProcesses for 2 processes
simple	14-Jan-2019 16:02:25	Executing kill -3 2660
simple	14-Jan-2019 16:02:25	Executing kill -3 2659
simple	14-Jan-2019 16:02:30	Killing: 2660
simple	14-Jan-2019 16:02:30	Executing kill 2660
simple	14-Jan-2019 16:02:30	Killing: 2659
simple	14-Jan-2019 16:02:30	Executing kill 2659
error	14-Jan-2019 16:02:30	Terminated
error	14-Jan-2019 16:02:30	/home/bamboo/bamboo-agent-home/temp/GDA-AP10-JOB1-3-ScriptBuildTask-5020464262256623767.sh: 2: cd: can't cd to /opt/apache-jmeter-3/bin/jmeter
simple	14-Jan-2019 16:02:30	Failing task since return code of [/bin/sh /home/bamboo/bamboo-agent-home/temp/GDA-AP10-JOB1-3-ScriptBuildTask-5020464262256623767.sh] was 2 while expected 0
simple	14-Jan-2019 16:02:30	Finished task 'Test script' with result: Failed
simple	14-Jan-2019 16:02:30	Running post build plugin 'Docker Container Cleanup'
simple	14-Jan-2019 16:02:30	Running post build plugin 'NCover Results Collector'
simple	14-Jan-2019 16:02:30	Running post build plugin 'Clover Results Collector'
simple	14-Jan-2019 16:02:30	Running post build plugin 'Sauce OnDemand Post Runner'
simple	14-Jan-2019 16:02:30	Running post build plugin 'npm Cache Cleanup'
simple	14-Jan-2019 16:02:30	Running post build plugin 'Artifact Copier'
simple	14-Jan-2019 16:02:30	Publishing an artifact: jmeter_jtl
error	14-Jan-2019 16:02:30	Unable to publish artifact [jmeter_jtl]: the source directory /media/ephemeral0/build-dir/GDA-AP10-JOB1/output does not exist.
simple	14-Jan-2019 16:02:30	The artifact hasn't been successfully published after 456.8 μs
simple	14-Jan-2019 16:02:30	Finalising the build...
simple	14-Jan-2019 16:02:30	Stopping timer.
simple	14-Jan-2019 16:02:30	Build GDA-AP10-JOB1-3 completed.
simple	14-Jan-2019 16:02:30	Running on server: post build plugin 'NCover Results Collector'
simple	14-Jan-2019 16:02:30	Running on server: post build plugin 'Build Hanging Detection Configuration'
simple	14-Jan-2019 16:02:30	Running on server: post build plugin 'Clover Delta Calculator'
simple	14-Jan-2019 16:02:30	Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple	14-Jan-2019 16:02:30	All post build plugins have finished
simple	14-Jan-2019 16:02:30	Generating build results summary...
simple	14-Jan-2019 16:02:30	Saving build results to disk...
simple	14-Jan-2019 16:02:30	Logging substituted variables...
simple	14-Jan-2019 16:02:31	Indexing build results...
simple	14-Jan-2019 16:02:31	Finished building GDA-AP10-JOB1-3.
simple	14-Jan-2019 16:02:35	 _   _  ____  _  _
simple	14-Jan-2019 16:02:35	( )_( )(  _ \( )/ )
simple	14-Jan-2019 16:02:35	 ) _ (  ) _ &lt; )  ( 
simple	14-Jan-2019 16:02:35	(_) (_)(____/(_)\_) 
simple	14-Jan-2019 16:02:35	This build has been killed by the HBK (Hung Build Killer). Either Bamboo has detected the build has hung or it has been manually stopped.
simple	14-Jan-2019 16:02:35	Has finished generating stack trace and terminating spawned sub-processes of process id: 2282</code></pre>
</div>
</div>
</p>

<p>I am planning to automate performance testing through Bamboo. Currently, I am running performance tests using jmeter 3.1 installed on a Windows machine (AWS-EC2 instance).</p>

<p>I am following the below approach to automate my tests:</p>

<ol>
<li>Create a repository in stash, upload the jmx file</li>
<li>Create a bamboo plan, with  a stage(jmeter)->task 1(Source Code Checkout configuration- configured the above repository) and task 2 (Script configuration).</li>
<li><p>In the second task, I choose <code>/bin/sh</code> or <code>cmd.exe</code> then I have written the code in the script body section:</p>

<pre><code>/bin/bash   
cd ${bamboo.capability.system.builder.command.JMeter 3} -n -t \
jmeterscript.jmx -l ${bamboo.build.working.directory}/example.jtl  
#runtime the value will be    
#${bamboo.capability.system.builder.command.JMeter 3}   
# (which is interpolated to `/opt/apache-jmeter-3/bin/jmeter`)  
</code></pre></li>
</ol>

<p>When I run the above plan, it runs for more than 30 mins and fails. </p>

<p>Here's the error I receive (logs are in-line, above):</p>

<pre><code>can't cd to /opt/apache-jmeter-3/bin/jmeter  
   Unable to publish artifact [jmeter_jtl]: the source directory 
   /media/ephemeral0/build-dir/GDA-AP10-JOB1/output does not exist.
</code></pre>
",https://stackoverflow.com/questions/54185512/unable-to-automate-jmeter-load-testing-in-bamboo,"['performance', 'testing', 'continuous-integration', 'bamboo']",672,False,1,1
Autocannon vs Jmeter in load testing via Cloudflare,"<p>We're trying to benchmark our application. We've tried tools, autocannon and jmeter. 
I've noticed that when we use autocannon, we couldn't get any response from Cloudflare unless we turn off the orange cloud. But when we use jmeter we get responses regardless.</p>

<p>I would like to understand why this is happening.</p>

<p>I know that by default Cloudflare has unmetered ddos protection turned on. Is it possible that requests from jmeter are not considered as ddos attack? Or am I missing a setup in my autocannon configuration? </p>
",https://stackoverflow.com/questions/54643075/autocannon-vs-jmeter-in-load-testing-via-cloudflare,"['jmeter', 'performance-testing', 'load-testing', 'cloudflare', 'ddos']",1067,True,1,1
Is load testing is possible on iPhone app?,"<p>I want to test the reaction of app when 1000 user hit on my app. So is load testing is possible on iPhone app?</p>
",https://stackoverflow.com/questions/54905556/is-load-testing-is-possible-on-iphone-app,"['ios', 'iphone', 'load-testing']",54,False,0,1
IP SPOOFING concept in Distributed load testing Jmeter,"<p>I am trying to invoke distributed load testing with jmeter (Which have 3 ips in it) and it is running in only one ip. Will other ips also run in the background or they won't even start?</p>
",https://stackoverflow.com/questions/59330738/ip-spoofing-concept-in-distributed-load-testing-jmeter,"['jmeter', 'ip', 'master-slave', 'spoofing']",341,False,0,1
Configure # of Request per Second for Load Testing,"<p>In Visual Studio 2017 Load Tests, is there any way to configure the # of request per second? I would like to limit the test to 40 requests per second. </p>

<p><a href=""https://i.stack.imgur.com/l0yOb.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/l0yOb.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/56499915/configure-of-request-per-second-for-load-testing,"['visual-studio', 'performance', 'azure', 'testing', 'performance-testing']",366,True,0,1
Load testing OAuth2 Authorization Code Grant (with JMeter),"<p>We have implemented an OAuth2 Authorization Server (and Identity Provider).
Now we want to perform load tests to gage system performance.</p>

<p>The concrete problem I have now, is that I want to load test an Authorization Code  Flow. 
I have been using JMeter so far. But I have no clue how to provide an endpoint for the required redirect_uri, to complete the flow.
Is there any way to do this at all, or am I out of luck? Google was no help.
If JMeter can't do it, is there a tool that can?</p>
",https://stackoverflow.com/questions/58396186/load-testing-oauth2-authorization-code-grant-with-jmeter,"['oauth-2.0', 'jmeter', 'load-testing']",1388,True,0,1
Protractor load testing browser tab not working properly,"<p>I am trying to do load testing but facing some issues. Scenario below</p>

<ul>
<li>open webapp localhost:2244</li>
<li>click drop down</li>
<li>Select a profile from drop down.</li>
<li>on click on profile aggrid is populated from server</li>
</ul>

<p>In the code i have following</p>

<pre><code>browser.get(url)
element(by(&lt;drop down&gt;)).click()
element(by(&lt;profile&gt;)).click()
browser.driver.sleep(4000) //wait for aggrid to populate from server
</code></pre>

<p>The problem i am facing are</p>

<ul>
<li>when i open url only once it works fine but when i open the same url multple times in a loop it doesn't open in different tab and the same tab gets updated. i tried to open in multiple tabs but only one tab opens properly and other remains empty.</li>
<li>How can i concurrently open 1000s or url as if many different users are opening the url and keep track of each page seperately and verify aggrid. </li>
</ul>
",https://stackoverflow.com/questions/57671845/protractor-load-testing-browser-tab-not-working-properly,['protractor'],25,False,0,0
Suggestions for alternative to Azure cloud load testing,"<p>Can anyone please suggest an alternative to cloud-based load testing (free/open-source). Since the load testing feature would be deprecated on azure in a few months, what are people in the market opting for besides AWS. </p>

<p>Thanks</p>
",https://stackoverflow.com/questions/59198956/suggestions-for-alternative-to-azure-cloud-load-testing,"['azure', 'jmeter', 'jmeter-plugins', 'azure-pipelines-release-pipeline']",703,False,0,2
Can I use Mock Server for load testing?,"<p>We have a Legacy monolith application which we are breaking down into Microservice. The Monolith application has three endpoints:-</p>

<pre><code>POST: /create
PUT: /verify
PUT: /dependents 
</code></pre>

<p>As part of the flow the user first hits <strong>/create</strong>, then <strong>/verify</strong>, then <strong>/dependents</strong> and then makes call to <strong>/activate</strong> endpoint exposed by one of our microservices. </p>

<p>The microservice then makes call to another endpoint (<strong>/validate</strong>) exposed by the legacy application and returns the response to user. </p>

<p>The response time of legacy application is almost constant. </p>

<p>Would it be a good approach to mock the legacy application's (<strong>/validate</strong>) endpoint with approx delay for load testing?</p>

<p>We wish to avoid the initial three rest calls to the legacy application as a setup phase and directly hit the Microservice's (<strong>/validate</strong>) endpoint?</p>

<p>I wish to understand the Pro's and Con's of using a mock server for performance test.</p>
",https://stackoverflow.com/questions/56855619/can-i-use-mock-server-for-load-testing,"['spring-boot', 'microservices', 'performance-testing', 'load-testing', 'nock']",359,False,0,0
Window Pop up load testing through jmeter recording,"<p>Parent Page: HD FlowSheet
Child Window Pop Up: Pre Dialysis Treatment</p>

<p>To open child window, window.open() function is used.</p>

<p>Now I recorded script and update some value (name, value) by using send parameter with the request feature of jmeter.</p>

<p>Now executed it and analyzed listeners and found every thing is fine with script. But when I went to child window using browser i find same old values. 
please help me know why this script is not working.</p>
",https://stackoverflow.com/questions/57993182/window-pop-up-load-testing-through-jmeter-recording,['jmeter'],368,False,0,1
Ports while execution distributed load testing with Jmeter,"<p>I am setting up a distributed load testing scenario using Jmeter.</p>

<p>I have tested that all the ports that are involved (at least in my test case are the following)</p>

<p>**client.rmi.localport=6000 (to get the results from the servers)</p>

<p>server_port=1099 (Jmeter listener in the server)</p>

<p>server.rmi.localport=50000 (port to answer to the client)**</p>

<p>My question is how do the client send the test script to the servers? which port is used? Thanks.</p>
",https://stackoverflow.com/questions/57478925/ports-while-execution-distributed-load-testing-with-jmeter,['jmeter'],330,False,0,1
How to zero down on load testing errors,"<p>Store run on Linode 8 GB RAM 4 cores, Magento 2, Nginx, PHP-FPM 7.2. I ran a test with 1000 clients for a minute and I see high error rate. Not much in magento or nginx error logs. Guidance please.</p>

<p><a href=""https://i.stack.imgur.com/fD8bD.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/fD8bD.jpg"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/54306679/how-to-zero-down-on-load-testing-errors,"['nginx', 'timeout']",26,False,0,1
How can I perform Load testing with Locust using PyTest?,"<p>What do you think is it possible to perform Load testing using PyTest?
For example:</p>

<pre><code>import locust

class UsersTest(locust.TaskSet):

    @locust.seq_task(1)
    def api_get_task(self):
        self.client.get(""/api"", name=""GET /api"") # Самое действие

    @locust.seq_task(2)
    def api_post_task(self):
        payload = {""username"": ""user1"", ""password"": ""123456""}
        self.client.post(""/api"", data=payload, name=""POST /api"")

class SituationTest(locust.HttpLocust):

    task_set = UsersTest 
    min_wait = 1000 
    max_wait = 2000
    host = ""http://127.0.0.1:3000""
</code></pre>

<p>So here is example of 2 simple tasks for 2 urls. Into class UsersTest I have my test cases itself. Into class SituationTest I have my params.</p>

<p>So question is how to integrate this 2 classes into pytest fixtures decorators and split it between test_file.py and conftest.py?</p>
",https://stackoverflow.com/questions/55914502/how-can-i-perform-load-testing-with-locust-using-pytest,"['python-3.x', 'pytest', 'locust']",5740,True,9,2
Load testing with 100s or MAC clients machines simultaneously,"<p>I am working on creating a test bed for load testing of network authentication device. The server will be getting 100 to 1000 simultaneous request from client and response time will be collected and analysed. </p>

<p>But issue i am facing is that this a mac OS based scenario. All my client machines needs to be MAC. This means I need 100s of mac machines which is not realistically possible. Is there a way to simulate/emulate mac OS environment,Apart from creating virtual machines. OR any tool which can generate a req behaving like a different client machine all together. 
I am even fine with any code library that can help with the simulation </p>

<p>I have explored dockers but seems like Mac OS dockers are not supported yet.
I am not a proficient mac user any help or pointer will be appreciated. </p>

<p>Thanks</p>
",https://stackoverflow.com/questions/58698218/load-testing-with-100s-or-mac-clients-machines-simultaneously,"['macos', 'client', 'performance-testing', 'load-testing']",60,True,0,2
JMeter Load testing of API in WSO2 API Gateway,"<p>In my current project we want to implement high performance test procedures and monitoring in WSO2 and in the API gateway area. Unfortunately there is little or no documentation to help me. Has any of you ever built such a scenario? </p>

<p>I am very grateful for any help! </p>
",https://stackoverflow.com/questions/58006906/jmeter-load-testing-of-api-in-wso2-api-gateway,"['jmeter', 'wso2', 'load-testing', 'wso2-api-manager', 'jmeter-plugins']",428,True,0,2
Is Load testing with Cloudfront (CDN) is a good approach?,"<p>I have an application that needs to handle huge traffic. The previous version of the application hits nearly 2,000,000 requests in 15 mins. That version does not have a CDN so that I need to deploy nearly 50 containers each for frontend and backend. So now I have added a CDN in front of my application. I have chosen AWS Cloudfront as CDN because the application is hosted on AWS. </p>

<p>Right now, I need to do the load test for this new application. If I do the load test with the Cloudfront URL, will it show the exact result as it will be served by Cloudfront? </p>

<p>If I load test with the Load Balancer URL and find out the required number of servers for handling the required load, will that be an over provision? As the Cloudfront will serve my application from nearly 189 edge locations (from AWS docs), is that much servers are required? </p>

<p>How can I find a relation between the amount of traffic that can be handled with and without Cloudfront? </p>
",https://stackoverflow.com/questions/58688493/is-load-testing-with-cloudfront-cdn-is-a-good-approach,"['amazon-web-services', 'amazon-cloudfront', 'load-testing', 'cdn']",1863,True,6,2
AB load testing on local ip or domain name?,"<p>I am using digitalocean as a vps for my webserver. 
I added a second droplet with ubuntu 18 that is part of the private network (digitalocean function) with the web server.</p>

<p>I am using cloudflare as my dns provider and also using their ssl certificates.</p>

<p>What is the most accurate load test with ab (**please note the http/https in the example below):</p>

<pre><code>    ab -n 100 -c 1 -k -H ""Accept-Encoding: gzip, deflate"" https://www.example.com/
    Request per second : 12.66

    ab -n 100 -c 1 -k -H ""Accept-Encoding: gzip, deflate"" http://www.example.com/
    Request per second : 60.90

    ab -n 100 -c 1 -k -H ""Accept-Encoding: gzip, deflate"" https://private.network.local.ip/
    Request per second : 36.70

    ab -n 100 -c 1 -k -H ""Accept-Encoding: gzip, deflate"" http://private.network.local.ip/
    Request per second : 1849
</code></pre>

<p><strong>How should I use <code>ab</code> with <code>http</code> or <code>https</code> and with domain or local ip?</strong></p>
",https://stackoverflow.com/questions/54887791/ab-load-testing-on-local-ip-or-domain-name,"['nginx', 'load-testing', 'vps', 'ubuntu-18.04', 'apachebench']",386,False,0,1
can i write to file in k6 load testing framework?,"<p>I am using k6 for our performance test suite.I want to write into file if response code in not equal to 200. Is there anyway to write in file in default method or out side of it?</p>
",https://stackoverflow.com/questions/58931351/can-i-write-to-file-in-k6-load-testing-framework,['k6'],4824,True,4,2
Elasticsearch - High CPU usage for simple query while load testing,"<p>I have an Elasticsearch index having about 93 million documents (68.8GB) on 3 shards. While doing load testing (300 concurrent requests) with one certain query, the CPU usage shoots up to 100%. The query is fairly simple:</p>

<pre><code>{""query"": 
    {""bool"": 
        {""must"": [
            {""match"": {""release_title"": ""Spider - Singles Collection 1976-86""}}, 
            {""match"": {""track_title"": ""TALKIN BOUT ROCK N ROLL (New Version)""}}
                 ]
        }
    }
}
</code></pre>

<p>However, if I make the same type of query with different strings, the CPU usage is normal. For example, the CPU usage is normal for the following query:</p>

<pre><code>{""query"": 
    {""bool"": 
        {""must"": [
            {""match"": {""release_title"": ""Spark Seeker""}}, 
            {""match"": {""track_title"": ""Live Like A Warrior""}}
                 ]
        }
    }
}
</code></pre>

<p>Here is the output of Hot Threads (I'm a beginner in ES, not sure how to interpret this):</p>

<pre><code>Hot threads at 2019-03-19T12:21:30.840Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=t
rue:

   81.4% (407.1ms out of 500ms) cpu usage by thread 'elasticsearch[3jOzxpW][search][T#2]'
     5/10 snapshots sharing following 21 elements
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation
.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     5/10 snapshots sharing following 17 elements
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)

   80.9% (404.2ms out of 500ms) cpu usage by thread 'elasticsearch[3jOzxpW][search][T#3]'
     7/10 snapshots sharing following 21 elements
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:200)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 23 elements
       org.apache.lucene.search.DisiPriorityQueue.downHeap(DisiPriorityQueue.java:158)
       org.apache.lucene.search.DisiPriorityQueue.updateTop(DisiPriorityQueue.java:119)
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:67)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     unique snapshot
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)

   78.6% (392.8ms out of 500ms) cpu usage by thread 'elasticsearch[3jOzxpW][search][T#13]'
     4/10 snapshots sharing following 20 elements
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:200)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 21 elements
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 24 elements
       org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:198)
       org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:752)
       org.apache.lucene.search.BooleanWeight.&lt;init&gt;(BooleanWeight.java:57)
       org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:226)
       org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:752)
       org.apache.lucene.search.BooleanWeight.&lt;init&gt;(BooleanWeight.java:57)
       org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:226)
       org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:752)
       org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:735)
       org.elasticsearch.search.internal.ContextIndexSearcher.createNormalizedWeight(ContextIndexSearcher.java:108)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 17 elements
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
</code></pre>

<p>The system has 14 cores and 40GB of RAM. I've set the JVM heap size to 16GB. Could someone help me figure out what's going wrong?</p>
",https://stackoverflow.com/questions/55241278/elasticsearch-high-cpu-usage-for-simple-query-while-load-testing,['elasticsearch'],892,False,2,0
How does Locust provide state over time for load testing?,"<p>I was trying to move from Gatling to Locust (Python is a nicer language) for load tests.  In Gatling I can get data for a chart like 'Requests per seconds over time', 'Response time percentiles over time', etc.  ( <a href=""https://gatling.io/docs/2.3/general/reports/"" rel=""nofollow noreferrer"">https://gatling.io/docs/2.3/general/reports/</a> ) and the really useful 'Responses per second over time' </p>

<p>In Locust I can see the two report (requests, distribution), where (if I understand it correctly), 'Distribution' is the one that does 'over time'?  But I can't see where things started failing, or the early history of that test.</p>

<p>Is Locust able to provide 'over time' data in a CSV format (or something else easily graph-able)?  If so, how?</p>

<p>Looked through logs, can output the individual commands, but it would be a pain to assemble them (it would push the balance toward 'just use Gatling')</p>

<p>Looked over <a href=""https://buildmedia.readthedocs.org/media/pdf/locust/latest/locust.pdf"" rel=""nofollow noreferrer"">https://buildmedia.readthedocs.org/media/pdf/locust/latest/locust.pdf</a> but not spotting it</p>

<p>I can (and have) created a loop that triggers the <code>locust</code> call at incremental intervals </p>

<pre><code>    increment_user_count = [1, 10, 100, 1000]

    # for total_users in range(user_min, user_max, increment_count):
    for users in increment_user_count:
       [...]
        system(assembled_command)
</code></pre>

<p>And that works... but it loses the whole advantage of setting a spawn rate, and would be painful for gradually incrementing up to a large number (then having to assemble all the files back together)</p>

<p>Currently executing with something like
<code>locust -f locust_base_testing.py  --no-web -c 1000 -r 2 --run-time 8m30s  --only-summary --csv=output_stats_20190405-130352_1000</code></p>

<p>(need to use this in automation so Web UI is not a viable use-case)</p>

<p>I would expect a flag, in the call or in some form of setup, that outputs the summary at regular ticks.  Basically I'd expect (with no-web) to get the data that I could use to replicate the graph the web version seems to know about:
<a href=""https://i.stack.imgur.com/h8I7F.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/h8I7F.png"" alt=""enter image description here""></a></p>

<p>Actual: just one final summary of the overall test (and logs per individual call)</p>
",https://stackoverflow.com/questions/55543208/how-does-locust-provide-state-over-time-for-load-testing,"['load-testing', 'locust']",458,False,1,0
liveness probe fails with actuator endpoint during stress/load testing?,"<p>I am doing ab testing of my application, Where I send 3000 concurrent requests and total of 10000 requests. My application is a spring boot application with actuator and I use kubernetes and docker for containerization. During the testing my actuator end points take longer time than expected, due to this my pods restart and requests start failing.</p>

<p>Now I have stopped liveness probe and during the test if I manually hit the actuator endpoint, I can see that it takes a lot of time to respond back and sometimes it does not even returns the result and just stucks.</p>

<p>I can see that each request is served within 10 millisecond by my application, as per the logs. But the AB test results are completely different. Below are the results from AB test:</p>

<pre><code>Concurrency Level:      3000
Time taken for tests:   874.973 seconds
Complete requests:      10000
Failed requests:        6
   (Connect: 0, Receive: 0, Length: 6, Exceptions: 0)
Non-2xx responses:      4
Total transferred:      1210342 bytes
Total body sent:        4950000
HTML transferred:       20580 bytes
Requests per second:    11.43 [#/sec] (mean)
Time per request:       262491.958 [ms] (mean)
Time per request:       87.497 [ms] (mean, across all concurrent requests)
Transfer rate:          1.35 [Kbytes/sec] received
                        5.52 kb/s sent
                        6.88 kb/s total

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  372 772.5      0    3051
Processing:  1152 226664 145414.1 188502  867403
Waiting:     1150 226682 145404.6 188523  867402
Total:       2171 227036 145372.2 188792  868447

Percentage of the requests served within a certain time (ms)
  50%  188792
  66%  249585
  75%  295993
  80%  330934
  90%  427890
  95%  516809
  98%  635143
  99%  716399
 100%  868447 (longest request)
</code></pre>

<p>Not able to understand this behaviour, as it shows approximately only 11.43 requests are served within a second, which is very low. What could be the reason ? Also What should be the way to keep the liveness probe ?</p>

<p>I have below properties set in my application.properties:</p>

<pre><code>server.tomcat.max-connections=10000
server.tomcat.max-threads=2000
</code></pre>
",https://stackoverflow.com/questions/55841584/liveness-probe-fails-with-actuator-endpoint-during-stress-load-testing,"['spring-boot', 'kubernetes', 'stress-testing', 'apachebench']",488,False,1,0
Real Browser based load testing or Browser level user testing,"<p>I am currently working on multiple Load testing tool such as Jmeter, LoadRunner and Gatling.
All above tool works upon protocol level user load testing except TrueClient protocol offered by LoadRunner. Now something like real browser testing is in place which is definitely high on resources consumption tools such as LoadNinja and Flood.IO works on this novel concept.</p>

<p>I have few queries in this regards</p>

<ol>
<li>What will be the scenario where real browser based load testing fits perfectly?</li>
<li>What real browser testing offers which is not possible in protocol based load testing?</li>
</ol>

<p>I know, we can use Jmeter to Mimic browser behavior for load testing but is there anything different that real browser testing has to offer?</p>
",https://stackoverflow.com/questions/59208062/real-browser-based-load-testing-or-browser-level-user-testing,"['browser', 'jmeter', 'performance-testing', 'simulation', 'loadrunner']",943,True,1,3
Attach the DotTrace Performance profiler with Visual Studio Load Testing,"<p>Is there, Any way I can attach the DotTrace performance profiler with Visual studio Load testing project. I am checking the load testing of the ASP.NET Web Application. I am trying to create stress test and trying to do more analysis. I am just curious that is there any way there we can attach DotTrace performance profiler with the Visual Studio Load test and check the details of the Load test.</p>
",https://stackoverflow.com/questions/55418804/attach-the-dottrace-performance-profiler-with-visual-studio-load-testing,"['asp.net', 'memory', 'dottrace']",1323,True,1,2
Load testing WCF service hosted in local IIS using JMeter,"<p>My requirement is to load test a WCF service hosted in the local IIS server. We are trying to improve the performance of a WCF service. In the PROD environment both the WCF service and the desktop application which consumes this service also resides in the same machine. </p>

<p>So in order to baseline the existing performance of the WCF serrvice, I'm trying to use JMeter to load-test the service by running it from the same machine where the service is hosted.</p>

<p>I'm using JMeter's HTTP Test Script Recorder to capture any request going from desktop app to WCF service, so that I will be able to later increase the thread count to get the performance measurements. </p>

<p>problem is I'm unable to capture any requests going to the service hosted in the local IIS server. But if I host the same service in a separate server and execute the Jmeter from the machine where consuming desktop app is running, then Jmeter is able to capture all the outgoing requests to that web server. </p>

<blockquote>
  <p>Is that even possible to record requests where service and consuming
  desktop app both resides in the same machine?</p>
</blockquote>

<h2><strong>Current Configurations</strong></h2>

<p><strong><em>I'm using 8895 as the port number in the Jmeter proxy</em></strong></p>

<p><a href=""https://i.stack.imgur.com/Y1Wj4.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Y1Wj4.png"" alt=""enter image description here""></a></p>

<p></p>

<p><strong><em>Manual proxy setting in windows (using the same port number configured in Jmeter)</em></strong></p>

<p><a href=""https://i.stack.imgur.com/Y9J4p.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Y9J4p.png"" alt=""enter image description here""></a></p>

<p><strong><em>Desktop app configuration file (which sends requests to local service)</em></strong></p>

<p>

     
        
    
    </p>

<pre><code>    &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
            &lt;binding name=""WSHttpBinding_IPayment"" proxyAddress=""http://127.0.0.1:8895"" useDefaultWebProxy=""false"" bypassProxyOnLocal=""false""&gt;                     
                &lt;security mode=""None"" /&gt;
            &lt;/binding&gt;            
        &lt;/wsHttpBinding&gt;        
    &lt;/bindings&gt;
    &lt;client&gt;
      &lt;!--&lt;endpoint address=""http://10.2.179.100/PaymentService/Payment.svc "" binding=""wsHttpBinding""--&gt;                      
      &lt;endpoint address=""http://127.0.0.1:88/Payment.svc"" binding=""wsHttpBinding""          
          bindingConfiguration=""WSHttpBinding_IPayment"" contract=""PaymentServiceReference.IPayment""
            name=""WSHttpBinding_IPayment"" /&gt;
    &lt;/client&gt;
&lt;/system.serviceModel&gt;
</code></pre>

<p></p>
",https://stackoverflow.com/questions/57656652/load-testing-wcf-service-hosted-in-local-iis-using-jmeter,"['c#', 'wcf', 'iis', 'jmeter', 'load-testing']",480,True,0,1
Issue in performance when load testing using azure application gateway,"<p>I'm facing a big difference in load testing results when running the load testing using JMeter to access the system using the Azure application gateway vs access the backing server directly.</p>

<p>My Current Setup is:
+ Azure Application Gateway with SSL Offloading
+ WAF Enabled
+ OWASP 3.0 Rule set enabled with ""no"" excluded or added rules</p>

<p>Below are my trials:</p>

<ul>
<li><p>All pointers through the internet point to an issue in firewall and rule set ""like using OWASP 3.0 rule set for example"", while this seems to enhances the situation, but there is still a big difference too.</p></li>
<li><p>Increasing SKU sizes and instance count is indifferent too, we tried to increase SKU to large and instance count up to 30, but no difference in performance</p></li>
<li>Disabling the WAF provides better load testing numbers, but not the same as accessing the backend server directly.</li>
</ul>

<p>Noting that we perform the load testing from a jump box VM within the same virtual network.</p>

<p>What are the steps needed to get the same results using the application gateway as accessing the backing server directly</p>
",https://stackoverflow.com/questions/56096656/issue-in-performance-when-load-testing-using-azure-application-gateway,"['azure', 'azure-application-gateway']",703,False,0,0
Backend Spring boot with RabbitMQ application load testing using JMeter,"<p>I have Spring boot with RabbitMQ back-end application. I want to run my JUnit test case with JMeter for load testing. While I run Junit test case , I face below error. OmniRoute class available from other jar file. When I run Junit test case from my IDE, then it is running successfully but when I run it from JMeter then I am facing below error. I have shared my code as well.</p>

<blockquote>
  <p>Error --
  testShrotUrlGenerate(org.apache.jmeter.protocol.java.sampler.JUnitSampler$AnnotatedTestCase):
  mb/omni/proto/OmniRoute Trace -- java.lang.NoClassDefFoundError:
  mb/omni/proto/OmniRoute   at
  mb.omni.shorturl.handlers.ShortUrlGenerationHandlerTest.testShrotUrlGenerate(ShortUrlGenerationHandlerTest.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   at
  java.lang.reflect.Method.invoke(Unknown Source)   at
  org.apache.jmeter.protocol.java.sampler.JUnitSampler$AnnotatedTestCase.runTest(JUnitSampler.java:596)
    at junit.framework.TestResult.runProtected(TestResult.java:142)     at
  org.apache.jmeter.protocol.java.sampler.JUnitSampler.sample(JUnitSampler.java:396)
    at
  org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:627)
    at
  org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:551)
    at
  org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:490)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Unknown Source) Error --
  testShrotUrlGenerate(org.apache.jmeter.protocol.java.sampler.JUnitSampler$AnnotatedTestCase):
  org/springframework/amqp/rabbit/core/RabbitTemplate Trace --
  java.lang.NoClassDefFoundError:
  org/springframework/amqp/rabbit/core/RabbitTemplate   at
  mb.omni.shorturl.handlers.ShortUrlGenerationHandlerTest.cleanup(ShortUrlGenerationHandlerTest.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   at
  java.lang.reflect.Method.invoke(Unknown Source)   at
  org.apache.jmeter.protocol.java.sampler.JUnitSampler.sample(JUnitSampler.java:400)
    at
  org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:627)
    at
  org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:551)
    at
  org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:490)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Unknown Source) Caused by:
  java.lang.ClassNotFoundException:
  org.springframework.amqp.rabbit.core.RabbitTemplate   at
  java.net.URLClassLoader.findClass(Unknown Source)     at
  java.lang.ClassLoader.loadClass(Unknown Source)   at
  java.lang.ClassLoader.loadClass(Unknown Source)   ... 11 more</p>
</blockquote>

<p>I am generating jar file of project with below gradle file.</p>

<pre><code>jar {
    enabled=true
    manifest {
        attributes ""Main-Class"": ""MainClassName""
    }

    from {
        configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
</code></pre>

<p>Below is my configuration class with RabbitMQ.</p>

<pre><code>@Configuration
@EnableIntegration
@IntegrationComponentScan
public class ShortUrlGenerateConfig {

    @Bean
    public DirectExchange shortUrlExchange() {
        return new DirectExchange(""exchange"", true, false);
    }

    @Bean
    public Queue shortUrlGenerateQueue() {
        return new Queue(""queue"");
    }

    @Bean
    public Binding shortUrlGenerateBinding() {
        return BindingBuilder.bind(shortUrlGenerateQueue()).to(shortUrlExchange()).with(""routingKey"");
    }

    @Bean
    public ShortUrlGenerationHandler shortUrlGenerationHandler() {
        return new ShortUrlGenerationHandler();
    }
}
</code></pre>

<p>This is my handler class.</p>

<pre><code>public class ShortUrlGenerationHandler {

    private static final Logger logger = LoggerFactory.getLogger(ShortUrlGenerationHandler.class);


    @Autowired
    private RabbitTemplate rabTmp;


    /**
     * @param message
     * generate shorturl
     */
    @RabbitListener(queues = ""queue"")
    public void consumeMessageFromGenerateQueue(final Message&lt;?&gt; message) {

         String routingKey = (String) message.getHeaders().get(AmqpHeaders.RECEIVED_ROUTING_KEY);
         logger.info(""ShortURL Message received on Queue[""+message.getHeaders().get(AmqpHeaders.CONSUMER_QUEUE)+""], Routing Key[""+routingKey+""]."");
         Object correlationId = message.getHeaders().get(AmqpHeaders.CORRELATION_ID);

         Object directReplyTo = message.getHeaders().get(AmqpHeaders.REPLY_TO);
         ShortURLRequest request = null;
         ShortURLRequest.Builder response = null;

            try {
                request = ShortURLRequest.parseFrom((byte[]) message.getPayload());
                response = ShortURLRequest.newBuilder();
                if (correlationId == null || directReplyTo == null) {
                    throw new ResourceNotFoundException(""CORRELATION_ID_NOT_FOUND"",""Invalid Correlation ID, Correlation ID not found"",9103);
                }

                .
                .
                .

            }catch (Exception e) {
                logger.error("" Error in consumeMessageFromGenerateQueue method.Error  is - "" + e.getMessage(), e);

            }
        logger.info("" response - "" + response);
        MessageProperties props = MessagePropertiesBuilder.newInstance().setCorrelationId(correlationId.toString())
                .build();
        rabTmp.send("""", directReplyTo.toString(),
                MessageBuilder.withBody(response.build().toByteArray()).andProperties(props).build());
    }
}
</code></pre>

<p>Below is my Junit test case.</p>

<pre><code>@Test
    public void testShrotUrlGenerate() throws Exception {

        OmniRoute omniRoute = OmniRoute.newBuilder()
                .setRouteType(""AMQP"")
                .setProcessor(""processor"")
                .setAmqpRoute(OmniAmqpRoute.newBuilder()
                        .setRoutingkey(""routingKey"")
                        .setExchange(""exchange"")
                        .build())
                .build();

        List&lt;OmniRoute&gt; omniRoutes = new ArrayList&lt;&gt;();
        omniRoutes.add(omniRoute);

        OmniRequest omniRequest = OmniRequest.newBuilder()
                .setRequestId(""182fd990725011e9a9ca8f4121c06f8b12"")
                .setRequestType(""SHORT_URL"")
                .addAllRoutes(omniRoutes)
                .setUserId(100)
                .build();

        ShortURL shortUrl = ShortURL.newBuilder().setOriginalUrl(""http://dashboard.omni.platform/#/login"").setUser(User.newBuilder()
                .setUserId(100))
                .setMessageId(""3"")
                .setChannel(""CHANNEL_ONE"")
                .build();

        ShortURLRequest shortURLRequest = ShortURLRequest.newBuilder().setRequest(omniRequest).addShortUrls(shortUrl).build();

          MessageProperties messageProperties = new MessageProperties();
          messageProperties.setCorrelationId(""1f4a13d0-f3b4-4b4b-98b4-50e9d75d6032"");
          Message message = new Message(shortURLRequest.toByteArray(), messageProperties);
          byte[] responseByte = (byte[])  template.convertSendAndReceive(shortUrlExchange, shortUrlGenerateRoutingKey, message);
          ShortURLRequest shortURLResponse = ShortURLRequest.parseFrom(responseByte);
          assertTrue(shortURLResponse.getShortUrlsList().get(0).getShortUrlId()&gt;0);
          assertEquals(shortURLResponse.getShortUrlsList().get(0).getOriginalUrl(),shortUrl.getOriginalUrl());
          assertTrue(shortURLResponse.getShortUrlsList().get(0).getShortUrlCode()!= null);
          assertEquals(shortURLResponse.getShortUrlsList().get(0).getUser().getUserId(),shortUrl.getUser().getUserId());
    }
</code></pre>
",https://stackoverflow.com/questions/59064683/backend-spring-boot-with-rabbitmq-application-load-testing-using-jmeter,"['spring-boot', 'gradle', 'junit', 'jmeter', 'rabbitmq']",367,True,0,1
rxjava2 for load testing inconsistencies as result of onComplete event,"<p>There is code that is supposed to do the load testing form some function that performs the http call (we call it <code>callInit</code> here) and collects some data in the <code>LoaTestMetricsData</code>: </p>

<blockquote>
  <ul>
  <li>the collected responses </li>
  <li>and the total duration of the execution.</li>
  </ul>
</blockquote>

<pre><code>import io.reactivex.Observable;
import io.reactivex.Scheduler;
import io.reactivex.Single;
import io.reactivex.observers.TestObserver;
import io.reactivex.schedulers.Schedulers;
import io.reactivex.subjects.PublishSubject;
import io.reactivex.subjects.Subject;
import io.restassured.internal.RestAssuredResponseImpl;
import io.restassured.response.Response;
import org.junit.jupiter.api.Test;

import java.time.Duration;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;

import static java.lang.Thread.sleep;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.lessThan;

public class TestRx {

    @Test
    public void loadTest() {

        int CALL_N_TIMES = 10;
        final long CALL_NIT_EVERY_MILLISECONDS = 100;

        final LoaTestMetricsData loaTestMetricsData = loadTestHttpCall(
                                                            this::callInit,
                                                            CALL_N_TIMES,
                                                            CALL_NIT_EVERY_MILLISECONDS
                                                            );

        assertThat(loaTestMetricsData.responseList.size(), is(equalTo(Long.valueOf(CALL_N_TIMES).intValue())));

        long errorCount = loaTestMetricsData.responseList.stream().filter(x -&gt; x.getStatusCode() != 200).count();

        long executionTime = loaTestMetricsData.duration.getSeconds();


        //assertThat(errorCount, is(equalTo(0)));

        assertThat(executionTime , allOf(greaterThanOrEqualTo(1L),lessThan(3L)));

    }

    // --

    private Single&lt;Response&gt; callInit() {
        try {
            return Single.fromCallable(() -&gt; {

                System.out.println(""..."");
                sleep(1000);
                Response response = new RestAssuredResponseImpl();
                return response;
            });

        } catch (Exception ex) {
            throw new RuntimeException(ex.getMessage());
        }
    }

    // --

    private LoaTestMetricsData loadTestHttpCall(final Supplier&lt;Single&lt;Response&gt;&gt; restCallFunction, long callnTimes, long callEveryMilisseconds) {

        long startTimeMillis = System.currentTimeMillis();

        final LoaTestMetricsData loaDestMetricsData = new LoaTestMetricsData();

        final AtomicInteger atomicInteger = new AtomicInteger(0);

        final TestObserver&lt;Response&gt; testObserver = new TestObserver&lt;Response&gt;() {
            public void onNext(Response response) {
                loaDestMetricsData.responseList.add(response);
                super.onNext(response);
            }
            public void onComplete() {
                loaDestMetricsData.duration = Duration.ofMillis(System.currentTimeMillis() - startTimeMillis);
                super.onComplete();
            }
        };


        final Subject&lt;Response&gt; subjectInitCallResults = PublishSubject.create(); // Memo: Subjects are hot so if you don't observe them the right time, you may not get events. Thus: subscribe first then emit (onNext)

        final Scheduler schedulerIo = Schedulers.io();

    subjectInitCallResults
            .subscribeOn(schedulerIo)
            .subscribe(testObserver); // subscribe first


        final Observable&lt;Long&gt; source = Observable.interval(callEveryMilisseconds, TimeUnit.MILLISECONDS).take(callnTimes);

        source.subscribe(x -&gt; {
            final Single&lt;Response&gt; singleResult = restCallFunction.get();

            singleResult
                    .subscribeOn(schedulerIo)
                    .subscribe( result -&gt; {

                        int count = atomicInteger.incrementAndGet();

                        if(count == callnTimes) {
                            subjectInitCallResults.onNext(result); // then emit
                            subjectInitCallResults.onComplete();
                        } else {
                            subjectInitCallResults.onNext(result);
                        }


                    });
        });


        testObserver.awaitTerminalEvent();
        testObserver.assertComplete();
        testObserver.assertValueCount(Long.valueOf(callnTimes).intValue()); // !!!

        return loaDestMetricsData;

    }



}
</code></pre>

<p>The: LoaTestMetricsData is defined as:</p>

<pre><code>public class LoaTestMetricsData {
    public List&lt;Response&gt; responseList = new ArrayList&lt;&gt;();
    public Duration duration;
}
</code></pre>

<p><strong>Sometimes</strong> test fails with this error:</p>

<pre><code>java.lang.AssertionError: Value counts differ; expected: 10 but was: 9 (latch = 0, values = 9, errors = 0, completions = 1)
Expected :10 
Actual   :9 (latch = 0, values = 9, errors = 0, completions = 1)
&lt;Click to see difference&gt;
</code></pre>

<p>If someone could tell me why?</p>

<p>As is some of the subjectInitCallResults.onNext() has not been executed, or consumed. But why.. I understand that PublishSubject is hot observable, thus I subscribe for the events before emitting/onNext anything to it.</p>

<p><strong>UPDATE:</strong></p>

<p>What would fix it, is this ugly code, that would wait for the subject to fill up:</p>

<pre><code>    while(subjectInitCallResults.count().blockingGet() != callnTimes) {
        Thread.sleep(100);
    }
   ..
   testObserver.awaitTerminalEvent();
</code></pre>

<p>But is the proper / better way of doing it?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/59109607/rxjava2-for-load-testing-inconsistencies-as-result-of-oncomplete-event,"['java', 'rx-java2', 'load-testing']",58,False,0,0
How to get JMETER Load Testing Accurately With multiple webservice (pods),"<p>I am new to JMeter Load testing. We have installed a distributed JMeter Load testing in EC2 AWS, with 1 master and 5 slaves.
So I am testing my web service endpoint (HTTP Request) in JMeter.</p>

<p><strong>Details:</strong></p>

<ol>
<li>Tested my web service and reached 1900 threads with 0% error percentage in 1 pod with 8Gi RAM.</li>
<li>Now, I deployed my web service in 2 pods (replicas) with 8Gi RAM, however it is having more than 0% error percentage even my threads was set <strong>ONLY</strong> to 2100.</li>
<li>Did check the logs, there is no error, did check the pods health it was alright, did check the Database CPU utillization and it was alright.</li>
</ol>

<p>Our expectation is that, since we have 2 pods already, it can accomodate x2 of 1900 threads (just like what happened in 1 pod).
Did I miss something to check? I hope someone could give me some light :(
It has been bugging me for 12 hours now. </p>

<p>Thank you in advance.</p>
",https://stackoverflow.com/questions/58410249/how-to-get-jmeter-load-testing-accurately-with-multiple-webservice-pods,"['kubernetes', 'jmeter', 'load-testing', 'kubernetes-pod', 'jmeter-3.2']",201,False,1,0
Analysing the result of jmeter load testing using HTML report Dashboard,"<p>I am analyzing the test results for jmeter using HTML Report Dashboard, but it displays the output of just one particular time but not for all samples</p>

<p>I have tried looking for solutions online, but couldnt find any</p>

<p><a href=""https://i.stack.imgur.com/x9BOq.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/x9BOq.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/54286192/analysing-the-result-of-jmeter-load-testing-using-html-report-dashboard,"['csv', 'jmeter', 'report', 'load-testing']",171,True,1,1
Emulating browser cache for each VU from K6 for load testing,"<p>I understand k6 cannot emulate browser cache (except cookies in header) as per its documentation. </p>

<p>Has someone attempted to simulate browser cache (more than just cookies header) while load testing with k6 tool ?</p>

<p>Looking for functions / options like: 
1. Switch on/off browser caching.<br>
2. Clear cookies at the start of each iteration.  </p>

<p>Trying to understand how headers like Etag, Expires, Last-Modified, Cache-Control, If-None-Match or If-Modified-Since can be handled from k6 script for each resource. 
Not sure, if something more needs to be checked while trying to handle browser cache. </p>

<p>If yes, kindly share some ideas on how to do so or share github repo for any ongoing/successful project. 
If successful, possibly can be contributed to k6 repo once verified. </p>
",https://stackoverflow.com/questions/57103839/emulating-browser-cache-for-each-vu-from-k6-for-load-testing,"['javascript', 'load-testing', 'k6']",1492,False,0,1
Server sending RST message immediately after client hello on load testing,"<p>We are facing intermittent TLS handshake issue while connecting from a C++ (OpenSSL) client to a Java Server (Java 7). The issue is observed on load test after having around 100 session sending concurrent requests, that too on linux platform. Server is sending RST message immediately after ""Client Hello"" message.  On client side the SSL_CTX object is created with TLSv1_2_client_method(). On server side the the context instance is created by invoking SSLContext.getInstance(""TLSv1.2""). Also we are limiting the enabled protocol to TLSv1.2 on server side. Whenever this issue is observed we have noticed that Client Hello Protocol on Wireshark as ""TLSv1"", in all other cases the Client Hello Protocol is displayed as TLSv1.2.</p>

<p>Also I understand the Handshake layer version number is important and any TLS1.2 compliant server MUST accept any value {03,XX} as the record layer version number for ClientHello as per RFC5246. But whenever the failure is observed, record layer is <em>""<strong>TLSv1</strong> Record Layer: Handshake Protocol: Client Hello""</em>. In the case of successful handshake the record layer is ""<strong><em>TLSv1.2</strong> Record Layer: Handshake Protocol: Client Hello</em>"". </p>

<p>The client hello message failure case:</p>

<p><div class=""snippet"" data-lang=""js"" data-hide=""false"" data-console=""true"" data-babel=""false"">
<div class=""snippet-code"">
<pre class=""snippet-code-html lang-html prettyprint-override""><code>Transport Layer Security
    TLSv1 Record Layer: Handshake Protocol: Client Hello
        Content Type: Handshake (22)
        Version: TLS 1.0 (0x0301)
        Length: 358
        Handshake Protocol: Client Hello
            Handshake Type: Client Hello (1)
            Length: 354
            Version: TLS 1.2 (0x0303)
            Random: 44e153eb9aa960e39e7dd4c01fbc1cc3770d95e0d70d6aac…
                GMT Unix Time: Aug 15, 2006 10:26:11.000000000 India Standard Time
                Random Bytes: 9aa960e39e7dd4c01fbc1cc3770d95e0d70d6aac83f458ab…
            Session ID Length: 0
            Cipher Suites Length: 228
            Cipher Suites (114 suites)
                Cipher Suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (0xc02c)
                Cipher Suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (0xc028)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (0xc024)
                Cipher Suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (0xc014)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0xc00a)
                Cipher Suite: TLS_DH_DSS_WITH_AES_256_GCM_SHA384 (0x00a5)
                Cipher Suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 (0x00a3)
                Cipher Suite: TLS_DH_RSA_WITH_AES_256_GCM_SHA384 (0x00a1)
                Cipher Suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (0x009f)
                Cipher Suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (0x006b)
                Cipher Suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 (0x006a)
                Cipher Suite: TLS_DH_RSA_WITH_AES_256_CBC_SHA256 (0x0069)
                Cipher Suite: TLS_DH_DSS_WITH_AES_256_CBC_SHA256 (0x0068)
                Cipher Suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA (0x0039)
                Cipher Suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA (0x0038)
                Cipher Suite: TLS_DH_RSA_WITH_AES_256_CBC_SHA (0x0037)
                Cipher Suite: TLS_DH_DSS_WITH_AES_256_CBC_SHA (0x0036)
                Cipher Suite: TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA (0x0088)
                Cipher Suite: TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA (0x0087)
                Cipher Suite: TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA (0x0086)
                Cipher Suite: TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA (0x0085)
                Cipher Suite: TLS_ECDH_anon_WITH_AES_256_CBC_SHA (0xc019)
                Cipher Suite: TLS_DH_anon_WITH_AES_256_GCM_SHA384 (0x00a7)
                Cipher Suite: TLS_DH_anon_WITH_AES_256_CBC_SHA256 (0x006d)
                Cipher Suite: TLS_DH_anon_WITH_AES_256_CBC_SHA (0x003a)
                Cipher Suite: TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA (0x0089)
                Cipher Suite: TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 (0xc032)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 (0xc02e)
                Cipher Suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 (0xc02a)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 (0xc026)
                Cipher Suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA (0xc00f)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA (0xc005)
                Cipher Suite: TLS_RSA_WITH_AES_256_GCM_SHA384 (0x009d)
                Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA256 (0x003d)
                Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA (0x0035)
                Cipher Suite: TLS_RSA_WITH_CAMELLIA_256_CBC_SHA (0x0084)
                Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02b)
                Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (0xc027)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 (0xc023)
                Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (0xc013)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA (0xc009)
                Cipher Suite: TLS_DH_DSS_WITH_AES_128_GCM_SHA256 (0x00a4)
                Cipher Suite: TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 (0x00a2)
                Cipher Suite: TLS_DH_RSA_WITH_AES_128_GCM_SHA256 (0x00a0)
                Cipher Suite: TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (0x009e)
                Cipher Suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (0x0067)
                Cipher Suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 (0x0040)
                Cipher Suite: TLS_DH_RSA_WITH_AES_128_CBC_SHA256 (0x003f)
                Cipher Suite: TLS_DH_DSS_WITH_AES_128_CBC_SHA256 (0x003e)
                Cipher Suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA (0x0033)
                Cipher Suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA (0x0032)
                Cipher Suite: TLS_DH_RSA_WITH_AES_128_CBC_SHA (0x0031)
                Cipher Suite: TLS_DH_DSS_WITH_AES_128_CBC_SHA (0x0030)
                Cipher Suite: TLS_DHE_RSA_WITH_SEED_CBC_SHA (0x009a)
                Cipher Suite: TLS_DHE_DSS_WITH_SEED_CBC_SHA (0x0099)
                Cipher Suite: TLS_DH_RSA_WITH_SEED_CBC_SHA (0x0098)
                Cipher Suite: TLS_DH_DSS_WITH_SEED_CBC_SHA (0x0097)
                Cipher Suite: TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA (0x0045)
                Cipher Suite: TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA (0x0044)
                Cipher Suite: TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA (0x0043)
                Cipher Suite: TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA (0x0042)
                Cipher Suite: TLS_ECDH_anon_WITH_AES_128_CBC_SHA (0xc018)
                Cipher Suite: TLS_DH_anon_WITH_AES_128_GCM_SHA256 (0x00a6)
                Cipher Suite: TLS_DH_anon_WITH_AES_128_CBC_SHA256 (0x006c)
                Cipher Suite: TLS_DH_anon_WITH_AES_128_CBC_SHA (0x0034)
                Cipher Suite: TLS_DH_anon_WITH_SEED_CBC_SHA (0x009b)
                Cipher Suite: TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA (0x0046)
                Cipher Suite: TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 (0xc031)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02d)
                Cipher Suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 (0xc029)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 (0xc025)
                Cipher Suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA (0xc00e)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA (0xc004)
                Cipher Suite: TLS_RSA_WITH_AES_128_GCM_SHA256 (0x009c)
                Cipher Suite: TLS_RSA_WITH_AES_128_CBC_SHA256 (0x003c)
                Cipher Suite: TLS_RSA_WITH_AES_128_CBC_SHA (0x002f)
                Cipher Suite: TLS_RSA_WITH_SEED_CBC_SHA (0x0096)
                Cipher Suite: TLS_RSA_WITH_CAMELLIA_128_CBC_SHA (0x0041)
                Cipher Suite: TLS_RSA_WITH_IDEA_CBC_SHA (0x0007)
                Cipher Suite: TLS_ECDHE_RSA_WITH_RC4_128_SHA (0xc011)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_RC4_128_SHA (0xc007)
                Cipher Suite: TLS_ECDH_anon_WITH_RC4_128_SHA (0xc016)
                Cipher Suite: TLS_DH_anon_WITH_RC4_128_MD5 (0x0018)
                Cipher Suite: TLS_ECDH_RSA_WITH_RC4_128_SHA (0xc00c)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_RC4_128_SHA (0xc002)
                Cipher Suite: TLS_RSA_WITH_RC4_128_SHA (0x0005)
                Cipher Suite: TLS_RSA_WITH_RC4_128_MD5 (0x0004)
                Cipher Suite: TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA (0xc012)
                Cipher Suite: TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA (0xc008)
                Cipher Suite: TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA (0x0016)
                Cipher Suite: TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA (0x0013)
                Cipher Suite: TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA (0x0010)
                Cipher Suite: TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA (0x000d)
                Cipher Suite: TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA (0xc017)
                Cipher Suite: TLS_DH_anon_WITH_3DES_EDE_CBC_SHA (0x001b)
                Cipher Suite: TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA (0xc00d)
                Cipher Suite: TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA (0xc003)
                Cipher Suite: TLS_RSA_WITH_3DES_EDE_CBC_SHA (0x000a)
                Cipher Suite: TLS_DHE_RSA_WITH_DES_CBC_SHA (0x0015)
                Cipher Suite: TLS_DHE_DSS_WITH_DES_CBC_SHA (0x0012)
                Cipher Suite: TLS_DH_RSA_WITH_DES_CBC_SHA (0x000f)
                Cipher Suite: TLS_DH_DSS_WITH_DES_CBC_SHA (0x000c)
                Cipher Suite: TLS_DH_anon_WITH_DES_CBC_SHA (0x001a)
                Cipher Suite: TLS_RSA_WITH_DES_CBC_SHA (0x0009)
                Cipher Suite: TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA (0x0014)
                Cipher Suite: TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA (0x0011)
                Cipher Suite: TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA (0x0019)
                Cipher Suite: TLS_RSA_EXPORT_WITH_DES40_CBC_SHA (0x0008)
                Cipher Suite: TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 (0x0006)
                Cipher Suite: TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 (0x0017)
                Cipher Suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5 (0x0003)
                Cipher Suite: TLS_EMPTY_RENEGOTIATION_INFO_SCSV (0x00ff)
            Compression Methods Length: 1
            Compression Methods (1 method)
                Compression Method: null (0)
            Extensions Length: 85
            Extension: ec_point_formats (len=4)
                Type: ec_point_formats (11)
                Length: 4
                EC point formats Length: 3
                Elliptic curves point formats (3)
                    EC point format: uncompressed (0)
                    EC point format: ansiX962_compressed_prime (1)
                    EC point format: ansiX962_compressed_char2 (2)
            Extension: supported_groups (len=28)
                Type: supported_groups (10)
                Length: 28
                Supported Groups List Length: 26
                Supported Groups (13 groups)
                    Supported Group: secp256r1 (0x0017)
                    Supported Group: secp521r1 (0x0019)
                    Supported Group: brainpoolP512r1 (0x001c)
                    Supported Group: brainpoolP384r1 (0x001b)
                    Supported Group: secp384r1 (0x0018)
                    Supported Group: brainpoolP256r1 (0x001a)
                    Supported Group: secp256k1 (0x0016)
                    Supported Group: sect571r1 (0x000e)
                    Supported Group: sect571k1 (0x000d)
                    Supported Group: sect409k1 (0x000b)
                    Supported Group: sect409r1 (0x000c)
                    Supported Group: sect283k1 (0x0009)
                    Supported Group: sect283r1 (0x000a)
            Extension: session_ticket (len=0)
                Type: session_ticket (35)
                Length: 0
                Data (0 bytes)
            Extension: signature_algorithms (len=32)
                Type: signature_algorithms (13)
                Length: 32
                Signature Hash Algorithms Length: 30
                Signature Hash Algorithms (15 algorithms)
                    Signature Algorithm: rsa_pkcs1_sha512 (0x0601)
                        Signature Hash Algorithm Hash: SHA512 (6)
                        Signature Hash Algorithm Signature: RSA (1)
                    Signature Algorithm: SHA512 DSA (0x0602)
                        Signature Hash Algorithm Hash: SHA512 (6)
                        Signature Hash Algorithm Signature: DSA (2)
                    Signature Algorithm: ecdsa_secp521r1_sha512 (0x0603)
                        Signature Hash Algorithm Hash: SHA512 (6)
                        Signature Hash Algorithm Signature: ECDSA (3)
                    Signature Algorithm: rsa_pkcs1_sha384 (0x0501)
                        Signature Hash Algorithm Hash: SHA384 (5)
                        Signature Hash Algorithm Signature: RSA (1)
                    Signature Algorithm: SHA384 DSA (0x0502)
                        Signature Hash Algorithm Hash: SHA384 (5)
                        Signature Hash Algorithm Signature: DSA (2)
                    Signature Algorithm: ecdsa_secp384r1_sha384 (0x0503)
                        Signature Hash Algorithm Hash: SHA384 (5)
                        Signature Hash Algorithm Signature: ECDSA (3)
                    Signature Algorithm: rsa_pkcs1_sha256 (0x0401)
                        Signature Hash Algorithm Hash: SHA256 (4)
                        Signature Hash Algorithm Signature: RSA (1)
                    Signature Algorithm: SHA256 DSA (0x0402)
                        Signature Hash Algorithm Hash: SHA256 (4)
                        Signature Hash Algorithm Signature: DSA (2)
                    Signature Algorithm: ecdsa_secp256r1_sha256 (0x0403)
                        Signature Hash Algorithm Hash: SHA256 (4)
                        Signature Hash Algorithm Signature: ECDSA (3)
                    Signature Algorithm: SHA224 RSA (0x0301)
                        Signature Hash Algorithm Hash: SHA224 (3)
                        Signature Hash Algorithm Signature: RSA (1)
                    Signature Algorithm: SHA224 DSA (0x0302)
                        Signature Hash Algorithm Hash: SHA224 (3)
                        Signature Hash Algorithm Signature: DSA (2)
                    Signature Algorithm: SHA224 ECDSA (0x0303)
                        Signature Hash Algorithm Hash: SHA224 (3)
                        Signature Hash Algorithm Signature: ECDSA (3)
                    Signature Algorithm: rsa_pkcs1_sha1 (0x0201)
                        Signature Hash Algorithm Hash: SHA1 (2)
                        Signature Hash Algorithm Signature: RSA (1)
                    Signature Algorithm: SHA1 DSA (0x0202)
                        Signature Hash Algorithm Hash: SHA1 (2)
                        Signature Hash Algorithm Signature: DSA (2)
                    Signature Algorithm: ecdsa_sha1 (0x0203)
                        Signature Hash Algorithm Hash: SHA1 (2)
                        Signature Hash Algorithm Signature: ECDSA (3)
            Extension: heartbeat (len=1)
                Type: heartbeat (15)
                Length: 1
                Mode: Peer allowed to send requests (1)</code></pre>
</div>
</div>

The client hello message - successful case:</p>

<p><div class=""snippet"" data-lang=""js"" data-hide=""false"" data-console=""true"" data-babel=""false"">
<div class=""snippet-code"">
<pre class=""snippet-code-html lang-html prettyprint-override""><code>Transport Layer Security
TLSv1.2 Record Layer: Handshake Protocol: Client Hello
	Content Type: Handshake (22)
	Version: TLS 1.0 (0x0301)
	Length: 358
	Handshake Protocol: Client Hello
		Handshake Type: Client Hello (1)
		Length: 354
		Version: TLS 1.2 (0x0303)
		Random: b2e7fe85a0e4403ae4fec4d698094b919375f9afed8efff4…
		Session ID Length: 0
		Cipher Suites Length: 228
		Cipher Suites (114 suites)
			Cipher Suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (0xc030)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (0xc02c)
			Cipher Suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (0xc028)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (0xc024)
			Cipher Suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (0xc014)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0xc00a)
			Cipher Suite: TLS_DH_DSS_WITH_AES_256_GCM_SHA384 (0x00a5)
			Cipher Suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 (0x00a3)
			Cipher Suite: TLS_DH_RSA_WITH_AES_256_GCM_SHA384 (0x00a1)
			Cipher Suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (0x009f)
			Cipher Suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (0x006b)
			Cipher Suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 (0x006a)
			Cipher Suite: TLS_DH_RSA_WITH_AES_256_CBC_SHA256 (0x0069)
			Cipher Suite: TLS_DH_DSS_WITH_AES_256_CBC_SHA256 (0x0068)
			Cipher Suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA (0x0039)
			Cipher Suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA (0x0038)
			Cipher Suite: TLS_DH_RSA_WITH_AES_256_CBC_SHA (0x0037)
			Cipher Suite: TLS_DH_DSS_WITH_AES_256_CBC_SHA (0x0036)
			Cipher Suite: TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA (0x0088)
			Cipher Suite: TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA (0x0087)
			Cipher Suite: TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA (0x0086)
			Cipher Suite: TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA (0x0085)
			Cipher Suite: TLS_ECDH_anon_WITH_AES_256_CBC_SHA (0xc019)
			Cipher Suite: TLS_DH_anon_WITH_AES_256_GCM_SHA384 (0x00a7)
			Cipher Suite: TLS_DH_anon_WITH_AES_256_CBC_SHA256 (0x006d)
			Cipher Suite: TLS_DH_anon_WITH_AES_256_CBC_SHA (0x003a)
			Cipher Suite: TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA (0x0089)
			Cipher Suite: TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 (0xc032)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 (0xc02e)
			Cipher Suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 (0xc02a)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 (0xc026)
			Cipher Suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA (0xc00f)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA (0xc005)
			Cipher Suite: TLS_RSA_WITH_AES_256_GCM_SHA384 (0x009d)
			Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA256 (0x003d)
			Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA (0x0035)
			Cipher Suite: TLS_RSA_WITH_CAMELLIA_256_CBC_SHA (0x0084)
			Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02b)
			Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (0xc027)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 (0xc023)
			Cipher Suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (0xc013)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA (0xc009)
			Cipher Suite: TLS_DH_DSS_WITH_AES_128_GCM_SHA256 (0x00a4)
			Cipher Suite: TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 (0x00a2)
			Cipher Suite: TLS_DH_RSA_WITH_AES_128_GCM_SHA256 (0x00a0)
			Cipher Suite: TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (0x009e)
			Cipher Suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (0x0067)
			Cipher Suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 (0x0040)
			Cipher Suite: TLS_DH_RSA_WITH_AES_128_CBC_SHA256 (0x003f)
			Cipher Suite: TLS_DH_DSS_WITH_AES_128_CBC_SHA256 (0x003e)
			Cipher Suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA (0x0033)
			Cipher Suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA (0x0032)
			Cipher Suite: TLS_DH_RSA_WITH_AES_128_CBC_SHA (0x0031)
			Cipher Suite: TLS_DH_DSS_WITH_AES_128_CBC_SHA (0x0030)
			Cipher Suite: TLS_DHE_RSA_WITH_SEED_CBC_SHA (0x009a)
			Cipher Suite: TLS_DHE_DSS_WITH_SEED_CBC_SHA (0x0099)
			Cipher Suite: TLS_DH_RSA_WITH_SEED_CBC_SHA (0x0098)
			Cipher Suite: TLS_DH_DSS_WITH_SEED_CBC_SHA (0x0097)
			Cipher Suite: TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA (0x0045)
			Cipher Suite: TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA (0x0044)
			Cipher Suite: TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA (0x0043)
			Cipher Suite: TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA (0x0042)
			Cipher Suite: TLS_ECDH_anon_WITH_AES_128_CBC_SHA (0xc018)
			Cipher Suite: TLS_DH_anon_WITH_AES_128_GCM_SHA256 (0x00a6)
			Cipher Suite: TLS_DH_anon_WITH_AES_128_CBC_SHA256 (0x006c)
			Cipher Suite: TLS_DH_anon_WITH_AES_128_CBC_SHA (0x0034)
			Cipher Suite: TLS_DH_anon_WITH_SEED_CBC_SHA (0x009b)
			Cipher Suite: TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA (0x0046)
			Cipher Suite: TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 (0xc031)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02d)
			Cipher Suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 (0xc029)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 (0xc025)
			Cipher Suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA (0xc00e)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA (0xc004)
			Cipher Suite: TLS_RSA_WITH_AES_128_GCM_SHA256 (0x009c)
			Cipher Suite: TLS_RSA_WITH_AES_128_CBC_SHA256 (0x003c)
			Cipher Suite: TLS_RSA_WITH_AES_128_CBC_SHA (0x002f)
			Cipher Suite: TLS_RSA_WITH_SEED_CBC_SHA (0x0096)
			Cipher Suite: TLS_RSA_WITH_CAMELLIA_128_CBC_SHA (0x0041)
			Cipher Suite: TLS_RSA_WITH_IDEA_CBC_SHA (0x0007)
			Cipher Suite: TLS_ECDHE_RSA_WITH_RC4_128_SHA (0xc011)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_RC4_128_SHA (0xc007)
			Cipher Suite: TLS_ECDH_anon_WITH_RC4_128_SHA (0xc016)
			Cipher Suite: TLS_DH_anon_WITH_RC4_128_MD5 (0x0018)
			Cipher Suite: TLS_ECDH_RSA_WITH_RC4_128_SHA (0xc00c)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_RC4_128_SHA (0xc002)
			Cipher Suite: TLS_RSA_WITH_RC4_128_SHA (0x0005)
			Cipher Suite: TLS_RSA_WITH_RC4_128_MD5 (0x0004)
			Cipher Suite: TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA (0xc012)
			Cipher Suite: TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA (0xc008)
			Cipher Suite: TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA (0x0016)
			Cipher Suite: TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA (0x0013)
			Cipher Suite: TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA (0x0010)
			Cipher Suite: TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA (0x000d)
			Cipher Suite: TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA (0xc017)
			Cipher Suite: TLS_DH_anon_WITH_3DES_EDE_CBC_SHA (0x001b)
			Cipher Suite: TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA (0xc00d)
			Cipher Suite: TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA (0xc003)
			Cipher Suite: TLS_RSA_WITH_3DES_EDE_CBC_SHA (0x000a)
			Cipher Suite: TLS_DHE_RSA_WITH_DES_CBC_SHA (0x0015)
			Cipher Suite: TLS_DHE_DSS_WITH_DES_CBC_SHA (0x0012)
			Cipher Suite: TLS_DH_RSA_WITH_DES_CBC_SHA (0x000f)
			Cipher Suite: TLS_DH_DSS_WITH_DES_CBC_SHA (0x000c)
			Cipher Suite: TLS_DH_anon_WITH_DES_CBC_SHA (0x001a)
			Cipher Suite: TLS_RSA_WITH_DES_CBC_SHA (0x0009)
			Cipher Suite: TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA (0x0014)
			Cipher Suite: TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA (0x0011)
			Cipher Suite: TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA (0x0019)
			Cipher Suite: TLS_RSA_EXPORT_WITH_DES40_CBC_SHA (0x0008)
			Cipher Suite: TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 (0x0006)
			Cipher Suite: TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 (0x0017)
			Cipher Suite: TLS_RSA_EXPORT_WITH_RC4_40_MD5 (0x0003)
			Cipher Suite: TLS_EMPTY_RENEGOTIATION_INFO_SCSV (0x00ff)
		Compression Methods Length: 1
		Compression Methods (1 method)
			Compression Method: null (0)
		Extensions Length: 85
		Extension: ec_point_formats (len=4)
			Type: ec_point_formats (11)
			Length: 4
			EC point formats Length: 3
			Elliptic curves point formats (3)
				EC point format: uncompressed (0)
				EC point format: ansiX962_compressed_prime (1)
				EC point format: ansiX962_compressed_char2 (2)
		Extension: supported_groups (len=28)
			Type: supported_groups (10)
			Length: 28
			Supported Groups List Length: 26
			Supported Groups (13 groups)
				Supported Group: secp256r1 (0x0017)
				Supported Group: secp521r1 (0x0019)
				Supported Group: brainpoolP512r1 (0x001c)
				Supported Group: brainpoolP384r1 (0x001b)
				Supported Group: secp384r1 (0x0018)
				Supported Group: brainpoolP256r1 (0x001a)
				Supported Group: secp256k1 (0x0016)
				Supported Group: sect571r1 (0x000e)
				Supported Group: sect571k1 (0x000d)
				Supported Group: sect409k1 (0x000b)
				Supported Group: sect409r1 (0x000c)
				Supported Group: sect283k1 (0x0009)
				Supported Group: sect283r1 (0x000a)
		Extension: session_ticket (len=0)
			Type: session_ticket (35)
			Length: 0
			Data (0 bytes)
		Extension: signature_algorithms (len=32)
			Type: signature_algorithms (13)
			Length: 32
			Signature Hash Algorithms Length: 30
			Signature Hash Algorithms (15 algorithms)
				Signature Algorithm: rsa_pkcs1_sha512 (0x0601)
					Signature Hash Algorithm Hash: SHA512 (6)
					Signature Hash Algorithm Signature: RSA (1)
				Signature Algorithm: SHA512 DSA (0x0602)
					Signature Hash Algorithm Hash: SHA512 (6)
					Signature Hash Algorithm Signature: DSA (2)
				Signature Algorithm: ecdsa_secp521r1_sha512 (0x0603)
					Signature Hash Algorithm Hash: SHA512 (6)
					Signature Hash Algorithm Signature: ECDSA (3)
				Signature Algorithm: rsa_pkcs1_sha384 (0x0501)
					Signature Hash Algorithm Hash: SHA384 (5)
					Signature Hash Algorithm Signature: RSA (1)
				Signature Algorithm: SHA384 DSA (0x0502)
					Signature Hash Algorithm Hash: SHA384 (5)
					Signature Hash Algorithm Signature: DSA (2)
				Signature Algorithm: ecdsa_secp384r1_sha384 (0x0503)
					Signature Hash Algorithm Hash: SHA384 (5)
					Signature Hash Algorithm Signature: ECDSA (3)
				Signature Algorithm: rsa_pkcs1_sha256 (0x0401)
					Signature Hash Algorithm Hash: SHA256 (4)
					Signature Hash Algorithm Signature: RSA (1)
				Signature Algorithm: SHA256 DSA (0x0402)
					Signature Hash Algorithm Hash: SHA256 (4)
					Signature Hash Algorithm Signature: DSA (2)
				Signature Algorithm: ecdsa_secp256r1_sha256 (0x0403)
					Signature Hash Algorithm Hash: SHA256 (4)
					Signature Hash Algorithm Signature: ECDSA (3)
				Signature Algorithm: SHA224 RSA (0x0301)
					Signature Hash Algorithm Hash: SHA224 (3)
					Signature Hash Algorithm Signature: RSA (1)
				Signature Algorithm: SHA224 DSA (0x0302)
					Signature Hash Algorithm Hash: SHA224 (3)
					Signature Hash Algorithm Signature: DSA (2)
				Signature Algorithm: SHA224 ECDSA (0x0303)
					Signature Hash Algorithm Hash: SHA224 (3)
					Signature Hash Algorithm Signature: ECDSA (3)
				Signature Algorithm: rsa_pkcs1_sha1 (0x0201)
					Signature Hash Algorithm Hash: SHA1 (2)
					Signature Hash Algorithm Signature: RSA (1)
				Signature Algorithm: SHA1 DSA (0x0202)
					Signature Hash Algorithm Hash: SHA1 (2)
					Signature Hash Algorithm Signature: DSA (2)
				Signature Algorithm: ecdsa_sha1 (0x0203)
					Signature Hash Algorithm Hash: SHA1 (2)
					Signature Hash Algorithm Signature: ECDSA (3)
		Extension: heartbeat (len=1)
			Type: heartbeat (15)
			Length: 1
			Mode: Peer allowed to send requests (1)</code></pre>
</div>
</div>
</p>

<p>Note that the cipher suites and signature algorithm are same in both the cases. Since the issue occurs only under load in Linux, is there anyway we can increase the number of connection in Java or through any settings in Linux</p>

<p>Any help would be appreciated.</p>
",https://stackoverflow.com/questions/58820246/server-sending-rst-message-immediately-after-client-hello-on-load-testing,"['java', 'sockets', 'openssl', 'tls1.2', 'serversocket']",3072,False,0,0
Jmeter : How to perform load testing on AngularJS based web application?,"<p>I am unable to perform load test angularjs based web-application. Please share suggestion and example if there is any. </p>

<p>If we can not perform load test on angularjs using jmeter then please suggest any tool or any approach.</p>

<p>Thanks!!! </p>
",https://stackoverflow.com/questions/54017807/jmeter-how-to-perform-load-testing-on-angularjs-based-web-application,"['angularjs', 'jmeter', 'performance-testing', 'load-testing']",1782,False,-1,1
How to get high rps with JMeter load testing https endpoint,"<p>I'm trying to test my https endpoint with JMeter. I want to make at least 10000 requests per second, but when I set the number of threads to 10000 I get way less rps, around 500. </p>

<p>I've tried setting the number of threads to 1000 and 100, surprisingly I get this same number of rps. I'm using HTTP Sampler and ""use Keep-Alive"" is set to true. When I look in the statistics I see that when using 100 threads, it makes use of Keep-Alive and connect_time is around 100 ms, but when the number of threads is higher connect_time grows, it's like it stops reusing the connections. </p>

<p>I know this isn't a server issue, because I've tried testing that same endpoint with Yandex.Tank and phantom and it can easily maintain 10 000 requests per second, the problem is it can't use response data to make furhter requests, that's why I have to use JMeter for this task.</p>
",https://stackoverflow.com/questions/56651500/how-to-get-high-rps-with-jmeter-load-testing-https-endpoint,"['jmeter', 'load-testing', 'yandex-tank']",649,True,0,2
TFS Build server unable to communicate with controller for load testing,"<p>What steps can I take to test the connectivity of a controller?
How can I ensure that my tfs build server is able to communicate with a controller in order to perform a load test?</p>

<p>My company is trying to automate load testing, and to accomplish this we are using a tfs build. I have a command line task to actually start the load tests. To visualize, it looks like this:</p>

<pre><code>Command Line Task
Tool: MSTest.exe
Arguments: /testcontainer:""some load test.loadtest"" /testsettings:""some test settings.testsettings""
</code></pre>

<p>When I run the build, it times out after about 3-4.5 minutes and gives me this error:</p>

<pre><code>Failed to queue test run 'some load test': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
</code></pre>

<p>I've tried a few things to test the connectivity of the controller, but I'm not sure I've reached the answer I'm looking for yet.
The first thing I tried was to restart the controller, however that didn't change anything.
I then went into vs2017 and opened up the load test editor. From there I went into <code>Manage test controllers</code>. The controller dialogue box is set to the correct controller, and the agents it's controlling are at the <code>Ready</code>.
Then I looked at the test settings, and verified that the <code>&lt;RemoteController/&gt;</code> was also set correctly. I did this more just to confirm that the error isn't with the files themselves. So, the timeout should be happening due to some connection problem between the server or the controller.</p>

<p>I know that the controller uses a specific port for incoming traffic, port 6901, so I checked the port connection using a .NET TcpClient in PS:</p>

<pre><code>$server = 'mycontroller'
$port = 6901
$client = New-Object Net.Sockets.TcpClient
try{
    $client.Connect($server, $port)
    $msg = ""Connected to $server on Port $port""
} catch {
    $msg = ""Could not connect to $server on Port $port""
} finally {
    $client.Dispose()
}
write-host $msg
</code></pre>

<p>Provided the controller is turned on, <code>$client</code> always returns that it is able to connect to <code>$server</code>. Are there any properties besides <code>Connected</code> a <code>TcpClient</code> object has that could give me more information about its connection? Because the build server still times out despite <code>$client</code> seemingly being able to connect. Do I need to give the build server the specific port to connect to? Shouldn't it do that automatically?</p>

<p>I tried <code>tracert</code> through another command line task to see if I could pinpoint where the server was getting timed out:</p>

<pre><code>2019-07-10T20:28:32.9051572Z C:\Windows\system32\cmd.exe /c ""TRACERT.exe atsvstctstvm400""
2019-07-10T20:28:32.9271264Z Tracing route to mycontroller.local [10.208.3.56]
2019-07-10T20:28:32.9281250Z over a maximum of 30 hops:
2019-07-10T20:28:37.7253994Z   1     1 ms    &lt;1 ms    &lt;1 ms  10.200.0.5 
2019-07-10T20:28:38.7269952Z   2    &lt;1 ms    &lt;1 ms    &lt;1 ms  10.50.0.2 
2019-07-10T20:28:39.8534160Z   3    38 ms    39 ms    38 ms  172.20.0.2 
2019-07-10T20:28:52.3918376Z   4     *        *        *     Request timed out.
2019-07-10T20:28:52.5396304Z   5    48 ms    48 ms    48 ms  10.208.3.56 
2019-07-10T20:28:52.5396304Z Trace complete.
</code></pre>

<p>Could the 4th hop be where the build server is getting hung up on? It seems like despite the timeout on hop 4, the agent was still able to ping through to the controller. If it is the 4th hop I need to be concerned with, how do I even go about fixing it? It doesn't give me any information about where the 4th hop wanted to go.</p>

<p>So, in sum, I'm trying to run a load test through a command line task in tfs using MSTest.exe. When I run the build, I get a timeout error, which I believe means that the build server is unable to communicate with the controller.
I've tried a few ideas for troubleshooting, but I haven't been able to resolve the issue or shed any light on how to proceed.
How can I pinpoint where the communication error is?
What other troubleshooting solutions are there to resolve this issue?
For future load test runs, how can I test to ensure that the build server is able to communicate with the controller?</p>
",https://stackoverflow.com/questions/56996238/tfs-build-server-unable-to-communicate-with-controller-for-load-testing,"['mstest', 'build-agent']",100,False,0,0
Why do I get an OutOfMemoryError when load-testing a Swagger-Webservice,"<p>We have developed a MicroService which is accessed by a secondary system. Both systems use a Swagger/OpenApi API to communicate with one-another. We generate the client as ""java"" (underlying okhttp-Client).</p>

<p>When we are load-testing the system after some time we get <code>java.lang.OutOfMemoryError: unable to create new native thread</code> on the client, although the system has plenty of memory configured (via -Xmx).
How can we avoid this? What is wrong?</p>
",https://stackoverflow.com/questions/59058870/why-do-i-get-an-outofmemoryerror-when-load-testing-a-swagger-webservice,"['java', 'openapi', 'openapi-generator']",386,True,2,1
Can we do Load testing for Video or Audio call in jmeter,"<p>Is there any way we can do performance testing for voice or video call ? Jmeter or any other open source tools provide anything ? Please reommend any tool if we can achieve this.</p>
",https://stackoverflow.com/questions/58293410/can-we-do-load-testing-for-video-or-audio-call-in-jmeter,"['performance', 'jmeter']",1498,True,1,2
JMETER 4. 0 | JMeter distributed load testing | jp@gc - Stepping Thread Group,"<p>I have set up a login->logout script using JMeter and performing load testing using a distributed machine. The username is dynamically populated in login using the user.CSV list while the password for the login is fixed and hardcoded in the login request.</p>

<ul>
<li>Master(My own machine)</li>
<li>2 slaves machines </li>
<li>Thread: jp@gc - Stepping Thread Group </li>
<li>Users: 10</li>
<li>Hold Load: 120</li>
</ul>

<p>When executing the script using NON-GUI mode with a command:</p>

<p>jmeter -n -t ""c:\Login and Logout.jmx"" -R slaveip1, slaveip2. </p>

<p>The summary report is generated is as below:</p>

<p>Summariser: summary =      0 in 00:00:00 = ******/s Avg:     0 Min: 9223372036854775807 Max: -9223372036854775808 Err:     0 (0.00%)</p>

<p>Can someone help me out to find out why the summary report is not getting populated?</p>

<p><strong>Note</strong>: When the script is executed for a single user then the summary report is getting populated. Here in the login request both username and password are hardcoded and username not coming for CSV.</p>
",https://stackoverflow.com/questions/54400480/jmeter-4-0-jmeter-distributed-load-testing-jpgc-stepping-thread-group,"['performance-testing', 'load-testing', 'jmeter-plugins', 'jmeter-4.0', 'distributed-testing']",127,True,1,1
How to centralize the load testing setup for multiple virtual/physical machines,"<p>I have a highly scalable web service that is deployed to kubernetes. I want to heavily load test it with thousands of threads.</p>

<p>I was using <strong>jmeter, Taurus, jmeter-maven-plugin</strong> for load testing my service. I also tried using distributed testing with Jmeter, but the configuration is painful, no static Ip address.</p>

<p>I am looking for ideas to make the setup of load testing environment easy and can centralize the setup process.</p>
",https://stackoverflow.com/questions/55655309/how-to-centralize-the-load-testing-setup-for-multiple-virtual-physical-machines,"['docker', 'kubernetes', 'jmeter', 'load-testing']",50,False,1,0
During tsung load testing tcp connections are getting closed after 1024 connections,"<p>I am working on distributed load testing with tsung to test my mqtt message broker. My message broker can ideally handle 10k connections now. When iam testing it with tsung for 10k parallel connections i realized that my tcp connections in server are getting closed. </p>

<p>I set the port range and increased ulimit but still i could generate users with tsung but couldn't get 10k concurrent connections at server. </p>

<p>I even tested the broker with other tool called <code>mqtt-bench</code> in this i could generate parallel connections and here the tcp connections are not getting closed. Is there any configuration that iam missing on tsung? </p>

<p>and tsung version is 1.7.0, erlang version is 10.1 </p>
",https://stackoverflow.com/questions/54420530/during-tsung-load-testing-tcp-connections-are-getting-closed-after-1024-connecti,"['tcp', 'mqtt', 'tsung']",458,False,0,4
Which load testing method is better? API testing or full website testing,"<p>I have an application that we implemented kind of a microservices type architecture. The application contains 6 services (6 Docker containers). I need to load test this application. As I don't have much experience in the testing field, I'm not sure which method to use. </p>

<p>Right now, I have used the Gatling Load testing application for the load test. Here, I record the testing script by start the recorder and wander around my application to record all routes. I have gone through most of the routes in that single recording in order to mimic a practical user. I thought, normally users use an application like this and I can load test with its 1000 times by editing the number of threads/users. </p>

<p>Later I read about API testing which we will focus on APIs. Loading each APIs with a heavy load. So, I'm confused that which testing method should I use? If we go for API testing, it will provide only how much we can scale for that particular API right? (Not sure)</p>

<p>Is there any issue with my method of load testing? </p>
",https://stackoverflow.com/questions/58284521/which-load-testing-method-is-better-api-testing-or-full-website-testing,"['performance-testing', 'load-testing', 'gatling']",46,True,0,1
"On load testing my api for 2500 per second, following error came","<p>I have an api that reads count of rows in a table and then saves a particular data in that table.Db is mysql. On load testing my api for 2500 hits per second, communication link error came.Error is:</p>

<pre><code>
2019-08-01 18:28:26:478 [91b1bc2f1259de35/91b1bc2f1259de35] [http-nio-80-exec-149] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 5,235 milliseconds ago.  The last packet sent successfully to the server was 5,235 milliseconds ago.
2019-08-01 18:28:26:482 [94a83dcaff8f64bf/94a83dcaff8f64bf] [http-nio-80-exec-160] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,962 milliseconds ago.  The last packet sent successfully to the server was 2,962 milliseconds ago.
2019-08-01 18:28:26:500 [17b1c2d0e038602d/17b1c2d0e038602d] [http-nio-80-exec-174] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,824 milliseconds ago.  The last packet sent successfully to the server was 1,824 milliseconds ago.
2019-08-01 18:28:26:478 [c18b3bcfe063c93c/c18b3bcfe063c93c] [http-nio-80-exec-170] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,072 milliseconds ago.  The last packet sent successfully to the server was 2,072 milliseconds ago.
2019-08-01 18:28:26:478 [06da8ae0c3f60282/06da8ae0c3f60282] [http-nio-80-exec-168] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,125 milliseconds ago.  The last packet sent successfully to the server was 2,125 milliseconds ago.
2019-08-01 18:28:26:500 [67ccdca788431e36/67ccdca788431e36] [http-nio-80-exec-179] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,893 milliseconds ago.  The last packet sent successfully to the server was 1,893 milliseconds ago.
2019-08-01 18:28:26:478 [1f8fe32ba4ea4133/1f8fe32ba4ea4133] [http-nio-80-exec-127] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 766 milliseconds ago.  The last packet sent successfully to the server was 1,286 milliseconds ago.
2019-08-01 18:28:26:500 [690697c5aff7d7ba/690697c5aff7d7ba] [http-nio-80-exec-169] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,523 milliseconds ago.  The last packet sent successfully to the server was 1,523 milliseconds ago.
2019-08-01 18:28:26:500 [a77288b5347b2112/a77288b5347b2112] [http-nio-80-exec-177] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,903 milliseconds ago.  The last packet sent successfully to the server was 1,903 milliseconds ago.
2019-08-01 18:28:26:500 [61a6e4bbeedcdea1/61a6e4bbeedcdea1] [http-nio-80-exec-156] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,414 milliseconds ago.  The last packet sent successfully to the server was 2,414 milliseconds ago.
2019-08-01 18:28:26:478 [a99d138ae705007d/a99d138ae705007d] [http-nio-80-exec-191] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,538 milliseconds ago.  The last packet sent successfully to the server was 1,538 milliseconds ago.
2019-08-01 18:28:26:478 [9f5c21bbd7707b46/9f5c21bbd7707b46] [http-nio-80-exec-161] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,348 milliseconds ago.  The last packet sent successfully to the server was 2,348 milliseconds ago.
2019-08-01 18:28:26:500 [fbebe6351a9a638f/fbebe6351a9a638f] [http-nio-80-exec-158] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,775 milliseconds ago.  The last packet sent successfully to the server was 2,775 milliseconds ago.
2019-08-01 18:28:26:482 [e9b3c26cf69f2c13/e9b3c26cf69f2c13] [http-nio-80-exec-164] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,615 milliseconds ago.  The last packet sent successfully to the server was 2,615 milliseconds ago.
2019-08-01 18:28:26:478 [e0101aee3c7a1bb4/e0101aee3c7a1bb4] [http-nio-80-exec-172] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,951 milliseconds ago.  The last packet sent successfully to the server was 1,951 milliseconds ago.
2019-08-01 18:28:26:500 [d9655f8dd1f9e70f/d9655f8dd1f9e70f] [http-nio-80-exec-186] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,842 milliseconds ago.  The last packet sent successfully to the server was 1,842 milliseconds ago.
2019-08-01 18:28:26:482 [c6fa3fdf7ec1dc3e/c6fa3fdf7ec1dc3e] [http-nio-80-exec-153] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 3,874 milliseconds ago.  The last packet sent successfully to the server was 4,608 milliseconds ago.
2019-08-01 18:28:26:482 [8d46ab20a948fc91/8d46ab20a948fc91] [http-nio-80-exec-167] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,755 milliseconds ago.  The last packet sent successfully to the server was 2,755 milliseconds ago.
2019-08-01 18:28:26:500 [e01cf78be1b030d7/e01cf78be1b030d7] [http-nio-80-exec-154] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure
</code></pre>
",https://stackoverflow.com/questions/57315524/on-load-testing-my-api-for-2500-per-second-following-error-came,"['mysql', 'spring-boot', 'load-testing']",74,True,0,1
Java code to publish json message on multiple threads for load testing,"<p>I need help in writing java code to publish json message on multiple threads for load testing . I have my publish function written to POST the message , but how to use this POST for multiple threads .for e.g I need to publish 1000 messages on 10 threads . WorkerCount = 1000 and ThreadCount = 10 .</p>
",https://stackoverflow.com/questions/58271853/java-code-to-publish-json-message-on-multiple-threads-for-load-testing,"['java', 'multithreading']",92,False,-2,1
Load testing server with http multipart/related request which contains audio content,"<p>We built a server which handles speech recorded by user using an app. The audio data is sent through http post in real time. The body looks like this:</p>

<pre><code>--BOUNDARY
Content-Disposition: form-data; name=""metadata""
Content-Type: application/json; charset=""UTF-8""
&lt;JSON FORMATTED METADATA HERE&gt;
--BOUNDARY
Content-Disposition: form-data; name=""audio""
Content-Type: application/octet-stream
&lt;AUDIO BYTES HERE&gt;
--BOUNDARY--
</code></pre>

<p>Now, I need to do load testing for the server. I am thinking of using ApacheBench and just do consistent uploading requests but I wish to use the same format as above for each request. How could that be setup in AB?</p>
",https://stackoverflow.com/questions/58704115/load-testing-server-with-http-multipart-related-request-which-contains-audio-con,['apachebench'],105,True,0,1
How to call multiple APIs in parallel for load testing (using Gatling)?,"<p>I'm currently trying to load test my APIs using Gatling, but I have a very specific test that I want to perform. I would like to simulate a Virtual User calling all my APIs (the 16 of them) simultaneously. I would like to repeat this multiple times so I can have an idea of the average time it takes for my APIs to respond when called all together at the same time.</p>

<p>The method I used was :</p>

<ul>
<li>Creating a Scenario for each of my API.</li>
<li>Calling every single one of the scenarios in my SetUp()</li>
<li>Injecting 60 users in every scenarios with a throttle of 1 Request per Second &amp; holding it for 60 seconds.</li>
</ul>

<p>The aim was to have 60 iterations of what I wanted.</p>

<p>FYI I'm using Gatling 3.1.2</p>

<pre class=""lang-scala prettyprint-override""><code>//This is what all my scenarios look like

val bookmarkScn = scenario(""Bookmarks"").exec(http(""Listing bookmarks"")
                .get(""/bookmarks"")
                .check(status.is(200))
            )

//My setUp

setUp(
    bookmarkScn.inject(
        atOnceUsers(60)
    ).throttle(
        jumpToRps(1),
        holdFor(60)
    ),
    permissionScn.inject(
        atOnceUsers(60)
    ).throttle(
        jumpToRps(1),
        holdFor(60)
    ),

//Adding all the scenarios one after the other

).protocols(httpConfig)


</code></pre>

<p>I got some results with this method but they are not at all what I was expecting and if I keep the test going for too long eventually every call just timeout.</p>

<p>It was supposed to just take more time than usual (e.g from 100ms per API to 300ms).</p>

<p>My question is : Is this method correct ? Can you help me achieve my goal ?</p>
",https://stackoverflow.com/questions/56278435/how-to-call-multiple-apis-in-parallel-for-load-testing-using-gatling,"['load-testing', 'gatling']",1874,True,0,1
Load testing an API which uses oauth token for authorization using loadimpact k6,"<p>I'm trying to load test an API (GET method) using loadimpact k6 which requires oauth token for authorization to get the successful response. I already have a postman collection file which does this by running pre-request script. The pre-request script will request token from the authorization server and then populates the token in the environment variable. I used the ""Postman to LoadImpact converter"" to generate the k6 script but it isn't doing any help. The script fails to get the access token.</p>

<p>The generated script from the converter is given below:</p>

<pre><code>// Auto-generated by the Load Impact converter

import ""./libs/shim/core.js"";

export let options = { maxRedirects: 4 };

const Request = Symbol.for(""request"");
postman[Symbol.for(""initial"")]({
  options,
  collection: {
    currentAccessToken: """",
    ""Client-Id"": """",
    ""Client-Secret"": """",
    ""Token-Scope"": """",
    ""Grant-Type"": ""client_credentials"",
    ""Access-Token-URL"": """",
    accessTokenExpiry: """"
  }
});

export default function() {
  postman[Request]({
    name: ""Collection Mock"",
    id: """",
    method: ""GET"",
    address:
      """",
    headers: {
      Authorization: ""Bearer {{currentAccessToken}}""
    },
    pre() {
      const echoPostRequest = {
        url: pm.environment.get(""Access-Token-URL""),
        method: ""POST"",
        header: ""Content-Type:x-www-form-urlencoded"",
        body: {
          mode: ""urlencoded"",
          urlencoded: [
            { key: ""client_id"", value: pm.environment.get(""Client-Id"") },
            {
              key: ""client_secret"",
              value: pm.environment.get(""Client-Secret"")
            },
            { key: ""grant_type"", value: pm.environment.get(""Grant-Type"") },
            { key: ""scope"", value: pm.environment.get(""Token-Scope"") }
          ]
        }
      };

      var getToken = true;

      if (
        !pm.environment.get(""accessTokenExpiry"") ||
        !pm.environment.get(""currentAccessToken"")
      ) {
        console.log(""Token or expiry date are missing"");
      } else if (
        pm.environment.get(""accessTokenExpiry"") &lt;= new Date().getTime()
      ) {
        console.log(""Token is expired"");
      } else {
        getToken = false;
        console.log(""Token and expiry date are all good"");
      }

      if (getToken === true) {
        pm.sendRequest(echoPostRequest, function(err, res) {
          console.log(err ? err : res.json());
          if (err === null) {
            console.log(""Saving the token and expiry date"");
            var responseJson = res.json();
            pm.environment.set(""currentAccessToken"", responseJson.access_token);

            var expiryDate = new Date();
            expiryDate.setSeconds(
              expiryDate.getSeconds() + responseJson.expires_in
            );
            pm.environment.set(""accessTokenExpiry"", expiryDate.getTime());
          }
        });
      }
    }
  });
}
</code></pre>

<p>The issue is with pm.sendRequest which is not supported by the converter and I'm not sure what the alternative is. So, I'm looking for ways to dynamically request access token from the authorization server and use that token to make a request to the API for load testing in k6 script.</p>
",https://stackoverflow.com/questions/58879804/load-testing-an-api-which-uses-oauth-token-for-authorization-using-loadimpact-k6,"['postman', 'k6', 'postman-pre-request-script']",4883,True,3,2
Performance load testing using Jmeter and how assets files may affect the results,"<p>Good Day Folks,</p>
<p>I have been playing around with <code>Jmeter</code> for a load testing project. I was looking for a way that simulates <strong>Full / Real user behavior</strong> starting by loading the <em>Home page</em> for the app, Doing the login, Then Send a predefined message to a certain user, And load all assets files and Images, not just the direct <code>API</code> CALLS.</p>
<blockquote>
<p>Doing the previous steps using a straightforward way will be a bit complicated and It will take a longer time.</p>
</blockquote>
<p>I have found this chrome extension <strong>(<a href=""https://chrome.google.com/webstore/detail/blazemeter-the-continuous/mbopgmdnpcbohhpnfglgohlbhfongabi"" rel=""noreferrer"">BlazeMeter | The Continuous Testing Platform</a>)</strong> That help with Recording set of actions and export it in Jmeter format.</p>
<p><a href=""https://i.stack.imgur.com/Spswh.png"" rel=""noreferrer""><img src=""https://i.stack.imgur.com/Spswh.png"" alt=""enter image description here"" /></a></p>
<h1>But,</h1>
<p>It does only records the direct API calls and does not load any asset or socket/WebSocket sessions.</p>
<p><a href=""https://i.stack.imgur.com/ZaARa.png"" rel=""noreferrer""><img src=""https://i.stack.imgur.com/ZaARa.png"" alt=""The Continuous Testing Platform"" /></a>.</p>
<p>Figuring that we may use <a href=""https://www.softwaretestinghelp.com/integrating-jmeter-selenium/"" rel=""noreferrer"">Selenium driver</a> with Jmeter may solve this state. But it won't be a good approach to follow if you're going to test with 10k users or even more (<em>Resources limitation</em>).</p>
<p>Any recommendation or workaround?</p>
",https://stackoverflow.com/questions/57468974/performance-load-testing-using-jmeter-and-how-assets-files-may-affect-the-result,"['performance', 'jmeter', 'performance-testing', 'load-testing', 'jmeter-plugins']",379,True,3,1
Load testing AWS Kinesis stream with JMeter error: unable to resolve class com.amazonaws.services.kinesis,"<p>I am trying to use the AWS-SDK and Kinesis Client library with JMeter to produce records to put into my Kinesis stream for performance testing purposes. My issue is that JMeter will not recognize the libraries to be able to call them from my code. I am at a loss as to what to troubleshoot next.</p>

<p>Installed JMeter 5.0 (I tried with version 4.0 with same issues) and Java 8.</p>

<pre><code>$ java -version
java version ""1.8.0_202-ea""
Java(TM) SE Runtime Environment (build 1.8.0_202-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b03, mixed mode)
</code></pre>

<p>Placed JAR files for the AWS libraries in the lib folder of my JMeter installation (also tried lib/ext):</p>

<pre><code>- amazon-kinesis-client-2.1.0.jar
- aws-java-sdk-1.11.490.jar
- aws-sdk-java-2.3.10-SNAPSHOT.jar
- aws-sdk-java-aws-core-2.3.10-SNAPSHOT.jar
- aws-sdk-java-kinesis-2.3.10-SNAPSHOT.jar
- aws-sdk-java-sdk-core-2.3.10-SNAPSHOT.jar
</code></pre>

<p>(also added these three based on another post - not sure if they are really needed or not)</p>

<pre><code>- jackson-annotations-2.9.8.jar
- jackson-core-2.9.8.jar
- jackson-databind-2.9.8.jar
</code></pre>

<p>JSR223 sampler using Groovy code (based on other examples):</p>

<pre><code>import groovy.json.*
import groovy.json.JsonBuilder
import groovy.json.JsonOutput

import com.amazonaws.AmazonClientException
import com.amazonaws.AmazonServiceException
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.profile.ProfileCredentialsProvider
import com.amazonaws.services.kinesis.AmazonKinesisClient
import com.amazonaws.services.kinesis.model.CreateStreamRequest
import com.amazonaws.services.kinesis.model.DescribeStreamRequest
import com.amazonaws.services.kinesis.model.DescribeStreamResult
import com.amazonaws.services.kinesis.model.ListStreamsRequest
import com.amazonaws.services.kinesis.model.ListStreamsResult
import com.amazonaws.services.kinesis.model.PutRecordRequest
import com.amazonaws.services.kinesis.model.PutRecordResult
import com.amazonaws.services.kinesis.model.ResourceNotFoundException
import com.amazonaws.services.kinesis.model.StreamDescription

    class AmazonKinesisRecordProducerSample {

         def kinesis

        def init() {

            AWSCredentials credentials = null
              credentials = new ProfileCredentialsProvider().getCredentials()
              kinesis = new AmazonKinesisClient(credentials)         
        }    
    }

    def amazonKinesisRecordProducerSample= new AmazonKinesisRecordProducerSample() 
    amazonKinesisRecordProducerSample.init()
    def Environment = vars.get(""Environment"") //as String
    def AWS_Region = vars.get(""AWS_Region"") //as String

    def myStreamName=""stream123-"" + Environment + ""-"" + AWS_Region

        def jsondata = new JsonBuilder()
        jsondata {
            &lt;VARIOUS JSON DATA ADDED&gt;
        }
        def data=jsondata.toPrettyString()
        log.info(""jsondata: "" + data)
        def partitionkey=""&lt;PARTITION KEY&gt;""
        def putRecordRequest = new PutRecordRequest()
        putRecordRequest.setStreamName(myStreamName)
        putRecordRequest.setData(ByteBuffer.wrap(String.valueOf(data).getBytes()))
        putRecordRequest.setPartitionKey(partitionkey)
        def putRecordResult = new PutRecordResult()
        putRecordResult = amazonKinesisRecordProducerSample.kinesis.putRecord(putRecordRequest)
        log.info(""Successfully put record, partition key : %s, ShardID : %s, SequenceNumber : %s.\n"",
                    putRecordRequest.getPartitionKey(),
                    putRecordResult.getShardId(),
                    putRecordResult.getSequenceNumber())
</code></pre>

<p>I get this error for every com.amazonaws.* I try to import:</p>

<pre><code>Script1.groovy: 14: unable to resolve class com.amazonaws.services.kinesis.AmazonKinesisClient
 @ line 14, column 1.
   import com.amazonaws.services.kinesis.AmazonKinesisClient
</code></pre>

<p>for reference 
<a href=""https://stackoverflow.com/questions/30936726/how-to-put-25k-record-to-kinesis-stream-and-test-tool-to-acknowledge-it"">How to put 25k record to kinesis stream and Test tool to acknowledge it</a> and <a href=""https://stackoverflow.com/questions/30031477/using-http-request-of-jmeter-to-put-records-into-amazon-kinesis"">Using HTTP Request of Jmeter to put records into Amazon Kinesis</a></p>
",https://stackoverflow.com/questions/54465920/load-testing-aws-kinesis-stream-with-jmeter-error-unable-to-resolve-class-com-a,"['jmeter', 'aws-sdk', 'performance-testing', 'load-testing', 'amazon-kinesis']",1142,False,2,1
How DbContext and connections to DB should be implemented to handle load testing?,"<p>I have recently start implementing some load testing.
I am using .NetCore, EF Core 2.2 and Postgres.</p>

<p>I am calling my test server (with<code>HttpClient</code> <code>client.PostAsync(""/api/resource"");</code>).</p>

<p>I found that few of my requests fails because of too many connections (<code>The connection pool has been exhausted, either raise MaxPoolSize (currently 100) or Timeout (currently 15 seconds)</code>). So I implemented such approach:</p>

<pre><code>services.AddDbContext&lt;MyDbContext&gt;(optionsAction: optionsBuilder =&gt;
    optionsBuilder.UseNpgsql(Config.ConnectionString,
    optionsAction =&gt;
    {
        optionsAction.EnableRetryOnFailure(5, TimeSpan.FromSeconds(10), null);
    }));
</code></pre>

<p>it helped a bit, but still, when calling with e.g. 500 requestes I got errors.</p>

<p>I imagine, that it should work in a way, that e.g. if system is able to handle 100 requests at the same time (e.g. 100 connections to DB), the remaining requests (which uses <code>MyDbContext</code>) should wait (rather than fail).</p>

<p>So my questions are:</p>

<ol>
<li>Is it normal that with high load, the requests will fail because of maximum of possible concurrent connections?</li>
<li>If above is true - the normal approach is to use <code>EnableRetryOnFailure</code>?</li>
<li>Is it possible to make other requests to wait in non blocking way (e.g. max 20 seconds) until there are some connections available?</li>
<li>Or maybe there is other configuration option (in EF core, or in MVC) to make other requests to wait for available connection (from connection pool) instead of failing with exception?</li>
</ol>
",https://stackoverflow.com/questions/57974810/how-dbcontext-and-connections-to-db-should-be-implemented-to-handle-load-testing,"['c#', 'postgresql', 'ef-core-2.2']",1732,True,1,1
JMETER 4. 0 | JMeter distributed load testing | jp@gc - Stepping Thread Group | Report,"<p>How to extract a report for the testing consisting of the below model on the distributed testing environment.</p>

<ul>
<li><p>Master(My own machine)</p></li>
<li><p>2 slaves machines</p></li>
<li><p>Thread: jp@gc - Stepping Thread Group</p></li>
</ul>

<p>Basically wanted to have a dashboard report.</p>
",https://stackoverflow.com/questions/54414771/jmeter-4-0-jmeter-distributed-load-testing-jpgc-stepping-thread-group,"['performance-testing', 'jmeter-plugins', 'jmeter-4.0', 'distributed-testing']",168,True,1,1
How to provide test data to a locustfile in Python for load testing,"<p>I have built an API using flask and want to do load testing using locust.
Can anyone help me how to create it and do a load testing</p>
",https://stackoverflow.com/questions/58851633/how-to-provide-test-data-to-a-locustfile-in-python-for-load-testing,"['python', 'api', 'testing', 'load', 'locust']",491,True,-3,1
How to pass parameter in Load Testing of a login page with JMeter,"<p>How to pass parameter in Load Testing of a login page with JMeter and the site developed in asp .net mvc :</p>

<p><a href=""https://i.stack.imgur.com/Gso24.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Gso24.png"" alt=""enter image description here""></a></p>

<p>This is what I was trying. But could not manage to find a way where I can find the <strong>_requestVerificationToken</strong> and how to set <strong>RememberMe.</strong></p>

<p>In the follwoing video, the author used a token from another request may be - when the home page loads may be. But how to set token that time, I didnot understood. <a href=""https://www.youtube.com/watch?v=hGkrSFKcj10"" rel=""nofollow noreferrer"">Here is the youtube video link</a></p>

<p><strong>Update:</strong></p>

<p>I am finally able to send the parameters with value. The http request looks like below:
<a href=""https://i.stack.imgur.com/YCwlW.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/YCwlW.png"" alt=""enter image description here""></a></p>

<p><strong>But the response shows following error:</strong></p>

<pre><code>    [HttpAntiForgeryException (0x80004005): The required anti-forgery cookie &amp;quot;__RequestVerificationToken&amp;quot; is not present.]
   System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken) +459
   System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext) +71
   System.Web.Helpers.AntiForgery.Validate() +92
   System.Web.Mvc.ValidateAntiForgeryTokenAttribute.OnAuthorization(AuthorizationContext filterContext) +18
   System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +97
   System.Web.Mvc.Async.&amp;lt;&amp;gt;c__DisplayClass3_1.&amp;lt;BeginInvokeAction&amp;gt;b__0(AsyncCallback asyncCallback, Object asyncState) +640
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +14
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +346
   System.Web.Mvc.&amp;lt;&amp;gt;c.&amp;lt;BeginExecuteCore&amp;gt;b__152_0(AsyncCallback asyncCallback, Object asyncState, ExecuteCoreState innerState) +27
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +30
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state) +494
   System.Web.Mvc.&amp;lt;&amp;gt;c.&amp;lt;BeginExecute&amp;gt;b__151_1(AsyncCallback asyncCallback, Object callbackState, Controller controller) +16
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +20
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +403
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +16
   System.Web.Mvc.&amp;lt;&amp;gt;c.&amp;lt;BeginProcessRequest&amp;gt;b__20_0(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +54
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +30
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +427
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +105
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +163
</code></pre>

<p><strong>I am setting the token from the GET call of login page via variable.</strong> And I have checked, the both token in JMeter call are same.</p>

<p>The following StackOverflow question has the same situation. but it did not help me. <a href=""https://stackoverflow.com/questions/47854117/correlation-issue-in-jmeterthe-required-anti-forgery-form-field-requestverif?rq=1"">Here is the link</a></p>
",https://stackoverflow.com/questions/56486205/how-to-pass-parameter-in-load-testing-of-a-login-page-with-jmeter,"['asp.net-mvc', 'testing', 'jmeter', 'load-testing']",1519,False,0,1
403 error response from IIS on almost alternate request while load testing api,"<p>I have a web api which is deployed on IIS.
Api's are going through load test using load runner and almost on all alternative api call, getting 403 error response code, struggling to identify the issue, call is not going to the API, its returned back from IIS </p>
",https://stackoverflow.com/questions/56885876/403-error-response-from-iis-on-almost-alternate-request-while-load-testing-api,"['performance', 'iis', 'deployment', 'asp.net-core-webapi', 'load-testing']",169,True,0,2
Load data from CSV file for load testing and keep session for each user,"<p>I would like to log in an application with multiple users(each of who has an active session when logged in) and do stuff. Instead of logging them in, one by one in seperate thread groups, would it be possible to load e.g. 20 users from a CSV file(with each having a unique session) in one thread group?</p>

<p>I log each user in a seperate thread group, yet i would like to automate things a bit more.</p>
",https://stackoverflow.com/questions/54285969/load-data-from-csv-file-for-load-testing-and-keep-session-for-each-user,"['testing', 'jmeter', 'load-testing', 'stress-testing']",56,True,2,1
Is there a way to find response times of search results in Load Testing?,"<p>I am trying to do some performance testing for our application. 
My task is to do some load testing for a search page. Have to get the response times of the search results. ex: I searched with firstname and lastname and I get results in the grid. I have to get the response time, in how many seconds did i get the results ? </p>

<p>Can some please direct me on how to do ? </p>
",https://stackoverflow.com/questions/54133132/is-there-a-way-to-find-response-times-of-search-results-in-load-testing,"['performance', 'testing', 'load', 'loadrunner']",56,False,0,2
VSTS Load Testing - How to read runsettings dynamically of currently running load test file,"<p>I am running a load test from some xxx.loadtest file and would like read the active run settings section of this xxx.loadtest load test file dynamically for various properties such as Description, Test Iterations, Run Duration etc. Please note that the file name xxx.loadtest keep on changing as I run different set of load tests. So I cannot hardcode that in my code. Is there a easy way to get the full file path of this load test file without having to hardcode the file name ?</p>
",https://stackoverflow.com/questions/54356333/vsts-load-testing-how-to-read-runsettings-dynamically-of-currently-running-loa,"['c#', 'visual-studio', 'performance-testing', 'load-testing']",367,False,0,1
How to fix &quot;couldn&#39;t connect to localhost:8080 during jmeter load testing using docker-compose&quot;,"<p>I have below docker-compose file </p>

<pre><code>version: '3.7'
services:
  tomcat:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: tomcat
    ports:
      - ""8080:8080""
      - ""9910:9910""
    healthcheck:
      test: [""CMD"", ""/healthcheck.sh""]
      interval: 1m
      timeout: 10s
      retries: 3
      start_period: 1m
    environment:
      JAVA_OPTS: ""-Xms1g -Xmx1g -Dcom.sun.management.jmxremote
                   -Dcom.sun.management.jmxremote.port=9910
                   -Dcom.sun.management.jmxremote.rmi.port=9910
                   -Dcom.sun.management.jmxremote.ssl=false
                   -Dcom.sun.management.jmxremote.authenticate=false
                   -Djava.rmi.server.hostname=localhost""
  jmxtrans:
    build:
      context: .
      dockerfile: Dockerfile.jmxtrans
    container_name: jmxtrans
    environment:
      JMX_HOST: localhost
      JMX_PORT: 9910
      STATSD_HOST: dashboard
      STATSD_PORT: 8125
    links:
      - tomcat
      - dashboard

  dashboard:
    image: kamon/grafana_graphite
    container_name: dashboard
    ports:
      - ""80:80""
      - ""81:81""
      - ""8125:8125/udp""
      - ""8126:8126""

  master:
    build:
      context: .
      dockerfile: JMeter/apache-jmeter-master/Dockerfile
    container_name: master
    tty: true
    ports:
      - ""60000""

  slave:
    build:
      context: .
      dockerfile: JMeter/apache-jmeter-slave/Dockerfile
    tty: true
    ports:
      - ""50000""
      - ""1099""

</code></pre>

<p>my slave Jmeter docker file looks like this: </p>

<pre><code>FROM basejmeter:latest

# Ports to be exposed from the container for JMeter Slaves/Server
EXPOSE 1099 50000

# Application to run on starting the container
# to avoid key store error rmi_keystore.jks not found added Jserver.rmi.ssl.disable=true

ENTRYPOINT $JMETER_HOME/bin/jmeter-server \
                        -Dserver.rmi.localport=50000 \
                        -Dserver_port=1099 \
                        -Jserver.rmi.ssl.disable=true
</code></pre>

<p>and my master looks like this</p>

<pre><code>FROM basejmeter:latest

# Ports to be exposed from the container for JMeter Master
EXPOSE 60000
</code></pre>

<p>now I wrote this small shell script for testing Jmeter using Non-GUI command line. but for somereason my jmeter output xml shows</p>

<blockquote>
  <p>rm=""Non HTTP response message: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)""</p>
</blockquote>

<p>Anyone has any idea what's and why i'm getting this error? however grafana, jmxtrans and tomcat works perfectly fine. </p>

<p>Shellscript looks like this and this is modified script to address the issue here: </p>

<pre><code>docker build -t basejmeter -f JMeter/Dockerfile .
docker-compose build --no-cache &amp;&amp; docker-compose up -d --scale slave=5

get_slave_IP=$(docker inspect -f '{{.Name}} {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) | grep slave | awk -F' ' '{print $2}' | tr '\n' ',' | sed 's/.$//')
get_master_IP=$(docker inspect -f '{{.Name}} {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) | grep master | awk -F' ' '{print $2}' | tr '\n' ',' | sed 's/.$//')
get_master_port_details=$(docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -&gt; {{(index $conf 0).HostPort}} {{end}}' $(docker ps  -f ""name=master"" -aq))
get_master_port=$(echo ""${get_master_port_details%/*}"" | tr -d [:blank:])

working_dir=$(docker exec -it -w /jmeter/apache-jmeter-5.1.1/ master pwd | tr -d '\r')

for file_name_with_path in ./JMeter/JMXTest/*.jmx
do
    echo $file_name_with_path
    file_name=$(basename $file_name_with_path)
    file_name=""${file_name##*/}""
    name=""${file_name%.*}""
    echo $file_name
    echo $name
    eval ""docker cp ${file_name_with_path} master:${working_dir}/""
    eval ""docker exec -it master /bin/bash -c 'mkdir -p $working_dir/$name &amp;&amp;
                                                                             cd $working_dir/$name &amp;&amp;
                                                                             $working_dir/bin/jmeter -n -t \
                                                                             $working_dir/$file_name -R$get_slave_IP \
                                                                             -j ./$name.log \
                                                                             -l ./$name.xml \
                                                                             -Jjmeter.save.saveservice.output_format=xml \
                                                                             -Jjmeter.save.saveservice.response_data=true \
                                                                             -Jjmeter.save.saveservice.samplerData=true \
                                                                             -Jserver.rmi.ssl.disable=true \
                                                                             -JnumberOfThreads=1 \
                                                                             -Djava.rmi.server.hostname=${get_master_IP} \
                                                                             -Dclient.rmi.localport=60000' ""

    eval ""docker cp master:$working_dir/$name ./JMeter/Results/""
done
</code></pre>

<p>The scripts and evrything works, only problem is JMeter throwing me under the bus saying can't connect thru localhost.  I tried normal docker with scaling slave upto 5, then tried to connect these using master container. It works fine but for some reason docker-compose  shows me otherwise. Anyhelp !!!</p>
",https://stackoverflow.com/questions/55497263/how-to-fix-couldnt-connect-to-localhost8080-during-jmeter-load-testing-using,"['shell', 'tomcat', 'jmeter', 'docker-compose', 'jmxtrans']",517,False,1,0
JMETER 4. 0 | JMeter distributed load testing | jp@gc - Stepping Thread Group | Slave Machine | CPU Utilization,"<ol>
<li><p>When executing the script Slave 1 CPU Utilization = 40% and Slave 2 CPU Utilization = 4%. Only one slave machine is generating load i.e Slave 1 but Slave 2 is not generating load. How do I ensure both the machine generates load with respect the threads 50 running on each machine. While the report show that total 100 threads are completed.</p></li>
<li><p>How to know a slave is generating load.</p></li>
</ol>

<p>Configuration:  </p>

<pre><code>Master(My own machine)
2 slaves machines
Thread: jp@gc - Stepping Thread Group
Users=50
Hold Load=300sec
</code></pre>
",https://stackoverflow.com/questions/54442291/jmeter-4-0-jmeter-distributed-load-testing-jpgc-stepping-thread-group,"['jmeter', 'performance-testing', 'jmeter-4.0', 'distributed-testing']",76,True,1,1
"While performing load testing on SharePoint app, it shows error for WinAuth, how to resolve it?","<p>I have recorded the script in JMeter, and while validating it, it is throwing an error for the winauth/sso, how to resolve it. my app has oAuth and me have to authenticate it. </p>

<p>I'm running the script for WinAuth, it gets highlighted in red color and under Response Body, it is displaying ""Unauthorized""
I have added the HTTP Cookie Manager (check CookieManager.save.cookies=true in jmeter.properties), HTTP Authorization Manager.[images are added down the below for verification purpose]</p>

<ul>
<li>I'm not able to view the Token_id also.</li>
</ul>

<p><strong>Images:</strong>  </p>

<p><strong><em>1. showing winAuth sso error</em></strong>  </p>

<p><a href=""https://i.stack.imgur.com/wzu4c.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/wzu4c.png"" alt=""showing winAuth sso error""></a></p>

<p><strong><em>2. showing all parameters with its respective values.</em></strong></p>

<p><a href=""https://i.stack.imgur.com/UVYny.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/UVYny.png"" alt="" showing all parameters with its respective values.""></a></p>
",https://stackoverflow.com/questions/54211607/while-performing-load-testing-on-sharepoint-app-it-shows-error-for-winauth-how,"['sharepoint-online', 'sharepoint-2016', 'jmeter-5.0']",145,True,1,1
How to do Load Testing using Soap UI for a specific Time and Specific Thread count,"<p>I have to do load testing using <code>soapui</code> for 100 users within one hour and
calculate the <code>Transactions Per Second</code>.</p>

<p>I am using:<br>
Threads: 10<br>
Strategy:simple<br>
Test delay: 1000<br>
Random : 0.5<br>
Limit: 10 Runs per thread</p>

<p>And in settings I have ticked ""based on actual Time passed"".</p>

<p>I am using runs per second, because then the count will be 100 (10 threads
* 10 runs per thread)</p>

<p><strong>Question1:</strong> How can I make these users run for an hour?</p>

<p><strong>Question2:</strong> Is the TPS visible in SoapUI correct? I mean when I have selected ""actual Time passed"" is TPS calculated with the waiting time? If so how can I get the TPS without waiting time?</p>

<p>Thanks!</p>
",https://stackoverflow.com/questions/54879330/how-to-do-load-testing-using-soap-ui-for-a-specific-time-and-specific-thread-cou,"['load', 'soapui', 'performance-testing', 'load-testing']",238,False,0,1
"Load Testing Response message: Non HTTP response message: Truncated chunk (expected size: 13,913,367; actual size: 878,527)","<p>Thread Name: Thread Group 1-5
Sample Start: 2019-10-17 10:46:49 IST
Load time: 25806
Connect Time: 28
Latency: 22280
Size in bytes: 1291
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 1291
Sample Count: 1
Error Count: 1
Data type (""text""|""bin""|""""): text
Response code: Non HTTP response code: org.apache.http.TruncatedChunkException
Response message: Non HTTP response message: Truncated chunk (expected size: 13,913,367; actual size: 878,527)</p>

<p>HTTPSampleResult fields:
ContentType: text/html; charset=UTF-8
DataEncoding: UTF-8</p>

<p>This Error Shows i Dont know about this issue lindly help me..</p>
",https://stackoverflow.com/questions/58425490/load-testing-response-message-non-http-response-message-truncated-chunk-expec,['jmeter'],1948,False,0,1
Load testing using VSTS. Searching from a CSV file and then clicking on the first element,"<p>I have a question regarding a performance/load testing scenario.</p>

<p>I understand that it's best practice not to combine more than one variable when doing a load test. However, the management is insisting on it. </p>

<p>Scenario: User searches for an item and then clicks on a specific item from the search results to bring up details in an i-frame. </p>

<p>Validation: Make sure the search is performant and the details open in the i-frame as expected- without crashing the i-frame. </p>

<p>I have recorded the scenario using VSTS. I am using a CSV file for the search criteria. However, how do I configure the test to click on the ""first"" element in the search results every time? </p>

<p>Thank you for very much, I apologize if I missed anything. </p>
",https://stackoverflow.com/questions/54578817/load-testing-using-vsts-searching-from-a-csv-file-and-then-clicking-on-the-firs,"['c#', 'visual-studio', 'csv', 'performance-testing', 'load-testing']",24,False,0,1
"Go - In a high performance http client for load testing, how can I block/ignore all cookies?","<p>I'm creating tools for my company to load test our system. I currently have tools written in Python but I'm exploring options using Go, hoping for efficiency and performance gains as we need to generate millions of users simultaneously (many thousands per box with many boxes) and every little bit counts. My users primarily make http calls against our system and I need a very lightweight and efficient http client.</p>

<p>For our Python tools, a previous employee had some functions manually dealing with and reusing Sockets and totally ignoring cookies. While I'm totally new to Go, I've compared multiple Go networking implementations so far and I've been happy with CPU and network usage so I don't think I need to go so far as to manually manage sockets yet, but RAM usage has been multiple times higher than in our Python solution. I have a suspicion that's due to these Go implementations automatically maintaining and managing cookies as other higher level Python libraries did the same thing. I'm looking for ways to have my http client disable/block/ignore all cookies to either solve my problem or rule out cookies as my memory bloat culprit.</p>

<p>I've used a simple <code>net/http</code> <code>Get()</code> call, <a href=""http://github.com/valyala/fasthttp"" rel=""nofollow noreferrer"">fasthttp</a> to create a client that reuses varying numbers of connections per hosts (1000+), and creating a <code>net/http.Client</code> with and without a custom <code>Transport</code>. I've used <code>pprof</code> to memory profile each. Without overriding cookies, my http.Client flow seems to have the least memory bloat and fasthttp has the most. I've tried to go through all their docs and searched SO and the web and can't find anything that explicitly ignores or blocks cookies. Closest I found was fasthttp's <code>DelAllCookies()</code> for both requests and responses, but calling those had no discernible effect on memory usage. I've looked into <code>net/http/cookiejar</code> to set a custom jar and policy for <code>net/http.Client</code> but that looks more like a way to store and use cookie data, which I don't want to do, and I don't see a way to set a policy to ignore cookies altogether.</p>

<pre class=""lang-golang prettyprint-override""><code>// fasthttp implementation
var httpClient *fasthttp.Client

func init() {
    httpClient = &amp;fasthttp.Client{
        MaxConnsPerHost: 1000,
    }
}

func fastHTTPClient(method string, uri string) (string, time.Duration) {

    req := fasthttp.AcquireRequest()
    req.Header.SetMethod(method)
    req.SetRequestURI(uri)

    resp := fasthttp.AcquireResponse()

    startTime := time.Now()
    err := httpClient.DoTimeout(req, resp, targetDuration)
    elapsed := time.Since(startTime)

    if err != nil {
        log.Panicln(err)

        body := string(resp.Body())
        req.Header.DelAllCookies()
        resp.Header.DelAllCookies()
        fasthttp.ReleaseRequest(req)
        fasthttp.ReleaseResponse(resp)
        return body, elapsed
    }

    body := string(resp.Body())
    req.Header.DelAllCookies()
    resp.Header.DelAllCookies()
    fasthttp.ReleaseRequest(req)
    fasthttp.ReleaseResponse(resp)
    return body, elapsed
}

// net/http implementation
var tr = &amp;http.Transport{}
var client = &amp;http.Client{Transport: tr}

func netGet(method string, uri string) (string, time.Duration) {

    startTime := time.Now()
    resp, err := client.Get(uri)
    elapsed := time.Since(startTime)

    if err != nil {
        log.Panic(err)

        body, err2 := ioutil.ReadAll(resp.Body)
        resp.Body.Close()

        if err2 != nil {
            log.Panic(err)
        }

        return string(body), elapsed
    }

    body, err := ioutil.ReadAll(resp.Body)
    resp.Body.Close()

    if err != nil {
        log.Panicln(err)
    }

    return string(body), elapsed
}
</code></pre>

<p>Again, these work functionally but when I run thousands of these concurrently using <a href=""https://github.com/myzhan/boomer"" rel=""nofollow noreferrer"">boomer</a> I end up using multiple GB of RAM vs 1-1.5 GB with our Python Sockets implementation. How can I block/ignore cookies or otherwise be sure cookies aren't what's eating up all my memory?</p>
",https://stackoverflow.com/questions/57579537/go-in-a-high-performance-http-client-for-load-testing-how-can-i-block-ignore,"['performance', 'go', 'cookies', 'load-testing']",2896,True,1,2
I am not able to record place order activity and perform load testing on randomly generated URL,"<p>at the time of recording activity I am recording complete activity till place order, but when run the same action for 5 times, in result everytime its hitting same URL that has been generated while recording, but because of it place order not recording to my admin account.</p>
",https://stackoverflow.com/questions/57848947/i-am-not-able-to-record-place-order-activity-and-perform-load-testing-on-randoml,['jmeter'],75,False,-1,1
Load testing IdentityServer4 gives Exception: Correlation failed when trying to request signin-oidc route after sing in,"<p>We are moving our application to IdentityServer4 for our application, I’m trying to write a load test using Visual Studio and can run it manually on my local machine through the browser, but when I record a webtest and try to reply it, I’m getting Exception: Correlation Failed Unknown location Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler.HandleRequestAsync().</p>

<p>I’m assuming this is because I’m missing the .AspNetCore.Correlation.oidc cookie when making the request to signin-oidc route.  Visual studio extracts the code, id_token, scope, state, and session state when logging in .  Not sure how to debug this cause it works with my browser, it just won’t work when running a webtest through visual studio.  Could this be a proxy issue when doing the recording?</p>

<p>Any advice would be helpful, not finding much info on load testing signing in with Identity Server 4 with Visual Studio Load Testing.</p>

<p>I've tried extracting nonce and state from the initial request to put in the request to sign-oidc, but visual studio already is already extracting the same data from there Hidden fields.</p>

<p>Here is the request that fails, it's on the web server that hosts the signin-oidc</p>

<p><a href=""https://i.stack.imgur.com/fHap2.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/fHap2.png"" alt=""enter image description here""></a></p>

<p>Response:
<a href=""https://i.stack.imgur.com/1JuB4.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/1JuB4.png"" alt=""enter image description here""></a></p>

<p>Here is the webtest request</p>

<p><a href=""https://i.stack.imgur.com/2017Z.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/2017Z.png"" alt=""enter image description here""></a></p>

<p>Its using the values from the previous response from the authorize/callback, I also made sure they were the same values, the only one that wasn't the exact same where the scopes which had a + sign instead of spaces, so I set the encoding to false to make sure they were the same.</p>

<p><a href=""https://i.stack.imgur.com/3xO0S.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/3xO0S.png"" alt=""enter image description here""></a></p>

<p>Since the browser is doing the post from the previous request when going in manually, and the webtest isn't doing it from the browser, its just making a post request, that could be messing something up?</p>

<p>When I go through fiddler manually, that request has the following cookie that the webtest doesn't have:</p>

<p><a href=""https://i.stack.imgur.com/0dfZf.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/0dfZf.png"" alt=""enter image description here""></a></p>

<p>That's prob why the webserver is throwing the error, but I'm not sure where that cookie gets set and if you can even do it through a webtest.</p>
",https://stackoverflow.com/questions/56469855/load-testing-identityserver4-gives-exception-correlation-failed-when-trying-to,"['c#', 'identityserver4', 'load-testing', 'webtest']",685,True,0,1
How can I open the Chrome browser in mobile mode using the Selenium webdriver for load testing in JMeter?,"<p>I want to open a URL in the Chrome browser, but in mobile mode during my load test in JMeter. I am using Selenium scripts. Below is my Selenium script</p>

<pre><code>var pkg = JavaImporter(org.openqa.selenium,org.openqa.selenium.support.ui) // Import Java Selenium packages
var Thr = JavaImporter(java.lang.Thread) // Import Thread sleep packages
var wait = new pkg.WebDriverWait(WDS.browser,30) // Import WebDriverWait Package

WDS.sampleResult.sampleStart()

WDS.browser.get('https://xyz=${__urlencode(${token})}');

WDS.sampleResult.sampleEnd()
</code></pre>

<p>Below is the Java class I have created in <code>BeanShell</code> Preprocessor in <code>Jmeter</code> to use Chromeoptions to open Chrome in mobile mode, but I don't know how I can call it in <code>webdriver</code> above and I am doing it correctly or not:</p>

<pre><code>public class page {

    public static void main (String args[]) {
        String device = ""Samsung Galaxy S4"";
        //options.ChromeOptions options = new ChromeOptions();
        ChromeOptions options = new ChromeOptions();
        options.EnableMobileEmulation(device);
        IWebDriver driver = new ChromeDriver(options);
    }
}
</code></pre>
",https://stackoverflow.com/questions/58772489/how-can-i-open-the-chrome-browser-in-mobile-mode-using-the-selenium-webdriver-fo,"['java', 'selenium-webdriver', 'jmeter', 'selenium-chromedriver', 'chrome-options']",3413,True,1,1
Is there a way to do grpc bidirectional streaming application load testing to send 100req/sec to a server,"<p>I was testing a grpc bidrectional streaming application which is in below link and it is working fine.</p>

<p><a href=""https://github.com/melledijkstra/python-grpc-chat"" rel=""nofollow noreferrer"">https://github.com/melledijkstra/python-grpc-chat</a></p>

<p>Do we have any tool to trigger bidirectional streaming say 100 requests per second as we use wrk/jmeter for rest/http APIs? </p>

<p>I tried exposing the API (run) into rest and triggering 100 req/sec using wrk tool. Seems to be not a proper approach. </p>

<pre><code>    @app.route('/', methods=['GET'])
   def send_message(self, event):
        """"""
        This method is called when user enters something into the textbox
        """"""
        message = self.entry_message.get()
        if message is not '':
            n = chat.Note()
            n.name = self.username
            n.message = message
            print(""S[{}] {}"".format(n.name, n.message))
            self.conn.SendNote(n)
</code></pre>

<p>Complete code is the actual grpc chat application: <a href=""https://github.com/melledijkstra/python-grpc-chat"" rel=""nofollow noreferrer"">https://github.com/melledijkstra/python-grpc-chat</a> </p>

<p>I wanted to do a load testing of a grpc bidirectional streaming application to send 100 requests per second to a server. Is there a possible approach to it?</p>

<p>This is to test that my server can handle the enough load with this chat functionality.</p>
",https://stackoverflow.com/questions/55372066/is-there-a-way-to-do-grpc-bidirectional-streaming-application-load-testing-to-se,['grpc'],331,False,1,0
Why the label of http request is repeating or duplicating in load testing results in jmeter on non-gui mode,"<p>Recored and ran the script in non-gui mode in jmeter..in the aggregate result http request label is getting duplicated more than 10 times for every http request</p>
",https://stackoverflow.com/questions/57099893/why-the-label-of-http-request-is-repeating-or-duplicating-in-load-testing-result,"['jmeter', 'automated-tests', 'load-testing']",530,False,0,1
JMETER 4. 0 | JMeter distributed load testing | jp@gc - Stepping Thread Group | 504 Gateway Time Out | Non HTTP response code | Assertion Failed,"<p>Scenario taking into account login user->Navigate to Page 01->hold the user for 5min->Logout user</p>

<p>Scripted as below:</p>

<ul>
<li>Navigate to the Home page </li>
<li>The user is logged in (Assertion for login verification over some text on the dashboard)</li>
<li>Dashboard appears</li>
<li>Navigate to Page 01 (Assertion Page 01 content)</li>
<li>Logout (Constant Timer added for 5min and Assertion for logout to verify home page is redirected)</li>
</ul>

<p>Step Up thread configuration has been kept this way:</p>

<p><a href=""https://i.stack.imgur.com/PUmrF.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/PUmrF.jpg"" alt=""Stepping Thread Group thread/ramp-up configuration""></a></p>

<p>For achieving this scenario distributed system was implemented as follows:</p>

<ul>
<li>Master(My own machine 8 GB Ram and Core 2 Duo Processor)</li>
<li><p>2 slaves machines (8 GB Ram each and I7 and Core 2 Duo Processors)</p></li>
<li><p>Thread: jp@gc - Stepping Thread Group</p></li>
</ul>

<p>The server has been configured as below:</p>

<ul>
<li>2 EC2 Instance (16 GB Ram each)</li>
<li>1 Load Balancer</li>
<li>1 RDS Instance</li>
</ul>

<p>Note: Instance is auto scaled at 60% CPU Utilization.</p>

<p>While executing the script for 500 concurrent users using stepping thread on Non-GUI mode, below list of error is appearing on the dashboard report</p>

<ul>
<li>504/Gateway Time-out</li>
<li>Non HTTP response code: java.net.SocketException/Non HTTP response message: Connection reset</li>
<li>Assertion as logout failed </li>
</ul>

<p>Could someone help me out to know why these are appearing? <strong>when I checked the Load Balancer 504/Gateway Time-out was not appearing there?</strong> I was trying to track these error but was not able to figure it out why these along with other two errors are appearing. When the same script is executed for 10 users not error is appearing on GUI mode. </p>

<p>While the same script when executed for <strong>100-250 concurrent user it works pretty well</strong> when no such above error. </p>
",https://stackoverflow.com/questions/54663093/jmeter-4-0-jmeter-distributed-load-testing-jpgc-stepping-thread-group,"['jmeter', 'performance-testing', 'load-testing', 'jmeter-4.0', 'distributed-testing']",298,False,1,1
I have got an requirement for load testing . i was given both avg. and peak TPH. also avg and peak user load,"<p>I have to do performance testing of an ecommerce application where i got the details needed like Avg TPH and peak TPH . also Avg User and Peak User.</p>

<p>for e.g., an average of 1000 orders/hour, the peak of 3000 orders/hour during the holiday season, expected to grow to 6000 orders/hour next holiday season.</p>

<p>I was afraid which value to be considered for current users and TPH for performing load test for an hour.
also what load will be preferable foe stress testing and scalability testing. 
It would be a great helpful not only for the test point of view but also will help me in understanding the conceptually which would help me in a great deal down the lane.</p>
",https://stackoverflow.com/questions/57477627/i-have-got-an-requirement-for-load-testing-i-was-given-both-avg-and-peak-tph,"['jmeter', 'performance-testing', 'load-testing', 'loadrunner', 'stress-testing']",354,True,0,2
Is it possible to define how much load should run on each slave machine when running jmeter with docker for distributed load testing,"<p>I am trying to run <code>Jmeter</code> with docker for distributed load testing, but I am not able to define load for each slave.</p>
",https://stackoverflow.com/questions/56018638/is-it-possible-to-define-how-much-load-should-run-on-each-slave-machine-when-run,"['docker', 'jmeter']",26,False,1,1
Web Load Testing,"<p>I'm quite new at the load testing. I want to know what is best tool for web load testing ? I am currently using Blazemeter and Jmeter for load testing. I am using a blazemeter plugin and then, when I record some actions using a blazemeter, I import jmx script into the jmeter. I have read about load testing many things, but I want to ask you if it is the right way to make a Web load testing. 
What I mean in load testing, maybe I have some misunderstandings in load testing. I want to calculate how fast the website loaded with all of data. For example, login page. Calculate login time and in how much time did it redirect me inside. </p>

<p>Sorry if I have questioned it in the wrong way.</p>
",https://stackoverflow.com/questions/56755230/web-load-testing,"['jmeter', 'load-testing', 'blazemeter']",95,True,-1,1
Real Browser based load testing or Browser level user testing,"<p>I am currently working on multiple Load testing tool such as Jmeter, LoadRunner and Gatling.
All above tool works upon protocol level user load testing except TrueClient protocol offered by LoadRunner. Now something like real browser testing is in place which is definitely high on resources consumption tools such as LoadNinja and Flood.IO works on this novel concept.</p>

<p>I have few queries in this regards</p>

<ol>
<li>What will be the scenario where real browser based load testing fits perfectly?</li>
<li>What real browser testing offers which is not possible in protocol based load testing?</li>
</ol>

<p>I know, we can use Jmeter to Mimic browser behavior for load testing but is there anything different that real browser testing has to offer?</p>
",https://stackoverflow.com/questions/59208062/real-browser-based-load-testing-or-browser-level-user-testing,"['browser', 'jmeter', 'performance-testing', 'simulation', 'loadrunner']",943,True,1,3
How to provide test data to a locustfile in Python for load testing,"<p>I have built an API using flask and want to do load testing using locust.
Can anyone help me how to create it and do a load testing</p>
",https://stackoverflow.com/questions/58851633/how-to-provide-test-data-to-a-locustfile-in-python-for-load-testing,"['python', 'api', 'testing', 'load', 'locust']",491,True,-3,1
Suggestions for alternative to Azure cloud load testing,"<p>Can anyone please suggest an alternative to cloud-based load testing (free/open-source). Since the load testing feature would be deprecated on azure in a few months, what are people in the market opting for besides AWS. </p>

<p>Thanks</p>
",https://stackoverflow.com/questions/59198956/suggestions-for-alternative-to-azure-cloud-load-testing,"['azure', 'jmeter', 'jmeter-plugins', 'azure-pipelines-release-pipeline']",703,False,0,2
Oauth Jmeter Load testing,"<p>I am performing the Jmeter load testing. Our application is on Oauth authentication. How can i logging using Jmeter so that we can perform load testing on our application.
Right now we are not able to set parameters on ""HTTP Authorization Manager"" for login.</p>
",https://stackoverflow.com/questions/55042426/oauth-jmeter-load-testing,"['http', 'jmeter']",100,True,-2,1
How to integrate selenium java code into apache meter?,"<p>I'm new at using Apache Jmeter , i want to use Apache Jmeter for doing load testing , I've created java code using selenium , i want to integrate my java code into apache jmeter for doing load testing for my application.</p>

<p>I've installed Jmeter , then i'm unable to proceed further even after searching on Google for steps.</p>

<pre><code>public static void main(String arg[]) {
    String ChromDriver = GeneralUtils.readConfig(""ChromeDiver"");
    ChromeOptions options = new ChromeOptions();
    options.addArguments(""start-maximized"");
    options.addArguments(""disable-infobars"");
    WebDriver browser = new ChromeDriver(options);
    Login(browser);
    Perform(browser);
    Logut(browser);
}
</code></pre>

<p>Now when run on eclipse , its just for one user. I want to do for bulk users. So is either any to export this project via jar or java then do load testing using Apache Jmeter.</p>
",https://stackoverflow.com/questions/56044191/how-to-integrate-selenium-java-code-into-apache-meter,"['java', 'selenium', 'jmeter', 'load-testing']",61,True,-1,3
Jmeter loadtesting with nginx,"<p>I have done jmeter load testing and it was working fine.
Now i am doing jmeter load testing with ngnix by configuring two server details .</p>

<p>I am testing my application by giving the 1000 concurrent users with nginx url.</p>

<p>Sometimes it was working and sometimes not.
Why it is behaving like that??</p>
",https://stackoverflow.com/questions/54397288/jmeter-loadtesting-with-nginx,"['nginx', 'jmeter']",694,False,1,1
SmackException$NoResponseException in jmeter when try to login,"<p>We are developing chat application.For that application, i have to do load testing on XMPP server using JMeter. So refer this site.<a href=""https://www.blazemeter.com/blog/xmpp-load-testing-the-ultimate-guide/"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/xmpp-load-testing-the-ultimate-guide/</a> As per the site, connected with server successfully.But when i try to login.But facing org.jivesoftware.smack.SmackException$NoResponseException.How do i proceed by overcome this issue?</p>
",https://stackoverflow.com/questions/57899993/smackexceptionnoresponseexception-in-jmeter-when-try-to-login,"['jmeter', 'xmpp', 'ejabberd', 'jmeter-plugins']",201,False,0,1
Docker for Load testing,"<p>I wanted to use docker for JMeter distributed Load testing environment. I would like to know if there are any disadvantages, especially the impact on load-testing using containers wrt latency, network  issues ,memory as when we use docker containers as Load generator environment.
Kindly share your ideas / links if any .</p>

<p>Thanks much in advance.</p>
",https://stackoverflow.com/questions/58927555/docker-for-load-testing,"['docker', 'jmeter', 'containers', 'jmeter-plugins']",2252,True,1,2
Restart a pod on different node from a pod in Kubernetes,"<p>I have deployed a spring boot application on a pod(pod1) on a node(node1). I have also deployed JMeter on another pod(pod2) on a different node(node2). I am trying to perform automated load testing from pod2. To perform load testing, I require to restart the pod1 for each test cases. How do I restart pod1 from pod2?</p>
",https://stackoverflow.com/questions/57672546/restart-a-pod-on-different-node-from-a-pod-in-kubernetes,"['kubernetes', 'jmeter', 'performance-testing', 'load-testing', 'gcloud']",2161,True,1,3
What is the difference between local system(One Master - Zero Slave) and Master-slave system - Script execution in jmeter ? How it differs,"<p>Could someone help me to understand the Difference of running the load testing using local System and setting up master-slave system ? How it differs ? what is the best practice to do load testing on server. </p>

<p>If we are setting up master-slave do both should be in same sub-network ? 
And we can generate the HTML report in Master system after running the script?</p>
",https://stackoverflow.com/questions/58146059/what-is-the-difference-between-local-systemone-master-zero-slave-and-master,"['jmeter', 'performance-testing', 'load-testing']",46,True,0,1
Issue in performance when load testing using azure application gateway,"<p>I'm facing a big difference in load testing results when running the load testing using JMeter to access the system using the Azure application gateway vs access the backing server directly.</p>

<p>My Current Setup is:
+ Azure Application Gateway with SSL Offloading
+ WAF Enabled
+ OWASP 3.0 Rule set enabled with ""no"" excluded or added rules</p>

<p>Below are my trials:</p>

<ul>
<li><p>All pointers through the internet point to an issue in firewall and rule set ""like using OWASP 3.0 rule set for example"", while this seems to enhances the situation, but there is still a big difference too.</p></li>
<li><p>Increasing SKU sizes and instance count is indifferent too, we tried to increase SKU to large and instance count up to 30, but no difference in performance</p></li>
<li>Disabling the WAF provides better load testing numbers, but not the same as accessing the backend server directly.</li>
</ul>

<p>Noting that we perform the load testing from a jump box VM within the same virtual network.</p>

<p>What are the steps needed to get the same results using the application gateway as accessing the backing server directly</p>
",https://stackoverflow.com/questions/56096656/issue-in-performance-when-load-testing-using-azure-application-gateway,"['azure', 'azure-application-gateway']",703,False,0,0
Attach the DotTrace Performance profiler with Visual Studio Load Testing,"<p>Is there, Any way I can attach the DotTrace performance profiler with Visual studio Load testing project. I am checking the load testing of the ASP.NET Web Application. I am trying to create stress test and trying to do more analysis. I am just curious that is there any way there we can attach DotTrace performance profiler with the Visual Studio Load test and check the details of the Load test.</p>
",https://stackoverflow.com/questions/55418804/attach-the-dottrace-performance-profiler-with-visual-studio-load-testing,"['asp.net', 'memory', 'dottrace']",1323,True,1,2
How to centralize the load testing setup for multiple virtual/physical machines,"<p>I have a highly scalable web service that is deployed to kubernetes. I want to heavily load test it with thousands of threads.</p>

<p>I was using <strong>jmeter, Taurus, jmeter-maven-plugin</strong> for load testing my service. I also tried using distributed testing with Jmeter, but the configuration is painful, no static Ip address.</p>

<p>I am looking for ideas to make the setup of load testing environment easy and can centralize the setup process.</p>
",https://stackoverflow.com/questions/55655309/how-to-centralize-the-load-testing-setup-for-multiple-virtual-physical-machines,"['docker', 'kubernetes', 'jmeter', 'load-testing']",50,False,1,0
How to allow profile.default_content_setting_values.media_stream_camera for all windows,"<p>I am doing load testing for particular URL in Selenium where in between of flow it ask for Camera permission. 
Now i have added this code-></p>

<pre><code>ChromeOptions options=new ChromeOptions();
        Map&lt;String, Object&gt; prefs=new HashMap&lt;String,Object&gt;();
        prefs.put(""profile.default_content_setting_values.media_stream_camera"", 1);
        //1-Allow, 2-Block, 0-default
        options.setExperimentalOption(""prefs"",prefs);
</code></pre>

<p>Now when i run this for load testing, let say same 10 flow running simultaneously at same time, so only visible browser passes the allow for camera, rest 9 browserwhich are running at backgroud does not cater to this.
How can i give input so all 10 browser will cater to allow notifications?</p>
",https://stackoverflow.com/questions/55141446/how-to-allow-profile-default-content-setting-values-media-stream-camera-for-all,"['selenium', 'testing', 'notifications', 'load-testing']",1024,False,1,0
Can we use JMeter to test Oracle ERP suite?,"<p>I have to do performance/load testing of Oracle EBS application. Can I use Jmeter for the same?</p>
",https://stackoverflow.com/questions/54766817/can-we-use-jmeter-to-test-oracle-erp-suite,"['oracle', 'performance', 'testing', 'jmeter', 'load']",876,False,0,1
Is it possible to define how much load should run on each slave machine when running jmeter with docker for distributed load testing,"<p>I am trying to run <code>Jmeter</code> with docker for distributed load testing, but I am not able to define load for each slave.</p>
",https://stackoverflow.com/questions/56018638/is-it-possible-to-define-how-much-load-should-run-on-each-slave-machine-when-run,"['docker', 'jmeter']",26,False,1,1
Jmeter load testing in SPA,"<p>I am beginner in Load testing and I am doing load testing using JMeter on a single page web application. The issue which I am facing right now that as you know  in SPA there is a single URL and page contains multiple tabs, how I can switch between the tabs using JMeter. You can see my test plan in below image.
<a href=""https://i.stack.imgur.com/YnUU4.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/YnUU4.png"" alt=""enter image description here""></a></p>

<p>I Know I have little knowledge, any link or guidelines are welcome as there is a limited information on google regarding SPA.</p>
",https://stackoverflow.com/questions/55941735/jmeter-load-testing-in-spa,"['testing', 'jmeter', 'automated-tests', 'single-page-application', 'performance-testing']",1326,True,0,1
How can testing a ASP.NET using Integrated Windows Authentication web app with LOCUST or GATLİNG,"<p>İ want to write load testing asp.net web app using gatling or locus but this app use windows authentication..</p>

<p>How can ı do that .. Thank you. </p>
",https://stackoverflow.com/questions/54904656/how-can-testing-a-asp-net-using-integrated-windows-authentication-web-app-with-l,"['testing', 'performance-testing', 'windows-authentication', 'gatling', 'locust']",141,False,2,0
WSO2 APIM gives HTTP Status code 429 - Too Many Request,"<p>I am running WSO2 APIM 2.1.0 , I am setting Tier Availability to Unlimited . Still getting 429 too many request error while doing load testing.</p>

<p><a href=""https://i.stack.imgur.com/HWbzp.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/HWbzp.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/54484883/wso2-apim-gives-http-status-code-429-too-many-request,"['wso2-api-manager', 'http-status-code-429']",1084,False,0,2
Can jmeter be used to load test native desktop applications?,"<p>We have a wintop application written in Java mainly. Can we use Apache jmeter to do load testing of 300 users for desktop application?</p>
",https://stackoverflow.com/questions/54006359/can-jmeter-be-used-to-load-test-native-desktop-applications,['jmeter'],798,False,0,2
Is load testing is possible on iPhone app?,"<p>I want to test the reaction of app when 1000 user hit on my app. So is load testing is possible on iPhone app?</p>
",https://stackoverflow.com/questions/54905556/is-load-testing-is-possible-on-iphone-app,"['ios', 'iphone', 'load-testing']",54,False,0,1
Is this an example of Netty reading from a closed channel?,"<p>I am load testing a Netty-based project by hitting it with lots of concurrent <code>GET</code> requests.</p>

<p>Under heavy load, I am getting many examples of this:</p>

<pre><code>WARNING: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.io.IOException: Connection reset by peer
    at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
    at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
    at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
    at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:233)
    at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
    at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:358)
    at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:247)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1147)
    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347)
[snip]
</code></pre>

<p>I understand that the error message is telling me that the last element of my pipeline is not handling this <code>IOException</code>.  I'm interested in preventing the error in the first place.</p>

<p>Am I correct in inferring that this means that for whatever reason Netty is trying to <em>read</em> from a closed channel?  Does that mean that my load testing tool has closed the socket to which it has written things like request headers and so on while Netty is trying to read from it, and Netty is therefore throwing this exception?</p>

<p>Given that I see this only under heavy load, does this mean that (for example) my event loop is too busy to actually ""answer the phone"" when the load testing tool ""calls""?  If so, why does it try to read from the channel at all?</p>
",https://stackoverflow.com/questions/58274091/is-this-an-example-of-netty-reading-from-a-closed-channel,"['java', 'netty']",1193,True,1,1
Perform load test in bot framework,"<p>I am developing a bot using. Net bot framework and using direct line channel.</p>

<p>What is the step step guideline for load testing a bot?</p>
",https://stackoverflow.com/questions/56003013/perform-load-test-in-bot-framework,"['c#', 'botframework', 'azure-language-understanding']",843,False,0,2
jmeter(5.0) load testing and reports generation,"<p>I have done load testing with jmeter and my jmeter version is 5.0.</p>

<p>Can you please help me how to generate the reports of the results.</p>
",https://stackoverflow.com/questions/54230063/jmeter5-0-load-testing-and-reports-generation,"['jmeter', 'jmeter-plugins', 'jmeter-5.0']",1518,True,1,2
"How to do load test for grpc services, Any sample code will be appreciated","<p>I am having trouble load testing gRPC services. Is there any way or tool to do that?</p>
<p>I tired Jmeter but looks like it does not support.</p>
<pre><code>{
  &quot;space_id&quot;: &quot;3e9202b2-6d65-4651-96e5-af80ce51df70&quot;,
  &quot;external_id&quot;: &quot;5678&quot;,
  &quot;anonymous&quot;: true
}
</code></pre>
",https://stackoverflow.com/questions/57247792/how-to-do-load-test-for-grpc-services-any-sample-code-will-be-appreciated,"['grpc', 'grpc-java']",1019,True,0,1
Understanding RPS on Locust summary result,"<p>I want to understand the meaning of RPS on locust. I don't get what exactly the meaning of RPS is, and how to understand it on load testing.</p>

<p>I try to load testing some HTTP request, when I start with client:100 and hatch rate:10, say on 50 user I got like 60 RPS, and at 100 I got 90 RPS and after I continue the load test for around 30 second I got my RPS on 270</p>

<p>Please kindly tell me what exactly is RPS, and why it increases significantly after reach maximum client.</p>
",https://stackoverflow.com/questions/57422703/understanding-rps-on-locust-summary-result,"['performance-testing', 'load-testing', 'locust']",1095,False,2,0
Load testing deprecated in Visual Studio?,"<p>Came across this blog => <a href=""https://devblogs.microsoft.com/devops/cloud-based-load-testing-service-eol/"" rel=""nofollow noreferrer"">https://devblogs.microsoft.com/devops/cloud-based-load-testing-service-eol/</a> saying that - When Visual Studio 2019 Preview 1 shipped in early December, Microsoft announced the plans to deprecate the load test functionality in Visual Studio. Visual Studio 2019 will be the last version of Visual Studio with web performance and load test features."". Have below questions about this:- </p>

<ol>
<li>Does this mean the existing load tests written using the perf testing agents will not work any in Visual Studio? </li>
<li>Or does that mean engineers will not be able to use load testing features in Visual Studio 2019 onwards? </li>
</ol>
",https://stackoverflow.com/questions/59169936/load-testing-deprecated-in-visual-studio,"['visual-studio', 'load-testing']",2687,True,0,1
Converting VSTS web tests to JMeter scripts,"<p>We have web performance tests (scripts) developed in Visual Studio 2017 for load testing.  Now the requirement has come to replace VSTS and have JMeter for load testing. </p>

<p>I want to avoid developing scripts in JMeter from scratch and for that I'm looking for a way to convert VS web tests to JMeter scripts. Even if it's converting to other extension like .har and then to .jmx (JMeter), that's fine. There are online tools from BlazeMeter and others but our scripts are confidential and that's why I'm looking for a desktop solution.  </p>

<p>I read somewhere that fiddler exports to .jmx, but I couldn't find that.</p>
",https://stackoverflow.com/questions/56683790/converting-vsts-web-tests-to-jmeter-scripts,"['jmeter', 'azure-devops']",983,False,2,1
Loadrunner web_custom_request analog in jmeter,"<p>I am pretty new to load testing and whole web thing.
Is there any way to implement things that this Vugen Loadrunner code do</p>

<pre><code>     web_custom_request(""action"", 
      ""{URL}"", 
      ""Method=POST"", 
      ""Resource=0"", 
      ""RecContentType=text/html"", 
      ""Referer={refURL}"", 
      ""Snapshot=t57.inf"", 
      ""Mode=HTTP"", 
      ""Body={PARAMETER}"",
      LAST);
</code></pre>

<p>In jmeter? The {PARAMETER} is just a String.</p>
",https://stackoverflow.com/questions/57812381/loadrunner-web-custom-request-analog-in-jmeter,"['jmeter', 'performance-testing', 'loadrunner']",364,True,0,3
Retry http requests in k6,"<p>I have a python <code>requests</code>-based suite of API tests that automatically retry every request with a 408 or 5xx response. I'm looking at re-implementing some of them in k6 for load testing. Does <code>k6</code> have support for retrying http requests? </p>
",https://stackoverflow.com/questions/57344334/retry-http-requests-in-k6,"['request', 'k6']",1109,True,4,2
Which is better between HTTP Proxy Server and third party tool for recording in Jmeter,"<p>I am using Jmeter for performance and load testing. For recording, the Jmeter has HTTP proxy and outside Jmeter there have some third party tools like <a href=""http://www.badboy.com.au/"" rel=""nofollow noreferrer"">Badboy Software</a>, <a href=""https://www.blazemeter.com/"" rel=""nofollow noreferrer"">Blazemeter</a> etc.. Which should I choose for better?</p>
",https://stackoverflow.com/questions/56230966/which-is-better-between-http-proxy-server-and-third-party-tool-for-recording-in,"['jmeter', 'jmeter-plugins']",46,False,0,1
Gatling (and JMeter) struggling to maintain Requests per Second (RPS)?,"<p>I'm load testing an API. We have a problem - our response times are too large, sometimes close to a minute. We want to be at the range of under a second. But that is besides the point.</p>

<p>When I use a load testing tool, such as Gatling, the RPS sent seem to hit a halt. As you can see in the attached image, there is an initial 15 seconds of 20RPS, and suddenly almost no RPS at all. How can I maintain constant RPS? Probably it has to do with the poor response times, but what if I don't care about the response times? I just want the RPS constant.</p>

<p>My initial tests with JMeter also show similar behaviour.</p>

<p><a href=""https://i.stack.imgur.com/M5LLI.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/M5LLI.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/55136069/gatling-and-jmeter-struggling-to-maintain-requests-per-second-rps,"['java', 'api', 'jmeter', 'performance-testing', 'gatling']",2850,True,1,2
How to pass login parameters in the artillery.io request,"<p>I have started using 'Artillery.io for load testing. Here how to pass authentication parameters like <code>email, password</code> in the <code>load-test.yml</code>, the below throws <code>401</code> an unauthorised error while sending the request. Could someone guide me on how to pass authentication parameters like <code>email and password</code></p>

<pre><code>config:
  target: 'https://test-url.com'
  phases:
    - duration: 70
      arrivalRate: 10
  defaults:
    headers:
      Content-Type: application/json

scenarios:
  - flow:
    - get:
        url: /findAMembership
        headers:
          Content-Type: application/json
    - post:
        url: /auth
        body:  '{""username"":""test@test.com"", ""password"": ""some_testpassword""}'
        headers:
          Content-Type: application/json
</code></pre>
",https://stackoverflow.com/questions/58513705/how-to-pass-login-parameters-in-the-artillery-io-request,['artillery'],6255,True,1,2
IP SPOOFING concept in Distributed load testing Jmeter,"<p>I am trying to invoke distributed load testing with jmeter (Which have 3 ips in it) and it is running in only one ip. Will other ips also run in the background or they won't even start?</p>
",https://stackoverflow.com/questions/59330738/ip-spoofing-concept-in-distributed-load-testing-jmeter,"['jmeter', 'ip', 'master-slave', 'spoofing']",341,False,0,1
&#39;%20/&#39; is getting added to sample request URL,"<p>I am performing load testing with Jmeter with below parameter.</p>

<pre><code>UDV: 
Name: base_url
Value: clinical-web2.com

Server Name or IP: ${base_url}
Path:   /
</code></pre>

<p>Now Sample is getting failed and after observing 'View Result Tree' listener url in Reuest tab is: '<a href=""https://clinical-web2.com/%20/"" rel=""nofollow noreferrer"">https://clinical-web2.com/%20/</a>'</p>

<p>Don't know why '%20/' is getting added in url.</p>
",https://stackoverflow.com/questions/58264968/20-is-getting-added-to-sample-request-url,['jmeter'],520,True,2,1
How can i use Jmeter as a normal browser?,"<p>I am using jmeter for performance testing 
but jmeter only accept JS call they can not pass request like URL.
so my question is that how can i user jmeter as a normal browser for 
load testing ?</p>
",https://stackoverflow.com/questions/59191546/how-can-i-use-jmeter-as-a-normal-browser,"['testing', 'jmeter', 'automated-tests', 'performance-testing', 'load-testing']",1083,False,0,1
"On load testing my api for 2500 per second, following error came","<p>I have an api that reads count of rows in a table and then saves a particular data in that table.Db is mysql. On load testing my api for 2500 hits per second, communication link error came.Error is:</p>

<pre><code>
2019-08-01 18:28:26:478 [91b1bc2f1259de35/91b1bc2f1259de35] [http-nio-80-exec-149] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 5,235 milliseconds ago.  The last packet sent successfully to the server was 5,235 milliseconds ago.
2019-08-01 18:28:26:482 [94a83dcaff8f64bf/94a83dcaff8f64bf] [http-nio-80-exec-160] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,962 milliseconds ago.  The last packet sent successfully to the server was 2,962 milliseconds ago.
2019-08-01 18:28:26:500 [17b1c2d0e038602d/17b1c2d0e038602d] [http-nio-80-exec-174] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,824 milliseconds ago.  The last packet sent successfully to the server was 1,824 milliseconds ago.
2019-08-01 18:28:26:478 [c18b3bcfe063c93c/c18b3bcfe063c93c] [http-nio-80-exec-170] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,072 milliseconds ago.  The last packet sent successfully to the server was 2,072 milliseconds ago.
2019-08-01 18:28:26:478 [06da8ae0c3f60282/06da8ae0c3f60282] [http-nio-80-exec-168] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,125 milliseconds ago.  The last packet sent successfully to the server was 2,125 milliseconds ago.
2019-08-01 18:28:26:500 [67ccdca788431e36/67ccdca788431e36] [http-nio-80-exec-179] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,893 milliseconds ago.  The last packet sent successfully to the server was 1,893 milliseconds ago.
2019-08-01 18:28:26:478 [1f8fe32ba4ea4133/1f8fe32ba4ea4133] [http-nio-80-exec-127] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 766 milliseconds ago.  The last packet sent successfully to the server was 1,286 milliseconds ago.
2019-08-01 18:28:26:500 [690697c5aff7d7ba/690697c5aff7d7ba] [http-nio-80-exec-169] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,523 milliseconds ago.  The last packet sent successfully to the server was 1,523 milliseconds ago.
2019-08-01 18:28:26:500 [a77288b5347b2112/a77288b5347b2112] [http-nio-80-exec-177] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,903 milliseconds ago.  The last packet sent successfully to the server was 1,903 milliseconds ago.
2019-08-01 18:28:26:500 [61a6e4bbeedcdea1/61a6e4bbeedcdea1] [http-nio-80-exec-156] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,414 milliseconds ago.  The last packet sent successfully to the server was 2,414 milliseconds ago.
2019-08-01 18:28:26:478 [a99d138ae705007d/a99d138ae705007d] [http-nio-80-exec-191] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,538 milliseconds ago.  The last packet sent successfully to the server was 1,538 milliseconds ago.
2019-08-01 18:28:26:478 [9f5c21bbd7707b46/9f5c21bbd7707b46] [http-nio-80-exec-161] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,348 milliseconds ago.  The last packet sent successfully to the server was 2,348 milliseconds ago.
2019-08-01 18:28:26:500 [fbebe6351a9a638f/fbebe6351a9a638f] [http-nio-80-exec-158] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,775 milliseconds ago.  The last packet sent successfully to the server was 2,775 milliseconds ago.
2019-08-01 18:28:26:482 [e9b3c26cf69f2c13/e9b3c26cf69f2c13] [http-nio-80-exec-164] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,615 milliseconds ago.  The last packet sent successfully to the server was 2,615 milliseconds ago.
2019-08-01 18:28:26:478 [e0101aee3c7a1bb4/e0101aee3c7a1bb4] [http-nio-80-exec-172] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,951 milliseconds ago.  The last packet sent successfully to the server was 1,951 milliseconds ago.
2019-08-01 18:28:26:500 [d9655f8dd1f9e70f/d9655f8dd1f9e70f] [http-nio-80-exec-186] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 1,842 milliseconds ago.  The last packet sent successfully to the server was 1,842 milliseconds ago.
2019-08-01 18:28:26:482 [c6fa3fdf7ec1dc3e/c6fa3fdf7ec1dc3e] [http-nio-80-exec-153] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 3,874 milliseconds ago.  The last packet sent successfully to the server was 4,608 milliseconds ago.
2019-08-01 18:28:26:482 [8d46ab20a948fc91/8d46ab20a948fc91] [http-nio-80-exec-167] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure

The last packet successfully received from the server was 2,755 milliseconds ago.  The last packet sent successfully to the server was 2,755 milliseconds ago.
2019-08-01 18:28:26:500 [e01cf78be1b030d7/e01cf78be1b030d7] [http-nio-80-exec-154] ERROR o.h.e.jdbc.spi.SqlExceptionHelper.logExceptions 142 - Communications link failure
</code></pre>
",https://stackoverflow.com/questions/57315524/on-load-testing-my-api-for-2500-per-second-following-error-came,"['mysql', 'spring-boot', 'load-testing']",74,True,0,1
OAuth Login with Locust Load Testing,"<p>I am load testing an application using Locust. It has an IP address rather than a web address, which is say 192.24.130.8080/app. </p>

<p>For the user to log in, the user is redirected to KeyCloak authentication service, that looks something like this: </p>

<p><a href=""http://192.24.130.8080/auth/realms/project/protocol/openid-connect/auth?client_id=v5_prod&amp;redirect_uri=http://192.24.130.8080/app/&amp;response_type=code&amp;scope=openid#/"" rel=""nofollow noreferrer"">http://192.24.130.8080/auth/realms/project/protocol/openid-connect/auth?client_id=v5_prod&amp;redirect_uri=http://192.24.130.8080/app/&amp;response_type=code&amp;scope=openid#/</a></p>

<p>I have the following code, using the username and log in password. However, when I change the password in the code (to the wrong password), the load testing runs just the same. This indicates to me that I am just hitting this re-direct page and not getting past it. </p>

<pre><code>from locust import HttpLocust, TaskSet, task


class UserBehavior(TaskSet):
    def on_start(self):
        """""" on_start is called when a Locust start before any task is scheduled """"""
        self.login()

    def on_stop(self):
        """""" on_stop is called when the TaskSet is stopping """"""
        self.logout()

    def login(self):
        self.client.post(""/app/&amp;response_type=code&amp;scope=openid#/"", {""user"":""user100"", ""password"":""sun""})

    def logout(self):
        self.client.post(""/app/&amp;response_type=code&amp;scope=openid#/"", {""user"":""user100"", ""password"":""sun""})


    @task(3)
    def app(self):
        self.client.get(""/index/#/"")

    @task(1)


      def app2(self):
            self.client.get(""/account/932507"")

    class UserWait(HttpLocust):
        task_set = UserBehavior
        #1000 ms = 1 second
        min_wait = 2000
        max_wait = 3000
</code></pre>

<p>I'm not sure how to get pass this Keycloak oauth. Any help is greatly appreciated!</p>
",https://stackoverflow.com/questions/57592253/oauth-login-with-locust-load-testing,"['python', 'locust']",4568,False,2,1
How to put .HAR file exported from Chrome to import into JMeter?,"<p>I export all the network calls from chrome to an hAR file format which I again want to import into JMeter to use the network call for load testing. </p>

<p>How can I do it? 
I have heard about floor.io, it isn't working anymore.</p>
",https://stackoverflow.com/questions/58587320/how-to-put-har-file-exported-from-chrome-to-import-into-jmeter,"['jmeter', 'har']",6592,True,2,1
What does org.apache.http.conn.HttpHostConnectException error mean in jMeter summary results?,"<p>I am doing a load testing on a website and after starting my test on remote devices and recording the responses on a log file, I am getting this response on some requests:</p>

<p>Non HTTP response code: org.apache.http.conn.HttpHostConnectException</p>

<p>What does it mean?</p>
",https://stackoverflow.com/questions/54394183/what-does-org-apache-http-conn-httphostconnectexception-error-mean-in-jmeter-sum,['jmeter'],4486,True,2,3
Error. Recording shinyapps.io apps is not supported,"<p>I am testing out the load tester from shiny and I am having trouble recording a session. From this youtube video from Rstudio <a href=""https://resources.rstudio.com/webinars/load-testing-shiny-alan-dipert"" rel=""nofollow noreferrer"">https://resources.rstudio.com/webinars/load-testing-shiny-alan-dipert</a> , the instructor mentions grabbing the url of the deployed application. I have tried both the url from my server/browser application and the url from my deployed application on shinyapps io. I have also tried running it on Rstudio Cloud and I am redirected to a login which then shoots me to a 404 error. I have tried getting the URL from Mozzila, Microsoft Edge, and Chrome without luck.</p>

<pre><code>library(shinyloadtest)
#server application
record_session(""http://127.0.0.1:3793/"") 
Error in curl::curl_fetch_memory(appUrl, handle = h) : 
  Failed to connect to 127.0.0.1 port 3793: Connection refused

#deployed shiny app
record_session("" https://finance.shinyapps.io/PrivateApp/"")#this is not the real url
Error in .subset2(public_bind_env, ""initialize"")(...) : 
  Recording shinyapps.io apps is not supported
</code></pre>

<p>I am looking to find the right url to add to record_session so I can begin load testing my application. Thank you.</p>
",https://stackoverflow.com/questions/55193488/error-recording-shinyapps-io-apps-is-not-supported,"['shiny', 'rstudio', 'shinydashboard', 'shinyapps']",441,True,0,1
How to extract particular Value from json response in Bean shell post processing and export it into CSV file,"<p>I am using JMeter for load testing, each API give response in Json format. I need particular line(Particular Line) to export in CSV.</p>

<p>For e.g -> this is The Json Response </p>

<pre><code>{
  ""success"": true,
  ""data"": [
{
  ""alert_id"": ""-1"",
  ""description"": ""Get Manager info"",
  ""input"": ""{""task_tag"":""ad_manager_info"",""inputfields"":[],""tenantcode"":""rtech"",""token"":""6wdd68-9d15-46b7-641c-9595ewsd5wedsd-1554717635279"",""isdemo"":false}"",
  ""is_evidence"": ""n"",
  ""logo_path"": ""lib/log/abc.png"",
  ""name"": ""Get Manager Info"",
  ""processed"": ""y"",
  ""readstatus"": ""n"",
  ""requestid"": ""2118"",
  ""requesttime"": ""1554717797.07432"",
  ""response"": {
    ""success"": true,
    ""data"": {
      ""@odata.context"": ""https: //graph.microsoft.com/v1.0/$metadata#directoryObjects/$entity"",
      ""@odata.type"": ""#microsoft.graph.user"",
      ""id"": ""bdg12-1257-XXXX-XXXX-4a8656b00171"",
      ""businessPhones"": [

      ],
      ""displayName"": ""MIC"",
      ""givenName"": ""MIC"",
      ""jobTitle"": ""Senior"",
      ""mail"": null,
      ""mobilePhone"": null,
      ""officeLocation"": null,
      ""preferredLanguage"": null,
      ""surname"": ""JANY"",
      ""userPrincipalName"": ""ABC@YAHoo.onmicrosoft.com""
    },
    ""error"": """",
    ""status"": ""completed"",
    ""errorpath"": """",
    ""displaymessage"": """",
    ""sessionexpired"": false
  },
  ""responseid"": ""2119"",
  ""responsetime"": ""1554717802.52754"",
  ""task_handler"": ""ActiveDirectory"",
  ""tasktag"": ""ad_manager_info"",
  ""username"": ""ScottMcCall""
},

]
</code></pre>

<p>I need ""description"" ""responsetime"" only.</p>

<p>This is the code i am using</p>

<pre><code>var a = ctx.getPreviousResult().getResponseDataAsString();
log.info(""Value of A is --&gt; "" + a);

log.info(""Value of Resposne is --&gt;"" + IDvalue)
   f = new FileOutputStream(""E:/Result.csv"");


p = new PrintStream(f);

FileWriter fr = new FileWriter(""E:/Result.csv"", true);

String b = a.description

log.info(""Value of B is "" + b)
</code></pre>
",https://stackoverflow.com/questions/55571540/how-to-extract-particular-value-from-json-response-in-bean-shell-post-processing,"['java', 'jmeter-5.0']",117,False,0,0
AWS Glue request limit,"<p>Have some lambdas that request schemas form AWS Glue. Would like to know if there is a limit of requests to AWS Glue after which Glue cannot handle it? Load testing in other words.
Have not found anything about it in official documentation.</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/54288038/aws-glue-request-limit,"['amazon-web-services', 'aws-glue']",2217,False,0,2
ELB cross-AZ balancing DNS resolution with Sticky sessions,"<p>I am preparing for AWS certification and came across a question about ELB with sticky session enabled for instances in 2 AZs. The problem is that  requests from a software-based load tester in one of the AZs end up in the instances in that AZ only instead of being distributed across AZs. At the same time regular requests from customers are evenly distributed across AZs.
The correct answers to fix the load tester issue are:</p>

<ul>
<li>Forced the software-based load tester to re-resolve DNS before every
request;</li>
<li>Use third party load-testing service to send requests from
globally distributed clients.</li>
</ul>

<p>I'm not sure I can understand this scenario. What is the default behaviour of Route 53 when it comes to ELB IPs resolution? In any case, those DNS records have 60 seconds TTL. Isn't it redundant to re-resolve DNS on every request? Besides, DNS resolution is a responsibility of DNS service itself, not load-testing software, isn't it?
I can understand that requests from the same instance, with load testing software on it, will go to the same LBed EC2, but why does it have to be an instance in the same AZ? It can be achieved only by Geolocation- or Latency-based routing, but I can't find anything in the specs whether those are the default ones.</p>
",https://stackoverflow.com/questions/54955507/elb-cross-az-balancing-dns-resolution-with-sticky-sessions,"['amazon-web-services', 'dns', 'amazon-route53', 'amazon-elb']",968,True,2,3
How can I resolve a 403 response code in Jmeter?,"<p>I am working with Jmeter to do load testing. I created a simple login script using BlazeMeter. Then I imported the file into Jmeter.</p>

<p>Whenever I try to run the script, it fails. The first problem I encounter here is that in my first http request I receive a 403 response code:
<a href=""https://i.stack.imgur.com/5K7Zx.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/5K7Zx.jpg"" alt=""enter image description here""></a></p>

<p>I added a cookie manager and an authorization manager to try and solve this but it is not working. I think the problem is with cors in the manager header as 403 code means that it received the petition but the access to it was denied. Do you have any suggestions on how to resolve this? I tried adding post processors but couldn't make them work. Maybe because I am a newbie to jmeter and load testing. Idk.</p>
",https://stackoverflow.com/questions/58716349/how-can-i-resolve-a-403-response-code-in-jmeter,['jmeter'],6755,False,0,1
Is it a good approach to use Transaction controller in JMeter?,"<p>We are performing load testing using JMeter, we have to calculate the time taken by each page, but each page has multiple requests. Should we add transaction controller to find out the overall time taken by each page or should we calculate time taken by each sample in JMeter?</p>
",https://stackoverflow.com/questions/55142166/is-it-a-good-approach-to-use-transaction-controller-in-jmeter,"['jmeter', 'performance-testing', 'load-testing', 'distributed-transactions']",1742,False,1,1
Load testing on an API using python,"<p>I am currently writing python script for load testing an API.I want to check how many requests can an API take at a time.The API is for registration so I have to send unique parameters everytime.</p>

<p>Is there anyway I could achieve it through locust or any other way?</p>

<p>Any help would be appreciated.</p>

<p>This is my code for registration of single user.</p>

<pre><code>def registration:
    URL = ""ip""
    PARAMS = {'name':'test','password':'test1','primary_email':'test667@gmail.com','primary_mobile_number':'9999999999','country_abbrev':'US'} 
    r = requests.post(url = URL,params = PARAMS,auth=HTTPDigestAuth('user', 'pass')) 
    response = r.text 
    print response
</code></pre>
",https://stackoverflow.com/questions/57668512/load-testing-on-an-api-using-python,"['python', 'load-testing', 'locust']",16191,True,10,4
How to validate if a process under test is running when running load test using JMeter,"<p>I am establishing websocket connection  using Websocket sampler to  the service and sending messages,I have to check whether the service running or crashed during load testing using JMeter</p>

<p>I have gone through OS sampler,but didn't get the proper articles on how to check the process running</p>
",https://stackoverflow.com/questions/58218083/how-to-validate-if-a-process-under-test-is-running-when-running-load-test-using,"['jmeter', 'jmeter-plugins']",374,True,0,1
Running distributed JMeter test on Azure DevOps within build pipeline,"<p>I need to do distributed load testing in Azure with JMeter.</p>

<p>I don't see how to proceed to do it:</p>

<ul>
<li>Using an approach similar to this <a href=""https://github.com/Azure/azure-quickstart-templates/tree/master/elasticsearch-jmeter"" rel=""noreferrer"">one</a></li>
<li>Using JMeter core distributed testing, I would need to setup 1 master and slave nodes, but I don't see how to do it in a pipeline as I would need to start multiple vms</li>
</ul>
",https://stackoverflow.com/questions/55318835/running-distributed-jmeter-test-on-azure-devops-within-build-pipeline,"['azure', 'jmeter', 'azure-devops', 'performance-testing', 'jmeter-plugins']",2862,True,9,2
How can I perform Load testing with Locust using PyTest?,"<p>What do you think is it possible to perform Load testing using PyTest?
For example:</p>

<pre><code>import locust

class UsersTest(locust.TaskSet):

    @locust.seq_task(1)
    def api_get_task(self):
        self.client.get(""/api"", name=""GET /api"") # Самое действие

    @locust.seq_task(2)
    def api_post_task(self):
        payload = {""username"": ""user1"", ""password"": ""123456""}
        self.client.post(""/api"", data=payload, name=""POST /api"")

class SituationTest(locust.HttpLocust):

    task_set = UsersTest 
    min_wait = 1000 
    max_wait = 2000
    host = ""http://127.0.0.1:3000""
</code></pre>

<p>So here is example of 2 simple tasks for 2 urls. Into class UsersTest I have my test cases itself. Into class SituationTest I have my params.</p>

<p>So question is how to integrate this 2 classes into pytest fixtures decorators and split it between test_file.py and conftest.py?</p>
",https://stackoverflow.com/questions/55914502/how-can-i-perform-load-testing-with-locust-using-pytest,"['python-3.x', 'pytest', 'locust']",5740,True,9,2
How can I create a Kubernetes Secret with Ansible?,"<p>I'm using an Ansible JMeter Operator to do distributed load testing and am having trouble with creating a Kubernetes secret. The operator I'm modifying is <a href=""https://github.com/kubernauts/jmeter-operator"" rel=""noreferrer"">the JMeter one</a> and the additional YAML I'm adding is as below:</p>
<pre class=""lang-yaml prettyprint-override""><code>- name: InfluxDB Storage Secret
  k8s:
    apiVersion: v1
    kind: Secret
    type: Opaque
    metadata:
      name: azure-storage-account-infxluxdb-secret
      namespace: '{{ meta.namespace }}'
    stringData:
      azurestorageaccountname: 'xxxxxxx'
      azurestorageaccountkey: 'xxxxxxxxxxx'
</code></pre>
<p>Is there anything wrong with the YAML definition? I'm modifying the <em>roles/jmeter/tasks/main.yaml</em> of the role to add it into my specific namespace.</p>
",https://stackoverflow.com/questions/59203583/how-can-i-create-a-kubernetes-secret-with-ansible,"['kubernetes', 'ansible']",10867,True,9,1
parameterize a variable in selenium junit to load test a website to run on jmeter,"<p>I need to load test a website that execute XHR objects.
normal load testing can't apply in this case as the load testing looks for the server side of things and I'm interested in the client side.</p>

<p>the only thing i need to parameterize is the username to make the script run concurrently</p>

<p>I did use Katalon Recorder to get the automation code as JUnit then inputted it into selenium then exported it as a jar file  and used it in Jmeter.</p>

<p>the code works for  a single user but i  can't think of a way to get the script to run concurrently </p>

<p>package dashboard;</p>

<pre><code>import static org.junit.Assert.fail;

import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

public class Testpage {
  private WebDriver driver;
  private String baseUrl;
  private boolean acceptNextAlert = true;
  private StringBuffer verificationErrors = new StringBuffer();

  @Before
  public void setUp() throws Exception {
        System.setProperty(""webdriver.chrome.driver"", ""Path/To/chromedriver.exe"");

      WebDriver driver = new ChromeDriver(options);


    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
  }

  @Test
  public void testDashboard() throws Exception {
    driver.get(""https://test.com/newlogin"");
    driver.findElement(By.id(""UserName"")).clear();
    driver.findElement(By.id(""UserName"")).sendKeys(""Username"");
    driver.findElement(By.id(""Password"")).clear();
    driver.findElement(By.id(""Password"")).sendKeys(""Password!"");
    driver.findElement(By.xpath(""(.//*[normalize-space(text()) and normalize-space(.)='LOGIN'])[1]/following::input[3]"")).click();
    driver.get(""https://test.com"");
    for (int second = 0;; second++) {
        if (second &gt;= 60) fail(""timeout"");
        try { if (isElementPresent(By.xpath(""(.//*[normalize-space(text()) and normalize-space(.)='Italy'])[3]/following::td[4]""))) break; } catch (Exception e) {}
        Thread.sleep(1000);
    }

    driver.get(""https://test.com/1"");
    for (int second = 0;; second++) {
        if (second &gt;= 60) fail(""timeout"");
        try { if (isElementPresent(By.xpath(""(.//*[normalize-space(text()) and normalize-space(.)='Guest_Arrivals_CY'])[2]/following::span[1]""))) break; } catch (Exception e) {}
        Thread.sleep(1000);
    }

    driver.get(""https://test.com/2"");
    for (int second = 0;; second++) {
        if (second &gt;= 60) fail(""timeout"");
        try { if (isElementPresent(By.xpath(""(.//*[normalize-space(text()) and normalize-space(.)='Nov 18'])[1]/following::div[4]""))) break; } catch (Exception e) {}
        Thread.sleep(1000);
    }

    driver.get(""https://test.com/3"");
    for (int second = 0;; second++) {
        if (second &gt;= 60) fail(""timeout"");
        try { if (isElementPresent(By.cssSelector(""#kSXbjj &gt; svg""))) break; } catch (Exception e) {}
        Thread.sleep(1000);
    }

    driver.get(""https://test.com/4"");
    for (int second = 0;; second++) {
        if (second &gt;= 60) fail(""timeout"");
        try { if (isElementPresent(By.cssSelector(""#tGPUB &gt; svg &gt; g &gt; text""))) break; } catch (Exception e) {}
        Thread.sleep(1000);
    }

  }

  @After
  public void tearDown() throws Exception {
    driver.quit();
    String verificationErrorString = verificationErrors.toString();
    if (!"""".equals(verificationErrorString)) {
      fail(verificationErrorString);
    }
  }

  private boolean isElementPresent(By by) {
    try {
      driver.findElement(by);
      return true;
    } catch (NoSuchElementException e) {
      return false;
    }
  }

  private boolean isAlertPresent() {
    try {
      driver.switchTo().alert();
      return true;
    } catch (NoAlertPresentException e) {
      return false;
    }
  }

  private String closeAlertAndGetItsText() {
    try {
      Alert alert = driver.switchTo().alert();
      String alertText = alert.getText();
      if (acceptNextAlert) {
        alert.accept();
      } else {
        alert.dismiss();
      }`enter code here`
      return alertText;
    } finally {
      acceptNextAlert = true;
    }
  }
}
</code></pre>

<p>in its current state the pages load conservatively for a single user as soon as the element in the page gets loaded it moves on the next page and so on </p>
",https://stackoverflow.com/questions/54037824/parameterize-a-variable-in-selenium-junit-to-load-test-a-website-to-run-on-jmete,"['java', 'performance', 'selenium', 'jmeter', 'junit4']",294,False,0,1
&quot;Add -&gt; Load Test&quot; Missing from VS2019,"<p>I am trying to create a load test but the button is missing. I am able to create a performance/load test project however.</p>

<p><a href=""https://i.stack.imgur.com/T74zJ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/T74zJ.png"" alt=""Menu""></a></p>

<p>What I've done:</p>

<p><strong>VS Enterprise 2019 16.0.4</strong></p>

<ul>
<li>Search everything</li>
<li>Create empty solution w/ only tests</li>
<li>Web and Load Testing module is installed</li>
</ul>

<p><a href=""https://i.stack.imgur.com/LwJyk.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/LwJyk.png"" alt=""web performance module""></a></p>

<ul>
<li>Repair VS2019</li>
<li>Re Install VS2019</li>
</ul>
",https://stackoverflow.com/questions/56177757/add-load-test-missing-from-vs2019,"['visual-studio', 'load-testing', 'visual-studio-2019']",1484,True,0,1
"How to test performance of SharePoint app as it has user authentication functionality and it generate &quot;client-request-id, how to dynamically pass it","<p>I'm performing load testing on SharePoint and I have to test authorization as it generates client request id every time how to automate or bypass it.</p>

<p>Or another way to perform the testing on the SharePoint </p>

<p>I have recorded the script using JMeter and validating it and now it is showing error's </p>
",https://stackoverflow.com/questions/54201155/how-to-test-performance-of-sharepoint-app-as-it-has-user-authentication-function,"['sharepoint', 'sharepoint-online', 'sharepoint-2016', 'jmeter-5.0']",71,False,1,0
Java code to publish json message on multiple threads for load testing,"<p>I need help in writing java code to publish json message on multiple threads for load testing . I have my publish function written to POST the message , but how to use this POST for multiple threads .for e.g I need to publish 1000 messages on 10 threads . WorkerCount = 1000 and ThreadCount = 10 .</p>
",https://stackoverflow.com/questions/58271853/java-code-to-publish-json-message-on-multiple-threads-for-load-testing,"['java', 'multithreading']",92,False,-2,1
"JMeter random function ${__RandomString(10,abcdefghijklmnopqrstuvwxyz,)} limitation","<p>I just started performance/load testing using JMeter and I am using a JMeter funtion ""${__RandomString(10,abcdefghijklmnopqrstuvwxyz,)}"" to generate random string in my payload so I want to know the disadvantages or limitations of this function which might cause issue in future when I put thousands of requests load on my system.</p>
",https://stackoverflow.com/questions/57805152/jmeter-random-function-randomstring10-abcdefghijklmnopqrstuvwxyz-limitat,"['performance', 'jmeter', 'load-testing']",1209,False,0,1
How to get group duration value for group,"<p>I have a K6 test where load testing a flow and I'm grouping each page request. What I want to do is perform a check on each group's duration so something like </p>

<pre><code>
  group('Home page', function(){
         http.get('localhost:8080')
   });
   //something like this 
   check(group.duration, function()=&gt;{'performs check logic'})

   group('search page', function(){
    http.get('localhost:8080/Search?term=mysearch')
   })
   check(group.duration, function()=&gt;{'performs check logic'})
</code></pre>

<p>The documentation states that group emits group_duration but doesn't state how to listen for it. Not strong in JS so my apologies if this is something simple. </p>
",https://stackoverflow.com/questions/56262646/how-to-get-group-duration-value-for-group,['k6'],2270,True,3,1
Sign SAML AuthNRequest in JMeter,"<p>I try to sign plain <code>XML</code> content with private key of SP and <code>X.509</code> public certificate of the IdP to use in authentication process for load testing in <code>JMeter</code>. I found onelogin's Java SAML toolkit, but not sure how to import in a <code>Groovy</code> script. I just tried to build reproduce functionality of this webapp: <a href=""https://www.samltool.com/sign_authn.php"" rel=""nofollow noreferrer"">https://www.samltool.com/sign_authn.php</a></p>
",https://stackoverflow.com/questions/54457735/sign-saml-authnrequest-in-jmeter,"['xml', 'groovy', 'jmeter', 'saml', 'sign']",230,False,1,1
Simple hello-world app on load of 800 concurrent requests is slow (130+ms),"<p>Iv'e installed on my local machine a simple NodeJS Server (v8.16.2) with the following hello-world code snippet:</p>

<pre><code>const http = require('http');

const hostname = '127.0.0.1';
const port = 4000;

const server = http.createServer((req, res) =&gt; {
  res.send('Hello world!');
});

server.listen(port, hostname, () =&gt; {
  console.log(`Server running at http://${hostname}:${port}/`);
});
</code></pre>

<p>I'm load testing the server using 800 parallel requests via JMeter and getting an average response time of 130(+)ms.</p>

<p>Any ideas what tweaks \ configurations I might require in order to achieve a better average response time?</p>
",https://stackoverflow.com/questions/59248710/simple-hello-world-app-on-load-of-800-concurrent-requests-is-slow-130ms,"['node.js', 'performance', 'response-time']",304,True,1,1
Run same instance of an app over multiple ports?,"<p>So I built a python app in flask, and I want to do some load testing. </p>

<p>For that I want to run it over multiple ports. Currently when I do</p>

<blockquote>
  <p>flask run</p>
</blockquote>

<p>it by default runs on port 5000, but I want it to also run on 5001 and 5002.</p>

<p>How do I do that?</p>
",https://stackoverflow.com/questions/57308511/run-same-instance-of-an-app-over-multiple-ports,"['python', 'flask', 'server']",3692,True,1,2
How to launch 50 browser instances using Selenium Grid in the same machine,"<p>I need to launch 50 browser instances (IE) in a virtual machine and execute the same Testcase 50 times parallelly on those browsers. This is a kind of Load testing and I'm not sure if it's possible with selenium Grid concept. if not I would like to know another method to perform this task.</p>
",https://stackoverflow.com/questions/55264191/how-to-launch-50-browser-instances-using-selenium-grid-in-the-same-machine,"['testing', 'selenium-grid']",674,True,0,1
Load testing with Kafka and Storm,"<p>Our system takes post request and send json body to kafka topic and this topic is configured as spout for topology and topology generate output message to a kafka topic.
How i can load test this system? Number of message processed per second by system.</p>

<p>I am planning to use jmeter for load testing</p>
",https://stackoverflow.com/questions/58982753/load-testing-with-kafka-and-storm,"['performance', 'apache-kafka', 'jmeter', 'apache-storm']",655,False,-1,2
How does Jmeter hit requests to the server,"<p>How does Jmeter perform request to the server: simultaneously or queued? For example, with</p>

<pre><code>Thread 5, Ramp-Up =0, Loop Count =1
</code></pre>

<p>Will in this case all 5 threads hit the server simultaneously, or one hit first while the other four are in a queue?</p>

<p>And I'd also like to know how to do stress and load testing, and what is good ranging and outcome.</p>
",https://stackoverflow.com/questions/55760107/how-does-jmeter-hit-requests-to-the-server,"['java', 'jmeter', 'jmeter-plugins']",244,False,0,1
Got Certificate issue even after installed the Jmeter security certificate,"<p>I need to do load testing for Android app using JMeter</p>

<ul>
<li>On Mobile Device, Configured Manual Proxy settings and Installed JMeter root certificate </li>
<li>System and Mobile on Same WiFi only</li>
<li>On JMeter, Started Recording  Got Report for Mobile open, login and some pages</li>
<li>On Report, an SSL certificate error is displayed <a href=""https://i.stack.imgur.com/u6dDr.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/u6dDr.png"" alt=""enter image description here""></a></li>
</ul>

<p>Please help to solve this issue</p>
",https://stackoverflow.com/questions/58837279/got-certificate-issue-even-after-installed-the-jmeter-security-certificate,"['performance', 'jmeter', 'blazemeter']",396,True,0,1
How do we execute load test in cassandra DB using JMeter 5.1. Is there any plugins available?,"<p>I am trying to do load testing on cassandra DB. But when I check for JMeter cassandra pluggins there are 7 Cassandra Samplers in JMeter while using JMeter Pluggins installation. I have pretty good idea of the servers, keyspaces and connection</p>

<p>There is limited help in this regard and when searched for it is with the JMeter 2.9 versions.</p>
",https://stackoverflow.com/questions/57311411/how-do-we-execute-load-test-in-cassandra-db-using-jmeter-5-1-is-there-any-plugi,"['cassandra', 'jmeter', 'jmeter-plugins']",167,False,0,2
How to get JMETER Load Testing Accurately With multiple webservice (pods),"<p>I am new to JMeter Load testing. We have installed a distributed JMeter Load testing in EC2 AWS, with 1 master and 5 slaves.
So I am testing my web service endpoint (HTTP Request) in JMeter.</p>

<p><strong>Details:</strong></p>

<ol>
<li>Tested my web service and reached 1900 threads with 0% error percentage in 1 pod with 8Gi RAM.</li>
<li>Now, I deployed my web service in 2 pods (replicas) with 8Gi RAM, however it is having more than 0% error percentage even my threads was set <strong>ONLY</strong> to 2100.</li>
<li>Did check the logs, there is no error, did check the pods health it was alright, did check the Database CPU utillization and it was alright.</li>
</ol>

<p>Our expectation is that, since we have 2 pods already, it can accomodate x2 of 1900 threads (just like what happened in 1 pod).
Did I miss something to check? I hope someone could give me some light :(
It has been bugging me for 12 hours now. </p>

<p>Thank you in advance.</p>
",https://stackoverflow.com/questions/58410249/how-to-get-jmeter-load-testing-accurately-with-multiple-webservice-pods,"['kubernetes', 'jmeter', 'load-testing', 'kubernetes-pod', 'jmeter-3.2']",201,False,1,0
a service in ecs fails to find another service within the same network,"<p>I have a very simple <code>docker-compose</code> for <code>locust</code> (python package for load testing). It starts a 'master' service and a 'slave' service. Everything works perfectly locally but when I deploy it to AWS ECS a 'slave' can't find a master.</p>

<pre><code>services:
  my-master:
    image: chapkovski/locust
    ports:
      - ""80:80""
    env_file:
      - .env
    environment:
      LOCUST_MODE: master

  my-slave:
    image: chapkovski/locust
    env_file:
      - .env
    environment:
      LOCUST_MODE: slave
      LOCUST_MASTER_HOST: my-master
</code></pre>

<p>So apparently I need to refer from <code>my-slave</code> service not to <code>my-master</code> when I am on ECS. What's wrong here?</p>
",https://stackoverflow.com/questions/57897598/a-service-in-ecs-fails-to-find-another-service-within-the-same-network,"['amazon-web-services', 'docker-compose', 'amazon-ecs']",145,True,0,1
How to extract x-atmosphere-tracking-id from a string?,"<p>I am trying to extract X-Atmosphere-tracking-id from the response body.
I got the response in the following way:</p>

<pre><code>40|41be6f15-2e19-4e1d-aaff-d4b92ae47e48|0||
</code></pre>

<p>Now I want to extract only: </p>

<pre><code>41be6f15-2e19-4e1d-aaff-d4b92ae47e48
</code></pre>

<p>which is dynamically generated on every execution.</p>

<p>Also, It would be great if someone shares tips and tricks as well as reference videos/sites of load testing using JMeter for Vaading application.</p>
",https://stackoverflow.com/questions/56327466/how-to-extract-x-atmosphere-tracking-id-from-a-string,"['regex', 'jmeter', 'regex-lookarounds', 'vaadin7', 'regex-group']",243,True,-1,2
JMeter 4.0 | Distributed Testing | Threads | Dashboard Report | Active Threads Over Time,"<p>I have configured the script with below configuration for the distributed load testing. Now, when I executed the script. The dashboard report which was generated: <strong>Active Threads Over Time</strong> show x-axis ""Number of Active Threads"" to be 25 only. <strong>But according to the distributed testing setup if load testing is to performed for 50 users than on the master machine the thread is to configured to be 25 to run 25 each on the slave machines</strong></p>

<p>Now, the problem here is why didn't <strong>Active Threads Over Time</strong> show x-axis ""Number of Active Threads"" to be 50 rather than 25.</p>

<ul>
<li>Master(My own machine)</li>
<li>2 slaves machines</li>
<li>Thread: jp@gc - Stepping Thread Group</li>
<li>Number of Threads: 25</li>
</ul>

<p>So, to properly access the graph I would require to have <strong>Active Threads Over Time</strong> show x-axis ""Number of Active Threads"" to be 50 which included each slave machine active threads. How to achieve this.</p>
",https://stackoverflow.com/questions/54434482/jmeter-4-0-distributed-testing-threads-dashboard-report-active-threads-o,"['jmeter', 'performance-testing', 'jmeter-4.0', 'distributed-testing']",545,True,1,1
Reference error when running k6: regeneratorRuntime is not defined,"<p>I had k6 up and running, but now every time I try and run a test I am getting this error: ReferenceError: regeneratorRuntime is not defined.</p>

<p>I have tried installing and importing babel, which some people have suggested, but it did not work. </p>

<pre><code>import http from ""k6/http"";
import { check } from ""k6"";

async function registerHandlers() {
    const dataForBody = 'client_id=LoadTesting&amp;grant_type=client_credentials&amp;' +
      `scope=${encodeURI('StitchApi')}&amp;` +
      `client_secret=${encodeURI(process.env.REACT_APP_CLIENT_SECRET)}`;
    const messageHeaders = {
      'Content-Type': 'application/x-www-form-urlencoded',
    };
    axios({
      method: 'post',
      url: process.env.REACT_APP_STITCH_AUTH_URL,
      headers: messageHeaders,
      data: dataForBody,
    }).then((response) =&gt; {
        return response;
    }).catch((error) =&gt;
      global.console.log('axios error: ', error)
    )
  }
// const queries = JSON.parse(open(""./easygraphql-load-tester-queries.json""));
const url = ""https://mywebsite.net/Api/GraphQL/"";
const authorization = registerHandlers();
console.log(""AUTH!!!!!!"", authorization);
const payload = JSON.stringify({
    query: `
    {
        student(id: ""5asdfasdfasdfasdf"") {
        name
        }
    }
    ` });
const params = {
    headers: {
        ""authorization"": ""asdfasdfasdfasdfasdfasdfasdf"",
        ""content-type"": ""application/json"",
    }
}

export default function () {
    // console.log('query: ', queries);
    let res = http.post(url, payload, params);
    check(res, {
        ""status is 200"": (r) =&gt; r.status === 200,
        ""is authenticated"": (r) =&gt; r.json().authenticated === true,
        ""is correct user"": (r) =&gt; r.json().user === ""user"",
        ""caption is correct"": (r) =&gt; r.html(""h1"").text() == ""Example Domain"",
    });
};
</code></pre>

<p>I just want my load testing to work!</p>

<p>EDIT: </p>

<p>I am using 
    <code>""@babel/core"": ""^7.4.0"",</code></p>

<p>and my babel.rc file looks like: </p>

<pre><code>{
  ""presets"": [ ""es2015"", ""stage-0"" ]
}
</code></pre>
",https://stackoverflow.com/questions/57273656/reference-error-when-running-k6-regeneratorruntime-is-not-defined,"['reactjs', 'testing', 'load-testing', 'k6']",2476,True,3,1
Error 500/OK in my jmeter load test and Apdex. What is the meaning of 500/OK?,"<p>Im load testing a microsft crm portal so after my load test, i extracted the logs and found out that I encountered a  500/OK error. If I may ask what is 500/OK error? Is this a valid defect of the application that I'm testing or is it a jmeter based defect?</p>

<p>Thank you :-)<a href=""https://i.stack.imgur.com/WWZ7H.png"" rel=""nofollow noreferrer"">errors encountered</a></p>
",https://stackoverflow.com/questions/56943812/error-500-ok-in-my-jmeter-load-test-and-apdex-what-is-the-meaning-of-500-ok,"['jmeter', 'performance-testing', 'jmeter-4.0', 'apdex']",106,False,0,1
gatling on gradle: NoClassDefFoundError: scala/Serializable,"<p>Following a couple of online tutorials, I am trying to include some load testing in my gradle build. I am getting this error when executing gradle loadTest. I use Java 12 (sourceCompatibility 11 configured in build.gradle)</p>

<p>Relevant plugins:</p>

<pre><code>apply plugin: ""scala""
implementation('org.scala-lang:scala-library:2.13.0')
testCompile(""io.gatling.highcharts:gatling-charts-highcharts:3.2.1"")
</code></pre>

<p>gradle task:</p>

<pre><code>task loadTest(type: JavaExec) {
  dependsOn testClasses
  description = ""load test with Gatling""
  group = ""Load Test""
  classpath = sourceSets.test.runtimeClasspath
  main = ""io.gatling.app.Gatling""
  args = [
          ""--simulation"", ""com.skios.ms.authentication.test.MainSimulation"",
          ""--results-folder"", ""${buildDir}/gatling-results"",
          ""--bodies-folder"", sourceSets.test.resources.srcDirs.toList().first().toString() + ""/gatling/bodies"",
  ]
}
</code></pre>

<p>Test class:</p>

<pre><code>package com.skios.ms.authentication.test

import scala.language.postfixOps
import io.gatling.core.Predef._
import io.gatling.http.Predef._

import scala.concurrent.duration._

class MainSimulation extends Simulation {

  val httpConf = http.baseUrl(""https://MYAPI.COM/api/v1"") 
  val scn = scenario(""Sample"")
    .exec(http(""request1"")
      .get(""/authentication/get-token""))
    .pause(100)
  setUp(scn.inject(rampUsers(20) during (5 seconds)).protocols(httpConf))
}
</code></pre>

<p>gradle result:</p>

<pre><code>Starting a Gradle Daemon (subsequent builds will be faster)

&gt; Task :compileTestScala

Pruning sources from previous analysis, due to incompatible CompileSetup.

&gt; Task :loadTest FAILED
Exception in thread ""main"" java.lang.NoClassDefFoundError: scala/Serializable
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
        at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
        at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
        at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        at com.typesafe.scalalogging.StrictLogging.$init$(Logging.scala:39)
        at io.gatling.app.Gatling$.&lt;init&gt;(Gatling.scala:35)
        at io.gatling.app.Gatling$.&lt;clinit&gt;(Gatling.scala)
        at io.gatling.app.Gatling.main(Gatling.scala)
Caused by: java.lang.ClassNotFoundException: scala.Serializable
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 13 more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':loadTest'.
&gt; Process 'command '/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
5 actionable tasks: 5 executed
</code></pre>

<p>I have no Scala experience so I'm pretty lost. Any ideas? Thanks.</p>
",https://stackoverflow.com/questions/57817714/gatling-on-gradle-noclassdeffounderror-scala-serializable,"['gradle', 'gatling']",4308,True,0,1
How to use latency of a service deployed on Kubernetes to Scale the deployment?,"<p>I have a simple spring boot application deployed on Kubernetes on GCP. The service is exposed to an external IP address. I am load testing this application using JMeter. It is just a http <code>GET</code> request which returns <code>True</code> or <code>False</code>.</p>

<p>I want to get the latency metrics with time to feed it to HorizontalPodAutoscaler to implement custom auto-scaler. How do I implement this?</p>
",https://stackoverflow.com/questions/58447094/how-to-use-latency-of-a-service-deployed-on-kubernetes-to-scale-the-deployment,"['kubernetes', 'google-cloud-platform', 'prometheus', 'latency', 'google-cloud-stackdriver']",600,True,3,2
gradlew gatlingRun doesn&#39;t run any test,"<p>I am trying to perform a load testing with gradle-gattling, below are my <code>build.gradle</code> and my <code>BasicSimulation.scala</code></p>

<pre><code>plugins {
    id ""com.github.lkishalmi.gatling"" version ""3.0.2""
}
repositories {
    mavenCentral()
}
apply plugin: 'scala'
dependencies {
    testCompile 'junit:junit:4.12'
    compile 'org.scala-lang:scala-library:2.11.8'
}

gatling {
    simulations = {
        include ""**/predictors/*.scala""
    }
}

gatlingRun {
    systemProperties 'endpoint': ""${endpoint}""
}

</code></pre>

<p>I put the BasicSimulation.scala in the <code>src/gatling/predictors</code> folder.</p>

<pre><code>package predictors

import io.gatling.http.Predef._
import io.gatling.core.Predef._
class BasicSimulation extends Simulation {
  val httpConf = http.baseURL(""http://localhost:8000/"")
  val scn = scenario(""Basic Simulation"")
    .exec(http(""request_1"")
      .get(""api/chemocare/gatling/""))
    .pause(5)
  setUp(
    scn.inject(atOnceUsers(80))
  ).protocols(httpConf)
}
</code></pre>

<p>I set up my rest-api and test it with postman. It works fine. 
However, when I run <code>gradlew gatlingRun</code>, it seems like none of the test is executed and no report is generated. I got this message instead:</p>

<pre><code>BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
</code></pre>

<p>How do I execute and register the test?</p>
",https://stackoverflow.com/questions/57725732/gradlew-gatlingrun-doesnt-run-any-test,"['scala', 'performance', 'gradle', 'load', 'gatling']",3734,True,9,4
Concurrent Thread and Ultimate Thread Group and Performance Bench mark,"<p>While understanding concept of Concurrent thread and ultimate thread group, i am confused to understand result of summary/aggregate report while running concurrent thread or ultimate thread group .For example if i have 200 user and ramp up time 60 sec then i didn't see all sampler request as 200 sample after completing execution successfully but only few sampler request have 200 sample. when i use normal thread group then i always got thread count same for each sampler request after completing execution .</p>

<p>for realistic load testing with more user , could you please suggest me which thread group should prefer.</p>

<p>Could you please provide valuable guidance with some valuable link/book and also share me standard performance bench mark criteria or key parameter detail while doing load testing.(if any bench load parameter value does not meet standard then we can say that there is a performance issue)</p>

<p><a href=""https://i.stack.imgur.com/YHHR5.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/YHHR5.png"" alt=""current ""></a>
Thanks for giving valuable time in advance.</p>

<p>Thanks</p>

<p>amit</p>

<p><a href=""https://i.stack.imgur.com/GavpI.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/GavpI.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/59101620/concurrent-thread-and-ultimate-thread-group-and-performance-bench-mark,"['jmeter', 'jmeter-plugins', 'jmeter-4.0', 'jmeter-5.0']",586,False,0,1
Load Testing a C# function,"<p>I want to do load testing (CPU utilization and Memory Usage) for a <code>C#</code> unit test case which accepts some random string. This random string should be a new value on load. Also, the load should be based on concurrent requests. Is there any tool which can help me achieve this?</p>

<p>MSTest is used in the code as a testing framework.</p>
",https://stackoverflow.com/questions/57214473/load-testing-a-c-function,"['c#', 'performance', 'testing']",557,True,1,1
Elasticsearch HTTP 500 Error {&quot;message&quot;:null},"<p>I am encountering error from _bulk endpoint but I can't solve since the error message sent by ES is null. I am calling the _bulk endpoint via ES REST API. This only happens intermittently.</p>

<p>I already tried replicating it via load testing but I still am not able to do so. </p>

<p>Here is a snippet of the stacktrace I am getting:</p>

<p><code>HTTP/1.1 500 Server Error{""message"":null}    at org.elasticsearch.client.RestClient$1.completed(RestClient.java:354) at org.elasticsearch.client.RestClient$1.completed(RestClient.java:343) at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119)   at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:177)    at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:436) at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:326)  at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)    at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)  at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)  at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)  at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)  at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)  at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)   at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)   at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)  at java.lang.Thread.run(Thread.java:745)</code></p>
",https://stackoverflow.com/questions/56187440/elasticsearch-http-500-error-messagenull,"['elasticsearch-5', 'elasticsearch-bulk-api']",270,False,1,0
Got following error after 3 seconds on 4500 hits per second by jmeter,"<p>I am load testing my api that simply reads data from redis or DB. i have configured jmeter to 4500 hits per second for 2 minutes, but after 3 seconds my api got crashed with following error-</p>

<p>Can anyone please help me out in this.</p>

<p>In this error ""UNKNOWN_ERROR_OCCURED"" is shown from my side as i am handling error seding response as ""UNKNOWN_ERROR_OCCURED"".</p>

<pre><code>2019-07-30 17:57:07:472 [dc96a8299b8892e0/dc96a8299b8892e0] [http-nio-80-exec-2] 
ERROR c.h.o.e.h.GlobalExceptionHandler.handleException 227 - :: UNKNOWN_ERROR_OCCURRED - Error creating bean with name 'defaultValidator': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!); {}
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'defaultValidator': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:208) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[spring-beans-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver$1.getTarget(ContextAnnotationAutowireCandidateResolver.java:90) ~[spring-context-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:193) ~[spring-aop-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at com.sun.proxy.$Proxy112.forExecutables(Unknown Source) ~[na:na]
    at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:99) ~[spring-context-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at com.handzap.onboarding.controller.OnBoardingController$$EnhancerBySpringCGLIB$$796b5595.getSocialPlatformsViaCountry(&lt;generated&gt;) ~[classes!/:-jenkins-onboarding-service-pipeline-loadtesting-21]
    at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source) ~[na:na]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189) ~[spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) ~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800) ~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) ~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) ~[spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) [spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897) [spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) [spring-webmvc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) [spring-boot-actuator-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:176) [spring-security-oauth2-2.3.4.RELEASE.jar!/:na]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [spring-security-web-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:50) [spring-cloud-sleuth-core-2.1.1.RELEASE.jar!/:2.1.1.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at brave.servlet.TracingFilter.doFilter(TracingFilter.java:86) [brave-instrumentation-servlet-5.6.1.jar!/:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) [spring-boot-actuator-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]
    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) [spring-boot-actuator-2.1.3.RELEASE.jar!/:2.1.3.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_212]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_212]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.16.jar!/:9.0.16]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_212]
</code></pre>
",https://stackoverflow.com/questions/57284398/got-following-error-after-3-seconds-on-4500-hits-per-second-by-jmeter,"['java', 'spring-boot', 'load-testing']",336,False,1,0
What is thread dump and heap dump in jmeter and how can we generate and analyse the thread dump,"<p>I'm using JMeter for load testing, how can I analyze the thread and heap dumps for the load test.
I'm on JMeter 5.1.1 version, under tools there are 2 options like create heap dump and create thread dump, what is the actual usage of them and how could we analyze the dump files.
using which tool we can analyse the dump files</p>
",https://stackoverflow.com/questions/57323357/what-is-thread-dump-and-heap-dump-in-jmeter-and-how-can-we-generate-and-analyse,['jmeter'],3947,False,0,1
How to fix &quot;headers already sent&quot; error in PHP?,"<ol>
<li><p>I'm not able to save response in PDF file generated from the APIs. I am using Jmeter for load testing and by the help of Jmeter I am calling the APIs.</p></li>
<li><p>In a Jmeter script I have 150 APIs. It's hard to go through all APIs to check the output. Is there any way to save the data generated by the APIs?</p></li>
</ol>
",https://stackoverflow.com/questions/55500038/how-to-fix-headers-already-sent-error-in-php,"['jmeter', 'jmeter-5.0']",37,False,0,1
Pushing Fortio in cloud foundry using docker image,"<p>I am trying to push Fortio(a load testing tool for microservices) as an application in cloud foundry. I am trying it with a docker image from hub.</p>

<pre><code>   cf push &lt;app-name&gt; --docker-image fortio:fortio random-route
</code></pre>

<p>Application crashes when it tries to start the application. cf logs says : executable file not found in $PATH</p>

<p>It is working fine in my local docker setup but not in cloud foundry.</p>

<p>Any help??</p>
",https://stackoverflow.com/questions/56342399/pushing-fortio-in-cloud-foundry-using-docker-image,['cloud-foundry'],77,False,0,1
Why do I get an OutOfMemoryError when load-testing a Swagger-Webservice,"<p>We have developed a MicroService which is accessed by a secondary system. Both systems use a Swagger/OpenApi API to communicate with one-another. We generate the client as ""java"" (underlying okhttp-Client).</p>

<p>When we are load-testing the system after some time we get <code>java.lang.OutOfMemoryError: unable to create new native thread</code> on the client, although the system has plenty of memory configured (via -Xmx).
How can we avoid this? What is wrong?</p>
",https://stackoverflow.com/questions/59058870/why-do-i-get-an-outofmemoryerror-when-load-testing-a-swagger-webservice,"['java', 'openapi', 'openapi-generator']",386,True,2,1
Increasing scalability of lagom service,"<p>I am new to Lagom. Created a hello world microservice using Lagom. The service-impl  does not have any dependency on any kind of db or logic, Just returning a hardcoded string. </p>

<p>But when I am trying to do a load testing on the service, it slows down, only able to support 4 request at a time. I have not provided any configuration. 
Any help ?</p>
",https://stackoverflow.com/questions/54548579/increasing-scalability-of-lagom-service,"['akka', 'akka-http', 'lagom']",105,True,1,1
Concurrent connection issue with Redis and Tornado,"<p>I have been load testing <a href=""https://github.com/fatiherikli/klassify"" rel=""nofollow noreferrer"">Klassify</a> and I have noticed that Klassify has a problem with concurrent connections to Redis. All is well when Klassify has only one request to handle at a time. When the request count goes up, the connection with Redis gets broken and it will remain broken after that. </p>

<p>Any ideas on how to fix this issue would be greatly appreciated! </p>
",https://stackoverflow.com/questions/58279834/concurrent-connection-issue-with-redis-and-tornado,"['python', 'redis', 'tornado']",43,False,0,0
"How to fix this code, i&#39;m not getting error but data are not exported to csv","<p>I'm creating a load testing and i need to get data from database, so i created another file in gatling to get data from db and export it to csv file, to use the file as a feeder later, the exporting to csv isn't working</p>

<pre><code>import java.io._

import com.github.tototoshi.csv._
import io.gatling.core.Predef._
import io.gatling.core.feeder.SourceFeederBuilder
import io.gatling.jdbc.Predef._

import scala.collection.mutable.ArrayBuffer

class GenerateData extends Simulation {

  val csvFileLocation = new File(""data.csv"")
  val writers: CSVWriter = CSVWriter.open(csvFileLocation)

  // load and register JDBC driver for MySQL
  Class.forName(""com.mysql.cj.jdbc.Driver"")

  // DATABASE
  val dbStatement: String = System.getProperty(""dbStatement"", ""SELECT * FROM db limit 1"")
  val dbQuery: SourceFeederBuilder[Any] = jdbcFeeder(""jdbc:mysql://localhost:3306/table?useUnicode=true&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;serverTimezone=UTC"", ""username"", ""pass"", dbStatement)
//
  var recordCount: Int = dbQuery.readRecords.length
  var mList = new Array[String](recordCount)
  var dataString: ArrayBuffer[String] = ArrayBuffer[String]()
  var dataCounts: ArrayBuffer[Int] = ArrayBuffer[Int]()
  val out = new BufferedWriter(new FileWriter(csvFileLocation))
  val writer = new CSVWriter(out)

  val scn = scenario(""Database Query"")
    .feed(dbQuery)
    writer.writeRow(dataString)
    writer.close()

  setUp(scn.inject(atOnceUsers(1)))
}
</code></pre>

<p>Nothing is added to csv file and i'm only getting error about reporting from gatling</p>

<p>could you please help</p>
",https://stackoverflow.com/questions/55590546/how-to-fix-this-code-im-not-getting-error-but-data-are-not-exported-to-csv,"['scala', 'csv', 'jdbc', 'load-testing', 'gatling']",440,True,-1,2
unexpected behavior of threads,"<p>I am writing a load testing HTTP client in C, A part of the code is given bellow,</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;arpa/inet.h&gt;
#include &lt;signal.h&gt;
#include &lt;errno.h&gt;
#include &lt;sched.h&gt;
#include &lt;sys/time.h&gt;
#include &lt;fcntl.h&gt;

typedef struct args_s {
    volatile int t_requested;
    volatile int t_created;
    volatile int c_created;
    volatile int r_created;
    volatile int c_response;
} args_t;

#define HOST ""198.168.0.221""

#define CRLF ""\r\n""

#define REQUEST ""GET / HTTP/1.1"" CRLF \
        ""Host: 198.168.0.221"" CRLF \
        ""User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"" CRLF \
        ""Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"" CRLF \
        ""Accept-Language: en-US,en;q=0.5"" CRLF \
        ""Accept-Encoding: gzip, deflate"" CRLF \
        ""Connection: keep-alive"" CRLF \
        CRLF


static size_t socket_write(int sock_fd, char *buf, size_t size)
{
    size_t n, tot = 0;

  again:
    errno = 0;

    if ((n = write(sock_fd, buf, size)) != -1) {
    tot += n;
    if (tot &lt; size) {
        goto again;
    }
    if (tot == size) {
        return size;
    }
    return -1;
    }
    if (errno == EINTR || errno == EAGAIN) {
    goto again;
    }
    return -1;
}

static size_t socket_read(int sock_fd, char *buf, size_t size)
{
    size_t n;

  again:
    errno = 0;

    if ((n = read(sock_fd, buf, size)) != -1) {
    return n;
    }
    if (errno == EINTR || errno == EAGAIN) {
    goto again;
    }

    return -1;
}

static void *client_thread(args_t * param)
{
    struct sockaddr_in addr = {
    .sin_family = AF_INET,
    .sin_port = htons(80),
    .sin_addr.s_addr = inet_addr(HOST)
    };
    int sock_fd;
    char res[4096];

    unshare(CLONE_FILES);

    if ((sock_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    return ""socket() failed"";
    }

    if (connect(sock_fd, (struct sockaddr *) &amp;addr, sizeof(addr)) == -1) {
    close(sock_fd);
    return ""connect() failed"";
    }

    if (fcntl(sock_fd, F_SETFL, O_NONBLOCK) == -1) {
    close(sock_fd);
    return ""cant make nonblock"";
    }

    param-&gt;c_created++;

    if (socket_write(sock_fd, REQUEST, sizeof(REQUEST) - 1) !=
    (sizeof(REQUEST) - 1)) {
    close(sock_fd);
    return ""write() failed"";
    }

    param-&gt;r_created++;

    if (socket_read(sock_fd, res, 4096) == -1) {
    close(sock_fd);
    return ""read() failed"";
    }

    param-&gt;c_response++;
    close(sock_fd);
    return NULL;
}

void report_show(volatile args_t * param)
{
    printf(""\n\nREPORTS\n----------------------\n"");
    printf(""Number of threads requested : %ld \n"", param-&gt;t_requested);
    printf(""Number of threads created : %ld \n"", param-&gt;t_created);
    printf(""Number of connections created : %ld \n"", param-&gt;c_created);
    printf(""Number of requests sent : %ld \n"", param-&gt;r_created);
    printf(""Number of response recieved : %ld \n"", param-&gt;c_response);
    printf(""Number of response failed : %ld \n\n"",
       param-&gt;r_created - param-&gt;c_response);
}


void timer()
{
    int i=0;
    while(1) {
    sleep(1);
        printf(""\nTime taken : %d\x1B[A"",i++);
    }
}



int main()
{
    int pid,i;
    char c;
    char *ret;
    static volatile args_t param;

    param.t_requested = 30000;
    pthread_t t[param.t_requested];
    if(!(pid = fork())) {
    timer();
    exit(0);
    }

    for (i = 0; i &lt; param.t_requested; i++) {
    if (pthread_create(&amp;t[i], NULL, client_thread, &amp;param) != 0) {
        printf(""thread creation failed\n"");
        return -1;
    }
    param.t_created++;
    }

    for (i = 0; i &lt; param.t_requested; i++) {
    if(pthread_join(t[i], &amp;ret) != 0) {
        printf(""unable to join\n"");
        return -1;
    }
    if (ret != NULL) {
        printf(""%s\n"", ret);
        return -1;
    }
    }

    kill(pid,SIGINT);
    report_show(&amp;param);
    return 0;
}
</code></pre>

<p>When I run this code I am getting the output as bellow,</p>

<pre><code>[ajith@localhost Pipe_Send_Recv_Capability_Test]$ ./a.out

Time taken : 3

REPORTS
----------------------
Number of threads requested : 30000
Number of threads created : 30000
Number of connections created : 29983
Number of requests sent : 29997
Number of response recieved : 29988
Number of response failed : 9
</code></pre>

<p>Here, The connection created value (29983) is less than request sent value (29997). There is no way to happen this in the code. because whenever <code>param-&gt;r_created</code> got incremented <code>param-&gt;c_created</code> also incremented before it. Then why this is happening?</p>
",https://stackoverflow.com/questions/57491719/unexpected-behavior-of-threads,"['c', 'linux', 'multithreading', 'sockets', 'pthreads']",70,True,0,1
Which load testing method is better? API testing or full website testing,"<p>I have an application that we implemented kind of a microservices type architecture. The application contains 6 services (6 Docker containers). I need to load test this application. As I don't have much experience in the testing field, I'm not sure which method to use. </p>

<p>Right now, I have used the Gatling Load testing application for the load test. Here, I record the testing script by start the recorder and wander around my application to record all routes. I have gone through most of the routes in that single recording in order to mimic a practical user. I thought, normally users use an application like this and I can load test with its 1000 times by editing the number of threads/users. </p>

<p>Later I read about API testing which we will focus on APIs. Loading each APIs with a heavy load. So, I'm confused that which testing method should I use? If we go for API testing, it will provide only how much we can scale for that particular API right? (Not sure)</p>

<p>Is there any issue with my method of load testing? </p>
",https://stackoverflow.com/questions/58284521/which-load-testing-method-is-better-api-testing-or-full-website-testing,"['performance-testing', 'load-testing', 'gatling']",46,True,0,1
Load testing server with http multipart/related request which contains audio content,"<p>We built a server which handles speech recorded by user using an app. The audio data is sent through http post in real time. The body looks like this:</p>

<pre><code>--BOUNDARY
Content-Disposition: form-data; name=""metadata""
Content-Type: application/json; charset=""UTF-8""
&lt;JSON FORMATTED METADATA HERE&gt;
--BOUNDARY
Content-Disposition: form-data; name=""audio""
Content-Type: application/octet-stream
&lt;AUDIO BYTES HERE&gt;
--BOUNDARY--
</code></pre>

<p>Now, I need to do load testing for the server. I am thinking of using ApacheBench and just do consistent uploading requests but I wish to use the same format as above for each request. How could that be setup in AB?</p>
",https://stackoverflow.com/questions/58704115/load-testing-server-with-http-multipart-related-request-which-contains-audio-con,['apachebench'],105,True,0,1
Using RDBMS data to fuel SoapUI or similar testing tool,"<p>Does anyone have experience using DB data to fuel any variant of SOAP load testing tool?  I have data in a DB that I can use to build my SOAP string and I have to build a few thousand independent test transactions to throw at the web service.</p>

<p>Has anyone done this?  If so what tool did you use?  Any tips for pulling this off would be appreciated.</p>
",https://stackoverflow.com/questions/55230641/using-rdbms-data-to-fuel-soapui-or-similar-testing-tool,"['web-services', 'testing', 'soap', 'soapui']",29,True,0,1
Load testing tool has &quot;redirect&quot; http request,"<p>I am testing the load for my application.
It is an application writing by Go. But in my application, It need to redirect between containers (leader and follower mechanism) using HTTP status code 3xx (<code>http.Redirect(abc, xyz, url, 307)</code>)</p>

<p>For <code>curl</code>, I can use <code>-L</code> option.</p>

<p>I want to find a load testing tool (like apache benchmark) but it will have the redirect option which the same with <code>-L</code> option in <code>curl</code>.</p>

<p>Someone can help me. Thank you!</p>
",https://stackoverflow.com/questions/56062088/load-testing-tool-has-redirect-http-request,"['performance', 'http', 'testing', 'load']",409,False,0,1
[JMeter]How to test the maximum number of threads that a PC can generate,"<p>I am trying to perform load testing on a single API endpoint.</p>

<p>Using JMeter, I need to benchmark how many threads I can generate using my local machine and existing internet connection before some crash, system instability or bottleneck occurs.</p>

<p>Does anyone have an idea of how I could benchmark and report that?</p>

<p>I am using apache-jmeter-5.0 on Windows 7.</p>

<p>Any help or advice would be greatly appreciated.</p>
",https://stackoverflow.com/questions/54481826/jmeterhow-to-test-the-maximum-number-of-threads-that-a-pc-can-generate,"['jmeter', 'load', 'performance-testing', 'load-testing', 'threadgroup']",835,True,0,1
IIB Collector Node and transactions,"<p>I am using a Collector Node in my message flow. It is configured to collect 50 message or wait for 30 seconds. Under load testing, Websphere MQ sometimes says that a long-running transaction has been detected, and the pid corresponds with the pid of the application's execution group. The question is: is it possible that the Collector Node does not commit its internal transaction while waiting for the messages or for the timeout expiry?</p>
",https://stackoverflow.com/questions/57725391/iib-collector-node-and-transactions,['ibm-integration-bus'],830,True,2,2
JMeter - malformed Cookies Exc when adding AWS Load balancer&#39;s AWSALB Cookie,"<p>I need to do load testing on Amazon AWS cloud for an application which requires Sticky sessions. AWS ELB sends a cookie called AWSALB for sticky sessions.</p>

<p>JMeter is not able to add the cookie as it finds it to be malformed. I do not want to run the test without disabling Sticky sessions, hence, the cookie will exist. How do i make sure JMeter accepts this cookie?</p>

<p>Typical Cookie:</p>

<pre><code>AWSALB=Xvt/JIiJPAVz4+lK8F+ULq2317adfZ/mRzKPEzQ2gH7PBJU77S8eUZpZpleVCm6ooYzkhyxA5eUIkCOSOB4jIoKzLYG71rtQ9y9/F/OWJRYgHMKiCCD0p122YUyn; Expires=Mon, 24 Jun 2019 11:23:51 GMT; Path=/
</code></pre>

<p>Error in JMeter log: </p>

<pre><code>2019-06-17 16:53:54,532 ERROR o.a.j.p.h.c.HC4CookieHandler: Unable to add the cookie org.apache.http.cookie.MalformedCookieException: Invalid 'expires' attribute: Mon, 24 Jun 2019 11:23:54 GMT at 
org.apache.http.impl.cookie.BasicExpiresHandler.parse(BasicExpiresHandler.java:64) ~[httpclient-4.5.3.jar:4.5.3] at org.apache.http.impl.cookie.CookieSpecBase.parse(CookieSpecBase.java:113) ~[httpclient-4.5.3.jar:4.5.3] at 
org.apache.http.impl.cookie.NetscapeDraftSpec.parse(NetscapeDraftSpec.java:134) ~[httpclient-4.5.3.jar:4.5.3]
</code></pre>
",https://stackoverflow.com/questions/56643056/jmeter-malformed-cookies-exc-when-adding-aws-load-balancers-awsalb-cookie,"['amazon-web-services', 'cookies', 'jmeter']",325,False,2,0
Liquibase: how to revert back my DB to a previous state in that case,"<p>I am quite a newbie on Liquibase and despite my search I didn't find any relevant information regarding my case:</p>

<p>I am going to do a load testing on my web app.</p>

<p>This load test will write a lot of data in my database, and at the end of the test, I want my database looks like it was before the test.</p>

<p>How can I do that by command line?</p>

<p>Thank you.</p>
",https://stackoverflow.com/questions/54155278/liquibase-how-to-revert-back-my-db-to-a-previous-state-in-that-case,"['load-testing', 'liquibase']",236,False,0,1
Ports while execution distributed load testing with Jmeter,"<p>I am setting up a distributed load testing scenario using Jmeter.</p>

<p>I have tested that all the ports that are involved (at least in my test case are the following)</p>

<p>**client.rmi.localport=6000 (to get the results from the servers)</p>

<p>server_port=1099 (Jmeter listener in the server)</p>

<p>server.rmi.localport=50000 (port to answer to the client)**</p>

<p>My question is how do the client send the test script to the servers? which port is used? Thanks.</p>
",https://stackoverflow.com/questions/57478925/ports-while-execution-distributed-load-testing-with-jmeter,['jmeter'],330,False,0,1
Can&#39;t read CSV file in an artillery script file,"<p>I am performing load testing of a microservice and facing an issue while using <strong>Artillery</strong>. Script is failing when reading a csv file. Trying to import input data from a file in order to create a json request. </p>

<p>Simplest <strong>script.yml</strong>:</p>

<pre><code>config:
  target: ""http://localhost:8080""
  phases:
    - duration: 1
      arrivalRate: 1
  payload:
    path: ""input.csv""
    fields:
     - ""flow""
scenarios:
  - flow:
     - log: ""this yml log, flow: {{ flow }}""
</code></pre>

<p><strong>input.csv</strong> file in the same folder:</p>

<pre><code>""flow""
""SomeFlow""
</code></pre>

<p><strong>simplest command used to execute:</strong></p>

<pre><code>DEBUG=* artillery run script.yml
</code></pre>

<p><strong>Error stacktrace:</strong></p>

<pre><code>  artillery:cli Artillery Pro is not installed +0ms
  commands:run defaultOptions:  {
    ""_"": [
        ""run"",
        ""script.yml""
    ]
} +4ms
/Users/someUser/node_modules/csv-parse/lib/index.js:124
          throw new Error(`Invalid Option: from_line must be a     positive integer greater than 0, got ${JSON.stringify(opts.from_line)}`)
      ^
Error: Invalid Option: from_line must be a positive integer greater     than 0, got at new Parser (/Users/someUser/node_modules/csv-    parse/lib/index.js:124:17)
    at parse (/Users/someUser/node_modules/csv-parse/lib/index.js:838:18)
    at readPayloadFile (/Users/someUser/node_modules/artillery/lib/commands/run.js:257:7)
    at /Users/someUser/node_modules/async/lib/async.js:356:13
    at async.forEachOf.async.eachOf (/Users/someUser/node_modules/async/lib/async.js:233:13)
    at _asyncMap (/Users/someUser/node_modules/async/lib/async.js:355:9)
    at Object.map (/Users/someUser/node_modules/async/lib/async.js:337:20)
    at readPayload (/Users/someUser/node_modules/artillery/lib/commands/run.js:245:9)
    at fn (/Users/someUser/node_modules/async/lib/async.js:746:34)
    at /Users/someUser/node_modules/async/lib/async.js:1213:16
</code></pre>

<p>Initially i thought it was a platform specific problem for Windows. Then faced the same problem on OSX. <strong>I definitely miss something minor and important here.</strong></p>
",https://stackoverflow.com/questions/54032373/cant-read-csv-file-in-an-artillery-script-file,"['node.js', 'testing', 'load-testing', 'artillery']",1809,True,3,1
How to properly use loadtest4j,"<p>I'm trying to use loadtest4j for load testing my application, but I have some problems with understanding how it works. Basically, how it setup, because I've followed guide step-by-step and can't setup driver to execute test.
As I understand, It's necessarily to apply driver, because raw loadtest4j didn't have standart driver, at least nothing is said about it in guide.</p>

<p>Has anyone use this library and can help me with that?</p>
",https://stackoverflow.com/questions/56140366/how-to-properly-use-loadtest4j,"['java', 'load-testing']",220,False,0,0
Is there a way to find response times of search results in Load Testing?,"<p>I am trying to do some performance testing for our application. 
My task is to do some load testing for a search page. Have to get the response times of the search results. ex: I searched with firstname and lastname and I get results in the grid. I have to get the response time, in how many seconds did i get the results ? </p>

<p>Can some please direct me on how to do ? </p>
",https://stackoverflow.com/questions/54133132/is-there-a-way-to-find-response-times-of-search-results-in-load-testing,"['performance', 'testing', 'load', 'loadrunner']",56,False,0,2
Is there a way to replicate the same that&#39;s happening in postman using locust,"<p><a href=""https://i.stack.imgur.com/NlB80.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/NlB80.png"" alt=""enter image description here""></a>I'm trying to post a request from postman using form data in body section where I upload a csv file and a JSON string, for which i get a response on postman. I would like to replicate the same in locust to do the load testing where I'm not be able to upload the file as I get the error. </p>

<blockquote>
  <p>Value Error: Data must not be a string.</p>
</blockquote>

<p>Below is the code snippet</p>

<pre><code>def project(self):
    headers = {'content-type': 'application/json', 'X-ACCESS-TOKEN': 'XXXXXXXXXXXXXXXXX'}
    files = [('params_file', ('All_params.csv', open('All_params.csv', 'rb'), 'text/csv'))]

    payload = {""df_params"":{""geography"":""United Arab Emirates"",""currency"":""United Arab Emirates dirham""}}
    res = self.client.post(""/api/project/setup"", headers=headers,  data=json.dumps(payload), files=files, catch_response=True)
    response = res.content.decode('utf-8')
    self.response_api = json.loads(response)
    print(self.response_api)
    res.raise_for_status()
</code></pre>
",https://stackoverflow.com/questions/54140983/is-there-a-way-to-replicate-the-same-thats-happening-in-postman-using-locust,"['python', 'postman', 'locust']",662,False,0,1
Is there a way to get the breakdown of an API response time in *Python* similar to what we can get from Postman?,"<p>Is there a way to get the breakdown of the response-time of a API request call from <strong>Python</strong> (Requests module) or in <strong>LocustIO</strong> load testing tool. </p>

<p>I have two requirements where I would like to report the TransferStart part alone. Is there something I can do to get a better break down of the round trip time. Currently I am doing the following:</p>

<pre><code>    start_time = timeit.default_timer()
    r = requests.get(api_url, headers=token, verify=False)
    elapsed_time = timeit.default_timer() - start_time
</code></pre>

<p><a href=""https://i.stack.imgur.com/lqvcY.png"" rel=""nofollow noreferrer"">Postman - break down of an API response time</a></p>
",https://stackoverflow.com/questions/59161928/is-there-a-way-to-get-the-breakdown-of-an-api-response-time-in-python-similar,"['python', 'python-requests']",208,False,0,0
simulating parallel endpoint api usage via jmeter,"<p>I have rest endpoint under test.
In real world scenario, this API will be called in parallel by 100-200 users/minute.</p>

<p>I would like to simulate such scenario via jmeter as load testing.
I've created simple thread group with thread count 100, but I am not quit sure whether it's doing what I am looking for.</p>

<p>Does the thread count represents the actual parallel consumers?
How can I simulate such parallel access to endpoint API?</p>

<p>Any advice appreciated</p>
",https://stackoverflow.com/questions/56508055/simulating-parallel-endpoint-api-usage-via-jmeter,"['rest', 'mobile', 'jmeter', 'automated-tests', 'load-testing']",309,False,0,1
How effective to override the default Threadpool executor for Spring webflux project?,"<p>I am new to Spring-Webflux.</p>
<p>I am running the below sample project in a 2 - core processor. My RESTful api will call to an external api and the external api response is less than 500ms.</p>
<p>When i using jMeter for load testing, can't achieve more than 15 TPS.</p>
<p>Am i missing something or anything wrong with the below design?</p>
<p>How effective it's to override the default Threadpool executor in Webflux project?</p>
<p>Thank you in advance.</p>
<hr />
<p><strong>Controller</strong></p>
<pre><code>public class LookupController {

    @Autowired
    private LookupService lookupService;

    @PostMapping(value = &quot;/findOrder&quot;)
    public Mono findOrder(@RequestBody InputBean inputBean) {

        return lookupService.findOrder(inputBean)
                .map(resp -&gt; ResponseEntity.ok(resp))
                .defaultIfEmpty(ResponseEntity.notFound().build());
    }
}
</code></pre>
<hr />
<p><strong>Service</strong></p>
<pre><code>@Service
public class LookupService {

    @Autowired
    private RestWorker restWorker;

    public Mono findOrder(InputBean inputBean) {
        ..//Basic Validation
        ApiBean apiBean = restWorker.buildApiBean(inputBean);
        Mono responseStr = restWorker.callApi(apiBean);
        return responseStr.flatMap(resp -&gt; {
            //Business Logic
            //Process the api response and create the corresponding Controller Response
            return Mono.just(controllerResponse);
        });
    }
}
</code></pre>
<hr />
<p><strong>Helper</strong></p>
<pre><code>@Component
public class RestWorker {

    private Webclient webClient = null;

    @PostConstruct
    private void initWorker() {
        webClient = WebClient.builder()
                .baseUrl(httpUrl)
                .defaultHeader(HttpHeaders.CONTENT_TYPE, &quot;application/json&quot;)
                .defaultHeader(HttpHeaders.ACCEPT, &quot;application/json&quot;)
                .defaultHeader(HttpHeaders.ACCEPT_CHARSET, &quot;UTF-8&quot;)
                .build();
    }

    public ApiBean buildApiBean(InputBean inputBean) {
    // Create ApiBean based on the input bean + config values
    ....
        return apiBean;
    }

    public Mono callApi(ApiBean apiBean) {
        Mono responseMonoStr = null;
        try {
            responseMonoStr = webClient.post()
                    .uri(url_tibco)
                    .body(BodyInserters.fromObject(reqDoc))
                    .exchange()
                    .timeout(Duration.ofMillis(socketReadTimeout))
                    .flatMap(clientResponse -&gt; {
                        System.out.println(Thread.currentThread().getName() + &quot;Status Code : &quot; + clientResponse.statusCode());
                        return clientResponse.bodyToMono(String.class);
                    });
        } catch (Exception exception) {
            return Mono.just(&quot;&quot;);
        }
    }
}
</code></pre>
<hr />
",https://stackoverflow.com/questions/56176925/how-effective-to-override-the-default-threadpool-executor-for-spring-webflux-pro,['spring-webflux'],2159,True,0,2
"Parsing concurrency &#39;${addressThread}&#39; in group &#39;ThreadGroup&#39; failed, choose 1","<p>I am trying to define a percentage of threads for each ThreadGroup in my load testing .jmx file, and pass the total number of threads from taurus config .yaml file.</p>

<p>However, taurus fails to parse the expression, even though when I try to debug it using jmeter I can see that the expressions works. ( I am setting the total number of users in <code>user.property</code> file in jmeter).</p>

<p>This is my yaml config file.</p>

<pre><code>---
scenarios:
  student_service:
    script: ~/jmeter/TestPlan.jmx
    variables:
      addressThread: 100
    think-time: 500ms

execution:
  - scenario: student_service
    hold-for: 5m
</code></pre>

<p><a href=""https://i.stack.imgur.com/NR5In.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/NR5In.png"" alt=""tried here just regular variable""></a></p>

<p>versions I am using:</p>

<blockquote>
  <ol>
  <li>Taurus CLI Tool</li>
  <li>MacOs10.13.6</li>
  <li>Jmeter 5.0</li>
  </ol>
</blockquote>
",https://stackoverflow.com/questions/54836405/parsing-concurrency-addressthread-in-group-threadgroup-failed-choose-1,"['jmeter', 'taurus']",177,True,1,1
Is there any function in varnish to store a json/string data in cache or memory and reuse it in all requests?,"<p>I am writing a varnish module which validates a HTTP request coming to my server and i have a JSON data dependency for my module. The Json data is taken by making a HTTP call from my module to redis server every dedicated interval time and store the JSON response into cache or Shared memory and use it. How do i achieve this with out disturbing the performance of varnish.</p>

<p>I have already tried Linux shared memory concept to store data and use it but I am hit with increase in varnish performance. I am seeing lot of http failures with this method when I was load testing. I would like to know how vanrish is caching http request and serving it to user, so that I can use the same method.</p>

<p>The logic of shared memory I am using is </p>

<pre><code>if (memory exists){
    ...
    read memory and retrieve data
    ...
} else {
    make a call to server
    server responds with data
    store data in memory
}

...
use the data for request
...
</code></pre>

<p>The actual call to Server and retrieve data should happen once in interval time. It works well when tested manually. But failed when running load testing.. Seems to be child process issue where every child is accessing this piece of code and calling the server for every request. </p>

<p>I don't want to use mutex locks for this as it will decrease the performance.</p>
",https://stackoverflow.com/questions/56355369/is-there-any-function-in-varnish-to-store-a-json-string-data-in-cache-or-memory,"['caching', 'shared-memory', 'varnish']",212,False,1,0
How to make tsung-recorder capture websocket messages?,"<p>My website uses websockets, and I'd like to conduct load testing using tsung.</p>

<p>I start tsung-recorder and configure proxy setting (only HTTP for now)</p>

<p>When a user opens a page it switches protocols. I understand that websockets work over TCP, nevertheless first handshake request are made over HTTP.</p>

<p>I see neither handshake nor websocket requests in tsung-recorder.xml. As expected only HTTP requests are there.</p>

<p>What should I do to get correct session written, including handshake and websocket requests?</p>
",https://stackoverflow.com/questions/57187405/how-to-make-tsung-recorder-capture-websocket-messages,"['websocket', 'erlang', 'stress-testing', 'tsung', 'tsung-recorder']",208,False,0,0
SQL Server 2012 Performance Issue when replicating to New Database,"<p>I have moved data from our production database to a new database with all constraints and indexes for load testing.</p>

<p>There is no issue in performance in the original database. When I try to login to the application with the new database connection, all queries take too much time to run even with the indexes. </p>

<p>I have rebuild all the indexes </p>

<p>Am I missing something? Please advise me on this. </p>

<p>I am using SQL Server 2012 for both the databases. </p>
",https://stackoverflow.com/questions/54881941/sql-server-2012-performance-issue-when-replicating-to-new-database,"['sql-server', 'performance']",16,False,0,0
Why does &quot;Successful transactions&quot;+&quot;Failed transactions&quot; != &quot;Transactions&quot;,"<p>Using the siege load testing tool, it sends a number of transactions to a server.</p>

<p>The output is typically something like:</p>

<pre><code>** SIEGE 4.0.4
** Preparing 1 concurrent users for battle.
The server is now under siege...
Transactions:                 10 hits
Availability:             100.00 %
Elapsed time:              14.31 secs
Data transferred:           0.09 MB
Response time:              1.43 secs
Transaction rate:           0.70 trans/sec
Throughput:             0.01 MB/sec
Concurrency:                1.00
Successful transactions:          10
Failed transactions:               0
Longest transaction:            4.54
Shortest transaction:           0.00
</code></pre>

<p>Sometimes in testing I see that the number of successful transactions plus the number of failed transactions does not equal the total number of transactions (e.g. 1000 transactions, 992 successful, 4 failed). Sometimes the total is lower, sometimes the total is higher (e.g. 1000 transactions, 998 success, 4 fail). What does this mean? What happened to these non-success and non-fail transactions?</p>
",https://stackoverflow.com/questions/58489840/why-does-successful-transactionsfailed-transactions-transactions,['siege'],173,False,2,0
Azure B4ms vm size and cpu credits,"<p>I'm doing a load testing on a Azure vm. The vm size is b4ms type. I encounted the following behavior between cpu credits remaining and cpu usage. For b4ms, the base performance is 90% as per the documentation. The cpu usage was not exceeding 90% at any time, but the cpu credits were decreasing during the time. According to the concept of B series, it should be storing credits, since cpu usage is below the base performance. Any explanation to this behavior is highly appreciated.<a href=""https://i.stack.imgur.com/FKmCO.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/FKmCO.png"" alt=""please refer the image added""></a></p>
",https://stackoverflow.com/questions/54340367/azure-b4ms-vm-size-and-cpu-credits,"['azure', 'azure-virtual-machine']",580,False,1,0
continuous UDP request to the server not work as expected,"<p>Currently I am working on a performance testing tool and I have to develop a UDP request testing plugin for load testing. I tried to send continuous large number of  request to monitor the maximum load that server could handle. <strong>My goal is to make the application not responsive by sending maximum number of requests but i am not getting the expected result</strong>. My testing application is up and running in my local environment. Is it the fault of the implementation or the configurations. Please help.</p>

<pre><code>//UDPRequests.groovy
package com.udp.testsubject;

import java.security.SecureRandom;

public class UDPRequests {
    static void main(String [] args) {

        DatagramSocket socket = null;
        InetAddress address = null;
        byte[] buf = new byte[65507];
        SecureRandom random = new SecureRandom();

        //following paramters will get from a property file
        String ipAddr = '127.0.0.1';
        int portDst = 4445;
        int numberOfRequests = 1200000;

        socket = new DatagramSocket();
        address = InetAddress.getByName(ipAddr);
        random.nextBytes(buf);
        DatagramPacket packet = new DatagramPacket(buf, buf.length, address, portDst);

        try {
            printf(""[*] Start send requests to %s:%d\n"", ipAddr, portDst);
            int count=0;
            while (count &lt; numberOfRequests) {
                count++;
                socket.send(packet);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        socket.close();
    }
}
</code></pre>
",https://stackoverflow.com/questions/56777446/continuous-udp-request-to-the-server-not-work-as-expected,"['java', 'groovy', 'udp']",34,False,0,0
How to handle Node.js performance impact of HTTP request,"<p>I build a simple API Gateway / BFF in Node.js which listens at a port and calls two other services.</p>

<pre><code>const express = require('express')
const axios = require('axios')

const app = express()


app.get('/', (request, reply) =&gt; {
    const promise1 = axios.get('http://localhost:5000/p')
    const promise2 = axios.get('http://localhost:5000/s')
    return Promise.all([promise1, promise2]).then(([res1, res2]) =&gt; {
    reply.send('done')  
    })
})

app.listen(4000, () =&gt; {
  console.info(`server listening`)
})
</code></pre>

<p>This endpoint is supposed to handle a moderate load (e.g 500 requests / second).</p>

<p>On my local machine, using load testing tools, this endpoint cannot serve more than 100 requests / second, while if I don't do any HTTP request and return just a plain JSON, the requests which can be served are around 10000. CPU seems to be the bottleneck.</p>

<p>Is there any way to improve performance here that I am missing? </p>
",https://stackoverflow.com/questions/56110850/how-to-handle-node-js-performance-impact-of-http-request,"['node.js', 'performance', 'express', 'load']",320,False,1,0
.net core 2.2 DB connection errors full stack trace,"<p>I have an application running in .net core 2.2 with DBContextPool.</p>

<p>I'm doing load testing on the application and it seems to crash under high load; it seems an SQL query (I'm connecting to MySQL database) is timing out. The error I get is here:</p>

<pre><code>MySql.Data.MySqlClient.MySqlException (0x80004005): Connect Timeout expired. ---&gt; System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.SemaphoreSlim.WaitUntilCountOrTimeoutAsync(TaskNode asyncWaiter, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, IOBehavior ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\Core\ConnectionPool.cs:line 42
at MySql.Data.MySqlClient.MySqlConnection.CreateSessionAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 507
at MySql.Data.MySqlClient.MySqlConnection.CreateSessionAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 523
at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 232
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnectionAsync(Boolean errorsExpected, CancellationToken cancellationToken)
[41m[30mfail[39m[22m[49m: Microsoft.EntityFrameworkCore.Query[10100]
An exception occurred while iterating over the results of a query for context type 'SuponicPay.Repository.Data.SuponicPayDbContext'.
MySql.Data.MySqlClient.MySqlException (0x80004005): Connect Timeout expired. ---&gt; System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.SemaphoreSlim.WaitUntilCountOrTimeoutAsync(TaskNode asyncWaiter, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, IOBehavior ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\Core\ConnectionPool.cs:line 42
at MySql.Data.MySqlClient.MySqlConnection.CreateSessionAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 507
at MySql.Data.MySqlClient.MySqlConnection.CreateSessionAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 523
at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 232
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnectionAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable`1.AsyncEnumerator.BufferlessMoveNext(DbContext _, Boolean buffer, CancellationToken cancellationToken)
at Pomelo.EntityFrameworkCore.MySql.Storage.Internal.MySqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable`1.AsyncEnumerator.MoveNext(CancellationToken cancellationToken)
at System.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator`2.MoveNextCore(CancellationToken cancellationToken) in D:\a\1\s\Ix.NET\Source\System.Interactive.Async\Select.cs:line 106
at System.Linq.AsyncEnumerable.AsyncIterator`1.MoveNext(CancellationToken cancellationToken) in D:\a\1\s\Ix.NET\Source\System.Interactive.Async\AsyncIterator.cs:line 98
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken)
MySql.Data.MySqlClient.MySqlException (0x80004005): Connect Timeout expired. ---&gt; System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.SemaphoreSlim.WaitUntilCountOrTimeoutAsync(TaskNode asyncWaiter, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, IOBehavior ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\Core\ConnectionPool.cs:line 42
at MySql.Data.MySqlClient.MySqlConnection.CreateSessionAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 507
at MySql.Data.MySqlClient.MySqlConnection.CreateSessionAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 523
at MySql.Data.MySqlClient.MySqlConnection.OpenAsync(Nullable`1 ioBehavior, CancellationToken cancellationToken) in C:\projects\mysqlconnector\src\MySqlConnector\MySql.Data.MySqlClient\MySqlConnection.cs:line 232
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnectionAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable`1.AsyncEnumerator.BufferlessMoveNext(DbContext _, Boolean buffer, CancellationToken cancellationToken)
at Pomelo.EntityFrameworkCore.MySql.Storage.Internal.MySqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable`1.AsyncEnumerator.MoveNext(CancellationToken cancellationToken)
at System.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator`2.MoveNextCore(CancellationToken cancellationToken) in D:\a\1\s\Ix.NET\Source\System.Interactive.Async\Select.cs:line 106
at System.Linq.AsyncEnumerable.AsyncIterator`1.MoveNext(CancellationToken cancellationToken) in D:\a\1\s\Ix.NET\Source\System.Interactive.Async\AsyncIterator.cs:line 98
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken)
</code></pre>

<p>As you can see, the stack trace stops while still inside the EF Core library.</p>

<p>Is there any way to display the full stack trace? All the way up to my service/controller level code?</p>

<p>I can then determine the cause of this much more easily.</p>
",https://stackoverflow.com/questions/56867916/net-core-2-2-db-connection-errors-full-stack-trace,"['c#', 'mysql', 'entity-framework', '.net-core']",540,False,1,0
Smooth load rebalancing for Kubernetes HPA,"<p>I have configured my ingress controller with nginx-ingress <a href=""https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-nginx-upstream-hashing"" rel=""nofollow noreferrer"">hashing</a> and I define HPA for my deployments. When we do load testing we hit a problem on the newly created pods that aren't warmed up enough and while the load balancing shifts immediately target portion of the traffic the latency spikes and service is choking. Is there a way to define some smooth load rebalancing that would rather move the traffic gradually and thus warm up the service in more natural way ?</p>

<p>Here is an example effect we see now:
<a href=""https://i.stack.imgur.com/5MVT6.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/5MVT6.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/57860476/smooth-load-rebalancing-for-kubernetes-hpa,['kubernetes'],618,True,1,1
Most effective way to populate database with data?,"<p>Hi I need to run some performance tests of my spring boot batch jobs.  I am looking for the most effective way to set the data into the mongo database.  The data is encrypted in the service, so I cant directly load the data via mongo.  I want to load up 1million plus records.  Should I be looking to use a load testing tool such as K6, or would it make more sense to set up a threadpool executor and write some java to get the data in??</p>
",https://stackoverflow.com/questions/59348991/most-effective-way-to-populate-database-with-data,"['java', 'spring-boot', 'performance-testing', 'k6']",463,False,0,1
Running a Junit Test Suite with Zerocode,"<p>I am trying to run a load test with Junit(4) using Zerocode. I was able to run existing Junit test classes by following these tutorials </p>

<ul>
<li><a href=""https://medium.com/@igorvlahek1/load-testing-with-junit-393a83261745"" rel=""nofollow noreferrer"">Load testing with JUnit using Zerocode framework</a> </li>
<li><a href=""https://dzone.com/articles/how-we-do-performance-testing-easily-efficiently-a"" rel=""nofollow noreferrer"">Reusing the Existing JUnit Tests for Load/Stress Generation</a></li>
</ul>

<p>I have a Junit test suite working properly and I would like to know how to use zerocode to start this test suite so it will run all the tests in all test classes for a load test. The examples above are describing how to run a selected test method or few only.</p>
",https://stackoverflow.com/questions/58657690/running-a-junit-test-suite-with-zerocode,"['java', 'junit', 'zerocode']",1474,True,0,2
Why does the counter incremented using INCR instruction not equal the number of requests when the concurrency of the HTTP request increases?,"<p>I am doing the load testing with the Redis server. I wanted to test the <code>INCR</code> operation in redis, where I initialize the counter to <code>1</code> (by setting a key named total-calls) and then for each incoming request, I increase the counter by 1. So after 3000 requests, the counter should be 3000, after 8000 requests counter must be 8000.</p>

<p>For this, I created a simple <code>NodeJS</code> script running express and a simple middleware that increments a counter. I used <a href=""https://www.npmjs.com/package/loadtest"" rel=""nofollow noreferrer"">loadtest</a>
for the load testing. Everything works fine, when there is no concurrency but the results diverge by <code>1</code> , <code>3</code> or <code>5</code> when the I increase the concurrency. I cannot understand the reason for this.</p>

<p>So for the input test where concurrency is 1 and the number of requests are 3000:</p>

<pre><code>loadtest -n 3000 -c 1 http://localhost:3000
</code></pre>

<p>the redis <code>get total-calls</code> command gives the expected result of <code>3000</code>.</p>

<p>But if I increase the concurrency, to 5 and run the same command after removing the previous key from redis, I get total count as 3001. Why does that happen? </p>

<pre><code>loadtest -n 3000 -c 5 http://localhost:3000
</code></pre>

<p>and on further increasing the number of requests to 8000, the total count becomes 8003. I cannot understand the reason for this.</p>

<p>The code that gets hit by the loadtest:</p>

<pre><code>const express = require('express');
const app = express();
const Redis = require(""./redis-wrapper"");

const client = new Redis();
const maxCallsAllowed = 50000

const requestCounter = async (req, resp, next) =&gt; {
    // Increment the request counter
    const redis = client.redis;
    if(await redis.exists(""total-calls"") === 1) {
        // Key already exists
        // Increment the key
        await redis.incr(""total-calls"")
    }else {
        // Key does not exist
        // Set the key
        await redis.set(""total-calls"", 1)
    }
    next();
}

app.get('/', requestCounter, (req, resp, next) =&gt; {
    resp.json({
        status: 'ok'
    })
});

app.listen(3000);
</code></pre>

<p>Is there something that I am missing? Why is the count more than the number of requests? I also tested this with <a href=""https://locust.io/"" rel=""nofollow noreferrer"">locust.io</a> but noticed the same behavior.</p>
",https://stackoverflow.com/questions/58056669/why-does-the-counter-incremented-using-incr-instruction-not-equal-the-number-of,"['python', 'node.js', 'redis', 'load-testing', 'locust']",234,False,1,0
Setting up Alarms for AWS IoT Throttling Limits,"<p>I am using AWS IoT and using the JITP for device/thing registration.</p>

<p><a href=""https://aws.amazon.com/blogs/iot/setting-up-just-in-time-provisioning-with-aws-iot-core/"" rel=""nofollow noreferrer"">https://aws.amazon.com/blogs/iot/setting-up-just-in-time-provisioning-with-aws-iot-core/</a></p>

<p>When I carry out the load testing, some of the things are not registered. But I don't see any error either.</p>

<p>I feel this might be happening because of the AWS IoT Throttling Limits.
I suspect one of the below APIs calls, throttling is happening.</p>

<pre><code>CreateThing
AttachPolicy
AttachThingPrincipal
</code></pre>

<p>How can I set an alarm to check if for any of this API calls, throttling is happening?</p>
",https://stackoverflow.com/questions/57889790/setting-up-alarms-for-aws-iot-throttling-limits,"['amazon-web-services', 'amazon-cloudwatch', 'aws-iot']",87,False,0,1
Script for Adding AD Users to Microsoft Dynamics 365 Accounts,"<p>Does anyone know the best approach to add multiple Active Directory user accounts to user accounts in Microsoft Dynamics 365?  A script or something else, perhaps?</p>

<p>I have a large number of test accounts in AD that I want to add to a test instance of Dynamics 365 that I have for load testing purposes, and was wondering if there was an easy way to do this rather than have to go into the Settings screen of Dynamics and do this manually for each user.</p>

<p>Thanks in advance :)</p>
",https://stackoverflow.com/questions/58532848/script-for-adding-ad-users-to-microsoft-dynamics-365-accounts,"['dynamics-crm', 'microsoft-dynamics', 'dynamic-sql', 'dynamics-crm-2013']",1182,False,-1,2
Visual studio not showing correct result after writing to repository,"<p>I recently got some issues with my load testing in visual studio. 
Everything works great with the test until the test finishes and visual studio are writing a report. Visual Studio is generating a report of the load test. It shows some false numbers and all the graphs are disappearing.
Everything worked great yesterday. </p>

<p>I've tried to repair visual studio, remake all the webtests and even create a new load test.</p>

<p>You can see some of the false data below in the picture.</p>

<p><a href=""https://i.stack.imgur.com/8inie.png"" rel=""nofollow noreferrer"">https://i.stack.imgur.com/8inie.png</a></p>

<p>Thanks for the help!</p>
",https://stackoverflow.com/questions/54983532/visual-studio-not-showing-correct-result-after-writing-to-repository,"['visual-studio', 'graph', 'load-testing', 'webtest']",29,True,0,1
AWS IoT scaling issues and metrics for monitoring IoT,"<p>I am using AWS IoT Service.</p>

<p>When a device sends a registration message to MQTT broker, I have a rule to store it in a SQS queue.
A Lambda function is triggered, when the message is added to the Queue. The <code>Thing</code> is created for the device and it's certificate is registered.</p>

<p>While carrying out the load testing, I observed that, after some time, the incoming messages are not received on the AWS MQTT broker and are not processed.</p>

<p>I  have written some test clients which run on EC2 instances to simulate the MQTT clients. </p>

<p>If I restart the test clients after some time, again I can see the messages coming to AWS IoT.</p>

<p>I am not sure, if this is the issue of MQTT broker or if it is the issue with the clients running on EC2 instances.</p>

<p>I can think of possible issues because of limits on AWS IoT ,</p>

<p><a href=""https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_iot"" rel=""nofollow noreferrer"">https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_iot</a></p>

<p>I want to know what are the possible AWS IoT matrices, I need to monitor for this or which IoT specific alarms I need to configure?</p>

<p>Is it a possible issue on EC2 side? ( maybe network out bytes per second, etc.)</p>

<p>There is another load testing scenario, in which I am not doing registration of devices, but just capturing the connect or disconnect events. In this case, I am not observing similar issues.</p>
",https://stackoverflow.com/questions/57712777/aws-iot-scaling-issues-and-metrics-for-monitoring-iot,"['amazon-web-services', 'aws-lambda', 'amazon-cloudwatch', 'aws-iot']",109,False,0,1
Load testing with locust,"<p>I am using locust for load testing on an api. I am sending POST request is on that api. My USE CASE is that I want to check how many requests can the api take at a time. This is my code </p>

<pre><code>import requests
from locust import HttpLocust, TaskSet
from requests.auth import HTTPDigestAuth
from credentials import *


class UserBehavior(TaskSet):
    def on_start(self):
        if len(USER_CREDENTIALS) &gt; 0:
                self.name, self.password,self.email,self.phone,self.country_abbrev = USER_CREDENTIALS.pop()
    @task
    def registration(self):
        URL = ""ip/user/register""
        PARAMS = {'name':self.name,'password': self.password,'primary_email': self.email,'primary_mobile_number':self.phone,'country_abbrev':self.country_abbrev} 
        self.client.post(url = URL,params = PARAMS,auth=HTTPDigestAuth('user', 'pass'))

class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 5000
    max_wait = 9000


</code></pre>

<p>And then I run locust -f locust.py --host=localhost:8089 </p>

<p>Then I get an option to set hatch rate and number of users. What should I set the values to if I just want to send 100 post requests concurrently once to check if the API can handle 100 requests at one time.</p>

<p>Any help would be appreciated</p>
",https://stackoverflow.com/questions/57708899/load-testing-with-locust,"['python', 'locust']",1509,True,1,2
MULE ESB : How to fix the error : org.glassfish.grizzly.nio.SelectorRunner: doSelect exception java.lang.OutOfMemoryError?,"<p>I am using <code>MULE ESB version 3.8.1</code> and exposing a synchronous <code>SOAP</code> Web service using <code>HTTP</code> and <code>CXF</code> component. The service is working fine for say 100 requests in a minute.</p>
<p>But when I am using SoapUI to perform LOAD testing and sending requests as follows:
12 threads, active for 300 seconds, and sending burst requests the load on ESB server is pretty high and I get the error :</p>
<blockquote>
<p>org.glassfish.grizzly.nio.SelectorRunner: doSelect exception</p>
<p>java.lang.OutOfMemoryError: unable to create new native thread</p>
</blockquote>
<p>My question is :</p>
<p>How can I configure mule ESB flows or tune the performance in mule ESB so that I can increase the performance to process 10 requests per second.</p>
",https://stackoverflow.com/questions/54732225/mule-esb-how-to-fix-the-error-org-glassfish-grizzly-nio-selectorrunner-dose,"['java', 'multithreading', 'performance', 'mule-esb']",911,True,0,1
Why do I get SocketTimeoutException when I have accept-count=100000?,"<p>I'm load testing my Spring Boot server with JMeter and have</p>

<code>application.properties</code>

<pre><code>server.tomcat.accept-count=100000
server.tomcat.max-threads=1000
</code></pre>

<code>Application.java</code>

<pre><code>public static void main(String[] args) {
    ApplicationContext context = SpringApplication.run(Application.class, args);
    ServerProperties serverProperties = context.getBean(org.springframework.boot.autoconfigure.web.ServerProperties.class);
    Tomcat tomcat = serverProperties.getTomcat();
    Logger.getLogger(Application.class.getName()).info(""acceptCount = "" + tomcat.getAcceptCount());
    Logger.getLogger(Application.class.getName()).info(""maxConnections = "" + tomcat.getMaxConnections());
    Logger.getLogger(Application.class.getName()).info(""maxThreads = "" + tomcat.getMaxThreads());
</code></pre>

<code>Console</code>

<pre><code>2019-10-24 20:22:31.174  INFO 57472 --- [  restartedMain] c.s.s.Application : acceptCount = 100000
2019-10-24 20:22:31.174  INFO 57472 --- [  restartedMain] c.s.s.Application : maxConnections = 10000
2019-10-24 20:22:31.175  INFO 57472 --- [  restartedMain] c.s.s.Application : maxThreads = 1000
</code></pre>

<code>loadtest.jmx</code>

<pre><code>    &lt;elementProp name=""ThreadGroup.main_controller"" elementType=""LoopController"" guiclass=""LoopControlPanel"" testclass=""LoopController"" testname=""Loop Controller"" enabled=""true""&gt;
      &lt;boolProp name=""LoopController.continue_forever""&gt;false&lt;/boolProp&gt;
      &lt;stringProp name=""LoopController.loops""&gt;100&lt;/stringProp&gt;
    &lt;/elementProp&gt;
    &lt;stringProp name=""ThreadGroup.num_threads""&gt;10000&lt;/stringProp&gt;
    &lt;stringProp name=""ThreadGroup.ramp_time""&gt;10&lt;/stringProp&gt;
</code></pre>

<p>(10,000 users x 100 loops = 1 million requests)</p>

<p>In JMeter <code>View Results Tree</code> I see the errors:</p>

<pre><code>Response code: Non HTTP response code: java.net.SocketTimeoutException
Response message: Non HTTP response message: Read timed out
</code></pre>

<p>The <code>Summary Report</code> shows it got up to 11,000 samples before errors stopped the test. I don't understand because with an accept count of 100,000, shouldn't it accept 100,000 connections in the queue before it starts to give rejections and cause JMeter to get a SocketTimeoutException?</p>

<hr>

<p>I also tried <code>accept-count=10000</code>, <code>max-connections=1000</code>, and JMeter got up to 8000 samples, max time 12000ms (30s timeout on <code>HTTP Request</code>) and it gave the error <code>Response code: Non HTTP response code: org.apache.http.conn.HttpHostConnectException
Response message: Non HTTP response message: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect</code>. It should at the very least queue 10,000 connections before refusing. </p>
",https://stackoverflow.com/questions/58551216/why-do-i-get-sockettimeoutexception-when-i-have-accept-count-100000,"['java', 'performance', 'spring-boot', 'jmeter', 'load-testing']",425,False,0,1
Large Batches of Indexing vs. Trickling Requests,"<p>We are currently using an Elasticsearch cluster in production for storing product data. As we get updates to the products, we perform continuous updates to the elasticsearch cluster, of course we use the batch requests. But I'm curious if the continuous updates cause a significant performance disadvantage as opposed to creating a large batch update every 30 minutes or so.</p>

<p>I can also increase the refresh setting on the index to 30 minutes as well but not sure if there will be a significant performance increase without doing tons of load testing.</p>

<p>Anyone have any suggestions?</p>
",https://stackoverflow.com/questions/54248475/large-batches-of-indexing-vs-trickling-requests,['elasticsearch'],23,False,0,0
JMeter - Load Test a user scenario,"<p>I am load testing a scenario in JMeter. I'm trying to achieve a certain amount of r/s and then sustain that for x amount of time. However, with the testing tool, it looks like falling short of r/s  for each endpoint. Do I just need more virtual users from the system? or is an additional fix needed for the test plan below?</p>

<pre><code>  HTTP Header Manager 
  User Defined Variables
  DNS Cache Manager
  HTTP Authorization Manager
  HTTP Cache Manager
  Thread Group
     HTTP Cookie Manager
     CSV Data Set Config # 1 
     HTTP Request #1
        HTTP Header Manager
     HTTP Request #2
        HTTP Header Manager
        JSON Extractor
     HTTP Request #3
        HTTP Header Manager
     CSV Data Set Config # 2
     HTTP Request #4
        JSR2223 PreProcessor
        HTTP Header Manager
</code></pre>

<p>The CSV Data Set Config # 1 is CSV of username and passwords that are passed to HTTP Requests #1 and #2. The JSON Extractor extracts values from HTTP Request #2 to the HTTP Header Manager of HTTP Request #3.</p>
",https://stackoverflow.com/questions/54953554/jmeter-load-test-a-user-scenario,"['jmeter', 'blazemeter', 'jmeter-5.0']",159,False,0,1
postgres checkpointer process exited with exit code 0,"<p>I have a website using postgresql on vps. at the same time 2 days in a row I get an error and the postgres server reboots</p>

<p><strong>1 day:</strong></p>

<pre><code>2019-03-15 05:58:53.305 UTC [1329] LOG:  shutting down
2019-03-15 05:58:53.313 UTC [1311] LOG:  checkpointer process (PID 1329) exited with exit code 0
2019-03-15 05:58:53.313 UTC [1311] LOG:  terminating any other active server processes
2019-03-15 05:58:53.314 UTC [6441] retouch@retouch_db WARNING:  terminating connection because of crash of another server process
2019-03-15 05:58:53.314 UTC [6441] retouch@retouch_db DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another
 server process exited abnormally and possibly corrupted shared memory.
</code></pre>

<p><strong>2 day:</strong></p>

<pre><code>2019-03-16 05:53:10.368 UTC [16248] LOG:  shutting down
2019-03-16 05:53:10.375 UTC [16245] LOG:  checkpointer process (PID 16248) exited with exit code 0
2019-03-16 05:53:10.375 UTC [16245] LOG:  terminating any other active server processes
2019-03-16 05:53:10.376 UTC [25344] retouch@retouch_db WARNING:  terminating connection because of crash of another server process
2019-03-16 05:53:10.376 UTC [25344] retouch@retouch_db DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because anothe
r server process exited abnormally and possibly corrupted shared memory.
</code></pre>

<p>I do load testing of the site and make a stream of requests directly to the database and it works well. But for 2 days in a row at a certain time I get an error restarting the server</p>

<p>The server has enough memory to start the server. The charts show that the memory not runs out, and in dmesg there is no record of postgres</p>
",https://stackoverflow.com/questions/55194839/postgres-checkpointer-process-exited-with-exit-code-0,['postgresql'],621,False,0,0
How to set 1000 threads which needs to completed in 1 minute(60 sec) by using stepping thread group in jmeter?,"<p>I am having a requirement to perform a load testing for api's with 1000 request per minute. i have setup a stepping thread group as displayed below :</p>

<p><img src=""https://i.stack.imgur.com/BIBhn.png"" alt=""1""></p>

<ul>
<li>In above image you can see that i have configured the parameters as 20 threads per second ,so it will take 50 seconds to reach 1000 threads. but still graph shows 2 min and 31 sec to completed the 1000 request.so please help me to set it.</li>
</ul>

<p>Please help me to configure it properly , my exact requirement is as displayed below :</p>

<p>1) 1000 threads
2) In 1 minute it needs to be completed.</p>
",https://stackoverflow.com/questions/58517475/how-to-set-1000-threads-which-needs-to-completed-in-1-minute60-sec-by-using-st,"['jmeter', 'performance-testing', 'load-testing', 'jmeter-plugins']",1158,False,0,2
Understand Response Time,"<p>I'm trying load testing using JMeter and application is developed using .Net
When I see JMeter Log, these are the values:
Latency: 142
Connect: 81
Elapsed: 142</p>

<p>When I checked IIS Log file for the same request, I noticed ""Time-Taken"" column is: 31
All values in milli-seconds.</p>

<p>Since JMeter Latency includes connect time I'm assuming processing time for that request is 142-81= 61</p>

<p>Why is there a discrepancy between JMeter Elapsed time and IIS Log file ""Time-Taken"" value?</p>

<p>Is there anything else considered in JMeter elapsed time calculation?</p>

<p>I'm executing JMeter in NON-GUI mode with no listeners.</p>
",https://stackoverflow.com/questions/55927289/understand-response-time,"['asp.net', 'performance', 'iis', 'jmeter', 'response-time']",134,False,0,1
URL rewrite on apache http server on windows,"<p>I'm using Apache Module <code>mod_proxy_balancer</code> as a load balancer on windows machine to direct traffic into different ports on iis. The apache and iis is running on the same server.</p>

<p>I'm running some load-testing and would need unique id to be appended to the url. Is it possible to get the JsessionId from the cookie and append that to the url. If so, how? </p>

<p>Another option could be to generate some unique string and append that to the url?</p>

<p>My Apache knowledge is little limited and don't seem to get the url rewrite working.</p>

<p>Here is my <code>httpd-vhosts config</code> file:</p>

<pre><code>&lt;VirtualHost _default_:8080&gt;
  DocumentRoot ""C:/HTTPD/Apache24/htdocs""

  #ServerName www.example.com:80

  Header add Set-Cookie: ""ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/"" env=BALANCER_ROUTE_CHANGED
  &lt;Proxy balancer://mycluster&gt;
    BalancerMember ""http://localhost:8081"" route=node110
    BalancerMember ""http://localhost:8082"" route=node111
    ProxySet lbmethod=byrequests
  &lt;/Proxy&gt;

  ProxyPass / balancer://mycluster/ stickysession=ROUTEID scolonpathdelim=On timeout=600
  ProxyPassReverse / balancer://mycluster/
  ProxyPreserveHost On

&lt;/VirtualHost&gt;
</code></pre>
",https://stackoverflow.com/questions/58031938/url-rewrite-on-apache-http-server-on-windows,"['apache', 'iis', 'url-rewriting', 'append', 'jsessionid']",191,False,0,1
Bot endpoint is giving 200 status but response body asks to sign in,"<p>I am new to bot framework. I am trying to test bot which is deployed on the dev server. </p>

<p>I am following the following article:</p>

<p><a href=""https://blog.botframework.com/2017/06/19/load-testing-a-bot/"" rel=""nofollow noreferrer"">https://blog.botframework.com/2017/06/19/load-testing-a-bot/</a></p>

<p>I have got a token from the OAuth URL. Now I am trying to send a message to my deployed bot endpoint. I am getting 200 status but somehow body response gives me to text/Html content asks me to sign into your account.</p>

<p>Bots endpoint: <a href=""http://www.mydomain.azurwebsites.net/api/messages/v3"" rel=""nofollow noreferrer"">www.mydomain.azurwebsites.net/api/messages/v3</a></p>

<p>I have passed the authorization token in the header. 
Authorization: bearer .
Can you please help me here?</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/56015506/bot-endpoint-is-giving-200-status-but-response-body-asks-to-sign-in,"['c#', 'botframework', 'bots', 'azure-language-understanding']",50,False,0,0
Make Http call outside of a scenario in gatling,"<p>My use case is to make an http call, get the redirect url from the Location header in the response, and use this url to perform my load testing. This url is dynamically generated and hence the initial first http call. Note that testing the first http call is not part of my test. What is the best way to achieve this ? Is there something like a @BeforeMethod equivalent here in gatling ? Can gatling itself be used to make the standalone http call or do I need to use basic scala to achieve this ? So far I have this : </p>

<pre><code>val httpConfig = http
  .inferHtmlResources()
  .acceptHeader(""*/*"")
  .acceptEncodingHeader(""gzip, deflate"")
  .acceptLanguageHeader(""en-US,en;q=0.5"")
  .header(""Authorization"", ""Negotiate "" + token)
  .doNotTrackHeader(""1"")
  .userAgentHeader(""Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0"")

val scn = scenario(""My Tests"").exec(http(""Health check"")
  .get(""https://example-server.com"")
  .check(status.is(200)))

setUp(
  scn.inject(atOnceUsers(10))
).protocols(httpConfig)
</code></pre>

<p>My understanding of gatling and scala is limited. Hence this basic question.</p>
",https://stackoverflow.com/questions/58762216/make-http-call-outside-of-a-scenario-in-gatling,"['scala', 'load-testing', 'gatling']",2919,True,4,3
Open JDK 11 HTTP/2 Handshake ServerHello java.util.NoSuchElementException,"<p>When testing the Open JDK 11 HTTP client over HTTP/2, there is a server-side error which looks like a JDK 11 bug.</p>

<p>The test runs several threads against a Tomcat 9 server, testing that all threads use HTTP/2 and TLS1.3.  </p>

<p>The concern is that the error is inside the 'sun.security.ssl.SSLHandshake.produce', which means it is not Tomcat, but the JDK causing the error.</p>

<p>Can anyone confirm that you have had the same experience when load testing the HTTP layer of JDK 11?  If so, I will reported to the Open JDK team.</p>

<p>The error is only evident when running a load test:</p>

<pre><code>java.util.NoSuchElementException: No value present
        at java.base/java.util.Optional.get(Optional.java:148) ~[na:na]
        at java.base/sun.security.ssl.ServerHello$T13ServerHelloProducer.produce(ServerHello.java:551) ~[na:na]
        at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436) ~[na:na]
        at java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.goServerHello(ClientHello.java:1224) ~[na:na]
        at java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.consume(ClientHello.java:1160) ~[na:na]
        at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:849) ~[na:na]
        at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:810) ~[na:na]
        at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392) ~[na:na] ...
</code></pre>

<p>This <a href=""https://github.com/ulrichenslin/jdk11SpringBootIntermittentSslError"" rel=""noreferrer"">github</a> project was used for testing.  See the project readme for more details.</p>
",https://stackoverflow.com/questions/54636285/open-jdk-11-http-2-handshake-serverhello-java-util-nosuchelementexception,"['java', 'java-11', 'java-http-client']",1703,False,9,0
Not able to start jmeter using docker in distributed mode,"<p>I am trying to have a distributed load testing POC using Jmeter. I have followed tutorial mentioned in this medium article - <a href=""https://medium.com/@bongster88/thanks-for-your-contents-306c148b818"" rel=""nofollow noreferrer"">link</a></p>

<p>The repo for the code is here - <a href=""https://github.com/vepo/jmeter-docker"" rel=""nofollow noreferrer"">https://github.com/vepo/jmeter-docker</a></p>

<p>Since the Jmeter version used in the tutorial link is <code>3.3</code>, I changed the Dockerfile inside <code>jmeter-base</code> to pull the most recent version <code>5.5.1</code></p>

<p>New Dockerfile inside <code>jmeter-base</code> :</p>

<pre><code>FROM java:8

RUN mkdir /jmeter \
    &amp;&amp; cd /jmeter/ \
    &amp;&amp; wget http://mirrors.estointernet.in/apache//jmeter/source/apache-jmeter-5.1.1_src.tgz \
    &amp;&amp; tar -xvzf apache-jmeter-5.1.1_src.tgz \
    &amp;&amp; rm apache-jmeter-5.1.1_src.tgz

ENV JMETER_HOME /jmeter/apache-jmeter-5.1.1/

# Add Jmeter to the Path
ENV PATH $JMETER_HOME/bin:$PATH
</code></pre>

<p>I have not made any other changes in the dockerfile.</p>

<p>As per the readme, when I run the command <code>./exec-jmeter.sh 4</code> (4 being the count of slaves), I keep getting this error</p>

<p><code>/bin/bash: ../bin/jmeter: No such file or directory</code></p>

<p>I tried with the full path like - </p>

<p><code>../jmeter/apache-jmeter-5.1.1/bin/jmeter</code>, and also <code>../jmeter/bin/jmeter</code> but I still keep getting the same error.</p>

<p>What am I doing wrong here. </p>
",https://stackoverflow.com/questions/56130206/not-able-to-start-jmeter-using-docker-in-distributed-mode,"['docker', 'jmeter', 'performance-testing']",246,True,2,1
Elasticsearch - High CPU usage for simple query while load testing,"<p>I have an Elasticsearch index having about 93 million documents (68.8GB) on 3 shards. While doing load testing (300 concurrent requests) with one certain query, the CPU usage shoots up to 100%. The query is fairly simple:</p>

<pre><code>{""query"": 
    {""bool"": 
        {""must"": [
            {""match"": {""release_title"": ""Spider - Singles Collection 1976-86""}}, 
            {""match"": {""track_title"": ""TALKIN BOUT ROCK N ROLL (New Version)""}}
                 ]
        }
    }
}
</code></pre>

<p>However, if I make the same type of query with different strings, the CPU usage is normal. For example, the CPU usage is normal for the following query:</p>

<pre><code>{""query"": 
    {""bool"": 
        {""must"": [
            {""match"": {""release_title"": ""Spark Seeker""}}, 
            {""match"": {""track_title"": ""Live Like A Warrior""}}
                 ]
        }
    }
}
</code></pre>

<p>Here is the output of Hot Threads (I'm a beginner in ES, not sure how to interpret this):</p>

<pre><code>Hot threads at 2019-03-19T12:21:30.840Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=t
rue:

   81.4% (407.1ms out of 500ms) cpu usage by thread 'elasticsearch[3jOzxpW][search][T#2]'
     5/10 snapshots sharing following 21 elements
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation
.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     5/10 snapshots sharing following 17 elements
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)

   80.9% (404.2ms out of 500ms) cpu usage by thread 'elasticsearch[3jOzxpW][search][T#3]'
     7/10 snapshots sharing following 21 elements
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:200)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 23 elements
       org.apache.lucene.search.DisiPriorityQueue.downHeap(DisiPriorityQueue.java:158)
       org.apache.lucene.search.DisiPriorityQueue.updateTop(DisiPriorityQueue.java:119)
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:67)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     unique snapshot
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)

   78.6% (392.8ms out of 500ms) cpu usage by thread 'elasticsearch[3jOzxpW][search][T#13]'
     4/10 snapshots sharing following 20 elements
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:200)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 21 elements
       org.apache.lucene.search.DisjunctionDISIApproximation.advance(DisjunctionDISIApproximation.java:66)
       org.apache.lucene.search.ConjunctionDISI.doNext(ConjunctionDISI.java:202)
       org.apache.lucene.search.ConjunctionDISI.nextDoc(ConjunctionDISI.java:240)
       org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 24 elements
       org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:198)
       org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:752)
       org.apache.lucene.search.BooleanWeight.&lt;init&gt;(BooleanWeight.java:57)
       org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:226)
       org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:752)
       org.apache.lucene.search.BooleanWeight.&lt;init&gt;(BooleanWeight.java:57)
       org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:226)
       org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:752)
       org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:735)
       org.elasticsearch.search.internal.ContextIndexSearcher.createNormalizedWeight(ContextIndexSearcher.java:108)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
     2/10 snapshots sharing following 17 elements
       org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
       org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
       org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:379)
       org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:106)
       org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:259)
       org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:273)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:300)
       org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:297)
       org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
       org.elasticsearch.transport.TransportService$6.doRun(TransportService.java:577)
       org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:527)
       org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)
</code></pre>

<p>The system has 14 cores and 40GB of RAM. I've set the JVM heap size to 16GB. Could someone help me figure out what's going wrong?</p>
",https://stackoverflow.com/questions/55241278/elasticsearch-high-cpu-usage-for-simple-query-while-load-testing,['elasticsearch'],892,False,2,0
node[43580]: pthread_create: Resource temporarily unavailable,"<p>I found a NodeJS script on Github <a href=""https://github.com/eyetime-international-ltd/rocketchat_loadtest_message_listener"" rel=""nofollow noreferrer"">rocketchat_loadtest_message_listener</a> that allows to load test an NodeJS application called Rocket Chat. The script uses the NodeJS module <a href=""https://nodejs.org/api/cluster.html"" rel=""nofollow noreferrer""><code>cluster</code></a>; when the script is executed for the load testing, it forks individual processes for each user.</p>

<p>I have been testing with 10000 users, and in somewhere around I receive an error and my script exits. In <code>htop</code>, I can see it creates around 8000 threads created before it exits.</p>

<pre><code>node[43580]: pthread_create: Resource temporarily unavailable
internal/cluster/worker.js:54
  return this.process.send.apply(this.process, arguments);
                           ^

TypeError: Cannot read property 'apply' of undefined
    at Worker.send (internal/cluster/worker.js:54:28)
    at main (/home/ubuntu/rocketchat_loadtest_message_listener/message_listener/app.js:194:20)
    at Object.&lt;anonymous&gt; (/home/ubuntu/rocketchat_loadtest_message_listener/message_listener/app.js:277:3)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
</code></pre>

<p><a href=""https://i.stack.imgur.com/FRVWR.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/FRVWR.png"" alt=""htop screenshot""></a></p>

<p>What seems to be the problem? Is it the linux kernel preventing or the NodeJS/NodeJS module to create the process/threads? I had tried altering the <code>ulimit -s</code> but didn't see any difference. Here's the result of <code>ulimit -a</code>.</p>

<pre><code>core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 127506
max locked memory       (kbytes, -l) 16384
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 127506
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
</code></pre>
",https://stackoverflow.com/questions/59298138/node43580-pthread-create-resource-temporarily-unavailable,['node.js'],6760,True,1,3
Table insertions using stored procedures?,"<p><em>(Submitting for a Snowflake User, hoping to receive additional assistance)</em></p>

<hr>

<p>Is there another way to perform table insertion using a stored procedure faster?
I started building a usp with the purpose to insert million or so of rows of test data into a table for the purpose of load testing.</p>

<p>I got to this stage show below and set the iteration value to 10,000.</p>

<p>This took over 10 mins to iterate 10,000 times to insert a single integer into a table each iteration</p>

<p>Yes - I am using a XS data warehouse, but even if this is increased to MAX - this is way to slow to be of any use.</p>

<p>--build a test table</p>

<pre><code>CREATE OR REPLACE TABLE myTable
(
   myInt NUMERIC(18,0)
);
</code></pre>

<p>--testing a js usp using a while statement with the intention to insert multiple rows into a table (Millions) for load testing</p>

<pre><code>CREATE OR REPLACE PROCEDURE usp_LoadTable_test()
RETURNS float
LANGUAGE javascript
EXECUTE AS OWNER
AS
$$
//set the number of iterations
   var maxLoops = 10;
//set the row Pointer
   var rowPointer = 1;
//set the Insert sql statement
   var sql_insert = 'INSERT INTO myTable VALUES(:1);';   
//Insert the fist Value
       sf_startInt = rowPointer + 1000;
       resultSet = snowflake.execute( {sqlText: sql_insert, binds: [sf_startInt] });
//Loop thorugh to insert all other values
   while (rowPointer &lt; maxLoops)
   {
       rowPointer += 1;
       sf_startInt = rowPointer + 1000;
       resultSet = snowflake.execute( {sqlText: sql_insert, binds: [sf_startInt] });
   }

   return rowPointer;
$$;
CALL usp_LoadTable_test();
</code></pre>

<hr>

<p>So far, I've received the following recommendations:</p>

<p><strong><em>Recommendation #1</em></strong></p>

<p>One thing you can do is to use a ""feeder table"" containing 1000 or more rows instead of <strong>INSERT ... VALUES</strong>, eg:</p>

<pre><code>INSERT INTO myTable SELECT &lt;some transformation of columns&gt; FROM ""feeder table""
</code></pre>

<hr>

<p><strong><em>Recommendation #2</em></strong></p>

<p>When you perform a million single row inserts, you consume one million micropartitions - each 16MB.</p>

<p>That 16 TB chunk of storage might be visible on your Snowflake bill ... Normal tables are retained for 7 days minimum after drop.</p>

<p>To optimize storage, you could define a clustering key and load the table in ascending order with each chunk filling up as much of a micropartition as possible.</p>

<hr>

<p><strong><em>Recommendation #3</em></strong></p>

<p>Use data generation functions that work very fast if you need sequential integers: <a href=""https://docs.snowflake.net/manuals/sql-reference/functions/seq1.html"" rel=""nofollow noreferrer"">https://docs.snowflake.net/manuals/sql-reference/functions/seq1.html</a></p>

<hr>

<p><em>Any other ideas?</em></p>
",https://stackoverflow.com/questions/58457041/table-insertions-using-stored-procedures,['snowflake-cloud-data-platform'],270,True,1,1
what does deploy command does in aws sagemaker?,"<p>I am curious to know what does the model.deploy command actually does in the background when implemented in aws sagemaker notebook
for eg :
<strong>predictor = sagemaker_model.deploy(initial_instance_count=9,instance_type='ml.c5.xlarge')</strong></p>

<p>and also at the time of sagemaker endpoint autoscaling what is happening in the background, it is taking to long almost 10 minutes to launch a new-instances, by which most of the requests get dropped or not processed and also getting connection timeout while load testing threw JMeter. Is there any way to fast bootup or golden AMI kind of thing in sagemaker?</p>

<p>are there any other means by which this issue can be solved?  </p>
",https://stackoverflow.com/questions/58970673/what-does-deploy-command-does-in-aws-sagemaker,"['amazon-web-services', 'machine-learning', 'autoscaling', 'amazon-sagemaker']",46,True,-1,1
How can I solve a time out error in Jmeter,"<p>I am working with load testing in Jmeter and Blazemeter and I apply it in two different versions of the web application. One is the test version and the other is the production version. My script works fine in test version but not in the other one. Here I get some petitions that throw errors like this:</p>

<pre><code>java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at sun.security.ssl.OutputRecord.writeBuffer(Unknown Source)
    at sun.security.ssl.OutputRecord.write(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.writeRecordInternal(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at sun.security.ssl.AppOutputStream.write(Unknown Source)
    at org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:124)
    at org.apache.http.impl.io.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:160)
    at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:113)
    at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:120)
    at org.apache.http.entity.StringEntity.writeTo(StringEntity.java:167)
    at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156)
    at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:152)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$5.doSendRequest(HTTPHC4Impl.java:392)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:843)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:574)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1220)
    at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:622)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:546)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
    at java.lang.Thread.run(Unknown Source)
</code></pre>

<p>I change the timeout values of the petition that throw that error but it does not work. It gives me this error: </p>

<pre><code>java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at sun.security.ssl.InputRecord.readFully(Unknown Source)
    at sun.security.ssl.InputRecord.read(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
    at sun.security.ssl.AppInputStream.read(Unknown Source)
    at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
    at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
    at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
    at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
    at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:843)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:574)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1220)
    at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:622)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:546)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
    at java.lang.Thread.run(Unknown Source)
</code></pre>

<p>I am new to jmeter. I do not know how to solve this. Maybe it is not an error of my script. Still... do you have any suggestions?</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/59197846/how-can-i-solve-a-time-out-error-in-jmeter,"['jmeter', 'blazemeter']",1101,False,0,1
How to do Load Testing using Soap UI for a specific Time and Specific Thread count,"<p>I have to do load testing using <code>soapui</code> for 100 users within one hour and
calculate the <code>Transactions Per Second</code>.</p>

<p>I am using:<br>
Threads: 10<br>
Strategy:simple<br>
Test delay: 1000<br>
Random : 0.5<br>
Limit: 10 Runs per thread</p>

<p>And in settings I have ticked ""based on actual Time passed"".</p>

<p>I am using runs per second, because then the count will be 100 (10 threads
* 10 runs per thread)</p>

<p><strong>Question1:</strong> How can I make these users run for an hour?</p>

<p><strong>Question2:</strong> Is the TPS visible in SoapUI correct? I mean when I have selected ""actual Time passed"" is TPS calculated with the waiting time? If so how can I get the TPS without waiting time?</p>

<p>Thanks!</p>
",https://stackoverflow.com/questions/54879330/how-to-do-load-testing-using-soap-ui-for-a-specific-time-and-specific-thread-cou,"['load', 'soapui', 'performance-testing', 'load-testing']",238,False,0,1
"In my web application, one of the component is slower than other components, how to deal with that?","<p>Suppose I have a micro-services based architecture. Some of the micro-services are more heavily loaded than others.How I decide how much scaling I do for each of the components? My understanding is I do load testing &amp; find out how much load each of the service can bear &amp; based on that some service I scale say by a factor of 3, some by factor of 5 etc. Now suppose I have a service - payment service - which depends on 3rd party payment gateway which is slow and not in my control - how to deal with that? I am free to containerize the application &amp; user docker/kubernetes.</p>
",https://stackoverflow.com/questions/57747854/in-my-web-application-one-of-the-component-is-slower-than-other-components-how,"['design-patterns', 'architecture', 'microservices']",58,True,0,1
Oracle system information query - Database instance level,"<p>I am writing a performance/system monitoring tool to augment load testing for my team's product and I am trying to store database system information with the results bundle but do not know how to write the query to capture this in Oracle (I'm a developer not a DBA).</p>

<p>I have this all working the way I want for SQL Server, but I need to do the same for Oracle.  Below is a query I found online for this is SQL Server:</p>

<pre><code>SELECT CONVERT(varchar(128),SERVERPROPERTY('ComputerNamePhysicalNetBIOS')) AS 'computerNamePhysicalNetBIOS', 
CONVERT(varchar(128),SERVERPROPERTY('MachineName')) AS 'machineName', 
CONVERT(varchar(128),SERVERPROPERTY('Edition')) AS 'edition', 
CONVERT(varchar(128),SERVERPROPERTY('ProductLevel')) AS 'productLevel', 
CONVERT(varchar(128),SERVERPROPERTY('ProductVersion')) AS 'productVersion', 
CONVERT(varchar(128),SERVERPROPERTY('BuildClrVersion')) AS 'buildClrVersion', 
CONVERT(INT,SERVERPROPERTY('ProcessID')) AS 'processID', 
CONVERT(INT,SERVERPROPERTY('EngineEdition')) AS 'engineEdition', 
CONVERT(INT,SERVERPROPERTY('HadrManagerStatus')) AS 'hadrManagerStatus', 
CONVERT(INT,SERVERPROPERTY('IsHadrEnabled')) AS 'hadrEnabled', 
CONVERT(INT,SERVERPROPERTY('IsAdvancedAnalyticsInstalled')) AS 'advancedAnalyticsInstalled', 
CONVERT(INT,SERVERPROPERTY('IsClustered')) AS 'clustered', 
CONVERT(INT,SERVERPROPERTY('IsPolybaseInstalled')) AS 'polybaseInstalled', 
CONVERT(INT,SERVERPROPERTY('IsXTPSupported')) AS 'xtpSupported', 
CONVERT(INT,SERVERPROPERTY('LCID')) AS 'lcid', 
CONVERT(varchar(128),SERVERPROPERTY('ResourceVersion')) AS 'resourceVersion', 
CONVERT(varchar(128),SERVERPROPERTY('ServerName')) AS 'serverName', 
CONVERT(varchar(128),APP_NAME() )AS 'appName', 
CONVERT(INT,DB_ID()) AS 'dbId', 
CONVERT(varchar(128),DB_NAME()) AS 'dbName'
</code></pre>

<p>I don't really expect a one-to-one column match between the above query and Oracle's version, but in general, how can I get very similar information from Oracle?</p>
",https://stackoverflow.com/questions/57596750/oracle-system-information-query-database-instance-level,"['sql', 'oracle', 'metadata']",993,True,0,2
Rest API based TCP client using Node js,"<p>I have tried to create TCP Client with rest api using nodejs and also used net module to establish tcp connection to send/receive data. The main idea is to use this restAPI from browser to load test TCP Connections.</p>

<p>Here in my case there are 2 steps involved while load testing TCP.
1) send initial TCP request which has token for authentication.
2) then send other TCP request to send some data.</p>

<p>The issue is when i try to send 2nd TCP request after authentication. Getting response as invalid session.</p>

<p>Please suggest if i can send TCP request for authentication and using same session/connection while making subsequent requests.</p>

<p>I am new to node js. My Apologize if I have not provided enough details or done some thing invalid.</p>

<p>Initially I have used Packet Sender application and enabled persistent TCP Connection option in it. It worked well as expected but this is for single user and cant use this tool for load testing. Here in this tool with persistent TCP enabled I can see the local port is fixed and not changing upon sending multiple requests but with my node js code i can see the local port is getting changed upon every new request.</p>

<p>I have also used TCP Sampler in Jmeter with reuse Connection option but not working when i send 2nd request after authentication.</p>

<pre><code>var Net = require('net');
var express = require(""express"");
var bodyParser = require('body-parser');
var app = express();

app.use(bodyParser.json());

app.post('/api/push', function (req, res) {

var reqBody = req.body.reqBody;

var req = JSON.stringify(reqBody);

const client = new Net.Socket({
        allowHalfOpen: true
    });

client.connect({
    port: req.body.port,
    host: req.body.host
}, function () {

    client.write(req);

});

client.on('data', function (chunk) {

    res.write(chunk.toString());

    //Tried to use client connection information, but didnt worked not sure if i missed something.
    console.log(JSON.stringify(client));

    // Tried commenting below client.end but no luck.
    client.end();

});

client.on('end', function () {
    res.end();

});

client.on('error', function (err) {

    console.log(""Error: "" + err.message);
    res.write(err.message);
    client.end();

});

});

app.listen(1234, () =&gt; {
    console.log(""Server running on port 1234"");
});
</code></pre>

<p>1) send restAPI with TCP server host/port and request body for authentication.
2) send another restAPI to use same TCP connection and send data. but it failed for mere</p>
",https://stackoverflow.com/questions/55608996/rest-api-based-tcp-client-using-node-js,"['javascript', 'node.js', 'tcpclient']",893,False,0,1
Big performance reduction after Rails 5 upgrade,"<p>We have completed upgrading our app from Rails 4.2 to 5.2.  When we run load testing on the 5.2 version it can only handle half the load of the 4.2 version.  In looking at NewRelic stats during the load tests it seems to be slower everywhere - pretty much every request, ActiveRecord calls, redis calls, ruby, etc.  We have confirmed it is not related to other upgrades that happened in addition - ruby upgrade, upgrading pg gem, or upgrading puma.  While researching, the only performance issues I have found related to the upgrade have been fixed.</p>

<p>Has anyone run into something similar or have pointers on where to look?</p>

<p>What we have tried so far:</p>

<pre><code>1. Check non-rails related upgrades that happened at the same time:
   - Upgrade 4.2 branch to same version of ruby to see if that has any impact (no impact)
   - Downgrade puma and pg gems in Rails 5 branch (no impact)
2. Examine performance traces for slower transactions and DB queries.  Remove the slowest interactions from the load test to see if the overall slowest continues (it does).
3. Test if slowness appears in Rails 5.1 (it does).  
</code></pre>

<p>What we are planning to try:</p>

<pre><code>1. Test if slowness appears in Rails 5.0.
2. See if slowest can be detected in single user use rather than load test.
3. Use https://github.com/tleish/ruby-prof-rails to see if we can get more statistics to examine.
4. Downgrade all gems except the ones we absolutely need for the Rails 5 upgrade and see if problem still exists.
</code></pre>
",https://stackoverflow.com/questions/59432762/big-performance-reduction-after-rails-5-upgrade,"['ruby-on-rails', 'performance', 'ruby-on-rails-5']",593,True,4,1
Jmeter for loop http request - parallel,"<p>I am using JMeter for image load testing.
I have an array of the image name and looping over that array, I am getting all the image via HTTP request.</p>

<pre><code>-&gt; loop_over_image - for loop controller
   -&gt; http_request sampler
</code></pre>

<p>for now, it will loop and fetch images via HTTP sampler one by one.</p>

<p>It is possible to make these request parallel.</p>

<p>I am looping over 300 images - means 300 HTTP request, it is taking more than 5 minutes, but in chrome, it is taking 30 seconds because chrome API requests are ASYNC - means kind of parallel.</p>

<p>Is there any way to make these 300 request parallel. I don't think it is possible, because the loop will go to each image one by one.</p>
",https://stackoverflow.com/questions/56072186/jmeter-for-loop-http-request-parallel,"['jmeter', 'load-testing']",804,True,3,2
elb + auto scaling on aws Nginx + .net core web-api,"<p>I am newbie to aws load balancing.  Currently,  I got 504 error and 502 error from elb when I  run load testing.  Normally, my api response less than 1 sec but when I  run concurrent 2000 threads for 10 to 30 mins response time is steady growing up to 1 min after all my threads are clear.  I checked CPU utilization of instances under auto scaling group and all instances CPU are less than 50 percentage.  I also checked the monitoring under target group and elb. 5xx error are shown.  I don't know why my instances are responding 5xx error to elb.  All health checked status are OK.  That's concern with Nginx or. Net core runtime? </p>
",https://stackoverflow.com/questions/54854220/elb-auto-scaling-on-aws-nginx-net-core-web-api,"['nginx', 'asp.net-core-webapi', 'scaling', 'auto', 'aws-elb']",124,False,1,0
"Getting the error Response code: No response Response message: Read timeout, no response received","<p>I am using Jmeter for the load testing of an application which includes web socket connection.</p>

<p>When trying to read the data in a frame using Single Read Sampler,got an error Response code: No response Response message: Read timeout, no response received.</p>

<p>Can anybody help me in solving this issue?</p>

<p>Thread Name: Missouri TestEnv 1-1
Sample Start: 2019-10-09 10:40:43 IST
Load time: 1000
Connect Time: 0
Latency: 0
Size in bytes: 0
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 0
Sample Count: 1
Error Count: 0
Data type (""text""|""bin""|""""): 
Response code: No response
Response message: Read timeout, no response received.</p>

<p>SampleResult fields:
ContentType: 
DataEncoding: null</p>
",https://stackoverflow.com/questions/58297479/getting-the-error-response-code-no-response-response-message-read-timeout-no,"['jmeter', 'performance-testing']",990,True,1,1
JMeter Distributed Runner not able to Generate the Consolidated Reports,"<p>When I am running a simple standalone JMeter script using command line as below</p>

<pre><code>jmeter -n -t your_script.jmx
</code></pre>

<p>This generates a CSV file which contains all the data related to the execution.</p>

<p>However, when the same JMeter file executed for a distributed load testing with multiple JMeter Server IP addresses which will simulate the given number of users and runs on the target server, I am not able to get the <code>jmeter.csv</code>file Generated(But the command runs successfully).</p>

<p>The command I have used for distributed execution is</p>

<pre><code>jmeter -n -t script.jmx -R IP_address1, IP_address2,...
</code></pre>

<p>Now, I should get a consolidated <code>jmeter.csv</code> file from this execution. But, I am not getting one.</p>

<p>Same is the case with JMeter API <code>DistributedRunner Class</code>- We are not getting the consolidated <code>jmeter.csv</code> file and reports.</p>
",https://stackoverflow.com/questions/59316799/jmeter-distributed-runner-not-able-to-generate-the-consolidated-reports,"['performance', 'jmeter']",285,True,1,1
Ignore certain IPs or IP ranges while using Dynamic IP Security setting in IIS web.config,"<p>I have an API running and a front-end node server running for SSR purposes. Everything is on Azure using App Services.</p>

<p>Both the node server and client(s) make requests to the API.</p>

<p>I am trying to apply 'dynamicIpSecurity' in the web.config of my API, but do not want my node server IPs to be throttled by that security setting since it is a trusted 'client'.</p>

<p>Goal is to throttle all other client IPs through this setting in case a client decides to try ddos-ing me or load testing my API without my permission to find loopholes.</p>

<p>I currently have the the dynamic ip security settings commented out, but this is how they look.</p>

<pre><code>&lt;dynamicIpSecurity&gt;
    &lt;!--Restricting single IP to make maximum of 20 concurrent request at a time--&gt;
    &lt;denyByConcurrentRequests enabled=""true"" maxConcurrentRequests=""20"" /&gt;

    &lt;!--Restricting single IP NOT to make more than 50 requests within 3 seconds duration--&gt;
    &lt;denyByRequestRate enabled=""true"" maxRequests=""50"" requestIntervalInMilliseconds=""3000""/&gt;
&lt;/dynamicIpSecurity&gt;
</code></pre>
",https://stackoverflow.com/questions/55385359/ignore-certain-ips-or-ip-ranges-while-using-dynamic-ip-security-setting-in-iis-w,"['azure', 'api', 'iis', 'web-config']",703,False,1,1
During tsung load testing tcp connections are getting closed after 1024 connections,"<p>I am working on distributed load testing with tsung to test my mqtt message broker. My message broker can ideally handle 10k connections now. When iam testing it with tsung for 10k parallel connections i realized that my tcp connections in server are getting closed. </p>

<p>I set the port range and increased ulimit but still i could generate users with tsung but couldn't get 10k concurrent connections at server. </p>

<p>I even tested the broker with other tool called <code>mqtt-bench</code> in this i could generate parallel connections and here the tcp connections are not getting closed. Is there any configuration that iam missing on tsung? </p>

<p>and tsung version is 1.7.0, erlang version is 10.1 </p>
",https://stackoverflow.com/questions/54420530/during-tsung-load-testing-tcp-connections-are-getting-closed-after-1024-connecti,"['tcp', 'mqtt', 'tsung']",458,False,0,4
Spring Boot Soap Service Performance Question,"<p>I am load testing a stub I created in soapUI.  My stub is very simple, it takes a request then does a **Thread.sleep(X) **(picked up from an application.properties file).  It is a Spring Boot soap service and my question is this.  </p>

<p>If I have X as like 1 MS, my application handles thousands of TPS (Transactions Per Second),  If I change that Thread.sleep to something Like 10 seconds, it only handles like 5 TPS.  What is the limiting factor that is causing the degradation?  </p>

<p>I have plenty of threads, CPU and Memory available.  How can I make it so It will utilize all of my resources, and have a higher TPS, but mimic a delay?</p>

<p>Thanks,
Brian</p>
",https://stackoverflow.com/questions/56587508/spring-boot-soap-service-performance-question,['spring-boot'],35,False,0,0
JMeter testing with BIRT report,"<p>I'm writing scripts for Load Testing for an IBM maximo application. This Application creates some BIRT reports and displays them in the same browser window but in a different tab.</p>

<p>I'm clueless how to open these with JMeter http Request. I copied the same request in JMeter as I found in Fiddler, but encountered some errors in the response.</p>

<p>My fiddler request is as follows:</p>

<p><code>reportFile=asset_meters.rptdesign&amp;reportNum=1170&amp;__newrun=true&amp;comments=&amp;fromEmail=no&amp;where=%25EF%25BF%258E%25EF%25BF%25B9%2522%2513%2508%25136%25EF%25BE%25A8J%25EF%25BE%25A8%2501%25EF%25BF%25B5%25EF%25BE%2591%2527%25EF%25BF%2593y%25EF%25BF%25ACU%2523%2518x%251B%25EF%25BF%2580%25EF%25BF%2592%25EF%25BF%25BAh%250C%25EF%25BF%25A8o%25EF%25BE%25B6%2517%25EF%25BF%25A4*%25EF%25BE%25A0o%25EF%25BE%258BN%25EF%25BF%258A%25EF%25BE%25A8b3%25EF%25BF%25A8%250F%2505%25EF%25BE%25BFcU%2522&amp;mroOrg=QRC&amp;redir=%2Fmaximo%2Freport%2F%3F__report%3Dasset_meters.rptdesign%26appname%3DASSET%26__requestid%3D1550750628853%26uisessionid%3D17617%26csrftoken%3D8dkj0qdgphnd347jreegt21lj5&amp;mroApp=ASSET&amp;maxPass=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&amp;redirParams=repositoryType%3DEnterprise&amp;customrptServerLogonPass=&amp;smtpHost=localhost&amp;localTZ=Africa%2FAlgiers&amp;locale=en_US&amp;p_asset=M100000000003&amp;reportDesc=QR+-+Asset+Meters+%26+Installed+Information&amp;mroUniqueKey=190221160348853_29579&amp;extendedFields=false&amp;Email_Choice=PDF&amp;emails=&amp;userName=maxadmin&amp;ParmUserName=maxdemo&amp;reportFolder=ASSET&amp;qbrDisplayWhere=%28assetnum+like+%27%25M100000000003%25%27%29&amp;schema=maxdemo&amp;reportType=BIRT&amp;appname=ASSET&amp;ParmPassword=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&amp;mroSite=METRO&amp;paramdelimiter=%7C%7C&amp;paramstring=appHierarchy%3DASSET&amp;__scheduleType=immediate&amp;__reportname=asset_meters.rptdesign&amp;isDuplex=0&amp;baseTable=ASSET&amp;customserverURL=&amp;__overwrite=new&amp;baseUrl=http%3A%2F%2F172.17.43.71%3A9080</code></p>

<p>JMeter Request is:</p>

<p><code>reportFile=asset_meters.rptdesign&amp;reportNum=1170&amp;__newrun=true&amp;comments=&amp;fromEmail=no&amp;where=%25EF%25BF%258E%25EF%25BF%25B9%2522%2513%2508%25136%25EF%25BE%25A8J%25EF%25BE%25A8%2501%25EF%25BF%25B5%25EF%25BE%2591%2527%25EF%25BF%2593y%25EF%25BF%25ACU%2523%2518x%251B%25EF%25BF%2580%25EF%25BF%2592%25EF%25BF%25BAh%250C%25EF%25BF%25A8o%25EF%25BE%25B6%2517%25EF%25BF%25A4*%25EF%25BE%25A0o%25EF%25BE%258BN%25EF%25BF%258A%25EF%25BE%25A8b3%25EF%25BF%25A8%250F%2505%25EF%25BE%25BFcU%2522&amp;mroOrg=QRC&amp;redir=%2Fmaximo%2Freport%2F%3F__report%3Dasset_meters.rptdesign%26appname%3DASSET%26__requestid%3D1550750847369%26uisessionid%3D17618%26csrftoken%3Detbohmkqeg5ufvpr1tvrv9qp9a&amp;mroApp=ASSET&amp;maxPass=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&amp;redirParams=repositoryType%3DEnterprise&amp;customrptServerLogonPass=&amp;smtpHost=localhost&amp;localTZ=Africa%2FAlgiers&amp;locale=en_US&amp;p_asset=M100000000003&amp;reportDesc=QR+-+Asset+Meters+%26+Installed+Information&amp;mroUniqueKey=190221160727369_29580&amp;extendedFields=false&amp;Email_Choice=PDF&amp;emails=&amp;userName=maxadmin&amp;ParmUserName=maxdemo&amp;reportFolder=ASSET&amp;qbrDisplayWhere=%28assetnum+like+%27%25M100000000003%25%27%29&amp;schema=maxdemo&amp;reportType=BIRT&amp;appname=ASSET&amp;ParmPassword=%25EF%25BE%25AA%25EF%25BE%25A5%2529%25EF%25BF%2592h%2510%25EF%25BE%2596%25EF%25BE%2594&amp;mroSite=METRO&amp;paramdelimiter=%7C%7C&amp;paramstring=appHierarchy%3DASSET&amp;__scheduleType=immediate&amp;__reportname=asset_meters.rptdesign&amp;isDuplex=0&amp;baseTable=ASSET&amp;customserverURL=&amp;__overwrite=new&amp;baseUrl=http%3A%2F%2F172.17.43.71%3A9080</code></p>

<p>The corresponding responses: </p>

<p>Fiddler response is:</p>

<p><a href=""https://i.stack.imgur.com/tBNsA.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/tBNsA.png"" alt=""fiddler Response""></a>  </p>

<p>JMeter response is:</p>

<p><a href=""https://i.stack.imgur.com/cY4LW.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/cY4LW.png"" alt=""Jmeter Response""></a></p>

<p>I checked in the server logs, but found nothing suspicious.  </p>

<p>Then I observed in the JSON tab (in the Fiddler request) something like:</p>

<p><a href=""https://i.stack.imgur.com/Ct5eQ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Ct5eQ.png"" alt=""enter image description here""></a></p>

<p>Is this is the bottleneck reason for me? </p>

<p>How can I embed this in my JMeter request?</p>
",https://stackoverflow.com/questions/54849742/jmeter-testing-with-birt-report,"['jmeter', 'automated-tests', 'load', 'report', 'birt']",148,True,0,1
Performance and loadtest Microsoft Botframework fails after only 50 users,"<p>We are trying to simulate 5000 users to test our bot by using JMeter but are facing issues. There are many requests that are canceled while posting back to the client's url. Following are the tools and links we followed as guide and tools to load test:</p>

<p><a href=""https://blog.botframework.com/2017/06/19/load-testing-a-bot/"" rel=""nofollow noreferrer"">https://blog.botframework.com/2017/06/19/load-testing-a-bot/</a>
<a href=""https://github.com/damadei/BotServiceStressToolkit"" rel=""nofollow noreferrer"">https://github.com/damadei/BotServiceStressToolkit</a> </p>

<p>Looking forward to some guidance on how a load test can be run for the botframework and how to handle the ""request canceled"" in the bot.</p>

<p>EDIT: It works when we execute for up to 50 users, but errors when increasing the number of users. The Post to the client from the bot fails with a canceled result code.</p>
",https://stackoverflow.com/questions/57791827/performance-and-loadtest-microsoft-botframework-fails-after-only-50-users,"['performance', 'load', 'botframework', 'stress-testing']",192,False,0,0
rxjava2 for load testing inconsistencies as result of onComplete event,"<p>There is code that is supposed to do the load testing form some function that performs the http call (we call it <code>callInit</code> here) and collects some data in the <code>LoaTestMetricsData</code>: </p>

<blockquote>
  <ul>
  <li>the collected responses </li>
  <li>and the total duration of the execution.</li>
  </ul>
</blockquote>

<pre><code>import io.reactivex.Observable;
import io.reactivex.Scheduler;
import io.reactivex.Single;
import io.reactivex.observers.TestObserver;
import io.reactivex.schedulers.Schedulers;
import io.reactivex.subjects.PublishSubject;
import io.reactivex.subjects.Subject;
import io.restassured.internal.RestAssuredResponseImpl;
import io.restassured.response.Response;
import org.junit.jupiter.api.Test;

import java.time.Duration;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Supplier;

import static java.lang.Thread.sleep;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.lessThan;

public class TestRx {

    @Test
    public void loadTest() {

        int CALL_N_TIMES = 10;
        final long CALL_NIT_EVERY_MILLISECONDS = 100;

        final LoaTestMetricsData loaTestMetricsData = loadTestHttpCall(
                                                            this::callInit,
                                                            CALL_N_TIMES,
                                                            CALL_NIT_EVERY_MILLISECONDS
                                                            );

        assertThat(loaTestMetricsData.responseList.size(), is(equalTo(Long.valueOf(CALL_N_TIMES).intValue())));

        long errorCount = loaTestMetricsData.responseList.stream().filter(x -&gt; x.getStatusCode() != 200).count();

        long executionTime = loaTestMetricsData.duration.getSeconds();


        //assertThat(errorCount, is(equalTo(0)));

        assertThat(executionTime , allOf(greaterThanOrEqualTo(1L),lessThan(3L)));

    }

    // --

    private Single&lt;Response&gt; callInit() {
        try {
            return Single.fromCallable(() -&gt; {

                System.out.println(""..."");
                sleep(1000);
                Response response = new RestAssuredResponseImpl();
                return response;
            });

        } catch (Exception ex) {
            throw new RuntimeException(ex.getMessage());
        }
    }

    // --

    private LoaTestMetricsData loadTestHttpCall(final Supplier&lt;Single&lt;Response&gt;&gt; restCallFunction, long callnTimes, long callEveryMilisseconds) {

        long startTimeMillis = System.currentTimeMillis();

        final LoaTestMetricsData loaDestMetricsData = new LoaTestMetricsData();

        final AtomicInteger atomicInteger = new AtomicInteger(0);

        final TestObserver&lt;Response&gt; testObserver = new TestObserver&lt;Response&gt;() {
            public void onNext(Response response) {
                loaDestMetricsData.responseList.add(response);
                super.onNext(response);
            }
            public void onComplete() {
                loaDestMetricsData.duration = Duration.ofMillis(System.currentTimeMillis() - startTimeMillis);
                super.onComplete();
            }
        };


        final Subject&lt;Response&gt; subjectInitCallResults = PublishSubject.create(); // Memo: Subjects are hot so if you don't observe them the right time, you may not get events. Thus: subscribe first then emit (onNext)

        final Scheduler schedulerIo = Schedulers.io();

    subjectInitCallResults
            .subscribeOn(schedulerIo)
            .subscribe(testObserver); // subscribe first


        final Observable&lt;Long&gt; source = Observable.interval(callEveryMilisseconds, TimeUnit.MILLISECONDS).take(callnTimes);

        source.subscribe(x -&gt; {
            final Single&lt;Response&gt; singleResult = restCallFunction.get();

            singleResult
                    .subscribeOn(schedulerIo)
                    .subscribe( result -&gt; {

                        int count = atomicInteger.incrementAndGet();

                        if(count == callnTimes) {
                            subjectInitCallResults.onNext(result); // then emit
                            subjectInitCallResults.onComplete();
                        } else {
                            subjectInitCallResults.onNext(result);
                        }


                    });
        });


        testObserver.awaitTerminalEvent();
        testObserver.assertComplete();
        testObserver.assertValueCount(Long.valueOf(callnTimes).intValue()); // !!!

        return loaDestMetricsData;

    }



}
</code></pre>

<p>The: LoaTestMetricsData is defined as:</p>

<pre><code>public class LoaTestMetricsData {
    public List&lt;Response&gt; responseList = new ArrayList&lt;&gt;();
    public Duration duration;
}
</code></pre>

<p><strong>Sometimes</strong> test fails with this error:</p>

<pre><code>java.lang.AssertionError: Value counts differ; expected: 10 but was: 9 (latch = 0, values = 9, errors = 0, completions = 1)
Expected :10 
Actual   :9 (latch = 0, values = 9, errors = 0, completions = 1)
&lt;Click to see difference&gt;
</code></pre>

<p>If someone could tell me why?</p>

<p>As is some of the subjectInitCallResults.onNext() has not been executed, or consumed. But why.. I understand that PublishSubject is hot observable, thus I subscribe for the events before emitting/onNext anything to it.</p>

<p><strong>UPDATE:</strong></p>

<p>What would fix it, is this ugly code, that would wait for the subject to fill up:</p>

<pre><code>    while(subjectInitCallResults.count().blockingGet() != callnTimes) {
        Thread.sleep(100);
    }
   ..
   testObserver.awaitTerminalEvent();
</code></pre>

<p>But is the proper / better way of doing it?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/59109607/rxjava2-for-load-testing-inconsistencies-as-result-of-oncomplete-event,"['java', 'rx-java2', 'load-testing']",58,False,0,0
Jmeter - Do not use cache to retrieve results,"<p>I am using Jmeter for load testing my ASP.NET application.</p>

<p>I am testing search functionality, what is the response time in getting the results.</p>

<p>The problem I am facing is when I search for the first time say I searched ""I am good"" and say it took 9876 milliseconds, next time I search the same thing it takes only 4567 milliseconds, third time 4234 milliseconds. </p>

<p>I am using HTTP CACHE MANAGER and i have checked ""Clear cache each iteration"". I have also used Http Cookie Manager and i have checked ""Clear cookies each iteration""</p>

<p>My expectation is every time it run it should lie somewhere in that range only what it took for first search.</p>

<p>What am I missing?</p>
",https://stackoverflow.com/questions/55873479/jmeter-do-not-use-cache-to-retrieve-results,"['asp.net', 'jmeter']",97,False,0,1
Is Wiretap better to use for asynchronous calls than the ProducerTemplate ASYNC methods of Apache Camel?,"<p>My use case for the async flow is:</p>

<ol>
<li>Client calls Apache Camel and immediately responds with an acknowledgement</li>
<li>Camel then forwards client request to an external system</li>
<li>Camel forwards the external system response back to Client (to a Client API made to await this request/call from Camel)</li>
</ol>

<p>I have tried load testing 2 solutions for this using JMeter:</p>

<ul>
<li><strong>Producer Template Async Send Body</strong>: 13K TPS with 10% Error</li>
<li><strong>Wiretap EIP</strong>: 13K TPS with 1% Error</li>
</ul>

<p>Is there any drawbacks to using the Wiretap instead of Producer Template ASYNC methods? Is there something I can do to put the Producer Template at par with the Wiretap?</p>

<p>EDIT:</p>

<p>Code for Wiretap (RouteBuilder)</p>

<pre class=""lang-java prettyprint-override""><code>from(""some:where"")
  .wiretap(""external:call"")
  .to(""bean:someBean?method=acknowledge"");
</code></pre>

<p>Code for ProducerTemplate</p>

<pre class=""lang-java prettyprint-override""><code>
@Autowired
ProducerTemplate producerTemplate;

public Response asyncCall(Request request) {
  producerTemplate.asyncSend(""external:call"", request);
  Response response = new Response();
  response.setMessage(""Acknowledged"");
  return response;
}
</code></pre>
",https://stackoverflow.com/questions/59449250/is-wiretap-better-to-use-for-asynchronous-calls-than-the-producertemplate-async,"['java', 'apache-camel']",294,False,0,0
Deferred call to sync.WaitGroup.Wait() in Goroutine: why should this work?,"<p>I'm trying to understand the <code>Attack()</code> function (<a href=""https://github.com/tsenart/vegeta/blob/44a49c878dd6f28f04b9b5ce5751490b0dce1e18/lib/attack.go#L253-L312"" rel=""nofollow noreferrer"">https://github.com/tsenart/vegeta/blob/44a49c878dd6f28f04b9b5ce5751490b0dce1e18/lib/attack.go#L253-L312</a>) in the source code of the <code>vegeta</code> load testing tool/library. I've created a simplified example:</p>

<pre><code>package main

import (
    ""fmt""
    ""sync""
    ""time""
)

func main() {
    var wg sync.WaitGroup
    for i := 0; i &lt; 10; i++ {
        wg.Add(1)
        go attack(&amp;wg)
    }
    // wg.Wait()

    go func() {
        defer wg.Wait()
    }()
}

func attack(wg *sync.WaitGroup) {
    defer wg.Done()
    time.Sleep(1 * time.Second)
    fmt.Println(""foobar"")
}
</code></pre>

<p>What I notice is that this function returns immediately without printing <code>foobar</code> 10 times. It is only if comment in the line <code>wg.Wait()</code> that I see <code>foobar</code> printed 10 times after 1 second. This makes sense to me, because the <code>main()</code> function returns before <code>wg.Wait()</code> is called.</p>

<p>What I don't understand, then, is how the <code>Attack()</code> method works in <code>vegeta</code>, because it seems to follow a similar pattern:</p>

<pre><code>func (a *Attacker) Attack(tr Targeter, p Pacer, du time.Duration, name string) &lt;-chan *Result {
    var wg sync.WaitGroup

    workers := a.workers
    if workers &gt; a.maxWorkers {
        workers = a.maxWorkers
    }

    results := make(chan *Result)
    ticks := make(chan struct{})
    for i := uint64(0); i &lt; workers; i++ {
        wg.Add(1)
        go a.attack(tr, name, &amp;wg, ticks, results)
    }

    go func() {
        defer close(results)
        defer wg.Wait()
        defer close(ticks)

        began, count := time.Now(), uint64(0)
        for {
            elapsed := time.Since(began)
            if du &gt; 0 &amp;&amp; elapsed &gt; du {
                return
            }

            wait, stop := p.Pace(elapsed, count)
            if stop {
                return
            }

            time.Sleep(wait)

            if workers &lt; a.maxWorkers {
                select {
                case ticks &lt;- struct{}{}:
                    count++
                    continue
                case &lt;-a.stopch:
                    return
                default:
                    // all workers are blocked. start one more and try again
                    workers++
                    wg.Add(1)
                    go a.attack(tr, name, &amp;wg, ticks, results)
                }
            }

            select {
            case ticks &lt;- struct{}{}:
                count++
            case &lt;-a.stopch:
                return
            }
        }
    }()

    return results
}
</code></pre>

<p>where the <code>attack()</code> method reads</p>

<pre><code>func (a *Attacker) attack(tr Targeter, name string, workers *sync.WaitGroup, ticks &lt;-chan struct{}, results chan&lt;- *Result) {
    defer workers.Done()
    for range ticks {
        results &lt;- a.hit(tr, name)
    }
}
</code></pre>

<p>I don't understand why the <code>Attack()</code> function doesn't return immediately without invoking <code>attack()</code>, since its <code>wg.Wait()</code> is inside a Goroutine?</p>
",https://stackoverflow.com/questions/58866890/deferred-call-to-sync-waitgroup-wait-in-goroutine-why-should-this-work,"['go', 'concurrency', 'goroutine']",866,True,0,1
Why is Celery Async Task working slower than Synchronous task?,"<p>I'm working on a Django application that uses Celery to run some tasks Asynchronously. I tried to perform load testing and check response time using Apache Bench. From what I could figure out from the results is that response time is faster without celery async tasks.<br><br>
I'm using: <li>Django: 2.1.0</li><li>celery: 4.2.1</li><li>Redis (Broker): 2.10.5</li><li>django-redis: 4.9.0</li></p>

<p>Celery configuration in Django settings.py:<br></p>

<pre><code>BROKER_URL = 'redis://127.0.0.1:6379/1'
CELERY_RESULT_BACKEND = 'django-db' # Using django_celery_results
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Asia/Kolkata'
</code></pre>

<p>Following is my code (API exposed by my system):</p>

<pre><code>class CustomerSearch(APIView):

    def post(self, request):
        request_dict = {# Request parameters}
        # Async Block
        response = celery_search_customer_task.delay(request_dict)
        response = response.get()
        # Synchronous Block (uncomment following to make synchronous call)
        # api_obj = ApiCall(request=request_dict)
        # response = api_obj.search_customer() # this makes an API call to 
        return Response(response)
</code></pre>

<p>And the celery task in tasks.py:</p>

<pre><code>@app.task(bind=True)
def celery_search_customer_task(self, req_data={}):
    api_obj = ApiCall(request=req_data)
    response = api_obj.search_customer() # this makes an API call to another system
    return response
</code></pre>

<p>Apache Bench command:</p>

<pre><code>ab -p req_data.data -T application/x-www-form-urlencoded -l -r -n 10 -c 10 -k -H ""Authorization: Token &lt;my_token&gt;"" http://&lt;my_host_name&gt;/&lt;api_end_point&gt;/
</code></pre>

<p>Following is the result of ab:<br>
<strong>Without celery Async Task</strong></p>

<pre><code>Concurrency Level:      10
Time taken for tests:   1.264 seconds
Complete requests:      10
Failed requests:        0
Keep-Alive requests:    0
Total transferred:      3960 bytes
Total body sent:        3200
HTML transferred:       1760 bytes
Requests per second:    7.91 [#/sec] (mean)
Time per request:       1264.011 [ms] (mean)
Time per request:       126.401 [ms] (mean, across all concurrent requests)
Transfer rate:          3.06 [Kbytes/sec] received
                        2.47 kb/s sent
                        5.53 kb/s total

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      259  270  10.7    266     298
Processing:   875  928  36.9    955     967
Waiting:      875  926  35.3    950     962
Total:       1141 1198  43.4   1224    1263

Percentage of the requests served within a certain time (ms)
  50%   1224
  66%   1225
  75%   1231
  80%   1233
  90%   1263
  95%   1263
  98%   1263
  99%   1263
 100%   1263 (longest request)
</code></pre>

<p><strong>With celery Async Task</strong></p>

<pre><code>Concurrency Level:      10
Time taken for tests:   10.776 seconds
Complete requests:      10
Failed requests:        0
Keep-Alive requests:    0
Total transferred:      3960 bytes
Total body sent:        3200
HTML transferred:       1760 bytes
Requests per second:    0.93 [#/sec] (mean)
Time per request:       10775.688 [ms] (mean)
Time per request:       1077.569 [ms] (mean, across all concurrent requests)
Transfer rate:          0.36 [Kbytes/sec] received
                        0.29 kb/s sent
                        0.65 kb/s total

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      259  271   9.2    268     284
Processing:  1132 6128 4091.9   8976   10492
Waiting:     1132 6127 4091.3   8975   10491
Total:       1397 6399 4099.3   9244   10775

Percentage of the requests served within a certain time (ms)
  50%   9244
  66%   9252
  75%  10188
  80%  10196
  90%  10775
  95%  10775
  98%  10775
  99%  10775
 100%  10775 (longest request)
</code></pre>

<p>Isn't celery async task supposed to make tasks work faster than synchronous tasks? What is it that I might be missing here? </p>

<p>Any help would be appreciated. Thanks.</p>
",https://stackoverflow.com/questions/55466493/why-is-celery-async-task-working-slower-than-synchronous-task,"['django', 'redis', 'django-celery']",3952,True,4,2
How can I run the same test on multiple threads in parallel using Selenium in C#?,"<p>Essentially I have 1 test that I want to run on multiple threads at the same time. Currently the only was I have found to do it is to rewrite the test for every thread I want to run so if I want it 10 run 10 times in parallel I have to write 10 tests.</p>

<p>I'm trying to do some minor load testing on a website by using selenium and C# to open multiple instances and attempt to fill in a form. I'm also trying to test race conditions for when the sign-ups are full</p>

<pre><code>[TestFixture]
[Parallelizable]
class TournamentPageScript1
{
    public static IWebDriver driver = new ChromeDriver();

    public static IWebDriver getDriverInstance()
    {
        return driver;
    }

    [SetUp]
    public void initialize()
    {
        driver.Navigate().GoToUrl(""https://mywebsite.com"");            
    }

    [Test]
    public void validateTournamentPage001()
    {
        //do some stuff
    }

    [TearDown]
    public void tearDown()
    {
        driver.Close();
    }
}
[TestFixture]
[Parallelizable]
class TournamentPageScript2
{
    public static IWebDriver driver = new ChromeDriver();

    public static IWebDriver getDriverInstance()
    {
        return driver;
    }

    [SetUp]
    public void initialize()
    {
        driver.Navigate().GoToUrl(""https://mywebsite.com"");            
    }

    [Test]
    public void validateTournamentPage002()
    {
        //do some stuff
    }

    [TearDown]
    public void tearDown()
    {
        driver.Close();
    }
}
</code></pre>

<p>I want to only have to write the test 1 time and have the Selenium repeat the test in parallel over multiple threads.</p>
",https://stackoverflow.com/questions/54538460/how-can-i-run-the-same-test-on-multiple-threads-in-parallel-using-selenium-in-c,"['c#', 'selenium', 'automated-tests', 'nunit']",1074,True,2,1
Jmeter Non HTTP response code: org.apache.http.conn.HttpHostConnectException,"<p>I am Load testing my .Net web application using Jmeter.
For different threads and ramp-up time period, I am getting the same exception everytime:</p>

<pre><code>Non HTTP response code: org.apache.http.conn.HttpHostConnectException/Non HTTP response message: Connect to server failed: Connection timed out: connect 
</code></pre>

<p>I tried with 1000 threads with 100 seconds ramp-up time - 999 threads finished</p>

<p>I tried with 1000 threads with 500 seconds ramp-up time - 999 threads finished</p>

<p>I tried with 900 threads with 900 seconds ramp-up time - 899 threads finished</p>

<p>I tried with 750 threads with 75 seconds ramp-up time - 649 threads finished</p>

<p>After 4.50 seconds of test start, I am getting this one exception for all above tests with the maximum Response time of 21000 ms.</p>

<p>In Http Request Defaults - I have set Timeout(milliseconds) Connect to 60000</p>

<p>Is this something with Jmeter or my application Server?</p>
",https://stackoverflow.com/questions/59022081/jmeter-non-http-response-code-org-apache-http-conn-httphostconnectexception,"['c#', 'asp.net', 'sql-server', 'azure', 'jmeter']",4175,False,1,1
How to simulate / script for AD integrated SSO Login in k6 tool,"<p>Application uses SSO login for access.</p>

<p>If SSO login doesn't work, browser asks for credentials in order to login to the application. </p>

<p>For load testing such application with K6 tool, I am trying to understand how this can be scripted for successful login. </p>

<p>I have tried to pass the credentials as part of the URL as in below code and trying as NTLM authentication.</p>

<p>Below is my script;</p>

<pre><code>const username = ""global\\user001"", 
    password = ""Password"";

let pURL=""abc.xyz.dev"";

let req, res;
req = [{
 ""method"": ""get"",
 ""url"": `https://${username}:${password}@${pURL}/pqrs`,
 ""params"": {
  ""headers"": {
   ""Host"": """"+pURL+"""",
   ""Connection"": ""keep-alive"",
   ""Pragma"": ""no-cache"",
   ""Cache-Control"": ""no-cache"",
   ""Upgrade-Insecure-Requests"": ""1"",
   ""User-Agent"": ""Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"",
   ""Accept"":""text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"",
   ""Accept-Encoding"": ""gzip, deflate, br"",
   ""Accept-Language"": ""en-GB,en-US;q=0.9,en;q=0.8""
  },
  ""auth"":""ntlm"",
 }
}];
res = http.batch(req);
</code></pre>

<p>The expected HTTP status code for the response is 301 but I currently getting a 401: Unauthenticated.</p>

<p>However, if the URL in above request is changed to: </p>

<pre><code>""url"": `https://${username}:${password}@${pURL}/pqrs`,
</code></pre>

<p>I am getting error (below) as it cannot accept the username with another domain mentioned with it. </p>

<blockquote>
  <p><code>ERRO[0002] GoError: parse https://global\user001:Password@abc.xyz.dev/pqrs: net/url: invalid userinfo</code></p>
</blockquote>

<p>What am I doing wrong and how can I fix it?</p>
",https://stackoverflow.com/questions/56962143/how-to-simulate-script-for-ad-integrated-sso-login-in-k6-tool,"['javascript', 'load-testing', 'k6']",843,True,1,1
How to eliminate Azure Search Service API Throttling,"<p>Our goal is to completely eliminate azure search service throttling. Initially, we started off with 3 replicas and 1 partition on the S1 tier. We were getting a lot of throttling sometimes even up to 1.5% of requests were getting throttled. We took some measures to alleviate the problem:</p>

<p>1) - We started load testing the service and came up with a baseline req/sec for 3 replicas. Every time we hit ~37 req/sec our service would get throttling.</p>

<p>2)- We did not want our users to see errors and to alleviate the problem we implemented the exponential backoff transient fault policy that retries the call when Azure Search API returns a 5xx or 408 (Request Timeout) response. That worked well for us.</p>

<p>3) The problem still remained; we still get throttled at 37 req/sec which seems very low to us. This means we are roughly getting a MAX of <code>~12 req/sec</code> per replica. So we performance tuned our queries(removed facets, high cardinality field from our index, cleaned up our field properties and make sure the index is doing the bare minimum) our queries got a little faster and not much of an effect on the throttling front.</p>

<p>4) So we decided to go up to FIVE replicas to get rid of throttling. We did load testing again and now the service can handle ~59 req/secs baseline. This again becomes <code>~12 requests/sec</code> per replica</p>

<p><code>~12 requests/sec</code> per replica seems like LOW capacity for a Standard tier server. This is a huge problem for us as our traffic is only going to increase (not to mention dealing with nasty bot traffic)</p>

<p>Do these benchmark numbers look right to the Azure Search Team? </p>

<p>Or are we doing something wrong? I can provide the search query if needed.</p>

<p>Any help would be much appreciated!</p>

<p>Thanks!</p>
",https://stackoverflow.com/questions/56082179/how-to-eliminate-azure-search-service-api-throttling,['azure-cognitive-search'],638,True,1,2
Protractor load testing browser tab not working properly,"<p>I am trying to do load testing but facing some issues. Scenario below</p>

<ul>
<li>open webapp localhost:2244</li>
<li>click drop down</li>
<li>Select a profile from drop down.</li>
<li>on click on profile aggrid is populated from server</li>
</ul>

<p>In the code i have following</p>

<pre><code>browser.get(url)
element(by(&lt;drop down&gt;)).click()
element(by(&lt;profile&gt;)).click()
browser.driver.sleep(4000) //wait for aggrid to populate from server
</code></pre>

<p>The problem i am facing are</p>

<ul>
<li>when i open url only once it works fine but when i open the same url multple times in a loop it doesn't open in different tab and the same tab gets updated. i tried to open in multiple tabs but only one tab opens properly and other remains empty.</li>
<li>How can i concurrently open 1000s or url as if many different users are opening the url and keep track of each page seperately and verify aggrid. </li>
</ul>
",https://stackoverflow.com/questions/57671845/protractor-load-testing-browser-tab-not-working-properly,['protractor'],25,False,0,0
Emulating browser cache for each VU from K6 for load testing,"<p>I understand k6 cannot emulate browser cache (except cookies in header) as per its documentation. </p>

<p>Has someone attempted to simulate browser cache (more than just cookies header) while load testing with k6 tool ?</p>

<p>Looking for functions / options like: 
1. Switch on/off browser caching.<br>
2. Clear cookies at the start of each iteration.  </p>

<p>Trying to understand how headers like Etag, Expires, Last-Modified, Cache-Control, If-None-Match or If-Modified-Since can be handled from k6 script for each resource. 
Not sure, if something more needs to be checked while trying to handle browser cache. </p>

<p>If yes, kindly share some ideas on how to do so or share github repo for any ongoing/successful project. 
If successful, possibly can be contributed to k6 repo once verified. </p>
",https://stackoverflow.com/questions/57103839/emulating-browser-cache-for-each-vu-from-k6-for-load-testing,"['javascript', 'load-testing', 'k6']",1492,False,0,1
Cannot query or do transaction on Hyperledger Fabric,"<p>I've created a network which consists of 2 org having two peers each and a solo orderer. It was working fine before load testing after that the orderer went down, but I was still able to retrieve data from the peers. After a while, I restarted the network but now I am unable to query or perform a transaction.</p>

<p>Whenever I am trying to query from cli I am getting:</p>

<pre><code>Error: error getting endorser client for query: endorser client failed to connect to peer0.blockit.gatelesis.com:7051: failed to create new connection: context deadline exceeded
</code></pre>

<p>When I am trying to query from the peer directly I got:</p>

<pre><code>Error: error endorsing query: rpc error: code = Unknown desc = Failed evaluating policy on signed data during check policy on channel [channel-24] with policy [/Channel/Application/Writers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied] - proposal response: &lt;nil&gt;
</code></pre>

<p>At peer logs I got this:</p>

<pre><code>2019-08-28 10:00:49.059 UTC [nodeCmd] registerDiscoveryService -&gt; INFO a33d Discovery service activated
2019-08-28 10:00:49.060 UTC [nodeCmd] serve -&gt; INFO a33e Starting peer with ID=[name:""peer0.blockit.gatelesis.com"" ], network ID=[dev], address=[peer0.blockit.gatelesis.com:7051]
2019-08-28 10:00:49.060 UTC [nodeCmd] serve -&gt; INFO a33f Started peer with ID=[name:""peer0.blockit.gatelesis.com"" ], network ID=[dev], address=[peer0.blockit.gatelesis.com:7051]
2019-08-28 10:00:49.061 UTC [core.comm] ServerHandshake -&gt; ERRO a340 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:53884
2019-08-28 10:00:49.061 UTC [core.comm] ServerHandshake -&gt; ERRO a341 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:40656
2019-08-28 10:00:49.061 UTC [core.comm] ServerHandshake -&gt; ERRO a342 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:46028
2019-08-28 10:00:49.061 UTC [core.comm] ServerHandshake -&gt; ERRO a343 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:49532
2019-08-28 10:00:49.062 UTC [core.comm] ServerHandshake -&gt; ERRO a344 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:50544
2019-08-28 10:00:49.062 UTC [core.comm] ServerHandshake -&gt; ERRO a345 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:50950
2019-08-28 10:00:49.062 UTC [core.comm] ServerHandshake -&gt; ERRO a346 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:51294
2019-08-28 10:00:49.063 UTC [core.comm] ServerHandshake -&gt; ERRO a347 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:51580
2019-08-28 10:00:49.063 UTC [nodeCmd] func8 -&gt; INFO a348 Starting profiling server with listenAddress = 0.0.0.0:6060
2019-08-28 10:00:49.063 UTC [core.comm] ServerHandshake -&gt; ERRO a349 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:51854
2019-08-28 10:00:49.063 UTC [core.comm] ServerHandshake -&gt; ERRO a34a TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:53742
2019-08-28 10:00:49.064 UTC [core.comm] ServerHandshake -&gt; ERRO a34b TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:52088
2019-08-28 10:00:49.064 UTC [core.comm] ServerHandshake -&gt; ERRO a34c TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:52316
2019-08-28 10:00:49.064 UTC [core.comm] ServerHandshake -&gt; ERRO a34d TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.5:43472
2019-08-28 10:00:49.064 UTC [core.comm] ServerHandshake -&gt; ERRO a34e TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:52524
2019-08-28 10:00:49.065 UTC [core.comm] ServerHandshake -&gt; ERRO a34f TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:53094
2019-08-28 10:00:49.065 UTC [core.comm] ServerHandshake -&gt; ERRO a350 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:53260
2019-08-28 10:00:49.065 UTC [core.comm] ServerHandshake -&gt; ERRO a351 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:53428
2019-08-28 10:00:49.065 UTC [core.comm] ServerHandshake -&gt; ERRO a352 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:53580
2019-08-28 10:00:49.065 UTC [core.comm] ServerHandshake -&gt; ERRO a353 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:52724
2019-08-28 10:00:49.066 UTC [core.comm] ServerHandshake -&gt; ERRO a354 TLS handshake failed with error EOF server=PeerServer remoteaddress=172.25.0.3:52908
2019-08-28 10:00:49.709 UTC [gossip.election] beLeader -&gt; INFO a355 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:49.709 UTC [gossip.service] func1 -&gt; INFO a356 Elected as a leader, starting delivery service for channel channel-988
2019-08-28 10:00:50.459 UTC [gossip.election] beLeader -&gt; INFO a357 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:50.459 UTC [gossip.service] func1 -&gt; INFO a358 Elected as a leader, starting delivery service for channel channel-989
2019-08-28 10:00:50.895 UTC [gossip.election] beLeader -&gt; INFO a359 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:50.895 UTC [gossip.service] func1 -&gt; INFO a35a Elected as a leader, starting delivery service for channel channel-99
2019-08-28 10:00:51.251 UTC [gossip.election] beLeader -&gt; INFO a35b dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:51.251 UTC [gossip.service] func1 -&gt; INFO a35c Elected as a leader, starting delivery service for channel channel-990
2019-08-28 10:00:51.600 UTC [gossip.election] beLeader -&gt; INFO a35d dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:51.601 UTC [gossip.service] func1 -&gt; INFO a35e Elected as a leader, starting delivery service for channel channel-991
2019-08-28 10:00:51.950 UTC [gossip.election] beLeader -&gt; INFO a35f dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:51.950 UTC [gossip.service] func1 -&gt; INFO a360 Elected as a leader, starting delivery service for channel channel-992
2019-08-28 10:00:52.017 UTC [comm.grpc.server] 1 -&gt; INFO a361 unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2019-08-28T10:00:54.017Z grpc.peer_address=172.25.0.3:54020 grpc.peer_subject=""CN=peer1.blockit.gatelesis.com,L=San Francisco,ST=California,C=US"" grpc.code=OK grpc.call_duration=91.044µs
2019-08-28 10:00:52.020 UTC [comm.grpc.server] 1 -&gt; INFO a362 streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.request_deadline=2019-08-28T10:01:02.018Z grpc.peer_address=172.25.0.3:54020 grpc.peer_subject=""CN=peer1.blockit.gatelesis.com,L=San Francisco,ST=California,C=US"" error=""rpc error: code = Canceled desc = context canceled"" grpc.code=Canceled grpc.call_duration=1.8267ms
2019-08-28 10:00:52.051 UTC [comm.grpc.server] 1 -&gt; INFO a363 unary call completed grpc.service=gossip.Gossip grpc.method=Ping grpc.request_deadline=2019-08-28T10:00:54.051Z grpc.peer_address=172.25.0.3:54022 grpc.peer_subject=""CN=peer1.blockit.gatelesis.com,L=San Francisco,ST=California,C=US"" grpc.code=OK grpc.call_duration=79.786µs
2019-08-28 10:00:52.308 UTC [gossip.election] beLeader -&gt; INFO a364 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:52.308 UTC [gossip.service] func1 -&gt; INFO a365 Elected as a leader, starting delivery service for channel channel-993
2019-08-28 10:00:52.338 UTC [comm.grpc.server] 1 -&gt; INFO a366 streaming call completed grpc.service=gossip.Gossip grpc.method=GossipStream grpc.peer_address=172.25.0.3:54022 grpc.peer_subject=""CN=peer1.blockit.gatelesis.com,L=San Francisco,ST=California,C=US"" error=""rpc error: code = Canceled desc = context canceled"" grpc.code=Canceled grpc.call_duration=285.951264ms
2019-08-28 10:00:52.722 UTC [gossip.election] beLeader -&gt; INFO a367 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:52.722 UTC [gossip.service] func1 -&gt; INFO a368 Elected as a leader, starting delivery service for channel channel-994
2019-08-28 10:00:52.853 UTC [gossip.comm] func1 -&gt; WARN a369 peer1.blockit.gatelesis.com:8051, PKIid:b6112b61b1885609860b91b49516a61a9327cb1b82f79b1c2d09e13a4c30a924 isn't responsive: EOF
2019-08-28 10:00:52.853 UTC [gossip.discovery] expireDeadMembers -&gt; WARN a36a Entering [b6112b61b1885609860b91b49516a61a9327cb1b82f79b1c2d09e13a4c30a924]
2019-08-28 10:00:52.853 UTC [gossip.discovery] expireDeadMembers -&gt; WARN a36b Closing connection to Endpoint: peer1.blockit.gatelesis.com:8051, InternalEndpoint: peer1.blockit.gatelesis.com:8051, PKI-ID: b6112b61b1885609860b91b49516a61a9327cb1b82f79b1c2d09e13a4c30a924, Metadata:
2019-08-28 10:00:52.853 UTC [gossip.discovery] expireDeadMembers -&gt; WARN a36c Exiting
2019-08-28 10:00:52.952 UTC [gossip.election] beLeader -&gt; INFO a36d dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:52.952 UTC [gossip.service] func1 -&gt; INFO a36e Elected as a leader, starting delivery service for channel channel-995
2019-08-28 10:00:54.029 UTC [gossip.election] beLeader -&gt; INFO a36f dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:54.029 UTC [gossip.service] func1 -&gt; INFO a370 Elected as a leader, starting delivery service for channel channel-996
2019-08-28 10:00:54.378 UTC [gossip.election] beLeader -&gt; INFO a371 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:54.378 UTC [gossip.service] func1 -&gt; INFO a372 Elected as a leader, starting delivery service for channel channel-997
2019-08-28 10:00:54.717 UTC [gossip.election] beLeader -&gt; INFO a373 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:54.717 UTC [gossip.service] func1 -&gt; INFO a374 Elected as a leader, starting delivery service for channel channel-998
2019-08-28 10:00:55.058 UTC [gossip.election] beLeader -&gt; INFO a375 dfc797622a9f875949601983ffceb8b5e48951174366174209299611544d92bf : Becoming a leader
2019-08-28 10:00:55.058 UTC [gossip.service] func1 -&gt; INFO a376 Elected as a leader, starting delivery service for channel channel-999
2019-08-28 10:15:18.931 UTC [comm.grpc.server] 1 -&gt; INFO a377 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.25.0.5:44006 error=""Failed evaluating policy on signed data during check policy on channel [channel-24] with policy [/Channel/Application/Writers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied]"" grpc.code=Unknown grpc.call_duration=5.935604ms
2019-08-28 10:15:52.432 UTC [comm.grpc.server] 1 -&gt; INFO a378 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.25.0.5:44014 error=""Failed evaluating policy on signed data during check policy on channel [channel-24] with policy [/Channel/Application/Writers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied]"" grpc.code=Unknown grpc.call_duration=507.807µs
2019-08-28 10:18:49.674 UTC [comm.grpc.server] 1 -&gt; INFO a379 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.25.0.5:44076 error=""Failed evaluating policy on signed data during check policy on channel [channel-24] with policy [/Channel/Application/Writers]: [implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied]"" grpc.code=Unknown grpc.call_duration=439.412µs
</code></pre>

<p>At orderer logs I got this:</p>

<pre><code>2019-08-28 09:52:31.880 UTC [orderer.common.cluster] loadVerifier -&gt; INFO a74 Loaded verifier for channel paradox from config block at index 2673
2019-08-28 09:52:31.881 UTC [orderer.common.server] initializeServerConfig -&gt; INFO a75 Starting orderer with TLS enabled
2019-08-28 09:52:31.900 UTC [orderer.common.server] initializeMultichannelRegistrar -&gt; INFO a76 Not bootstrapping because of existing chains
2019-08-28 09:52:52.091 UTC [orderer.commmon.multichannel] Initialize -&gt; INFO a77 Starting system channel 'paradox' with genesis block hash d771e0c05b145ce05e549e379a4804032833fe2b292cf2b147da975921866ae4 and orderer type solo
2019-08-28 09:52:52.091 UTC [orderer.common.server] Start -&gt; INFO a78 Starting orderer:
Version: 1.4.1
Commit SHA: 87074a7
Go version: go1.11.5
OS/Arch: linux/amd64
2019-08-28 09:52:52.091 UTC [orderer.common.server] Start -&gt; INFO a79 Beginning to serve requests
2019-08-28 09:52:52.093 UTC [core.comm] ServerHandshake -&gt; ERRO a7a TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55816
2019-08-28 09:52:52.101 UTC [core.comm] ServerHandshake -&gt; ERRO a7b TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55686
2019-08-28 09:52:52.102 UTC [core.comm] ServerHandshake -&gt; ERRO a7c TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55560
2019-08-28 09:52:52.102 UTC [core.comm] ServerHandshake -&gt; ERRO a7d TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55562
2019-08-28 09:52:52.103 UTC [core.comm] ServerHandshake -&gt; ERRO a7e TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55564
2019-08-28 09:52:52.103 UTC [core.comm] ServerHandshake -&gt; ERRO a7f TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55566
2019-08-28 09:52:52.103 UTC [core.comm] ServerHandshake -&gt; ERRO a80 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55568
2019-08-28 09:52:52.104 UTC [core.comm] ServerHandshake -&gt; ERRO a81 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55570
2019-08-28 09:52:52.104 UTC [core.comm] ServerHandshake -&gt; ERRO a82 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55572
2019-08-28 09:52:52.105 UTC [core.comm] ServerHandshake -&gt; ERRO a83 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55574
2019-08-28 09:52:52.108 UTC [core.comm] ServerHandshake -&gt; ERRO a84 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55576
2019-08-28 09:52:52.108 UTC [core.comm] ServerHandshake -&gt; ERRO a85 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55578
2019-08-28 09:52:52.109 UTC [core.comm] ServerHandshake -&gt; ERRO a86 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55580
2019-08-28 09:52:52.109 UTC [core.comm] ServerHandshake -&gt; ERRO a87 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55582
2019-08-28 09:52:52.110 UTC [core.comm] ServerHandshake -&gt; ERRO a88 TLS handshake failed with error EOF server=Orderer remoteaddress=172.25.0.5:55584
</code></pre>

<p>All the nodes are running in docker containers. Any help will be appreciated.</p>

<p>I've attached extended logs for the orderer and peer</p>

<p><strong>Peer:</strong> <a href=""https://pastebin.com/DP0gr56h"" rel=""nofollow noreferrer"">https://pastebin.com/DP0gr56h</a></p>

<p><strong>Orderer:</strong> <a href=""https://pastebin.com/GYnEXyax"" rel=""nofollow noreferrer"">https://pastebin.com/GYnEXyax</a></p>
",https://stackoverflow.com/questions/57690246/cannot-query-or-do-transaction-on-hyperledger-fabric,"['docker', 'hyperledger-fabric', 'blockchain', 'hyperledger']",261,True,0,1
Unable to scale Gunicorn/Flask HelloWorld over 125 RPS,"<p>I have a Flask app that I have been unable to scale past 125 RPS locally. It is a simple 'hello world' as seen below. </p>

<p>I'm using the Locust.io load testing tool. I have pointed the same load test to a local Golang hello world, and am able to get into 1000's of RPS. IMHO this rules out my Locust and OS configurations as potential bottlenecks.</p>

<p>I'm using 17 workers as my machine has 8 cores (<code>(2*CPU)+1</code> is recommended by Gunicorn docs)</p>

<p>From what I've read, using the <code>gevent</code> worker type for Gunicorn should allow me to reach 1000's of RPS, just like with Golang. Is this a correct assumption? or am I missing something critical?</p>

<p>abbreviated code:</p>

<pre><code>app = Flask(__name__)

@app.route('/')
def hello():
    return 'hello world!'
</code></pre>

<p>Gunicorn conf:</p>

<pre><code>gunicorn -k gevent -w 17  --worker-connections 100000 app:app
</code></pre>

<p>Locust load test results. Each 'user' GETs '/' once per 4s
<a href=""https://i.stack.imgur.com/d5ni0.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/d5ni0.png"" alt=""enter image description here""></a></p>

<p><a href=""https://i.stack.imgur.com/7zAPy.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/7zAPy.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/54892138/unable-to-scale-gunicorn-flask-helloworld-over-125-rps,"['python', 'performance', 'flask', 'gunicorn', 'locust']",1296,True,4,2
Puppeteer: Load testing using puppeteer,"<p>I am at design phase for a load test setup using headless chrome controlled by Puppeteer. Whats the best approach to follow? I have thought of below two approaches. </p>

<p>Say I need to simulate 1000 users login.</p>

<ol>
<li><p>Using <strong>await puppeteer.launch()</strong> api, create 1000 headless chrome instances. And then access the login page, type user / password, hit the log in button. This looks strait forward, but it may take lot of system resources and simulation of 1000 user logins may not be possible (will it be?)</p></li>
<li><p>Launch only one chrome instance. Create 1000 CDP sessions. However I am not sure if this approach will work, because of same cache (userDataDir) path. Is it possible to set different cache for each CDP session.</p></li>
</ol>

<p>Or is there any better approach for load testing using Puppeteer? </p>
",https://stackoverflow.com/questions/57602530/puppeteer-load-testing-using-puppeteer,"['load-testing', 'puppeteer', 'google-chrome-headless']",6560,True,3,1
Is there a way to do grpc bidirectional streaming application load testing to send 100req/sec to a server,"<p>I was testing a grpc bidrectional streaming application which is in below link and it is working fine.</p>

<p><a href=""https://github.com/melledijkstra/python-grpc-chat"" rel=""nofollow noreferrer"">https://github.com/melledijkstra/python-grpc-chat</a></p>

<p>Do we have any tool to trigger bidirectional streaming say 100 requests per second as we use wrk/jmeter for rest/http APIs? </p>

<p>I tried exposing the API (run) into rest and triggering 100 req/sec using wrk tool. Seems to be not a proper approach. </p>

<pre><code>    @app.route('/', methods=['GET'])
   def send_message(self, event):
        """"""
        This method is called when user enters something into the textbox
        """"""
        message = self.entry_message.get()
        if message is not '':
            n = chat.Note()
            n.name = self.username
            n.message = message
            print(""S[{}] {}"".format(n.name, n.message))
            self.conn.SendNote(n)
</code></pre>

<p>Complete code is the actual grpc chat application: <a href=""https://github.com/melledijkstra/python-grpc-chat"" rel=""nofollow noreferrer"">https://github.com/melledijkstra/python-grpc-chat</a> </p>

<p>I wanted to do a load testing of a grpc bidirectional streaming application to send 100 requests per second to a server. Is there a possible approach to it?</p>

<p>This is to test that my server can handle the enough load with this chat functionality.</p>
",https://stackoverflow.com/questions/55372066/is-there-a-way-to-do-grpc-bidirectional-streaming-application-load-testing-to-se,['grpc'],331,False,1,0
Apache Jmeter is not giving any error even we gave wrong credentials,"<p>I am new to JMeter. I am using it for load testing for Microstrategy web dossiers. I am loading the users from CSV Config file. I have generated steps using Badboy software and exported as Jmeter file. I have added variables for userID and password. I have enabled ""Retrieve all Embedded Resources"". When I ran the testing. I observed that its giving same response even if password is wrong. taskProcs are giving connection closed error. I have searched with dossier ID in both the cases , I am able to see the request and response same even if password is wrong. Can you help me how to identify whether the credentials matched or not ? I would like to throw error when password didn't match ? I thought of adding Response Assertions but responses are same.  </p>
",https://stackoverflow.com/questions/57466188/apache-jmeter-is-not-giving-any-error-even-we-gave-wrong-credentials,"['jmeter', 'microstrategy']",542,True,1,2
How to Selectively load ArrayList content into a database,"<p>I currently have some code that loads some WAPT load testing data from a CSV file into an ArrayList.</p>

<pre><code> int count = 0;
 String file = ""C:\\Temp\\loadtest.csv"";
 List&lt;String[]&gt; content = new ArrayList&lt;&gt;();
 try (BufferedReader br = new BufferedReader(new FileReader(file))) {
       String line = """";
       while (((line = br.readLine()) != null) &amp;&amp; (count &lt;18)) {
            content.add(line.split("";""));
            count++;
       }
 } catch (FileNotFoundException e) {
      //Some error logging
 }
</code></pre>

<p>So now it gets complicated. The CSV file looks like this, the seperator is a "";"". </p>

<p>In this case I want to ignore the first line, it's just minutes. I want the second row. I need to ignore ""AddToCartDemo"" and ""Users"". So the first 10 entries, in this case all ten 5's get loaded into the first ten columns of the database. Likewise the third row ""Pages/sec"" is ignored and the data after it is loaded into the next ten columns of the database, etc.</p>

<pre><code> ;;0:01:00;0:02:00;0:03:00;0:04:00;0:05:00;0:06:00;0:07:00;0:08:00;0:09:00;0:10:00;

 AddToCartDemo;Users;5;5;5;5;5;5;5;5;5;5;
 ;Pages/sec;0.25;0.1;0.22;0.65;0.03;0.4;0.43;0.17;0.22;0.4;
 ;Hits/sec;0.25;0.1;0.27;0.85;0.03;0.5;0.53;0.22;0.27;0.5;
 ;HTTP errors;0;0;0;0;0;0;0;0;0;0;
 ;KB received;1015;4595;422;1600;2.46;4374;1527;1491;2551;2954;
 ;KB sent;12.9;3.66;13.8;39.9;5.22;21.7;23.8;13.2;12.2;23.1;
 ;Receiving kbps;135;613;56.3;213;0.33;583;204;199;340;394;
 ;Sending kbps;1.73;0.49;1.84;5.32;0.7;2.89;3.17;1.76;1.63;3.07;
</code></pre>

<p>Anyone have any ideas on how to caccomplish this? As usual a search brings up nothing even close to this. Thanks much in advance!</p>
",https://stackoverflow.com/questions/57258073/how-to-selectively-load-arraylist-content-into-a-database,['java'],41,False,0,0
Load testing using VSTS. Searching from a CSV file and then clicking on the first element,"<p>I have a question regarding a performance/load testing scenario.</p>

<p>I understand that it's best practice not to combine more than one variable when doing a load test. However, the management is insisting on it. </p>

<p>Scenario: User searches for an item and then clicks on a specific item from the search results to bring up details in an i-frame. </p>

<p>Validation: Make sure the search is performant and the details open in the i-frame as expected- without crashing the i-frame. </p>

<p>I have recorded the scenario using VSTS. I am using a CSV file for the search criteria. However, how do I configure the test to click on the ""first"" element in the search results every time? </p>

<p>Thank you for very much, I apologize if I missed anything. </p>
",https://stackoverflow.com/questions/54578817/load-testing-using-vsts-searching-from-a-csv-file-and-then-clicking-on-the-firs,"['c#', 'visual-studio', 'csv', 'performance-testing', 'load-testing']",24,False,0,1
Can I use Mock Server for load testing?,"<p>We have a Legacy monolith application which we are breaking down into Microservice. The Monolith application has three endpoints:-</p>

<pre><code>POST: /create
PUT: /verify
PUT: /dependents 
</code></pre>

<p>As part of the flow the user first hits <strong>/create</strong>, then <strong>/verify</strong>, then <strong>/dependents</strong> and then makes call to <strong>/activate</strong> endpoint exposed by one of our microservices. </p>

<p>The microservice then makes call to another endpoint (<strong>/validate</strong>) exposed by the legacy application and returns the response to user. </p>

<p>The response time of legacy application is almost constant. </p>

<p>Would it be a good approach to mock the legacy application's (<strong>/validate</strong>) endpoint with approx delay for load testing?</p>

<p>We wish to avoid the initial three rest calls to the legacy application as a setup phase and directly hit the Microservice's (<strong>/validate</strong>) endpoint?</p>

<p>I wish to understand the Pro's and Con's of using a mock server for performance test.</p>
",https://stackoverflow.com/questions/56855619/can-i-use-mock-server-for-load-testing,"['spring-boot', 'microservices', 'performance-testing', 'load-testing', 'nock']",359,False,0,0
PostgreSQL random in subquery,"<p>I try to generate several thousands of random test data for some synthetic load testing, but I've run into a weird bug I don't understand.</p>

<p>Here's the basic minimum reproducible code I managed to narrow it down. Let's create a table that has some unique rows:</p>

<pre class=""lang-sql prettyprint-override""><code>CREATE TABLE vals (
    value INT PRIMARY KEY
);
INSERT INTO vals SELECT generate_series(1, 10);
</code></pre>

<p>Let's check there are unique values:</p>

<pre class=""lang-sql prettyprint-override""><code>SELECT array(SELECT * FROM vals);

&gt;&gt; {1,2,3,4,5,6,7,8,9,10}
</code></pre>

<p>Yep, that's good. Now let's create a table that has lots of user data that references to the <code>vals</code> table:</p>

<pre class=""lang-sql prettyprint-override""><code>CREATE TABLE tmp (
    a INT REFERENCES vals,
    b INT[]
);
</code></pre>

<p>And fill it with lots of random data:</p>

<pre class=""lang-sql prettyprint-override""><code>  WITH test_count AS (SELECT generate_series(1, 10000))
    -- some more CTEs, so I cannot give up on them
INSERT
  INTO tmp
SELECT
       (SELECT value FROM vals ORDER BY random() LIMIT 1),
       array(SELECT value FROM vals WHERE random() &gt; 0.85)
  FROM test_count;
</code></pre>

<p>But when we check it, there are 10000 rows filled with the same values:</p>

<pre class=""lang-sql prettyprint-override""><code>SELECT DISTINCT a, b FROM tmp;

&gt;&gt; a | b
   ---------
   2 | {8,5}
</code></pre>

<p>I've found out that sometimes postgres optimizes calls <code>random()</code> in the same row to the same value, e.g. <code>SELECT random(), random()</code> would return <code>0.345, 0.345</code>: <a href=""https://dba.stackexchange.com/questions/231100/postgresql-random-function-returns-duplicate-results-when-order-by-random-used-i"">link</a>.</p>

<p>But in this case random in-row are different, but random over all the rows is the same. </p>

<p>➥ What is the way to fix it?</p>
",https://stackoverflow.com/questions/59020792/postgresql-random-in-subquery,"['sql', 'postgresql']",874,True,3,1
Karate-gatling: set local addresses,"<p>I have simple karate feature file for testing an API, and I want to use this feature file for load testing. Thus I am using Gatling to execute the karate feature file: <a href=""https://github.com/intuit/karate/tree/master/karate-gatling"" rel=""nofollow noreferrer"">https://github.com/intuit/karate/tree/master/karate-gatling</a></p>

<p>However, when I fire up multiple users, I want to submit the requests with different ip alias that I have configured. </p>

<p>Using Gatling, I could use localAddress to bind to the socket</p>

<pre><code>val protocol = http.localAddresses(ip)
</code></pre>

<p>But in Karate-Gatling, karateProtocol is used instead</p>

<pre><code>val protocol = karateProtocol()
</code></pre>

<p>And the readme states that ""Karate is responsible for making HTTP requests while Gatling is only measuring the timings and managing threads"". </p>

<p>This means that the HTTP requests and localAddress bindings cannot be changed through Gatling, but I am wondering if there is a workaround through Karate so that different ip alias can be used for different requests.</p>
",https://stackoverflow.com/questions/55456329/karate-gatling-set-local-addresses,['karate'],492,True,3,1
Performance testing with Katalon Studio,"<p>I am using Katalon Studio for Web and API testing. For performance testing, I use JMeter as Katalon Studio does not have support for performance tests. </p>

<p>I want to know if it is possible to do the following. Every test case is written in Katalon Studio for Web testing. I somehow must make so that, when test cases will run on Katalon Studio, it also should make performance/load testing. It is hard to rewrite everything in JMeter. </p>

<p>Is there any tool that looks at the running test cases and also makes performance tests? I mean, for example, one test case is for Login page, the user will log in into page and then it will log out. And for that, I want to get information about the time it took to log in and log out. </p>
",https://stackoverflow.com/questions/56063663/performance-testing-with-katalon-studio,"['jmeter', 'performance-testing', 'load-testing', 'katalon-studio']",4926,True,2,1
Trim and split JSON response body using JMeter,"<p>I am trying to test REST APIs using JMeter. My lead told me to do load testing on each API using JMeter. Currently I am testing a Get API request, and I am getting the below JSON response body.</p>

<p>""<a href=""https://api.rewards.com:/lists/v1/listcontainer/1?ts=20190221004021&amp;auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0="" rel=""nofollow noreferrer"">https://api.rewards.com:/lists/v1/listcontainer/1?ts=20190221004021&amp;auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0=</a>""</p>

<p>Now I have to pass this JSON body to another HTTP request and test the API.</p>

<p>My questions:</p>

<ol>
<li>How can I trim double quotation characters from the JSON response body?  </li>
<li>How can I get the values of ts and auth using split method like (ts=20190221004021 and auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0=)</li>
</ol>

<p>I know I can use a Regular expression Extractor or BeanShell PreProcessor to do all the actions, but I don't know how to do it. Can anyone guide me how I can trim and split the JSON response?</p>
",https://stackoverflow.com/questions/54797745/trim-and-split-json-response-body-using-jmeter,['jmeter-5.0'],944,False,2,1
Load testing with 100s or MAC clients machines simultaneously,"<p>I am working on creating a test bed for load testing of network authentication device. The server will be getting 100 to 1000 simultaneous request from client and response time will be collected and analysed. </p>

<p>But issue i am facing is that this a mac OS based scenario. All my client machines needs to be MAC. This means I need 100s of mac machines which is not realistically possible. Is there a way to simulate/emulate mac OS environment,Apart from creating virtual machines. OR any tool which can generate a req behaving like a different client machine all together. 
I am even fine with any code library that can help with the simulation </p>

<p>I have explored dockers but seems like Mac OS dockers are not supported yet.
I am not a proficient mac user any help or pointer will be appreciated. </p>

<p>Thanks</p>
",https://stackoverflow.com/questions/58698218/load-testing-with-100s-or-mac-clients-machines-simultaneously,"['macos', 'client', 'performance-testing', 'load-testing']",60,True,0,2
Specifying run time for Web Polygraph load tool,"<p>I am use Web Polygraph load testing tool to make rapid http requests as it is reliable, low resource consumption, and has good reporting. However, I cannot find any settings to tell Web Polygraph to run for a certain amount of time. I want to be able to have accurate reporting instead of potential misses caused by sending a kill signal to the process.</p>

<p>I have been reading through web polygraph's help pages and can see that the requests per second is configurable, but am not seeing support for request duration time.</p>

<p>I have the config file as such (I think this is where the option would go, likely in the Robot configuration):</p>

<pre><code>Content SimpleContent = {
    size = exp(1KB); // response sizes distributed exponentially
    cachable = 100%;
};

Server S1 = {
    kind = ""S101""; 
    contents = [ SimpleContent ];
    direct_access = contents;

    addresses = ['X.X.X.X' ];
};

// a primitive robot
Robot R1 = {
    kind = ""R101"";
        req_rate = 100/sec;
        interests = [ ""foreign"" ];
        foreign_trace = ""/home/x/trace.urls"";
    pop_model = { pop_distr = popUnif(); };
    recurrence = 100% / SimpleContent.cachable; 

    origins = S1.addresses;
    addresses = ['X.X.X.X' ];
};
</code></pre>

<p>I am expecting to be able to set some duration, say 40min, where I am able to have the R1 robot request 100 pages per second for 40 minutes.</p>
",https://stackoverflow.com/questions/55906416/specifying-run-time-for-web-polygraph-load-tool,"['automation', 'load-testing', 'web-testing']",38,True,0,1
"In the TechEmpower benchmarks, the Netty application does not honor keepalive connections—is this on purpose?","<p>I am in the process of load testing a Netty application I have.  I have been looking to various authorities to try to follow best practices both to learn more about Netty and just to become a better developer.</p>

<p>One of those authorities I'm consulting is the blazingly fast <a href=""https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Java/netty"" rel=""nofollow noreferrer"">Netty application that is part of the TechEmpower framework benchmarks</a>.</p>

<p>I've noticed that this application does not honor the <code>Connection: Keep-Alive</code> header that is sent as part of the test.  Specifically, at the end of any given write operation, it closes the connection, even though the <a href=""https://github.com/TechEmpower/FrameworkBenchmarks/search?q=%22Connection%3A+keep-alive%22&amp;unscoped_q=%22Connection%3A+keep-alive%22"" rel=""nofollow noreferrer"">test requests that connections be kept alive</a>.  This is of course permitted, but….  Often times seemingly odd choices like this exist for good performance reasons.  Is there a reason that the <a href=""https://github.com/TechEmpower/FrameworkBenchmarks/blob/3934542bd2aab91571c5590593fedac4aba275b0/frameworks/Java/netty/src/main/java/hello/HelloServerHandler.java#L101-L114"" rel=""nofollow noreferrer"">Netty application here chooses to close every connection</a> instead of keeping them alive?</p>
",https://stackoverflow.com/questions/58297177/in-the-techempower-benchmarks-the-netty-application-does-not-honor-keepalive-co,"['http', 'netty']",81,True,0,1
Apache Ignite 2.6.0 - High latency in Partition mode with 6 nodes cluster,"<ol>
<li>I have a 6 node ignite cluster(version 2.6.0) with partition mode, want to use it only for caching to minimise the load on database. I am not pre-loading any data. </li>
<li>App will try to read from cache, if data is missed, will go to database and then will add it back to cache. </li>
<li>I am using both Key/Value and SQL caches. 
During load testing, we found that both K/V and SQL caches are taking more 500 ms of time to get the data from cache. </li>
<li>But with single instance of Ignite node, the results(GET request) are in the range of 10-20ms. </li>
</ol>

<p>Please let me know if I am missing anything. </p>

<p>let me know if anymore data is needed. </p>

<p>Server Configuration has 3 data regions.(Shared the configuration below) </p>

<p>Server Side configration</p>

<pre><code>&lt;beans xmlns=""http://www.springframework.org/schema/beans""  
  xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:schemaLocation="" 
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd""&gt;

  &lt;bean id=""grid.cfg"" class=""org.apache.ignite.configuration.IgniteConfiguration""&gt;
    &lt;property name=""igniteInstanceName"" value=""igniteStart""/&gt;
    &lt;property name=""discoverySpi"" ref=""discoverySpi""/&gt;
    &lt;property name=""communicationSpi"" ref=""communicationSpi""/&gt;
    &lt;property name=""dataStorageConfiguration"" ref=""dataStorageConfiguration"" /&gt;
    &lt;property name=""gridLogger"" ref=""gridLogger"" /&gt;
  &lt;/bean&gt;

  &lt;bean id=""gridLogger"" class=""org.apache.ignite.logger.log4j2.Log4J2Logger""&gt;
    &lt;constructor-arg type=""java.lang.String"" value=""/opt/ignite/apache-ignite-fabric-2.6.0-bin/config/log4j2.xml""/&gt;
  &lt;/bean&gt;

  &lt;bean id=""discoverySpi"" class=""org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi""&gt;


    &lt;property name=""joinTimeout"" value=""0""/&gt;
    &lt;property name=""reconnectCount"" value=""100""/&gt;
    &lt;property name=""reconnectDelay"" value=""10000""/&gt;

    &lt;property name=""ipFinder""&gt;
      &lt;bean class=""org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder""&gt;
&lt;property name=""addresses""&gt;
          &lt;list&gt;
            &lt;value&gt;127.0.0.1&lt;/value&gt;

            &lt;value&gt;127.0.0.1:47500..47509&lt;/value&gt;
          &lt;/list&gt;
        &lt;/property&gt;
      &lt;/bean&gt;
    &lt;/property&gt;

    &lt;/bean&gt;

  &lt;bean id=""communicationSpi"" class=""org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi""&gt;
    &lt;property name=""messageQueueLimit"" value=""1024""/&gt;
    &lt;property name=""slowClientQueueLimit"" value=""1000""/&gt;
  &lt;/bean&gt;

  &lt;bean id=""dataStorageConfiguration"" class=""org.apache.ignite.configuration.DataStorageConfiguration""&gt;
    &lt;property name=""defaultDataRegionConfiguration""&gt;
      &lt;bean class=""org.apache.ignite.configuration.DataRegionConfiguration""&gt;

        &lt;property name=""name"" value=""Default_Region""/&gt;

        &lt;property name=""initialSize"" value=""#{15L * 1024 * 1024}""/&gt;

        &lt;property name=""maxSize"" value=""#{20L * 1024 * 1024}""/&gt;

        &lt;property name=""pageEvictionMode"" value=""RANDOM_2_LRU""/&gt;
      &lt;/bean&gt;
    &lt;/property&gt;

&lt;property name=""dataRegionConfigurations""&gt;
      &lt;list&gt;
        &lt;bean class=""org.apache.ignite.configuration.DataRegionConfiguration""&gt;
          &lt;property name=""name"" value=""Big_Region""/&gt;

          &lt;property name=""initialSize"" value=""#{20.0D * 1024 * 1024 *1024}""/&gt;

          &lt;property name=""maxSize"" value=""#{25.0D * 1024 * 1024 *1024}""/&gt;
          &lt;property name=""pageEvictionMode"" value=""RANDOM_2_LRU""/&gt;
        &lt;/bean&gt;


        &lt;bean class=""org.apache.ignite.configuration.DataRegionConfiguration""&gt;
          &lt;property name=""name"" value=""Medium_Data_Region""/&gt;

          &lt;property name=""initialSize"" value=""#{8.0D * 1024 * 1024 * 1024}""/&gt;

          &lt;property name=""maxSize"" value=""#{10.0D * 1024 * 1024 * 1024}""/&gt;
          &lt;property name=""pageEvictionMode"" value=""RANDOM_2_LRU""/&gt;
        &lt;/bean&gt;

        &lt;bean class=""org.apache.ignite.configuration.DataRegionConfiguration""&gt;
          &lt;property name=""name"" value=""Small_Data_Region""/&gt;

          &lt;property name=""initialSize"" value=""#{4.0D * 1024 * 1024 * 1024}""/&gt;

          &lt;property name=""maxSize"" value=""#{5.0D * 1024 * 1024 * 1024}""/&gt;
          &lt;property name=""pageEvictionMode"" value=""RANDOM_2_LRU""/&gt;
        &lt;/bean&gt;
      &lt;/list&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
&lt;/beans&gt;
</code></pre>
",https://stackoverflow.com/questions/57690692/apache-ignite-2-6-0-high-latency-in-partition-mode-with-6-nodes-cluster,"['java', 'ignite']",316,True,0,2
Spring-boot + Apache camel + Embedded tomcat showing The receipt handle has expired on SQS delete. Working fine in external tomcat,"<p>Using apache camel for accessing SQS. After message is consumed from SQS it must be deleted from the queue but it is showing 'The receipt handle has expired'. We are facing issue when we do load testing, with few requests it is working fine.</p>

<p>The issue looks like with embedded tomcat, external tomcat is working fine with same load.</p>

<p>We configured embedded tomcat to use same version as external - 8.5.23 and also all heap and gc parameters set the same. </p>

<p>Whether embedded tomcat is a lighter version of external tomcat? </p>

<pre><code>SqsConsumer:213 - Error occurred during deleting message. This exception is ignored..
 Caused by: [com.amazonaws.services.sqs.model.AmazonSQSException
ReceiptHandle is invalid. Reason: The receipt handle has expired. (Service: AmazonSQS; Status Code: 400; Error Code: InvalidParameterValue; Request ID:
</code></pre>

<p>We configured embedded tomcat to use same version as external - 8.5.23 and all heap and gc parameters set the same.</p>

<p>Using apache camel for accessing SQS. After message is consumed from SQS it must be deleted from the queue. It is showing The receipt handle has expired</p>
",https://stackoverflow.com/questions/57658094/spring-boot-apache-camel-embedded-tomcat-showing-the-receipt-handle-has-expi,"['java', 'spring-boot', 'apache-camel', 'amazon-sqs', 'embedded-tomcat-8']",212,False,0,1
Distributed testing and local testing with Jmeter,"<p>Currently I have an application running on aws and I want to do some perfomance testing and functional testing. Using the Jmeter was the answer ! But while reading  through Jmeter documentation and some blogs I found that Jmeter have multiple setup options and running mode.
between those modes are distributed and local. 
So after some digging I knew that local load testing with Jmeter can only handle 100-300 users. Is that the only reason to run the distributed mode ? 
Also I tried to  run some tests locally ( via my machine and I think I succeded the simulate the users) 
So to sum up my questions are:</p>

<p>Why distributed mode ? are there a risk in raising the number of users locally ? </p>

<p>Supposing I would use the distributed mode, should It be on the cloud ? the same cloud where my application machines are ?  </p>
",https://stackoverflow.com/questions/56576951/distributed-testing-and-local-testing-with-jmeter,"['performance', 'jmeter']",53,False,0,0
Flume Appender Issue : Application threads are stuck when Flume Agents are down during heavy logging,"<p>We are currently using below log4j jars</p>

<p>log4j-core-2.6.2, log4j-flume-ng-2.6.2 </p>

<pre><code>&lt;Flume name=""aggregatorApp"" compress=""false"" type=""Avro""
ignoreExceptions=""true"" batchSize=""10"" blocking=""false"" &gt;
&lt;Agent host=""${flumeHostPrimary}"" port=""${flumePortPrimary}"" /&gt;
&lt;Agent host=""${flumeHostSecondary}"" port=""${flumePortSecondary}"" /&gt;
&lt;FlumeEventFactory logType=""APPLICATION""/&gt;
&lt;PatternLayout header=""app"" pattern=""[%-5p] %d %c %X{correlationId} - %m"" /&gt;

&lt;AsyncLogger name=""com.xyz.abc"" level=""debug""
additivity=""false"" blocking=""false""&gt;
&lt;AppenderRef ref=""IDRESTSERVICELOG"" /&gt;
&lt;AppenderRef ref=""aggregatorApp"" level=""INFO"" /&gt;
&lt;AppenderRef ref=""CONSOLE"" level=""INFO""/&gt;
&lt;/AsyncLogger&gt;
</code></pre>

<ol>
<li>When the flume agent is up and running application is running is smooth, And Log Events are successfully publishing to flume agents </li>
<li>If flume-Agents are down for some time, application threads are being stuck with below exceptions</li>
</ol>

<p>&nbsp;</p>

<pre><code>Exception in thread ""elasticsearch[_client_][generic][T#3]"" java.lang.OutOfMemoryError: GC overhead limit exceeded
2019-02-01 07:43:23,618 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN  org.apache.catalina.valves.StuckThreadDetectionValve- Thread ""http-apr-8080-exec-7"" (id=167) has been active for 20,392 milliseconds (since 2/1/19 7:42 AM) to serve the same request for htpps://xyz//directories/v1.0/search and may be stuck (configured threshold for this StuckThreadDetectionValve is 20 seconds). There is/are 1 thread(s) in total that are monitored by this Valve and may be stuck.
2019-02-01 07:46:18,619 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.apache.catalina.core.ContainerBase- Unexpected death of background thread ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread ""http-apr-8080-exec-42"" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread ""http-apr-8080-exec-50"" Exception in thread ""ContainerBackgroundProcessor[StandardEngine[Catalina]]"" Exception in thread ""I/O dispatcher 23"" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread ""ContainerBackgroundProcessor[StandardEngine[Catalina]]""
Exception in thread ""http-apr-8080-exec-38"" Exception in thread ""http-apr-8080-exec-46"" Exception in thread ""http-apr-8080-exec-53"" Exception in thread ""I/O dispatcher 17"" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread ""http-apr-8080-exec-31""
</code></pre>

<p>Above exceptions are happening during heavy load (1MB logging per request) Note: we are doing load testing</p>

<p>As application is logging heavily but Flume appender not able to consume with same pace. We are suspecting Log4j ring buffer getting full which is blocking application threads and creating out of memory exceptions.</p>

<p>We have tried couple of actions considering there is something with Log4J appenders,</p>

<p>-Dlog4j2.AsyncQueueFullPolicy=Discard -Dlog4j2.enable.threadlocals=true -Dlog4j2.enable.direct.encoders=true</p>

<p>But above system properties are of no of use. are we missing something?</p>
",https://stackoverflow.com/questions/54479435/flume-appender-issue-application-threads-are-stuck-when-flume-agents-are-down,"['java', 'performance', 'log4j2', 'flume', 'flume-ng']",265,False,0,1
Load testing IdentityServer4 gives Exception: Correlation failed when trying to request signin-oidc route after sing in,"<p>We are moving our application to IdentityServer4 for our application, I’m trying to write a load test using Visual Studio and can run it manually on my local machine through the browser, but when I record a webtest and try to reply it, I’m getting Exception: Correlation Failed Unknown location Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler.HandleRequestAsync().</p>

<p>I’m assuming this is because I’m missing the .AspNetCore.Correlation.oidc cookie when making the request to signin-oidc route.  Visual studio extracts the code, id_token, scope, state, and session state when logging in .  Not sure how to debug this cause it works with my browser, it just won’t work when running a webtest through visual studio.  Could this be a proxy issue when doing the recording?</p>

<p>Any advice would be helpful, not finding much info on load testing signing in with Identity Server 4 with Visual Studio Load Testing.</p>

<p>I've tried extracting nonce and state from the initial request to put in the request to sign-oidc, but visual studio already is already extracting the same data from there Hidden fields.</p>

<p>Here is the request that fails, it's on the web server that hosts the signin-oidc</p>

<p><a href=""https://i.stack.imgur.com/fHap2.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/fHap2.png"" alt=""enter image description here""></a></p>

<p>Response:
<a href=""https://i.stack.imgur.com/1JuB4.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/1JuB4.png"" alt=""enter image description here""></a></p>

<p>Here is the webtest request</p>

<p><a href=""https://i.stack.imgur.com/2017Z.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/2017Z.png"" alt=""enter image description here""></a></p>

<p>Its using the values from the previous response from the authorize/callback, I also made sure they were the same values, the only one that wasn't the exact same where the scopes which had a + sign instead of spaces, so I set the encoding to false to make sure they were the same.</p>

<p><a href=""https://i.stack.imgur.com/3xO0S.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/3xO0S.png"" alt=""enter image description here""></a></p>

<p>Since the browser is doing the post from the previous request when going in manually, and the webtest isn't doing it from the browser, its just making a post request, that could be messing something up?</p>

<p>When I go through fiddler manually, that request has the following cookie that the webtest doesn't have:</p>

<p><a href=""https://i.stack.imgur.com/0dfZf.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/0dfZf.png"" alt=""enter image description here""></a></p>

<p>That's prob why the webserver is throwing the error, but I'm not sure where that cookie gets set and if you can even do it through a webtest.</p>
",https://stackoverflow.com/questions/56469855/load-testing-identityserver4-gives-exception-correlation-failed-when-trying-to,"['c#', 'identityserver4', 'load-testing', 'webtest']",685,True,0,1
TFS 2017 build executing powershell failing due to term not recognized error on line 1,"<p>I'm pretty new to TFS and I'm still learning how to use it (so hopefully this isn't just a stupid oversight on my end). I'm working an internship this summer at a seasonal developer position, and essentially my end goal is to automate load testing for the company's website. I'm using TFS to achieve this goal; the build I currently have has two tasks only right now: one to start the controller and the testing environment, and one to stop them. My problem is that the build keeps failing before it really even starts, due to a ""term not recognized"" error on line 1, specifically caused by what appears to be the default working folder not being recognized. </p>

<p>Here are the relevant log files:</p>

<pre><code>2019-05-30T20:00:02.0942883Z Executing the following powershell script. (workingFolder = D:\RM_agent\_work\11\s)
2019-05-30T20:00:02.0942883Z D:\RM_agent\_work\11\s 
2019-05-30T20:00:02.4999117Z ##[error]. : The term 'D:\RM_agent\_work\11\s' is not recognized as the name of a 
2019-05-30T20:00:02.4999117Z ##[error]cmdlet, function, script file, or operable program. Check the spelling of the 
2019-05-30T20:00:02.4999117Z ##[error]name, or if a path was included, verify that the path is correct and try again.
2019-05-30T20:00:02.4999117Z ##[error]At line:1 char:3
2019-05-30T20:00:02.4999117Z ##[error]+ . 'D:\RM_agent\_work\11\s'
2019-05-30T20:00:02.4999117Z ##[error]+   ~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-30T20:00:02.4999117Z ##[error]    + CategoryInfo          : ObjectNotFound: (D:\RM_agent\_work\11\s:String)  
2019-05-30T20:00:02.4999117Z ##[error]   [], CommandNotFoundException
2019-05-30T20:00:02.4999117Z ##[error]    + FullyQualifiedErrorId : CommandNotFoundException
</code></pre>

<p>I know that the working folder defaults to <code>$(Build.SourcesDirectory)</code>, so I'm assuming that <code>D:\RM_agent\_work\11\s</code> is what <code>$(Build.SourcesDirectory)</code> evaluates to. <code>RM_agent</code> is obviously an agent, so <code>/_work/11/s</code> should be the local path where it stores the source code. Why is it unrecognized then?</p>

<p>I tried manually setting the working folder for the scripts through tfs to the folder where the build is stored, but the build still failed and the logs still showed that <code>workingFolder = D:\RM_agent\_work\11\s</code>.</p>

<p><a href=""https://i.stack.imgur.com/aRVHJ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/aRVHJ.png"" alt=""enter image description here""></a></p>

<p>Additionally, the line of code that the build is failing on, <code>Executing the following powershell script. (workingFolder = D:\RM_agent\_work\11\s)</code>, is nowhere in the script I am trying to execute, which confuses me. Where is this script coming from?</p>

<p>(I can remove this if it doesn't fit the guidelines/is off topic, but if anyone could point me towards any resources about tfs and/or load testing it would be massively helpful as well)</p>

<p>EDIT: Here is the powershell script for the first task</p>

<pre><code>########################################
# start environment
########################################

# import modules
Import-Module '\\neenah-san1\TSbuild\Deployment\Tools\PowerShell\Azure\JJK.TS.Azure.psm1' -Force -Prefix 'TS'

# provide azure credentials
$credential = Get-Credential

# login to azure subscription
Login-AzureRmAccount -Credential $credential

# start the controller
Get-AzureRmVM -ResourceGroupName 'TS-LoadTest-TST' | Where-Object {$_.Name -match 'vstc'} | Start-TSAzureVM -Credential $credential

# wait for controller to fully start
Start-Sleep -Seconds 120

# start the agents
Get-AzureRmVM -ResourceGroupName 'TS-LoadTest-TST' | Where-Object {$_.Name -match 'vsta'} | Start-TSAzureVM -Credential $credential

# check status of all servers
Get-AzureRmVM -ResourceGroupName 'TS-LoadTest-TST' -Status | Sort-Object -Property Name | Select-Object -Property Name, PowerState | Format-Table -AutoSize
</code></pre>

<p>Solution structure:
<a href=""https://i.stack.imgur.com/dhayt.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/dhayt.png"" alt=""enter image description here""></a></p>

<p>EDIT 2: [RESOLVED] It's all fixed now, thank you! I went into the repository and mapped the folder my scripts were in directly to <code>$(build.sourcesDirectory)</code>. Consequently I was able to change the file path to <code>$(build.sourcesDirectory)\StartControllerAndAgents.ps1</code> and the build is now able to find the files to run.</p>
",https://stackoverflow.com/questions/56398138/tfs-2017-build-executing-powershell-failing-due-to-term-not-recognized-error-on,"['powershell', 'tfs', 'azure-pipelines']",792,True,-1,1
Load testing an API which uses oauth token for authorization using loadimpact k6,"<p>I'm trying to load test an API (GET method) using loadimpact k6 which requires oauth token for authorization to get the successful response. I already have a postman collection file which does this by running pre-request script. The pre-request script will request token from the authorization server and then populates the token in the environment variable. I used the ""Postman to LoadImpact converter"" to generate the k6 script but it isn't doing any help. The script fails to get the access token.</p>

<p>The generated script from the converter is given below:</p>

<pre><code>// Auto-generated by the Load Impact converter

import ""./libs/shim/core.js"";

export let options = { maxRedirects: 4 };

const Request = Symbol.for(""request"");
postman[Symbol.for(""initial"")]({
  options,
  collection: {
    currentAccessToken: """",
    ""Client-Id"": """",
    ""Client-Secret"": """",
    ""Token-Scope"": """",
    ""Grant-Type"": ""client_credentials"",
    ""Access-Token-URL"": """",
    accessTokenExpiry: """"
  }
});

export default function() {
  postman[Request]({
    name: ""Collection Mock"",
    id: """",
    method: ""GET"",
    address:
      """",
    headers: {
      Authorization: ""Bearer {{currentAccessToken}}""
    },
    pre() {
      const echoPostRequest = {
        url: pm.environment.get(""Access-Token-URL""),
        method: ""POST"",
        header: ""Content-Type:x-www-form-urlencoded"",
        body: {
          mode: ""urlencoded"",
          urlencoded: [
            { key: ""client_id"", value: pm.environment.get(""Client-Id"") },
            {
              key: ""client_secret"",
              value: pm.environment.get(""Client-Secret"")
            },
            { key: ""grant_type"", value: pm.environment.get(""Grant-Type"") },
            { key: ""scope"", value: pm.environment.get(""Token-Scope"") }
          ]
        }
      };

      var getToken = true;

      if (
        !pm.environment.get(""accessTokenExpiry"") ||
        !pm.environment.get(""currentAccessToken"")
      ) {
        console.log(""Token or expiry date are missing"");
      } else if (
        pm.environment.get(""accessTokenExpiry"") &lt;= new Date().getTime()
      ) {
        console.log(""Token is expired"");
      } else {
        getToken = false;
        console.log(""Token and expiry date are all good"");
      }

      if (getToken === true) {
        pm.sendRequest(echoPostRequest, function(err, res) {
          console.log(err ? err : res.json());
          if (err === null) {
            console.log(""Saving the token and expiry date"");
            var responseJson = res.json();
            pm.environment.set(""currentAccessToken"", responseJson.access_token);

            var expiryDate = new Date();
            expiryDate.setSeconds(
              expiryDate.getSeconds() + responseJson.expires_in
            );
            pm.environment.set(""accessTokenExpiry"", expiryDate.getTime());
          }
        });
      }
    }
  });
}
</code></pre>

<p>The issue is with pm.sendRequest which is not supported by the converter and I'm not sure what the alternative is. So, I'm looking for ways to dynamically request access token from the authorization server and use that token to make a request to the API for load testing in k6 script.</p>
",https://stackoverflow.com/questions/58879804/load-testing-an-api-which-uses-oauth-token-for-authorization-using-loadimpact-k6,"['postman', 'k6', 'postman-pre-request-script']",4883,True,3,2
how to fix connection leakage error in hikaripool and springboot-jpa,"<p>i have a server which i am running locally. this server is using hikari pool and spring jpa for database execution. i have set the configurations of hikari pool for my postgres server. i have developed a client code for load testing of this server.  </p>

<p>i have tried many configurations available on internet but after 1200 hits with a thread pool of 50 my server shows connection leakage . i checked my database pg_stat_activity. when i start server it shows 50 connections but when i run client those connection goes higher than 100. i have set postgres database limit to 500. but still there are connection leakage which i cannot see where it is happening. i want to see connection leakages and solve this issue please help.</p>

<p>this is configuration setting for my jpa and hikari</p>

<pre><code>spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext


spring.datasource.hikari.maximum-pool-size=50
spring.datasource.hikari.connection-timeout=50000
spring.datasource.hikari.leak-detection-threshold=20000
spring.datasource.hikari.minimum-idle=20000
spring.datasource.hikari.auto-commit=true
spring.datasource.hikari.connection-test-query=SELECT 1;
spring.datasource.hikari.idle-timeout=10000
spring.datasource.hikari.max-lifetime=30000 
</code></pre>

<p>here is the jpa using interface </p>

<pre><code>public interface IpRepository extends JpaRepository&lt;ValidIp,Long&gt; {


    ValidIp findOneByIp(String ip);

}
</code></pre>

<p>the error is shown here</p>

<pre><code>    Connection leak detection triggered for org.postgresql.jdbc.PgConnection@56853dca on thread http-nio-442-exec-50, stack trace follows
java.lang.Exception: Apparent connection leak detected
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:128)
    at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
    at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35)
    at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:106)
    at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:136)
    at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47)
    at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:146)
    at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172)
    at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:148)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1984)
    at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1914)
    at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1892)
    at org.hibernate.loader.Loader.doQuery(Loader.java:937)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:340)
    at org.hibernate.loader.Loader.doList(Loader.java:2689)
    at org.hibernate.loader.Loader.doList(Loader.java:2672)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2506)
    at org.hibernate.loader.Loader.list(Loader.java:2501)
    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:504)
    at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:395)
    at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:220)
    at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1508)
    at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1537)
    at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1505)
    at org.hibernate.query.internal.AbstractProducedQuery.getSingleResult(AbstractProducedQuery.java:1553)
    at org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.getSingleResult(CriteriaQueryTypeQueryAdapter.java:109)
    at org.springframework.data.jpa.repository.query.JpaQueryExecution$SingleEntityExecution.doExecute(JpaQueryExecution.java:214)
    at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:91)
    at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:136)
    at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:125)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:605)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.lambda$invoke$3(RepositoryFactorySupport.java:595)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:595)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
    at com.sun.proxy.$Proxy91.findOneByIp(Unknown Source)
    at com.socolcorp.s1.Controller.Response.getresponse(Response.java:47)
    at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:215)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:142)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:901)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
</code></pre>
",https://stackoverflow.com/questions/57321158/how-to-fix-connection-leakage-error-in-hikaripool-and-springboot-jpa,"['java', 'spring', 'postgresql', 'jpa', 'hikaricp']",2505,False,2,0
Elastic Beanstalk failing to answer requests even though it is not resource constrained,"<p>I have a Python 3.6 AWS Elastic Beanstalk environment with a DRF app with a single test endpoint that parses post data and forwards it to another service. I'm trying to figure out an appropriate trigger for the t2.micro autoscaling group with a minimum of 1 instance and a maximum of 4 instances. </p>

<p>For this purpose I'm using Locust (<a href=""https://locust.io/"" rel=""nofollow noreferrer"">https://locust.io/</a>) load testing framework for Python. </p>

<p>I tried an initial trigger based on CPUUtilization with upper threshold of 75% and lower threshold of 25% and a single initial instance. For incoming request rates above 50 requests/second the server failed to respond a significant number of requests yet CPUUtilization was never above 8%. Memory was never above 50% either. </p>

<p>In order to configure an appropriate trigger and ensure service continuity I need to know what is the binding resource that is failing above 50 requests/second rate. Any ideas?</p>
",https://stackoverflow.com/questions/54753245/elastic-beanstalk-failing-to-answer-requests-even-though-it-is-not-resource-cons,"['django-rest-framework', 'amazon-elastic-beanstalk', 'locust']",63,False,1,0
Exception in cluster.Connect(&lt;keyspace&gt;) using CassandraCSharpDriver v3.9.0,"<p>I am getting the following exception in cluster.Connect while performing load testing in my application.</p>

<p>All hosts tried for query failed (tried :: SocketException 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'; :: SocketException 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'; ...)</p>

<p>The exception is thrown only when I overwhelm my application with a large number of requests (1000 or more). However, it seems to work fine for small number of requests because of which I am eliminating the possibility of a firewall issue. For some reason, this call gets stuck which leads to a deadlock in my application. Any help is greatly appreciated. Thanking in advance.</p>

<p>Regards,
Sitakanta Mishra</p>
",https://stackoverflow.com/questions/59331195/exception-in-cluster-connectkeyspace-using-cassandracsharpdriver-v3-9-0,"['c#', 'cassandra', 'datastax', 'cassandra-3.0']",127,False,1,0
Jmeter - Cookies not in the Headers as They are in Browser,"<p>I am new to Jmeter and load testing overall but I have read about the Cookie Manager over and over and still can't find the answer to my problem.</p>

<p>The site I am trying to test uses several cookies to authenticate but not all of them are seen in the Jmeter Response Headers. I can see them if I look using the browser but Jmeter doesn't seem to pick them up at all. </p>

<p>If I manually set the cookies in the Cookie Manager after a recent session then the test passes but my concern is that when I use multiple threads, they won't all get individual values and rather just the ones I have specified. </p>

<p>I expect all the cookies that are set to be displayed in the response headers, that way I can set variables etc but out of 3 only one appears in Jmeter.</p>
",https://stackoverflow.com/questions/56597253/jmeter-cookies-not-in-the-headers-as-they-are-in-browser,"['apache', 'jmeter', 'load-testing']",547,True,1,1
How to pass parameter in Load Testing of a login page with JMeter,"<p>How to pass parameter in Load Testing of a login page with JMeter and the site developed in asp .net mvc :</p>

<p><a href=""https://i.stack.imgur.com/Gso24.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Gso24.png"" alt=""enter image description here""></a></p>

<p>This is what I was trying. But could not manage to find a way where I can find the <strong>_requestVerificationToken</strong> and how to set <strong>RememberMe.</strong></p>

<p>In the follwoing video, the author used a token from another request may be - when the home page loads may be. But how to set token that time, I didnot understood. <a href=""https://www.youtube.com/watch?v=hGkrSFKcj10"" rel=""nofollow noreferrer"">Here is the youtube video link</a></p>

<p><strong>Update:</strong></p>

<p>I am finally able to send the parameters with value. The http request looks like below:
<a href=""https://i.stack.imgur.com/YCwlW.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/YCwlW.png"" alt=""enter image description here""></a></p>

<p><strong>But the response shows following error:</strong></p>

<pre><code>    [HttpAntiForgeryException (0x80004005): The required anti-forgery cookie &amp;quot;__RequestVerificationToken&amp;quot; is not present.]
   System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken) +459
   System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext) +71
   System.Web.Helpers.AntiForgery.Validate() +92
   System.Web.Mvc.ValidateAntiForgeryTokenAttribute.OnAuthorization(AuthorizationContext filterContext) +18
   System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +97
   System.Web.Mvc.Async.&amp;lt;&amp;gt;c__DisplayClass3_1.&amp;lt;BeginInvokeAction&amp;gt;b__0(AsyncCallback asyncCallback, Object asyncState) +640
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +14
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +346
   System.Web.Mvc.&amp;lt;&amp;gt;c.&amp;lt;BeginExecuteCore&amp;gt;b__152_0(AsyncCallback asyncCallback, Object asyncState, ExecuteCoreState innerState) +27
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +30
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.Controller.BeginExecuteCore(AsyncCallback callback, Object state) +494
   System.Web.Mvc.&amp;lt;&amp;gt;c.&amp;lt;BeginExecute&amp;gt;b__151_1(AsyncCallback asyncCallback, Object callbackState, Controller controller) +16
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +20
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.Controller.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +403
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.BeginExecute(RequestContext requestContext, AsyncCallback callback, Object state) +16
   System.Web.Mvc.&amp;lt;&amp;gt;c.&amp;lt;BeginProcessRequest&amp;gt;b__20_0(AsyncCallback asyncCallback, Object asyncState, ProcessRequestState innerState) +54
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallBeginDelegate(AsyncCallback callback, Object callbackState) +30
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +128
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +427
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +48
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +105
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +163
</code></pre>

<p><strong>I am setting the token from the GET call of login page via variable.</strong> And I have checked, the both token in JMeter call are same.</p>

<p>The following StackOverflow question has the same situation. but it did not help me. <a href=""https://stackoverflow.com/questions/47854117/correlation-issue-in-jmeterthe-required-anti-forgery-form-field-requestverif?rq=1"">Here is the link</a></p>
",https://stackoverflow.com/questions/56486205/how-to-pass-parameter-in-load-testing-of-a-login-page-with-jmeter,"['asp.net-mvc', 'testing', 'jmeter', 'load-testing']",1519,False,0,1
Gatling:test objective seems to compile twice,"<p>I want to use <em>Gatling</em> for load testing from JupyterLab. I have set up everything as described on the Gatling site: I have maven, scala and gatling-maven-plugin. After setting up the pom.xml however, everytime I run the command: mvn gatling:test, I get an error stating that my simulation class ""BasicSimulation"" is already defined. Looks like it's being compiled twice. </p>

<p>I have tried to recreate the entire project. I have tried the ""disable compiler"" flag. I havet ried to with maven compiler as plugin and without. I have tried shifting plugin order around.</p>

<p>actual code i'm using, from <a href=""https://gatling.io/docs/current/quickstart"" rel=""nofollow noreferrer"">https://gatling.io/docs/current/quickstart</a></p>

<pre><code>
import io.gatling.core.Predef._ // 2
import io.gatling.http.Predef._
import scala.concurrent.duration._

class BasicSimulation extends Simulation { // 3

  val httpProtocol = http // 4
    .baseUrl(""http://computer-database.gatling.io"") // 5
    .acceptHeader(""text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"") // 6
    .doNotTrackHeader(""1"")
    .acceptLanguageHeader(""en-US,en;q=0.5"")
    .acceptEncodingHeader(""gzip, deflate"")
    .userAgentHeader(""Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0"")

  val scn = scenario(""BasicSimulation"") // 7
    .exec(http(""request_1"") // 8
      .get(""/"")) // 9
    .pause(5) // 10

  setUp( // 11
    scn.inject(atOnceUsers(1)) // 12
  ).protocols(httpProtocol) // 13
}
</code></pre>

<p>I have included my pom.xml file on pastebin:
<a href=""https://pastebin.com/siV43Skf"" rel=""nofollow noreferrer"">https://pastebin.com/siV43Skf</a></p>

<p>I think the problem lies there.</p>

<p>I expect the BasicSimulation to run correctly but instead I get that my BasicSimulation class is already defined -- even though it's one file in the whole project.</p>
",https://stackoverflow.com/questions/57784341/gatlingtest-objective-seems-to-compile-twice,"['scala', 'maven', 'gatling']",246,False,0,0
Script to add columns and rows to a csv file?,"<p>Ok, to cut a long story short I am doing load testing so I need to add 1000+ user credentials (email, password) to the <code>DB</code>.  I have been using automated scripts using <code>selenium</code> and <code>c#</code> and would like to write a script to write this data into a <code>csv</code> file.  I have random generators where I can make every email unique.  I guess I would need a for loop for this? Anyone got the code for this? Btw once I have the <code>csv</code> file I already have a query to import the <code>csv</code> file into the <code>DB</code>.</p>

<p>So I found a script to add 2 columns but I am a total beginner so I haven't got a clue what to try, all google searches doesn't quite do what I am after even though the job should be quite simple.</p>

<pre><code>public static void WriteToExcelMethod(string email, string passwd)
{
    string path = @""c:\temp\MyTest.csv"";
    string line = String.Format(@""""""{0}"""",""""{1}"""", email, passwd);
    using (StreamWriter sw = File.AppendText(path))
    {
        sw.WriteLine(line);
    }
}
</code></pre>

<p>Is this a better script to write 2 columns and 1000 rows:</p>

<pre><code>//before your loop
    var csv = new StringBuilder();

//in your loop
    var first = reader[0].ToString();
    var second = image.ToString();
    //Suggestion made by KyleMit
    var newLine = string.Format(""{0},{1}"", first, second);
    csv.AppendLine(newLine);  

//after your loop
</code></pre>
",https://stackoverflow.com/questions/57161619/script-to-add-columns-and-rows-to-a-csv-file,"['c#', 'csv']",60,False,0,0
Stress / Load Test a web app with ReactJS FE / Java BE: which tool to use,"<p>the company I currently work for wishes to perform a load test on its online shop, by being as close to reality as possible. Notably, they want to load test the entire process of making a purchase (Go to website -> article -> add to cart -> guest or login -> finalize).</p>

<p>The issue I have is, add to cart button has a randomized class name, and it's through this class that a JS function will be called on click. 
Moreover, most of a pages element are called via ReactJS.</p>

<p>I already looked into Locust.io, but I failed to send a JS event.
Selenium would allow me to perform the task, but not to scale it to tens of thousands of users.
I did a quick check of JMeter, but apparently it doesn't deal with JS either.</p>

<p>So, I would like to get your input as to which load testing tool would be adapted for this scenario?</p>

<p>Thanks in advance!</p>
",https://stackoverflow.com/questions/54149809/stress-load-test-a-web-app-with-reactjs-fe-java-be-which-tool-to-use,"['reactjs', 'performance', 'selenium', 'jmeter', 'locust']",5796,True,3,3
Performance load testing using Jmeter and how assets files may affect the results,"<p>Good Day Folks,</p>
<p>I have been playing around with <code>Jmeter</code> for a load testing project. I was looking for a way that simulates <strong>Full / Real user behavior</strong> starting by loading the <em>Home page</em> for the app, Doing the login, Then Send a predefined message to a certain user, And load all assets files and Images, not just the direct <code>API</code> CALLS.</p>
<blockquote>
<p>Doing the previous steps using a straightforward way will be a bit complicated and It will take a longer time.</p>
</blockquote>
<p>I have found this chrome extension <strong>(<a href=""https://chrome.google.com/webstore/detail/blazemeter-the-continuous/mbopgmdnpcbohhpnfglgohlbhfongabi"" rel=""noreferrer"">BlazeMeter | The Continuous Testing Platform</a>)</strong> That help with Recording set of actions and export it in Jmeter format.</p>
<p><a href=""https://i.stack.imgur.com/Spswh.png"" rel=""noreferrer""><img src=""https://i.stack.imgur.com/Spswh.png"" alt=""enter image description here"" /></a></p>
<h1>But,</h1>
<p>It does only records the direct API calls and does not load any asset or socket/WebSocket sessions.</p>
<p><a href=""https://i.stack.imgur.com/ZaARa.png"" rel=""noreferrer""><img src=""https://i.stack.imgur.com/ZaARa.png"" alt=""The Continuous Testing Platform"" /></a>.</p>
<p>Figuring that we may use <a href=""https://www.softwaretestinghelp.com/integrating-jmeter-selenium/"" rel=""noreferrer"">Selenium driver</a> with Jmeter may solve this state. But it won't be a good approach to follow if you're going to test with 10k users or even more (<em>Resources limitation</em>).</p>
<p>Any recommendation or workaround?</p>
",https://stackoverflow.com/questions/57468974/performance-load-testing-using-jmeter-and-how-assets-files-may-affect-the-result,"['performance', 'jmeter', 'performance-testing', 'load-testing', 'jmeter-plugins']",379,True,3,1
Workaround to seeing data factory v2 debug runs,"<p>I realise normally a debug run is not visible in the data factory v2 UI after closing the browser window, however unfortunately I needed to restart my machine unexpectedly and it's a long running pipeline.</p>

<p>I thought maybe the runs might be available via powershell, but I haven't had any luck.</p>

<p>The pipeline is likely still running.</p>

<p>We do have external logging, however ideally I'd like to see how long each activity is taking as I'm load testing.</p>

<p>And more importantly I do not want to do another run until I'm sure it's finished.... notably I'll run it from a trigger next time (just in case!).</p>

<hr>

<p>EDIT:
It looks like a sandbox id is used which is stored in the browser local storage and there appears to be undocumented API endpoints for gathering info using the sandbox id. But there doesn't appear to be a way of getting old sandbox id's so I'm probably out of luck.</p>
",https://stackoverflow.com/questions/55394759/workaround-to-seeing-data-factory-v2-debug-runs,['azure-data-factory'],1660,True,2,2
DynamodB query starts taking more time when we put more data into table,"<p>We have a dynamoDb table with following structure.</p>

<pre><code>userId - partition key- number
yearOfBirth -attribute number
dateOfBirth - attribute(number in millisecond)
loginTime - attribute(number in millisecond)
</code></pre>

<p>and with following gsi -  user_gsi</p>

<pre><code>yearOfBirth - partition key- number
dateOfBirth - sort key (number -in millisecond)
loginTime - attribute(number in millisecond)
</code></pre>

<p>we are using java aws sdk to query the table.
Our query requirement is to query all users between two dateOfBirth and between two loginTime.
We get all year from dateofBirth range and query for each year in separate thread and later join the result returned by each thread.</p>

<p>Following code is used to query for a single yearOfBirth-</p>

<pre><code>public Set&lt;Long&gt; queryForSingleBirthYear(Long startDateDob, Long endDateDob,Long minLoginTime, Long maxLoginTime, int yearOfBirth){
        Set&lt;Long&gt; userIds = new HashSet&lt;&gt;();

        Map&lt;String, AttributeValue&gt; lastEvaluatedKey = null;
        do{
            QueryRequest queryRequest = new QueryRequest().withTableName(""user"");
            queryRequest
                    .withIndexName(""user_gsi"")
                    .withExclusiveStartKey(lastEvaluatedKey);

            Condition keyCond = new Condition().withComparisonOperator(ComparisonOperator.EQ)
                    .withAttributeValueList(new AttributeValue().withN(Integer.toString(yearOfBirth)));

            String startDate = startDateDob.toString();
            String endDate = endDateDob.toString();

            Condition dobCond = new Condition().withComparisonOperator(ComparisonOperator.BETWEEN)
                    .withAttributeValueList(new AttributeValue().withN(startDate), new AttributeValue().withN(endDate));

            Map&lt;String, Condition&gt; keyCondMap = new HashMap&lt;&gt;();
            keyCondMap.put(""yearOfBirth"", keyCond);
            keyCondMap.put(""dateOfBirth"", dobCond);

            queryRequest.setKeyConditions(keyCondMap);
            Map&lt;String,String&gt; attrNames = new HashMap&lt;&gt;();
            attrNames.put(""#loginTime"",""loginTime"");
            Map&lt;String,AttributeValue&gt; attrvalues = new HashMap&lt;&gt;();
            attrvalues.put("":v_minLoginTime"",new AttributeValue().withN(minLoginTime.toString()));
            attrvalues.put("":v_maxLoginTime"",new AttributeValue().withN(maxLoginTime.toString()));

            String queryFilter = ""#loginTime &gt; :v_minLoginTime and #loginTime &lt;= :v_maxLoginTime"";

            queryRequest.withFilterExpression(queryFilter)
                    .withExpressionAttributeNames(attrNames)
                    .withExpressionAttributeValues(attrvalues);;

            QueryResult queryResult = amazonDynamoDB.query(queryRequest);
            List&lt;Map&lt;String, AttributeValue&gt;&gt; items = queryResult.getItems();
            for (Map&lt;String, AttributeValue&gt; item : items) {
                String id = item.get(""userId"").getN();
                userIds.add(Long.valueOf(id));
            }
            lastEvaluatedKey = queryResult.getLastEvaluatedKey();
        }while (lastEvaluatedKey != null);
        return basicFilterRes;
    }
</code></pre>

<p>While doing our load testing our queries starts taking time as we load more data into the table.
For 200K records and around and an dateOfBirth range of having around 25 yearOfBirth it takes approximate 2-3 seconds.
If we increase the number of records to 1.5 million in table it starts taking around 15-20 seconds. We have tried increasing RCU and even changing RCU to on demand mode, but time remains same.</p>

<p><strong>EDIT</strong></p>

<p>Following are the results after printing time taken by query for each year-</p>

<pre><code>yearOfBirth=1972, resultSize=110, timeMs=56
yearOfBirth=1977, resultSize=199, timeMs=54
yearOfBirth=1971, resultSize=89, timeMs=59
yearOfBirth=1973, resultSize=113, timeMs=60
yearOfBirth=1974, resultSize=143, timeMs=60
yearOfBirth=1978, resultSize=266, timeMs=59
yearOfBirth=1998, resultSize=3524, timeMs=612
yearOfBirth=1993, resultSize=3923, timeMs=677
yearOfBirth=1995, resultSize=4569, timeMs=714
yearOfBirth=1994, resultSize=4688, timeMs=777
</code></pre>
",https://stackoverflow.com/questions/55353022/dynamodb-query-starts-taking-more-time-when-we-put-more-data-into-table,"['amazon-dynamodb', 'dynamodb-queries']",633,True,2,1
JMETER 4. 0 | JMeter distributed load testing | jp@gc - Stepping Thread Group,"<p>I have set up a login->logout script using JMeter and performing load testing using a distributed machine. The username is dynamically populated in login using the user.CSV list while the password for the login is fixed and hardcoded in the login request.</p>

<ul>
<li>Master(My own machine)</li>
<li>2 slaves machines </li>
<li>Thread: jp@gc - Stepping Thread Group </li>
<li>Users: 10</li>
<li>Hold Load: 120</li>
</ul>

<p>When executing the script using NON-GUI mode with a command:</p>

<p>jmeter -n -t ""c:\Login and Logout.jmx"" -R slaveip1, slaveip2. </p>

<p>The summary report is generated is as below:</p>

<p>Summariser: summary =      0 in 00:00:00 = ******/s Avg:     0 Min: 9223372036854775807 Max: -9223372036854775808 Err:     0 (0.00%)</p>

<p>Can someone help me out to find out why the summary report is not getting populated?</p>

<p><strong>Note</strong>: When the script is executed for a single user then the summary report is getting populated. Here in the login request both username and password are hardcoded and username not coming for CSV.</p>
",https://stackoverflow.com/questions/54400480/jmeter-4-0-jmeter-distributed-load-testing-jpgc-stepping-thread-group,"['performance-testing', 'load-testing', 'jmeter-plugins', 'jmeter-4.0', 'distributed-testing']",127,True,1,1
scale some (but not all) tasks in ECS cluster,"<p>I have a very simple <code>docker-compose</code> for <code>locust</code>. It consists of one <code>master</code> (which is basically a webserver for a client) and one <code>slave</code> (which is a client that actually performs load testing, which is what locust is for).</p>

<pre><code>version: ""3""

services:
  locust-master:
    image: chapkovski/locust
    ports:
      - ""80:80""
    environment:
      LOCUST_MODE: master


  locust-slave:
    image: chapkovski/locust
    ""links"": [
      ""locust-master""
    ]
    environment:
      LOCUST_MODE: slave
      LOCUST_MASTER_HOST: locust-master
      LOCUST_MASTER_PORT: 5557
</code></pre>

<p>Everything works on AWS ECS. But now I would like to have multiple <code>slaves</code> connected to the same <code>master</code>, and I can't figure out how to do this. Because when I try to scale up the tasks, that results in an error due to the fact that ports are already busy. Which is obvious because scaling up this task definition makes ECS agent to have several masters at the same port.</p>

<p>When I try to split master and slave so I would have two tasks, and I would be able to scale up only the 'slave' one, then of course they cannot communicate, and the master does not see any clients.</p>

<p>So what is the correct way of scaling up only 'client' part, if, let's say I need 20 clients and one master?</p>
",https://stackoverflow.com/questions/57931141/scale-some-but-not-all-tasks-in-ecs-cluster,"['amazon-web-services', 'amazon-ecs']",164,True,1,1
Split Json Response body using BeanShell Scripting,"<p>I am trying to test REST APIs using JMeter. My lead told me to do load testing on each API using JMeter. Currently I am testing a Get API request, and I am getting the below JSON response body with double quotation.</p>

<p>""<a href=""https://api.rewards.com:/lists/v1/listcontainer/1?ts=20190221004021&amp;auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0="" rel=""nofollow noreferrer"">https://api.rewards.com:/lists/v1/listcontainer/1?ts=20190221004021&amp;auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0=</a>""</p>

<p>Now I have to pass this JSON body to another HTTP request and test the API.</p>

<p>My questions:</p>

<p>How can I get the values of ts and auth using split method like (ts=20190221004021 and auth=EngineeringSolutions:ydvMMlY2uxiKG0yuwh1IbVgR2mfqTQaQncTEaMr+Ef0=)
and store them into two different variables and print them on log view.</p>

<p>I am trying to get ts and auth value from the json response using split method. I am able to split the URL into two by using the below code. But, this is not my solution. I want to get 'ts' and 'auth' values and store them in two different variables.</p>

<p><a href=""https://i.stack.imgur.com/3Tf05.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/3Tf05.png"" alt=""enter image description here""></a></p>

<p>Can anyone guide me how I can trim and split the JSON response?</p>
",https://stackoverflow.com/questions/54873928/split-json-response-body-using-beanshell-scripting,['jmeter-5.0'],251,False,1,1
Mongodb cluster sudden crashes with read / write concern queries,"<p>We have a mongodb cluster with 5 PSA replica sets and one sharded collection. About 3,5 TB of data, 2 billion docs on primaries. Average insert rate: 300rps. Average select rate: 1000rps. Mongodb version 4.0.6. Collection has only one extra unique index, all read queries use one of the indexes (no long running queries).</p>

<p>PROBLEM. Sometimes (4 times in a last 2 month) one of the nodes stops responding to the queries with specified read concern or write concern. The same query without read/write concern executes successfully regardless of doing it locally or through mongos. These queries never execute, no errors, no timeouts even when restarting mongos, that initiate the query.  No errors in mongod logs, no errors in system logs. Restart of this node fixes the problem. Mongodb sees such broken node as normal, rs.status() shows that everything is ok.
Have no idea how to reproduce this problem, much more intense load testing have no results.</p>

<p>We would appreciate any help and suggestions.</p>
",https://stackoverflow.com/questions/56624609/mongodb-cluster-sudden-crashes-with-read-write-concern-queries,['mongodb'],65,False,1,0
