title,body,link,tags,view_count,is_answered,score,answer_count
Firebase Load Testing,"<p><strong>How can we load test Firebase Realtime Database listener performance?</strong></p>

<p>Firebase Realtime Database documentation says that we can have up to 100K concurrent users per database. If we have 100K concurrent users listening to the same node in a database, and that node updates, how quickly will the 100K users be notified of that update? (Obviously with just a few users, users are notified in less than a second, but how would it perform with 100K users listening at the same node?)</p>

<p>We're trying to simulate 100K concurrent users listening on the same path. </p>

<p><strong>What We've Tried</strong></p>

<p><em>Attempt #1</em>: We tried using a for loop to attach 100K listeners, but those listeners are pipelined over the same socket, so Firebase only sees one listener. <em>Is there a way we can disable pipelining of listeners?</em></p>

<p><em>Attempt #2</em>: Per this <a href=""https://www.viget.com/articles/backend-as-a-service-at-scale/"" rel=""noreferrer"">article</a> from Viget, we used a node script to spawn several child processes, each of which attaches a single listener to Firebase. See code below (from Viget). Unfortunately this isn't scalable to 100K - we can only realistically create a small handful of child processes per machine (generally equal to the number of CPUs the machine has). <em>Is there a way we can spawn significantly more child processes per machine (either with node, or something else)?</em></p>

<pre><code>const spawn = require('child_process').spawn

// How many connections to build with Firebase
const maxChildren = {# of CPUs the machine has}

// How long to keep child processes alive
const timeout = 10 * 60 * 1000 // 10 minutes

for (var i = 0; i &lt; maxChildren; i++) {
    // your-test.js should contain your application-specific test
    var child = spawn('node', ['your-test.js', `--id=${i}`, '-- timeout=${timeout}'])

    child.stdout.on('data', (data) =&gt; {
        console.log(`stdout: ${data}`)
    });

    child.stderr.on('data', (data) =&gt; {
        console.log(`stderr: ${data}`)
    });

    child.on('close', (code) =&gt; {
        if (code !== 0) console.log(`Child ${i} process exited with an error. Code ${code}`)
    })
}
</code></pre>

<p>I'm sure the engineers at Firebase must do some load testing, since there has to be a basis for the 100K concurrent connection limit. Does anyone have insight into the tools they use?</p>
",https://stackoverflow.com/questions/50027291/firebase-load-testing,"['firebase', 'firebase-realtime-database']",2878,FALSE,14,0
Jmeter Load testing,"<p>I am hitting 150 users per second in jmeter for hls video and it is giving me a response time of around 8 minutes. What if I hit a real time user from another PC. Will that user also take 8 minutes. How can I check that the report given by jmeter is real?.</p>
",https://stackoverflow.com/questions/49891866/jmeter-load-testing,"['testing', 'jmeter', 'load']",58,TRUE,0,1
Load testing authenticated users,"<p>I want to do load testing with Visual Studio but i don't get the idea how to setup <strong>load testing with authenticated users</strong>.</p>

<p>Imagine my scenario. This should be a quite common problem:</p>

<ul>
<li>a website where you need to <strong>authenticate with username and password</strong>.<br />
Perform a action that is only allowed for a authenticated user</li>
</ul>

<p>What i have done so far:</p>

<ul>
<li>i have already written <strong>UI tests with Selenium:</strong><br />
(this is working quite nice)<br /></li>
</ul>

<p><strong>UPDATE:</strong> My Selenium test class: <strong>I want to use this code with the load test.</strong><br />This is a data-driven unit test project  as you can see on method <em>TestCase4529</em></p>

<pre><code>[TestClass]
public class Scenario2
{
    private IWebDriver driver;
    public TestContext TestContext { get; set; }

    [TestInitialize]
    public void SetupTest()
    {
        this.driver = new ChromeDriver();
        this.driver.Manage().Timeouts().ImplicitWait = new TimeSpan(0, 0, 30);
    }

    [TestCleanup]
    public void TeardownTest()
    {
        this.driver.Quit();
    }

    [DataSource(""Microsoft.VisualStudio.TestTools.DataSource.CSV"", ""|DataDirectory|\\4529.csv"", ""4529#csv"", DataAccessMethod.Sequential), DeploymentItem(""4529.csv""), TestMethod]
    public void TestCase4529()
    {
        var userName = TestContext.DataRow[""UserName""].ToString();
        var password = TestContext.DataRow[""Password""].ToString();

        // UI Test logic
        var loginPage = new LoginPage(this.driver);
        loginPage.FillForm(userName, password);
        loginPage.LoginButton.Click();

        // Some assertions
    }
}
</code></pre>

<p>Now when i setup the load test in Visual Studio i am asked how many users should do something:</p>

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

<p>I am not getting what this number means:</p>

<ul>
<li>Does it only mean number of simultaneous threads?</li>
<li>How can i get a connection between a user (defined in the load test) an a authenticated user in my Selenium test?</li>
</ul>

<p>What i would like to achieve:</p>

<ul>
<li>Each user defined in the load test should be a authenthenticated user in my selenium UI test.</li>
</ul>

<p>May somebody give me an idea how to do that or what i am thinking wrong...</p>
",https://stackoverflow.com/questions/48984329/load-testing-authenticated-users,"['visual-studio', 'selenium', 'visual-studio-2017', 'azure-devops', 'load-testing']",1125,TRUE,2,2
Load Testing in jmeter,"<p>Hi since I was not aware of load testing I got a doubt at the time of learning.
hope if it is a not valid also pls let me help. </p>

<p>In jmeter we can simply record and do load test right. if that is the  case if I load some unknown application with lots of load from my client side it might causes the server crashes right. then what should they do if server crashes of unknown person load test. </p>

<p>is there any specific things to do load test or simply we can do load test on any website .pls let me know this thing  even my query is not a valid one also...thanks in advance </p>
",https://stackoverflow.com/questions/52182448/load-testing-in-jmeter,"['jmeter', 'load', 'performance-testing']",134,FALSE,0,1
Load testing using Jmeter,"<p>I have the following scenario:</p>

<ol>
<li>Users are authenticated through <code>JWT</code> in a <code>Laravel</code> API.</li>
<li>On successful login, the users can navigate to a survey form, where they can answer to a set of questions (multi-selects, selects, radio buttons etc).</li>
<li>A logged in admin can view the answers of the user in real-time (<code>Web-sockets</code> are used here), being plotted in charts. For example let's say a question is ""What's your gender?"", a pie chart is shown with 10% male and 90% female.</li>
</ol>

<p>I'd like to simulate 100 users answering some predefined questions and see the response being plotted in different charts in real-time. 
I thought of using <code>Jmeter</code> for load testing. But don't know the steps to login those 100 users and simulate answering the questions.</p>

<p>I want to test the response time and just visually see the answers being plotted in real-time.</p>
",https://stackoverflow.com/questions/52660623/load-testing-using-jmeter,"['laravel', 'jmeter', 'jwt']",325,FALSE,-2,1
Load Testing AWS API Gateway,"<p>As the question suggests, I need to perform Load Test on the API Gateway Resources with 1 million RPS. Apache JMeter is a very good tool for Load Testing. But I think it won't be possible to simulate such a huge load from a single machine. In that case, JMeter Clusters could be useful. But setting it up could be cumbersome. </p>

<p>I would like to know what are the other solutions can be used?</p>

<p>Does AWS provides any solution? (Code Pipeline has Action to run Load Test, but that will not serve the purpose I guess)</p>
",https://stackoverflow.com/questions/49046470/load-testing-aws-api-gateway,"['amazon-web-services', 'load-testing', 'aws-api-gateway', 'stress-testing']",4962,TRUE,5,3
Load testing services for mqtt,"<p>We need to make a full stack load testing. And the data journey is starting from mqtt client. Are there any good services to make a load testing for such case?</p>
",https://stackoverflow.com/questions/51999953/load-testing-services-for-mqtt,"['service', 'mqtt', 'load-testing']",8349,TRUE,5,1
Load testing an rpc application,"<p>I am working on an rpc application, I have used basic bench-marking methods to test the application like time taken for a ping-pong or time taken for sending specific bytes of data from client to server and back.
My question, Is there any other way or method to benchmark rpc applications?</p>
",https://stackoverflow.com/questions/53371323/load-testing-an-rpc-application,"['c++', 'qt', 'rpc', 'thrift', 'grpc']",171,FALSE,2,0
Load testing our elastic cluster,"<p>We are currently trying to load test our app which involves a lot of logging to our elastic cluster. On heavy load , i start seeing the below error from ES</p>

<pre><code>Error: No Living connections
    at sendReqWithConnection (D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\transport.js:225:15)
    at next (D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\connection_pool.js:213:7)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)
</code></pre>

<p>and before that , we see another bunch of errors</p>

<pre><code>Error: Request Timeout after 30000ms
    at D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\transport.js:354:15
    at Timeout.&lt;anonymous&gt; (D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\transport.js:383:7)
    at ontimeout (timers.js:482:11)
    at tryOnTimeout (timers.js:317:5)
    at Timer.listOnTimeout (timers.js:277:5)
</code></pre>

<p>and</p>

<pre><code>Error: [es_rejected_execution_exception] rejected execution of org.elasticsearch.transport.TransportService$7@4d532edc on EsThreadPoolExecutor[bulk, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@6c5897a1[Running, pool size = 1, active threads = 1, queued tasks = 200, completed tasks = 122300]]
    at respond (D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\transport.js:307:15)
    at checkRespForFailure (D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\transport.js:266:7)
    at HttpConnector.&lt;anonymous&gt; (D:\home\site\wwwroot\node_modules\elasticsearch\src\lib\connectors\http.js:159:7)
    at IncomingMessage.bound (D:\home\site\wwwroot\node_modules\elasticsearch\node_modules\lodash\dist\lodash.js:729:21)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)
</code></pre>

<p>Is this just caused due to heavy load? I'm wondering how i can fix the bottleneck. We currently have 3 data nodes and 3 master nodes running on separate linux servers.</p>

<ol>
<li>Should i bring in something like logstash? how many servers would i need?</li>
<li>Should i bring in a queue to set aside ES  tasks for later</li>
</ol>

<p>EDIT : a bit more info -</p>

<ol>
<li><p>We're performing one insert per request (we send around 100 parallel requests upto 2000 in total)</p></li>
<li><p>Cpu performance hasnt gone very high &lt; 10 %</p></li>
<li><p>We hosting the machines in azure. All applications (node and es) stay in the same region</p></li>
</ol>
",https://stackoverflow.com/questions/52000141/load-testing-our-elastic-cluster,"['node.js', 'elasticsearch']",162,FALSE,0,1
JMeter for database load testing,"<p>I'm trying to use Apache JMeter to perform a database load test using a list of pre-generated SQL statements from a file.  The pre-generated SQL statements are various stored procedures that were captured from a trace so they have the needed values for the parameters as part of the execution statement.  </p>

<p>I'm following the same design as a load test for an <a href=""http://www.roman10.net/2012/07/28/apache-jmeter-input-from-file-with-http-testing-as-an-example/"" rel=""nofollow noreferrer""><code>HTTP Request</code></a>
from an external file by setting the variable from the CSV_Data_Set_Config as the <code>PATH</code> value of the <code>HTTP Request</code> but replacing the <code>HTTP Request</code> with the <code>JDBC Request</code> and putting the variable from the CSV_Data_Set_Config for the SQL statement.  Each <a href=""http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request"" rel=""nofollow noreferrer"">example</a> I've seen only takes the contents of the file as variables into a predefined SQL statement but nothing takes each line from the file as a complete statement to execute.</p>

<p>In addition to using the CSV_Data_Set_Config I've tried going another route by trying to read lines from the file using the <code>CSVRead</code> function and putting the statement in the parameter values of the <code>JDBC Request</code> and using the <code>?</code> to fill in the SQL Statement at runtime however it seems to cut off the line after the first <strong>period</strong> in the three part name.  For example a line would be <code>exec {database}.{owner}.{procedure}</code> and the request would only send in <code>exec {database}</code></p>

<p>Can you use JMeter in this manner with the <code>JDBC Request</code> controller?</p>
",https://stackoverflow.com/questions/51054618/jmeter-for-database-load-testing,"['sql', 'jmeter', 'load-testing']",139,FALSE,0,0
Load testing microservice - bad results,"<p>I am struggling with the results of a load test of my api service.
The service is deployed on GCP. There are 2 instances running behind a nginx. </p>

<p>I am using spring boot 2.0 with default tomcat configuration.
The service is running inside a docker container with -Xmx768M</p>

<p>A request to the tested endpoint fetches a single row from a database and returns it. </p>

<p>My results:</p>

<blockquote>
  <p>ab -c 1 -n 1 /testapi</p>
</blockquote>

<pre><code>Requests per second: 15
Time per request: 63ms
</code></pre>

<blockquote>
  <p>ab -c 10 -n 100 /testapi</p>
</blockquote>

<pre><code>Requests per second: 102
Time per request: 97ms
</code></pre>

<blockquote>
  <p>ab -c 50 -n 100 /testapi</p>
</blockquote>

<pre><code>Requests per second: 95
Time per request: 522ms
</code></pre>

<blockquote>
  <p>ab -c 100 -n 100 /testapi</p>
</blockquote>

<pre><code>Requests per second: 93
Time per request: 1065ms
</code></pre>

<blockquote>
  <p>ab -c 200 -n 200 /testapi</p>
</blockquote>

<pre><code>Timeout
</code></pre>

<p><strong>Worrying aspects:</strong> </p>

<ul>
<li><p>Heap usage is rising after each test</p></li>
<li><p>At 99.99% heap usage I am getting slow responses until the container crashes with  <em>java.lang.OutOfMemoryError: Java heap space</em></p></li>
<li><p>I am able to ddos 2 instances of an API from a single laptop.</p></li>
</ul>

<p>What am I doing wrong here? Does the tomcat configuration needs further tweaking? Are the JVM parameters wrong?</p>

<p>Thanks</p>

<p>EDIT tested code:</p>

<pre><code>@ApiOperation(value=""Get Device"", response = Device.class, authorizations = {@Authorization(value = ""Authorization"")})
@RequestMapping(value=""/device/commnr/{commnr}"", method= RequestMethod.GET)
public DeferredResult&lt;ResponseEntity&gt; getDevice(@PathVariable String commnr) {

    final DeferredResult&lt;ResponseEntity&gt; deferred = new DeferredResult&lt;&gt;();

    HttpServletRequest request = getCurrentHttpRequest();

    timer.schedule(new TimerTask() {
        @Override
        public void run() {
            if(deferred.isSetOrExpired()) {
                throw new RuntimeException();
            } else {
                User user = authenticationService.loginUser(request);

                Device device = deviceService.findByCommNr(commnr);
                if(!AuthTools.isUserDevice(device, user)) {
                    deferred.setResult(new ResponseEntity&lt;&gt;(""Requested Device does not belong to user."", HttpStatus.FORBIDDEN));
                }

                if(device == null) {
                    deferred.setResult(new ResponseEntity&lt;&gt;(HttpStatus.NOT_FOUND));
                }

                deferred.setResult(new ResponseEntity&lt;&gt;(device, HttpStatus.OK));
            }
        }
    }, 10);

    return deferred;
}
</code></pre>
",https://stackoverflow.com/questions/53398036/load-testing-microservice-bad-results,"['performance', 'spring-boot', 'tomcat', 'google-cloud-platform', 'load-testing']",70,FALSE,0,0
UWP application syncing Load testing,"<p>I have a uwp application and there is a button which calls an api to sync data from/to cloud azure db. How can I perform a load testing? </p>
",https://stackoverflow.com/questions/52299113/uwp-application-syncing-load-testing,"['uwp', 'azure-sql-database', 'load-testing']",121,TRUE,-1,1
Break points of load testing,"<p>My application is overloaded or not able to do actions after some time what type of errors we will have and how do we identify breakpoints of application with the load test. what types of tests we can do to identify breakpoints. thanks in advance</p>
",https://stackoverflow.com/questions/51518908/break-points-of-load-testing,['load-testing'],233,FALSE,-1,2
Distributed load testing with JMeter,"<p>I am trying to run the Jmeter Load test with master slave configuration. The connectivity between Master and Slave is working up and fine. But when i am triggering the remote test from master i am getting the following error.</p>

<p>I have made the Slave server (Jmeter-server.bat file) ON</p>

<p>Jmeter Log</p>

<pre><code>2018/03/27 12:26:45 INFO  - jmeter.engine.DistributedRunner: Configuring remote engine: 10.101.43.14
2018/03/27 12:26:45 INFO  - jmeter.engine.DistributedRunner: Starting remote engines
2018/03/27 12:26:45 INFO  - jmeter.engine.DistributedRunner: Starting the test @ Tue Mar 27 12:26:45 BST 2018 (1522150005491)
2018/03/27 12:26:45 INFO  - jmeter.engine.ClientJMeterEngine: running clientengine run method
2018/03/27 12:26:45 INFO  - jmeter.samplers.BatchSampleSender: Using batching (client settings) for this run. Thresholds: num=100, time=60000
2018/03/27 12:26:45 INFO  - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2018/03/27 12:26:45 INFO  - jmeter.engine.ClientJMeterEngine: sent test to 10.101.43.14 basedir='.'
2018/03/27 12:26:45 INFO  - jmeter.engine.ClientJMeterEngine: Sending properties {}
2018/03/27 12:26:45 INFO  - jmeter.engine.ClientJMeterEngine: sent run command to 10.101.43.14
2018/03/27 12:26:45 INFO  - jmeter.engine.DistributedRunner: Remote engines have been started 
**2018/03/27 12:26:45 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,10.101.43.14)
2018/03/27 12:26:45 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,10.101.43.14)**
</code></pre>

<p>How can I resolve this issue?</p>
",https://stackoverflow.com/questions/49511896/distributed-load-testing-with-jmeter,"['performance', 'jmeter', 'load-testing']",371,TRUE,-1,1
Jenkins on Kubernetes Load Testing,"<p>We are using Jenkins slaves on containers &amp; have Kubernetes as our orchestrator. Jenkins Master is on a standalone instance. Now, for 5-6 parallel builds the set up is working just fine. However, we wanted to do some load testing to check how many parallel builds ie how many containers can we spin up in this set up.</p>

<p>Is there any tool out there for such testing ? Any recommended way ?</p>
",https://stackoverflow.com/questions/49809520/jenkins-on-kubernetes-load-testing,"['jenkins', 'kubernetes']",104,FALSE,0,2
JMeter Network distribution in load testing,"<p>How can i distribute networks while load testing in JMeter?</p>

<p>Suppose my load test is of 1 hr. and i have 100 users. I want to distribute network like-
              20% users - 2G speed
              40% users - 3G speed
              rest      - 4G speed.</p>

<p>OR, other scenario like throughout the whole test of 1hr. 20% traffic will on 2G speed, 40% traffic on 3G and rest on 4G speed.</p>

<p>Can anyone tell me that how to mimic this network behavior in JMeter?</p>
",https://stackoverflow.com/questions/48982829/jmeter-network-distribution-in-load-testing,['jmeter'],212,TRUE,1,1
TFS On-Premise Load Testing Pipeline,"<p>Has anyone fit load testing into their on-premise TFS server build/release pipelines? I found other stackoverflow articles on how to trigger the distributed load test using mstest. Currently there isn't an easy way to get the generated statistics in a dashboard. I looked at the cloud load testing options and storing the test results in VSTS seems like too much extra work to bother with. Anyone have suggestions on how to make this less disjointed and actionable? Are there other tools that are worth integrating? Are there simple ways to generate load tests based on swagger/openapi?</p>
",https://stackoverflow.com/questions/51385994/tfs-on-premise-load-testing-pipeline,"['c#', 'tfs', 'performance-testing', 'mstest', 'load-testing']",1216,TRUE,-1,1
"J meter Load Testing , Performance Testing","<p>Does J meter Suits for Desktop application and Windows applications Does it suits for load and performance testing</p>
",https://stackoverflow.com/questions/49977167/j-meter-load-testing-performance-testing,"['performance', 'jmeter', 'load']",69,FALSE,-1,1
Load testing tools for SpringBoot Web applications,"<p>Currently we use soap-ui/manual posting of xmls etc for load testing our spring boot webapplications.</p>

<p>Looking for any free load testing tools that others have been using and want to recommend?</p>

<p>Thanks for your help!</p>
",https://stackoverflow.com/questions/48140461/load-testing-tools-for-springboot-web-applications,"['testing', 'web', 'load']",9104,TRUE,4,2
Locust load testing terminology vs Apache Bench,"<p>I'm using <a href=""https://locust.io"" rel=""nofollow noreferrer"">Locust</a> for load testing a site of mine and I'm curious about the difference between it and Apache Bench in terms of terminology.</p>

<p>With Apache Bench, you specify the number of requests (<code>-n</code>) and the number of multiple requests, or concurrency (<code>-c</code>).</p>

<p>Locust uses slightly different terminology. It has ""Users to simulate"" and ""Hatch rate (users spawned/second)"".</p>

<p>It is my understanding that ""Users to simulate"" would be the equivalent of number of requests in Apache Bench. Is that also true of <code>-c</code> and ""Hatch rate"" where ""Hatch rate"" is essentially how many concurrent requests will be made?</p>

<p>For example, are these two essentially or close to equivalent?</p>

<p><code>ab -n 1000 -c 100 url</code> and Locust with 1000 users at a hatch rate of 100/second?</p>

<p>Note: I realize these two tools have very different capabilities and that Locust is a lot more flexible than Apache Bench. I'm really trying to understand the terminology difference.</p>
",https://stackoverflow.com/questions/51858225/locust-load-testing-terminology-vs-apache-bench,"['performance', 'load-testing', 'apachebench', 'locust']",1470,TRUE,2,4
How to Test RTMP Streaming Load testing,"<p>I have a task in which we have to test the Mock Interview Video, In it, the Interviewee and Interviewer are connected via Video.</p>

<p>So we have to test if the Video is properly recorded or not. (Video crashed or not )
When the number of users increases the load on a server will also increase, So basically it's a Load Testing, </p>

<p>if yes then I want to know more about them.</p>

<p>If not then is there anything else that you can suggest to me. </p>
",https://stackoverflow.com/questions/51635705/how-to-test-rtmp-streaming-load-testing,"['testing', 'jmeter', 'video-streaming', 'functional-testing', 'rtmp']",2118,TRUE,2,1
load testing results now serves lesser users,"<p>I was testing website with 30 users/second and it was working fine. But now it is not even serving 25 users/second. The website is a search engine kind of site. In between these two tests of 30 users/second and 25 users/seconds, we have started the crawler to get some sites crawled and then again stopped it before the load testing. 30 users/second was working fine before crawler turned on. Elastic search is used as DB for the website and it went down saying no nodes available.</p>

<p>I've used standard thread group. Below is the configuration.
Total Samples: 250
Ramp up (sec) : 10
Loop count : 1</p>

<p>When I checked the results in table, it shows all green signal but when we hit the site, it gives nonodesavailable exception</p>
",https://stackoverflow.com/questions/53481408/load-testing-results-now-serves-lesser-users,"['elasticsearch', 'jmeter', 'threadgroup']",21,FALSE,0,0
Increasing google datastore quota for load testing?,"<p>I hit this error when I started load testing my REST API deployed on a GAE app spot URL.</p>

<p><strong>The API call datastore_v3.RunQuery() required more quota than is available.</strong></p>

<p>Any help on which particular setting to change on cloud console would be appreciated. I have enabled billing on the account. But need to upgrade the quota for datastore reads. </p>

<p>Thanks
Srik</p>
",https://stackoverflow.com/questions/48595569/increasing-google-datastore-quota-for-load-testing,"['google-app-engine', 'google-cloud-datastore']",62,TRUE,0,1
Getting Error while performing distributing Load testing,"<p>I am doing Distributing Load testing by j meter but when i run the test case from remote host then it shows 100% error. My system is running as a master and the remote system or the slave system which is connected properly and run their threads too but with 100 % error. It gives me 100% error in both the cases. How to handle it to test load and performance testing on the API. Suggest some answers to get progress. </p>

<p>I tested my apis on different conditions but still facing same issue.</p>
",https://stackoverflow.com/questions/49249391/getting-error-while-performing-distributing-load-testing,"['jmeter', 'load']",236,TRUE,0,1
Elastic Search Load Testing With Apache Benchmark,"<p>I am using the elastic cloud to store my data. My index has 1.3 million documents and I am using apache benchmark to perform load testing on my elastic search index. I am using the following command to perform load testing:</p>

<pre><code>ab -p &lt;&lt;file.txt&gt;&gt; -T application/json -c 500 -n 50000 -t 60 -l &lt;&lt;elastic url&gt;&gt;
</code></pre>

<p>After running above command I get the following result:</p>

<pre><code>Complete requests:9000
Failed requests: 0
</code></pre>

<p>In the request, I have mentioned the number of requests is 50 000 and concurrency is 500 but the total completed request is 9 000 only. How I increase completed request count?
Is any setting in elastic search to support max request concurrency(like 500)? </p>
",https://stackoverflow.com/questions/53883948/elastic-search-load-testing-with-apache-benchmark,"['elasticsearch', 'apachebench']",234,FALSE,0,0
HikariCP - Load testing degrades performance to a halt,"<p>I have been using HikariCP on my spring boot application and I am starting to make some load tests with JMeter.</p>

<p>I noticed that the first time I run my tests, it goes well, and each request takes like 30ms or so.</p>

<p>But each time I run my tests again, against the same application instance, the response time gets worse, until it freezes and I get a whole lot of </p>

<pre><code>Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30019ms.
    at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:583)
    at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:186)
    at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
    at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at net.bull.javamelody.JdbcWrapper$3.invoke(JdbcWrapper.java:805)
    at net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:286)
    at com.sun.proxy.$Proxy102.getConnection(Unknown Source)
    at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:246)
    ... 108 common frames omitted
</code></pre>

<p>I even left the application iddle for a day and tryied again, but the tests show degraded performance and the same errors.</p>

<p>Only if I shutdown the application it can run my tests again, but only one load (1200+ requests).</p>

<p>When I was developing the tests I was running my local app with a H2 database and didn't notice any degradation until I deployed my application on a server running postgresql.</p>

<p>So to take that variable out of the way I left JMeter running on my local H2 app and the degradation showed.</p>

<p>Here is a test scenario I ran on my local app (H2 database), with default HikariCP poll size (10), using 10 threads. I manage to run 25000+ requests before the application stopped responding.</p>

<p>I plotted the requests:</p>

<p><img src=""https://i.stack.imgur.com/yrbgd.png"" alt=""0-5000""><img src=""https://i.stack.imgur.com/bUcka.png"" alt=""5000-10000""><img src=""https://i.stack.imgur.com/gidpW.png"" alt=""10000-15000""><img src=""https://i.stack.imgur.com/5fhTL.png"" alt=""15000-20000""><img src=""https://i.stack.imgur.com/822jw.png"" alt=""20000-25000""></p>

<p>Also, the tests consists of a request to a Spring Boot <code>@RestController</code>.</p>

<p>My controller calls a service that has <code>@Transactional</code> at the start (I call some legacy APIs that require a transaction to exist, so I open it right away).</p>

<p>So let's say I have my tests requesting this endpoint 10 times in parallel. Let's also say that my code might have other points annotated with <code>@Transactional</code>. Would a poll size of 10 be enough?</p>

<p>Also, should any poll size be enough, despite having poor performance, or is it ""normal"" to have this kind of scenario where the poll just get's too busy and ""locks""?</p>

<p>I also tried increasing the poll size to 50 but the problem persists. It gets close to the previous 25000 requests from the previous tests (with 10 poll size) and fails like stated before.</p>
",https://stackoverflow.com/questions/50722046/hikaricp-load-testing-degrades-performance-to-a-halt,"['java', 'multithreading', 'performance', 'spring-boot', 'hikaricp']",3468,TRUE,4,2
JMS Point to Point Jmeter Load Testing - NoInitialContextException,"<p>I was trying to test JMS using Jmeter and was trying to run it in local, but keep getting the error:
Response message: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]</p>

<p>I have already added the activemq-all.jar file in lib folder of jmeter, which should have resolved the issue, but it remains.</p>

<p>Please help me understand if I am missing something. Thanks.</p>

<p>Below is my jmx file content for the test plan:</p>

<pre><code>&lt;?xml version=""1.0"" encoding=""UTF-8""?&gt;
&lt;jmeterTestPlan version=""1.2"" properties=""5.0"" jmeter=""5.0 r1840935""&gt;
  &lt;hashTree&gt;
    &lt;TestPlan guiclass=""TestPlanGui"" testclass=""TestPlan"" testname=""JMS P2P Load Test"" enabled=""true""&gt;
      &lt;stringProp name=""TestPlan.comments""&gt;&lt;/stringProp&gt;
      &lt;boolProp name=""TestPlan.functional_mode""&gt;false&lt;/boolProp&gt;
      &lt;boolProp name=""TestPlan.tearDown_on_shutdown""&gt;true&lt;/boolProp&gt;
      &lt;boolProp name=""TestPlan.serialize_threadgroups""&gt;false&lt;/boolProp&gt;
      &lt;elementProp name=""TestPlan.user_defined_variables"" elementType=""Arguments"" guiclass=""ArgumentsPanel"" testclass=""Arguments"" testname=""User Defined Variables"" enabled=""true""&gt;
        &lt;collectionProp name=""Arguments.arguments""/&gt;
      &lt;/elementProp&gt;
      &lt;stringProp name=""TestPlan.user_define_classpath""&gt;&lt;/stringProp&gt;
    &lt;/TestPlan&gt;
    &lt;hashTree&gt;
      &lt;ThreadGroup guiclass=""ThreadGroupGui"" testclass=""ThreadGroup"" testname=""JMSTestPlan-P2P"" enabled=""true""&gt;
        &lt;stringProp name=""ThreadGroup.on_sample_error""&gt;continue&lt;/stringProp&gt;
        &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;2&lt;/stringProp&gt;
        &lt;/elementProp&gt;
        &lt;stringProp name=""ThreadGroup.num_threads""&gt;1&lt;/stringProp&gt;
        &lt;stringProp name=""ThreadGroup.ramp_time""&gt;0&lt;/stringProp&gt;
        &lt;boolProp name=""ThreadGroup.scheduler""&gt;false&lt;/boolProp&gt;
        &lt;stringProp name=""ThreadGroup.duration""&gt;&lt;/stringProp&gt;
        &lt;stringProp name=""ThreadGroup.delay""&gt;&lt;/stringProp&gt;
      &lt;/ThreadGroup&gt;
      &lt;hashTree&gt;
        &lt;JMSSampler guiclass=""JMSSamplerGui"" testclass=""JMSSampler"" testname=""JMS Point-to-Point"" enabled=""true""&gt;
          &lt;stringProp name=""JMSSampler.queueconnectionfactory""&gt;ConnectionFactory&lt;/stringProp&gt;
          &lt;stringProp name=""JMSSampler.SendQueue""&gt;Q.REQ&lt;/stringProp&gt;
          &lt;stringProp name=""JMSSampler.ReceiveQueue""&gt;Q.REQ&lt;/stringProp&gt;
          &lt;intProp name=""JMSSampler.communicationStyle""&gt;0&lt;/intProp&gt;
          &lt;boolProp name=""JMSSampler.isNonPersistent""&gt;false&lt;/boolProp&gt;
          &lt;boolProp name=""JMSSampler.useReqMsgIdAsCorrelId""&gt;true&lt;/boolProp&gt;
          &lt;stringProp name=""JMSSampler.timeout""&gt;2000&lt;/stringProp&gt;
          &lt;stringProp name=""JMSSampler.jmsNumberOfSamplesToAggregate""&gt;&lt;/stringProp&gt;
          &lt;stringProp name=""HTTPSamper.xml_data""&gt;Testing point to point&lt;/stringProp&gt;
          &lt;stringProp name=""JMSSampler.initialContextFactory""&gt;org.apache.activemq.jndi.ActiveMQInitialContextFactory&lt;/stringProp&gt;
          &lt;stringProp name=""JMSSampler.contextProviderUrl""&gt;tcp://localhost:61616&lt;/stringProp&gt;
          &lt;elementProp name=""JMSSampler.jndiProperties"" elementType=""Arguments"" guiclass=""ArgumentsPanel"" testclass=""Arguments"" testname=""User Defined Variables"" enabled=""true""&gt;
            &lt;collectionProp name=""Arguments.arguments""&gt;
              &lt;elementProp name=""queue.Q.REQ"" elementType=""Argument""&gt;
                &lt;stringProp name=""Argument.name""&gt;queue.Q.REQ&lt;/stringProp&gt;
                &lt;stringProp name=""Argument.value""&gt;example.A&lt;/stringProp&gt;
                &lt;stringProp name=""Argument.metadata""&gt;=&lt;/stringProp&gt;
              &lt;/elementProp&gt;
            &lt;/collectionProp&gt;
          &lt;/elementProp&gt;
          &lt;elementProp name=""arguments"" elementType=""JMSProperties""&gt;
            &lt;collectionProp name=""JMSProperties.properties""/&gt;
          &lt;/elementProp&gt;
          &lt;boolProp name=""JMSSampler.useResMsgIdAsCorrelId""&gt;true&lt;/boolProp&gt;
        &lt;/JMSSampler&gt;
        &lt;hashTree/&gt;
        &lt;ResultCollector guiclass=""ViewResultsFullVisualizer"" testclass=""ResultCollector"" testname=""View Results Tree"" enabled=""true""&gt;
          &lt;boolProp name=""ResultCollector.error_logging""&gt;false&lt;/boolProp&gt;
          &lt;objProp&gt;
            &lt;name&gt;saveConfig&lt;/name&gt;
            &lt;value class=""SampleSaveConfiguration""&gt;
              &lt;time&gt;true&lt;/time&gt;
              &lt;latency&gt;true&lt;/latency&gt;
              &lt;timestamp&gt;true&lt;/timestamp&gt;
              &lt;success&gt;true&lt;/success&gt;
              &lt;label&gt;true&lt;/label&gt;
              &lt;code&gt;true&lt;/code&gt;
              &lt;message&gt;true&lt;/message&gt;
              &lt;threadName&gt;true&lt;/threadName&gt;
              &lt;dataType&gt;true&lt;/dataType&gt;
              &lt;encoding&gt;false&lt;/encoding&gt;
              &lt;assertions&gt;true&lt;/assertions&gt;
              &lt;subresults&gt;true&lt;/subresults&gt;
              &lt;responseData&gt;false&lt;/responseData&gt;
              &lt;samplerData&gt;false&lt;/samplerData&gt;
              &lt;xml&gt;false&lt;/xml&gt;
              &lt;fieldNames&gt;true&lt;/fieldNames&gt;
              &lt;responseHeaders&gt;false&lt;/responseHeaders&gt;
              &lt;requestHeaders&gt;false&lt;/requestHeaders&gt;
              &lt;responseDataOnError&gt;false&lt;/responseDataOnError&gt;
              &lt;saveAssertionResultsFailureMessage&gt;true&lt;/saveAssertionResultsFailureMessage&gt;
              &lt;assertionsResultsToSave&gt;0&lt;/assertionsResultsToSave&gt;
              &lt;bytes&gt;true&lt;/bytes&gt;
              &lt;sentBytes&gt;true&lt;/sentBytes&gt;
              &lt;url&gt;true&lt;/url&gt;
              &lt;threadCounts&gt;true&lt;/threadCounts&gt;
              &lt;idleTime&gt;true&lt;/idleTime&gt;
              &lt;connectTime&gt;true&lt;/connectTime&gt;
            &lt;/value&gt;
          &lt;/objProp&gt;
          &lt;stringProp name=""filename""&gt;&lt;/stringProp&gt;
        &lt;/ResultCollector&gt;
        &lt;hashTree/&gt;
      &lt;/hashTree&gt;
    &lt;/hashTree&gt;
  &lt;/hashTree&gt;
&lt;/jmeterTestPlan&gt;
</code></pre>
",https://stackoverflow.com/questions/53311602/jms-point-to-point-jmeter-load-testing-noinitialcontextexception,"['jmeter', 'jms']",992,TRUE,1,1
How to parameterized load testing in visual studio?,"<p>We are doing load testing/ web performance test where we need to parameterized the authentication values.</p>

<p>We need to parameterize the test from the point after which authentication is done and we will receive an auth token.</p>

<p>Any help on this appreciated !</p>
",https://stackoverflow.com/questions/51395842/how-to-parameterized-load-testing-in-visual-studio,"['c#', 'visual-studio', 'performance-testing']",37,FALSE,1,0
How to perform load testing for many users?,"<p>I am new to <code>jmeter</code>, I am trying to do load testing for 20 users for the below scenario but facing some issues</p>

<p>There are 3 sequential url, in the first url.. request will be send and in the 3rd url the response message (response is processed) will be obtained.
So to obtain the response message we have to refresh the 3rd url i.e 3rd url will be refreshed until we get a response message like response is processed. If I am doing a load testing for 3 users. for first user the response message may be obtained at 3rd time refresh of 3rd url and for 2nd user it may be obtained at 5th time refresh similarly for 3rd user it may be obtained at 8th or 10th time  refresh of 3rd url so we will be getting the response message at any <code>n'th</code> refresh of 3rd url.</p>

<p>On each HTTP request the sample time is calculated however i need to calculate how long for 1 user it takes i.e timetaken ,starting from the 1st request until the response message is obtained in 3rd url</p>

<p>There are 2 issues:</p>

<ol>
<li>I am unaware of how can I set a condition to click on the 3rd url until response message is obtained.</li>
<li>How can I get the timetaken for 1 user for 3 url i.e from sending request in 1st url to obtaining response message in 3rd url instead of sample time for each url (http request)</li>
</ol>

<p>Can somebody please help me with this issues</p>
",https://stackoverflow.com/questions/48088355/how-to-perform-load-testing-for-many-users,"['jmeter', 'jmx']",37,TRUE,1,1
Tsung distributed load testing throwing internal server error,"<p>I am running a distributed load test for mqtt message broker using tsung. I have configured the nodes with shh keys and checked that shh is happening properly between the nodes and with single client the test is running succesfully but when i start the <code>tsung.xml</code> file with 2 nodes i encounter the internal server error.</p>

<p>I have checked on versions and paths of erlang and tsung installed in both nodes. They have same verions and paths even.</p>

<pre><code>&lt;clients&gt;
    &lt;client host=""1.2.3.4"" cpu=""1"" maxusers=""300""/&gt;
    &lt;client host=""2.3.4.6"" cpu=""1"" maxusers=""100""/&gt;
&lt;/clients&gt;
&lt;servers&gt;
    &lt;server host=""1.2.3.4"" port=""1883"" type=""tcp"" /&gt;
&lt;/servers&gt;
</code></pre>

<p>when i run tsung for reports at 1.2.3.4:8091</p>

<p><code>Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator unknown@unknown, and inform them of the time the error occurred and anything you might have done that may have caused the error.</code>  </p>

<p>And tsung_controller@1.2.3.4.log says</p>

<p><code>ts_config_server:(0:&lt;0.158.0&gt;) Can't start newbeam on host '2.3.4.6' (reason: timeout) ! Aborting!</code></p>

<p>Is their any reason for this issue or a solution of how to solve the error? </p>
",https://stackoverflow.com/questions/53930813/tsung-distributed-load-testing-throwing-internal-server-error,"['load-testing', 'tsung']",235,TRUE,0,1
VSTS Load Testing as part of CD pipeline,"<p>As part of Release pipeline, created a cloud load test TASK.
What should be the path given under Load Test files folder?
On deployment, it gives me an error: </p>

<blockquote>
  <p>ERR -> The path for the load test files
  D:\a\r1\a\SourceCI\drop\LoadTestproject\bin\Release does not exist.<br>
  Please provide a valid path.</p>
</blockquote>
",https://stackoverflow.com/questions/52044837/vsts-load-testing-as-part-of-cd-pipeline,"['load-testing', 'pipeline', 'azure-pipelines-release-pipeline']",57,FALSE,-1,1
Clear event hub for consumers after load testing,"<p>I'm load testing and ingestion app of which part sends data to event hub.</p>

<p>During this time, I disable the consuming azure functions, as I'm not currently testing that part of the system and don't wish to pay for them.</p>

<p>I then wish to test the consuming azure functions, but there is a huge backlog of item in the event hub.</p>

<p>I understand that it's a log and after the retention period it will be cleared.</p>

<p>But I'm hoping for a more immediate option, I do not to ""delete"" the messages per say just informing the consuming group it doesn't need to read those messages.</p>

<p>A few quick hacks I have tried is reducing the retention period down to 1 and disabling the event hub and re-enabling.</p>

<p>Searching people say event hubs cannot be cleared, I suspect one option is regarding check points however I am open to alternatives (it being a dev environment means easier albeit more drastic techniques can be adopted). This is separate to specific questions regarding check pointing even if that is the answer, as I wish to highlight a ""clearing"" technique.</p>
",https://stackoverflow.com/questions/49405146/clear-event-hub-for-consumers-after-load-testing,['azure-eventhub'],589,FALSE,0,0
CDNs&#39; page load testing by increasing JavaScript Code,"<p>I will test the CDNs at page load speeds according to location by increasing the JavaScript Code. But I could not find high-megabyte JavaScript code for testing. When I try to use small kilobyte or byte differences, the page load speed is not stable and load time differences are negligible. The project with Low-kilobyte JavaScript code can open slowly from the same project with high-kilobyte JavaScript code ect. Any suggestion ?</p>
",https://stackoverflow.com/questions/48396217/cdns-page-load-testing-by-increasing-javascript-code,"['javascript', 'testing', 'cdn']",18,FALSE,0,0
Meaning of terms after analysis in Locust Load Testing,"<p>I am using <strong>Locust (Modern Open Source Load Testing Tool)</strong> for Load testing of APIs.<br />
As it is <code>simulation + analysis</code> tool, I am not able to understand some of the terms.<br />
Below is the screen-shot of the test which I have done on the API.</p>
<p><a href=""https://i.stack.imgur.com/sAU2k.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/sAU2k.png"" alt=""Test Run"" /></a></p>
<p>Terms I want to know about:</p>
<ol>
<li>The relationship between <code>Number of users to simulate Vs Hatch Rate (Users Spawned/Second)</code>.</li>
<li>From the above image, the meaning of <code>Median (ms), Average (ms), Content Size(bytes)</code>.</li>
<li><code>min_wait, max_wait</code>, the name of the variables which we override with own values in the <code>WebsiteUser(HttpLocust)</code> class, the significance of min_wait, max_wait.</li>
</ol>
<p>Next, in the <code>Charts</code> tab, Locust shows 3 graphs, namely <code>(Total Requests/Second, Response Time (ms), Number of Users)</code>.<br />
Not able to make sense of this charts,<br />
In <code>Total Requests/Second</code>, should I look at peaks with respect to time as it is <code>Number of Users Vs Time Graphs</code>?<br />
How do I make sense of all the charts?</p>
<p>Thank You.<br />
Its a broad question, but I need to know about this terms, as for better understanding of the graphs, data which I get after doing the analysis.</p>
",https://stackoverflow.com/questions/53096366/meaning-of-terms-after-analysis-in-locust-load-testing,"['python', 'testing', 'load-testing', 'locust']",5073,TRUE,5,1
Django Load testing using locust giving Csrf token error,"<p>I am writing a script for load testing for my django application , but I am getting error as :  </p>

<pre><code>raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: ""name='csrftoken', domain=None, path=None""
</code></pre>

<p>Here is my script:</p>

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

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

    def login(self):
        response = self.client.get(""/"")
        csrftoken = response.cookies['csrftoken']
        self.client.post('/check_login/',{'username': '####', 'password': '########'},headers={'X-CSRFToken': csrftoken})


    @task(2)
    def index(self):
        self.client.get(""/"")

    @task(1)
    def profile(self):
        self.client.get(""/home"")

class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 5000
    max_wait = 9000
</code></pre>

<p>In command Line ,I am giving this command to start locust : <code>locust --host=http://localhost:8080</code> </p>

<p>Any suggestions on how to rectify this error ?</p>
",https://stackoverflow.com/questions/51693930/django-load-testing-using-locust-giving-csrf-token-error,"['django', 'load-testing', 'locust']",2228,TRUE,3,3
JMeter Load Testing with Concurrency : RMI Class Loader Disabled,"<p>While running the distributed load testing using concurrency thread group from blazemeter, I getting the error : ""Error in rconfigure() method java.rmi.ServerExeption...java.ClassNotFoundExeption:com.Blazemeter.jmeter.threads.concurrency.ConcurrencyThreadgroup(no Security manager: RMI Class Loader disabled)</p>

<p>I have researched on the net and the only related issue I found is this one:</p>

<p><a href=""https://stackoverflow.com/questions/44720639/jmeter-load-testing-classnotfoundexception-com-blazemeter-jmeter-threads-conc"">JMeter load-testing : ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup</a></p>

<p>Unlike this thread, I have the latest version 3.3 on my machines. The jmeter logs are as follows:</p>

<blockquote>
<pre><code>2018-01-22 17:03:50,749 INFO o.a.j.e.DistributedRunner: Configuring remote engine: 10.0.104.58 2018-01-22 17:03:50,764 INFO
</code></pre>
  
  <p>o.a.j.e.DistributedRunner: Starting remote engines 2018-01-22
  17:03:50,764 INFO o.a.j.e.DistributedRunner: Starting the test @ Mon
  Jan 22 17:03:50 EST 2018 (1516658630764) 2018-01-22 17:03:50,764 INFO
  o.a.j.e.ClientJMeterEngine: running clientengine run method 2018-01-22
  17:03:50,780 INFO o.a.j.s.StandardSampleSender: Using
  StandardSampleSender for this test run 2018-01-22 17:03:50,780 INFO
  o.a.j.s.StandardSampleSender: Using StandardSampleSender for this test
  run 2018-01-22 17:03:50,827 ERROR o.a.j.e.ClientJMeterEngine: Error in
  rconfigure() method java.rmi.ServerException: RemoteException occurred
  in server thread; nested exception is:    java.rmi.UnmarshalException:
  error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException:
  com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no
  security manager: RMI class loader disabled) 2018-01-22 17:09:10,937
  INFO o.a.j.e.DistributedRunner: Remote engines have been started</p>
</blockquote>

<p>Pleas let me know how to overcome this issue. Thanks</p>
",https://stackoverflow.com/questions/48391086/jmeter-load-testing-with-concurrency-rmi-class-loader-disabled,"['java', 'jmeter']",2962,TRUE,3,2
API load testing from different servers with unique AUTH_TOKEN,"<p>I want to test an API endpoint which requires AUTH header and I want to run them from different servers, so they'll hit different threads. However, I don't know how to do this because AUTH tokens should be different on each of this test servers. Is there a way to organize it using JMeter with redline13 specifically?</p>
",https://stackoverflow.com/questions/51582843/api-load-testing-from-different-servers-with-unique-auth-token,"['jmeter', 'performance-testing', 'load-testing', 'jmeter-plugins', 'stress-testing']",170,TRUE,1,2
Difference between crash point &amp; degradation in Load testing,"<p>I want to know, what do you mean by crash point &amp; degradation in Load testing?</p>

<p>What are the differences between crash point &amp; degradation ?</p>
",https://stackoverflow.com/questions/50167950/difference-between-crash-point-degradation-in-load-testing,"['performance', 'testing', 'jmeter', 'load-testing']",251,TRUE,1,2
Spring boot application error from dispatcherServlet under load testing,"<p>Declaration:
This question is not as simple as a NullPointerException or how to deal with an NPE.  It is about multi-threading programming. I do know how to catch an exception, the problem is I can not locate the source of this exception and even cannot figure out the problem is performance bottleneck or bug in logic. So I come here to ask for your help. And finally, I found the bug and solved it in my own answer.</p>

<p>I developed a REST API for uploading a chunk in the Spring boot application and passed the functionality testing. Below is the version info.</p>

<pre><code>Spring Boot 1.5.8 with Embedded Tomcat
</code></pre>

<p>Now I wanna evaluate the performance under load testing with JMeter. And I designed the test plan and validated it in a gentle load successfully. Here is my test plan about Thread Properties,</p>

<pre><code>Number of Threads (users): 3
Ramp-Up Period (in seconds): 1
Loop Count: 3
</code></pre>

<p>But when the load increased to 10 threads or even more, the test report showed some errors with 500 type. And the server printed some errors</p>

<pre><code>    2018-01-20 20:34:23.744 ERROR 57809 --- [o-8083-exec-346] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] i
n context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

java.lang.NullPointerException: null
</code></pre>

<p>Does it mean that the server has reached the bottleneck or something else goes wrong in logical? And How can I debug and trace this problem?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/48364906/spring-boot-application-error-from-dispatcherservlet-under-load-testing,"['tomcat', 'spring-boot', 'nullpointerexception', 'jmeter', 'dispatcher']",3557,TRUE,1,1
Bot framework load testing fails with a 400 error,"<p>I'm trying to follow the instructions set out in the <a href=""https://blog.botframework.com/2017/06/19/load-testing-a-bot/"" rel=""nofollow noreferrer"">bot framework documentation</a> for load testing</p>

<p>First, i send my details to azure auth and get myself a token. I then include this token on my message to the bot service in the below way</p>

<pre><code>{
    ""type"": ""message"",
    ""id"": ""sdcsdcsd928323"",
    ""channelId"": ""emulator"",
    ""conversation"": {
    ""id"": ""5eak34ff2m25""
  },
  ""serviceUrl"": ""https://xxx-bot-xxx.azurewebsites.net"",
    ""text"": ""I am feeling angry"",
  ""from"": {
    ""id"": ""default-user"",
    ""name"": ""User""
  },
    ""recipient"": {
    ""id"": ""dack329f3nfb"",
    ""name"": ""Bot""
  }
}
</code></pre>

<p>While i'm getting a 202 Accepted response on the client. my backend logs show the below error:</p>

<pre><code>Error: Failed to perform the requested operation on Azure Table. Message: The property value exceeds the maximum allowed size (64KB). If the property value is a string, it is UTF-16 encoded and the maximum number of characters should be 32K or less.
RequestId:79e296f0-3002-0039-37e5-390397000000
</code></pre>

<p>i guess the bot is trying to save its state in azure table but some value is too large. Any thoughts on where i might be going wrong?</p>

<p>I get a subsequent error message as well: Guessing its correlated</p>

<pre><code>Error: Request to 'https://xxxx-xxx-xxxx.azurewebsites.net/v3/conversations/5eak34ff2m25/activities/sdcsdcsd928323' failed: [404] Not Found
</code></pre>
",https://stackoverflow.com/questions/51961553/bot-framework-load-testing-fails-with-a-400-error,"['azure', 'botframework']",148,FALSE,0,1
Get CSRF token in Jmeter for salesforce load-testing,"<p>I am trying to do the load testing of salesforce.com. I am logging via test.salesforce.com which is redirecting me to the console url. Now, subsequent post request accepts following post parameters.</p>

<ul>
<li>ViewStateCSRF</li>
<li>ViewStateMAC</li>
<li>visualforce.ViewState</li>
</ul>

<p>But this post request is failing with ""invalid session"" error message.
I am guessing this is because of CSRF token. I am trying to extract(post processor in Jmeter) CSRF token, but I am unable to find this token anywhere in the response/cookie of previous requests. In one of the HTML response, I can find few CSRF tokens(e.g: runApexCsrfToken, consoleAjaxCsrfToken etc). I have tried all of them but no result.</p>

<p><strong>To summarize my problem</strong>: I need to pass csrf token in post login request but I am unable to find this token in previous responses.</p>

<p>Could you please help me with this.</p>

<p>PS: I have tried get request on ""<a href=""https://c.salesforce.com/libs/granite/csrf/token.json"" rel=""nofollow noreferrer"">https://c.salesforce.com/libs/granite/csrf/token.json</a>"" after login but did not find any token in response.</p>
",https://stackoverflow.com/questions/52157619/get-csrf-token-in-jmeter-for-salesforce-load-testing,"['performance', 'jmeter', 'salesforce', 'csrf', 'load-testing']",1116,TRUE,0,1
JMeter Load Testing C# Rest APIs - Huge sample times,"<p>I'm getting unusual issues when load testing my C# Rest APIs using JMeter Tool.</p>

<p>My API does a few database calls, it selects some data from one table, and returns it and manipulates it and inserts it into other tables.</p>

<p>If I run this API call on one instance, it executes in less than 3 seconds.</p>

<p><a href=""https://i.stack.imgur.com/aWOe1.png"" rel=""nofollow noreferrer"">1 user, no ramp up = &lt; 3 seconds</a></p>

<p>However, when running this same API call on 50 users on a 10 second ramp up time then I get the following results:</p>

<p><a href=""https://i.stack.imgur.com/yUASM.png"" rel=""nofollow noreferrer"">50 users, 10 second ramp-up period = increased sample time.</a></p>

<p>Am I configuring JMeter incorrectly, or is something wrong within my API call which is causing this?</p>
",https://stackoverflow.com/questions/50351775/jmeter-load-testing-c-rest-apis-huge-sample-times,"['c#', 'rest', 'api', 'jmeter', 'load']",395,FALSE,0,0
JMeter Load testing of API in AWS API Gateway,"<p>I am new to JMeter so getting confused in conducting a test. My test scenario <br>
1) Hit a REST URL in API Gateway<br>
2) Request should be 100 requests per seconds<br>
3) Conduct the test for 2 hrs<br>
4) Evaluate the error / success percentage<br>
What parameters should I put to achieve this combination ? Any help will be appreciated</p>

<p>Thanks in advance</p>
",https://stackoverflow.com/questions/51708302/jmeter-load-testing-of-api-in-aws-api-gateway,"['amazon-web-services', 'jmeter']",2529,TRUE,0,1
Load Testing : Unable to open VSTS reports in JMeter,"<p>1.Created Jmeter load test scripts<br>
2.Ran JMeter load test script in VSTS<br>
3.Download '<em>DefaultCLTAttributes .csv</em>' from VSTS load test results<br>
4.Open JMeter '<code>Summary Report</code>' listener with '<em>DefaultCLTAttributes .csv</em>' <br>
I got below error message as shown in attached screen shot.Please help me.</p>

<p>I did not see any error on log file. 
I did not see column headings on .csv file. Please see attached screen shot</p>

<p><a href=""https://i.stack.imgur.com/7AGR5.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/7AGR5.png"" alt=""enter image description here""></a>
<a href=""https://i.stack.imgur.com/jdFkz.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/jdFkz.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/50093727/load-testing-unable-to-open-vsts-reports-in-jmeter,"['jmeter', 'azure-devops', 'performance-testing']",164,FALSE,0,0
During load testing how to read the report in terminal,"<p>While I'm doing load testing of the golang api there is a report is generated but I don't know what is it and how to read it:-</p>

<p>I run the command in terminal</p>

<p><code>echo ""GET http://localhost:8080/api"" | vegeta attack -rate=100/m | vegeta report</code></p>

<p>then it will produce a below report:-</p>

<pre><code>Requests      [total, rate]            138, 1.68
Duration      [total, attack, wait]    1m22.20931745s, 1m22.200130205s, 9.187245ms
Latencies     [mean, 50, 95, 99, max]  8.956174ms, 9.06458ms, 10.682252ms, 16.007578ms, 46.439935ms
Bytes In      [total, mean]            19596, 142.00
Bytes Out     [total, mean]            0, 0.00
Success       [ratio]                  100.00%
Status Codes  [code:count]             200:138  
Error Set:
</code></pre>

<p>or when I run the <code>echo ""GET http://localhost:8080/api"" | vegeta attack -rate=100/m | vegeta report -type=json</code></p>

<p>then the report generated in json format like below:-</p>

<pre><code>{""latencies:
{""total"":103506418,
""mean"":9409674,
""50th"":9484403,
""95th"":11918898,
""99th"":12008257,
""max"":12008257},
""bytes_in"":{""total"":1562,""mean"":142},
""bytes_out"":
{""total"":0,""mean"":0},
""earliest"":""2018-10-16T14:15:13.251091124+05:30"",
""latest"":""2018-10-16T14:15:19.251141502+05:30"",
""end"":""2018-10-16T14:15:19.260119671+05:30"",
""duration"":6000050378,
""wait"":8978169,
""requests"":11,
""rate"":1.8333179401848014,
""success"":1,
""status_codes"":{""200"":11},
""errors"":[]}
</code></pre>

<p>How to understand this report. Is there any document for this or anybody knows about it? </p>
",https://stackoverflow.com/questions/52831529/during-load-testing-how-to-read-the-report-in-terminal,"['terminal', 'load-testing', 'vegeta']",556,TRUE,1,1
Which is the best load testing tool for serverless architecture?,"<p>Anything otherthan Jmeter tool</p>
",https://stackoverflow.com/questions/52700484/which-is-the-best-load-testing-tool-for-serverless-architecture,['performance-testing'],57,TRUE,1,1
locust load testing appropiate Number of users to simulate and hatch rate,"<p>I am doing load testing using locust. I write a script and set up everything for load testing.</p>

<p>Only two points I do not understand actually,</p>

<p><strong>What is the meaning of the below numbers</strong>? e.g </p>

<ol>
<li><p><strong>Number of total users to simulate</strong></p></li>
<li><p><strong>Hatch rate (users spawned/second)</strong></p></li>
</ol>

<p>What will be the appropriate value for these two options?</p>
",https://stackoverflow.com/questions/51131278/locust-load-testing-appropiate-number-of-users-to-simulate-and-hatch-rate,['locust'],11889,TRUE,12,1
Is it good to go ahead with webservice load testing?,"<p>We have an application which is meant for Android, iOS and desktop all 3 and all 3 are consuming webservices.</p>

<p>What I would like to know is that, should we record scenarios from Android, iOS and desktop seperately and make script or we can just hit the web services using jmeter?</p>
",https://stackoverflow.com/questions/53369620/is-it-good-to-go-ahead-with-webservice-load-testing,"['web-services', 'jmeter']",45,TRUE,-2,1
"Meteor application load testing with k6, wait on body element","<p>New to k6, working with a web application that presents a spinner briefly on the home page while css and js files load. </p>

<p>Once the files are loaded and scripts are available, a login form is added (replacing the spinner).</p>

<ul>
<li>With k6, is there a way to wait until a specific body element (the login form) is available in the body before continuing with the next step (ie. populating the username and pwd and submitting the form to login)?</li>
</ul>

<p>Currently, when I review the response body, I see the spinner element only. Adding a delay does not appear to affect the body returned, even though the login form should, in theory, have been added to the page.</p>

<p>If the element is added to the body after the initial page load, will it  be detected by k6 and made available in the response?</p>

<p>Thanks for your help.</p>

<p>Bill</p>
",https://stackoverflow.com/questions/52599644/meteor-application-load-testing-with-k6-wait-on-body-element,"['javascript', 'node.js', 'meteor', 'load-testing', 'k6']",1426,TRUE,0,2
Load testing of Progressing download(Video) or Larger files download,"<p>I am looking at load testing of Progressive download video files with 100 user load. The testing tool I am looking at is <strong>Jmeter, Load Runner and NeoLoad</strong>. Though the script required for creating the load is very simpler, it consist of couple of request and it is able to make the connection with server and start the downloading of the file. Though I understand that the progressive technology is pretty old, but still it is used in many website.  The question I have is around the strategy.</p>

<ol>
<li>Do we need to download the complete file(i.e. 1.3 GB in my case)?</li>
<li>Even we looked at saving the response as file, the resources such as Network and disk I/O are at max? Does this strategy suits here?</li>
<li>Can we have some another strategy where we can engage the server for the duration and test for issues underlying with connection issues and transmission speed?</li>
</ol>
",https://stackoverflow.com/questions/51700731/load-testing-of-progressing-downloadvideo-or-larger-files-download,"['jmeter', 'video-streaming', 'performance-testing', 'large-files', 'progressive-download']",1333,TRUE,0,1
Load testing in Visual Studio. What is Error/sec attribute?,"<p>Need some help.</p>

<p>I created a load test: 100 users per step, one step is 10 seconds.
Visual Studio produced excel result, and I can not undestand <strong>Errors/sec</strong> value in results.</p>

<p><strong>What is ""LoadTest:Errors, Errors/Sec, _Total?""</strong>
<strong>How was this value calculated?</strong></p>

<p>In my report some of these values are not integer. Why?
Also, there are not integer values for attribute ""LoadTest:Errors, Threshold Violations/Sec, _Total"".</p>

<p>Any help will be appreciated.</p>
",https://stackoverflow.com/questions/53079593/load-testing-in-visual-studio-what-is-error-sec-attribute,"['c#', 'excel', 'visual-studio', 'load-testing', 'stress-testing']",85,TRUE,0,1
VSTS Security Settings to Allow/Deny access to Load Testing,"<p>Are there settings available to Allow/Deny user access to the 'Test - Load Testing' feature within VSTS?  As of 5/3/2018, it appears that this feature is in Preview mode with an alert that:</p>

<blockquote>
  <blockquote>
    <p>'Create and run high-scale load tests, analyze results – all using the browser! Learn more. During preview, this feature is available to all users (except Stakeholders).</p>
  </blockquote>
</blockquote>

<p>Since Load Testing can incur costs, we'd like to Disable this feature for majority of the individuals which have access to our account.  I have search Stackoverflow &amp; MSDN Developer Community with no success.  </p>

<p>Please advise. </p>

<p>Thank you, 
- Brendan </p>
",https://stackoverflow.com/questions/50163919/vsts-security-settings-to-allow-deny-access-to-load-testing,"['azure-devops', 'load-testing']",42,FALSE,0,1
reqs/sec not correct when load testing with Python Locust,"<p>In my testing, both <code>min_wait</code> and <code>max_wait</code> are set to 1 second, and I set users to 100, so I expect the reqs/sec to be close to 100. </p>

<p>I know Locust actually need to wait server respond and then send the next request. Even though, if server respond quick, like 20ms, the outcome TPS should be close to 100, like 92 maybe.</p>

<p>But, in actuality it is 10, as the following picture shows:</p>

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

<p>What am I missing?</p>

<p>My code is below:</p>

<pre><code>class UserBehavior(TaskSet):   

    @task(1)
    def list_teacher(self):
        self.client.get(""/api/mgr/sq_mgr/?action=list_teacher&amp;pagenum=1&amp;pagesize=100"")

    @task(1)
    def list_course(self):
        self.client.get(""/api/mgr/sq_mgr/?action=list_course&amp;pagenum=1&amp;pagesize=20"")


class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 1000
    max_wait = 1000
</code></pre>
",https://stackoverflow.com/questions/53753703/reqs-sec-not-correct-when-load-testing-with-python-locust,"['python', 'locust']",1184,FALSE,0,1
"Response time, Load Testing and Stress testing with Rest Assured","<p>I know there is a way to measure the response time of a Rest API with Rest Assured. But can we increase the user load and measure the response time using Rest assured ,or is there any other suggested way to count in those parameters (Load / Stress) using API Testing. TIA</p>
",https://stackoverflow.com/questions/50672118/response-time-load-testing-and-stress-testing-with-rest-assured,"['performance-testing', 'load-testing', 'rest-assured', 'web-api-testing']",4385,TRUE,0,1
How to create random string or Number in artillery load testing script?,"<p>For bombarding the server with multiple request with random data in parameters, how can I do it?</p>

<p>the message block in artillery script is as below,</p>

<pre><code>    ""message"": 
                {

                ""order1"": ""jngfj2434"",  
                ""size"": ""4433"",
                }   
</code></pre>

<p>I need to send order1 with randomstring and size in the range of 1 to 10,000 randomly. </p>
",https://stackoverflow.com/questions/48096569/how-to-create-random-string-or-number-in-artillery-load-testing-script,"['websocket', 'artillery']",7271,TRUE,11,1
How to do load testing of a PHP website from both ends,"<p>We have developed a website in PHP for small services. Before production, we have to do performance and load testing from server side (that is Apache) and from client side.</p>

<p>From Client side, I want to know what is the average response time overall and for each object etc. For back-end side (apache web-server), I want to know how many request (clients) it can handle before its performance start to degrade.</p>

<p>Is there any open source tool as we are on Linux platform, for this purpose. Or is there any website(s) available (freely) that can do all of these testing.
We are more concerned about load testing where we want to request to our website from 1000 users at same time (for example) and want want to check client and server side different performance metrics.</p>
",https://stackoverflow.com/questions/51148248/how-to-do-load-testing-of-a-php-website-from-both-ends,"['php', 'apache', 'performance', 'performance-testing', 'load-testing']",11904,TRUE,10,2
"Using Gatlin load testing, how do requests get classified as &quot;KO?&quot;","<p>I am using <a href=""https://gatling.io"" rel=""nofollow noreferrer"">https://gatling.io</a> for load testing an application.  I really appreciate the default reporting from the tool.  After searching the documentation, it's not clear to me how particular requests get classified as ""KO.""  (or not ok)</p>

<p>We are currently using all the default settings from Gatlin.</p>

<p>We suspect that requests need to respond under 10 seconds from inspection of gatling.conf.</p>

<p>Is this assumption correct?</p>
",https://stackoverflow.com/questions/50708879/using-gatlin-load-testing-how-do-requests-get-classified-as-ko,"['load-testing', 'gatling', 'scala-gatling']",2267,FALSE,2,1
JMeter and UbikLoadPack : Advised tuning for load testing video streaming servers,"<p>We're using <a href=""https://jmeter.apache.org"" rel=""nofollow noreferrer"">Apache JMeter</a> with <a href=""https://ubikloadpack.com/"" rel=""nofollow noreferrer"">UbikLoadPack</a> Video Streaming plugin delivering HLS, MPEG-DASH and MS Smooth formats and we will soon start massive load testing from our injectors.</p>

<p>What are the recommended configuration in terms of:</p>

<ul>
<li>Machine </li>
<li>OS</li>
<li>System tuning</li>
<li>Java</li>
</ul>
",https://stackoverflow.com/questions/49335446/jmeter-and-ubikloadpack-advised-tuning-for-load-testing-video-streaming-server,"['performance', 'jmeter', 'video-streaming', 'load-testing', 'ubikloadpack']",245,TRUE,1,1
Limitation when using K6 (Load impact) for load testing on APIs,"<p>I ran a few tests using k6(OSS) by load impact and found it great in terms of usability compared to JMeter</p>

<p>I am doing a feasibility study to choose a load testing tool that should help me do API testing. I am inclined towards using K6 because I believe it is developer friendly but could not find resources that advise regarding maximum load I can simulate using K6. </p>

<p>Would it be possible to simulate 1 million rps(requests per second) using K6? If yes, how should I go about achieving this?</p>
",https://stackoverflow.com/questions/53178177/limitation-when-using-k6-load-impact-for-load-testing-on-apis,"['performance', 'performance-testing', 'load-testing', 'k6']",2201,TRUE,1,2
Solve 429 Too Many Requests issue while load testing using Jmeter,"<p>I'm trying to hit the server with multiple requests for load testing. I have setup JMeter thread with 100 concurrent users per seconds. Each request read data from CSV (different tokens to identify users). But after few request I'm getting error:</p>

<pre><code>429 Too Many Requests
</code></pre>

<p>How we can solve this? Any settings in Jmeter? </p>

<p>Or Do I need to change Apache settings?</p>
",https://stackoverflow.com/questions/53791808/solve-429-too-many-requests-issue-while-load-testing-using-jmeter,"['apache', 'jmeter', 'jmeter-4.0']",9252,TRUE,1,2
Python Locust load testing how to upload and submit xml file,"<p>I am trying to figure out how many concurrent users can upload xml files using Locust</p>

<p>locust file </p>

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

class HttpSession(TaskSet):
        @task
        def post_img(self):
            headers = {'1': '1', '2': '2'}
            test_file = 'c:\\xmlfolder\a.xml'
            url='/uploadxml'
            self.client.request('POST', '/upload', files={'file': open(test_file, 'rb')}, headers=headers)

class WebsiteUser(HttpLocust):
    host = 'http://localhost:5000'
    task_set = HttpSession
    min_wait = 1000
    max_wait = 3000
</code></pre>

<p>When I run my locust file I get a 405 error</p>

<p>Ideally I want to give it atleast 3 or more xml files and spin up three /upload sessions and then upload 3 different xml files what am I doing wrong ? </p>

<p>this is a flask app which is already passed functional testing using selenium
os =windows and hence the slashes</p>
",https://stackoverflow.com/questions/53160515/python-locust-load-testing-how-to-upload-and-submit-xml-file,"['python-3.x', 'flask', 'locust']",1852,TRUE,1,2
Load testing using Jmeter for POST with very large post data,"<p>I have a post request as follows:</p>

<pre><code>POST /views/&lt;VIEW_ID&gt;/bulk_update.json HTTP/1.1
Host: api.abcd.com
Content-Type: application/json
Cache-Control: no-cache
</code></pre>

<p>with post data:</p>

<pre><code>{
""api_key"":""XXXXXXXXXXXXX"",
""updates"":[
{""timestamp"":""2018-01-31 09:25:0 -0500"",""value1"":30},
{""timestamp"":""2018-01-31 09:26:0 -0500"",""value1"":20},
{""timestamp"":""2018-01-31 09:27:0 -0500"",""value1"":40},
{""timestamp"":""2018-01-31 09:28:0 -0500"",""value1"":70},
{""timestamp"":""2018-01-31 09:29:0 -0500"",""value1"":80},
{""timestamp"":""2018-01-31 09:30:0 -0500"",""value1"":100},
{""timestamp"":""2018-01-31 09:31:0 -0500"",""value1"":1},
{""timestamp"":""2018-01-31 09:32:0 -0500"",""value1"":11},
{""timestamp"":""2018-01-31 09:33:0 -0500"",""value1"":111},
{""timestamp"":""2018-01-31 09:34:0 -0500"",""value1"":1111},
.
.
.
.
.(total of &gt;1000 updates)
.
.
.
.
{""timestamp"":""2018-01-31 09:35:0 -0500"",""value1"":876},
]
}
</code></pre>

<p>I have a csv file to store all the timestamps and values.</p>

<p>Is there a simple way to mention all the 1000 updates rather than typing all the 1000 updates manually?</p>

<p>Any leads on this would be very helpful.</p>
",https://stackoverflow.com/questions/49250294/load-testing-using-jmeter-for-post-with-very-large-post-data,"['rest', 'jmeter', 'performance-testing', 'load-testing']",886,FALSE,0,1
Yii2 basic application page - load testing with apache jmeter freezes server,"<p>I had configured yii2 basic application template in windows server (Dual core processor, 8 GB RAM) No extra code written other than just installing it.When testing with apache jmeter with 100 concurrent users in 10 min CPU usage get hit 99% and the server freezes.Normal static PHP page would work without any issues under the same test, if placed outside the framework.It take around 2-3 percent of CPU utilisation. </p>
",https://stackoverflow.com/questions/49780662/yii2-basic-application-page-load-testing-with-apache-jmeter-freezes-server,"['windows', 'apache', 'performance', 'yii2', 'jmeter']",482,TRUE,0,2
IMAP mail sampler load testing using JMeter for increasing the fetchsize,"<p>I have a load test scenario wherein I'm testing the IMAP server using the mail read sampler. During the test it was observed to fetch the mail with large attachments (like 120kb) the JMeter client downloaded the content in chunks of 16kb size which in turn increases the overall response time. Is there any way we can increase the default size of'mail.imap.fetchsize' property in the script/jmeter properties from 16kb ?</p>
",https://stackoverflow.com/questions/52754800/imap-mail-sampler-load-testing-using-jmeter-for-increasing-the-fetchsize,"['performance', 'jmeter', 'imap']",318,FALSE,0,1
jMeter Load Testing: Single Testing vs Distributed Testing - substantially different results,"<p>A vast difference between the results of performing load testing for 50 virtual users:</p>

<p><strong>Method 1)</strong> Single Linux machine (m3.medium)</p>

<pre><code>No of Threads: 50 users
Ramp Uptime: 60 sec
</code></pre>

<p><strong>Method 2)</strong> JMeter primary-secondary distributed testing</p>

<pre><code>i) server - linux machine (m3.medium)
ii) client1 - linux machine (m3.medium) - No of Threads: 25, Ramp up time: 60 sec
iii) client2 - linux machine (m3.medium) - No of Threads: 25, Ramp up time: 60 sec
</code></pre>

<p>jMeter version: 4.0 in each case</p>

<p>Distributed Testing takes about four times more time than single testing. I couldn't find the cause even after several test runs.</p>

<p><a href=""https://i.stack.imgur.com/OkQ84.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/OkQ84.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/51088923/jmeter-load-testing-single-testing-vs-distributed-testing-substantially-diffe,"['jmeter', 'load-testing', 'blazemeter', 'jmeter-4.0', 'distributed-testing']",233,FALSE,0,1
Web load testing - what does a wavy response time graph indicate?,"<p>I am running a load test on an API using JMeter. When I host the API on the same pc as the test (the database is remote though) I get ok results. 
However, when I tried running the load test through the same API but hosted on a different pc on the same network, I got this wavy pattern in my test results. </p>

<p><a href=""https://i.stack.imgur.com/qqOoW.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/qqOoW.png"" alt=""wavy pattern in web load test results graph""></a></p>

<p>Each of the four grouped lines are response times for a particular API endpoint and the blue line is active thread count. 
The question is: does this wavy pattern mean anything? This pattern isn't visible when the API is hosted on the same machine as the test.
The results are very different and I am thinking this pattern might be correlated to the problem.</p>

<p>I used 200 active threads and no specific configuration which would produce the requests in this pattern.</p>
",https://stackoverflow.com/questions/51192580/web-load-testing-what-does-a-wavy-response-time-graph-indicate,"['graph', 'jmeter', 'performance-testing', 'load-testing']",149,TRUE,0,1
500 Internal Server Error In Load Testing By Jmeter for SAP application,"<p>I am writing load test script for an SAP-based application in jmeter. I am getting 500 internal Server.</p>

<p>I saw that the request looks same which I have on the browser network tab and the one I provided in JMeter. The only difference is in the request header, that I am not providing any SAP-passport in my request. I am not to see the SAP-Passport in the response of any previous request's response so that I can extract that and use in future requests.</p>

<p>Please tell me if I am assuming correctly that the SAP-Passport is the issue, if yes then how can I get that and use in the request. Also if there is a way to get any static SAP-Passport.</p>

<p>Its a blocker for me and its on priority, please help.</p>
",https://stackoverflow.com/questions/52875614/500-internal-server-error-in-load-testing-by-jmeter-for-sap-application,"['jmeter', 'sap', 'internal-server-error', 'http-status-code-500']",684,FALSE,1,1
C# setting up a load testing console app to hit an api,"<p>I am trying to build a console-app to load test and measure some time measurements of an API.</p>

<p>To call the API I have a do while loop which posts using the <code>HttpClient</code>. For each request I am creating a thread, fire and forget so I am not keeping a reference to the thread or awaiting anything. </p>

<p>What I find strange is. If I run a console app I manage to send 2000 request, if I run 2 console apps I send 4000 requests.</p>

<p>Why is this happening since I am not awaiting or delaying anything?</p>
",https://stackoverflow.com/questions/52881232/c-setting-up-a-load-testing-console-app-to-hit-an-api,"['c#', 'multithreading', 'performance']",842,FALSE,0,0
Agent (in load testing) test data randomly while data read in sequence,"<p>Load test read data in sequence but it test that data in random order.
Output of 'transaction order' is random and I want it in sequence.</p>
",https://stackoverflow.com/questions/50966660/agent-in-load-testing-test-data-randomly-while-data-read-in-sequence,"['c#', 'visual-studio', 'unit-testing']",22,FALSE,0,0
how to pass integer in yaml through csv file in artillery load testing,"<p>I am using post request With JSON Object:</p>

<pre><code>{
     ""name"": ""Emmy"",
     ""age"": 11,
     ""state"": ""Goa"",
     ""country"": ""india""
}
</code></pre>

<p>my CSV file is :</p>

<pre><code>name,age,state,country
Emmy,11,Goa,india
</code></pre>

<p>and my artilery code :</p>

<pre><code>config:
  target: 'http://localhost:5000'
  phases:
    - duration: 60
      arrivalRate: 10
  defaults:
    headers:
      token: 'TOKEN'
  payload:
    path: ""./hello.csv""
    fields:
      - ""name""
      - ""age""
      - ""state""
      - ""country""
scenarios:
  - flow:    
    - post:
        url: ""url""
        json:
         name: ""{{name}}"" 
         age: ""{{age}}""
         state: ""{{state}}""
         country: ""{{country}}""
</code></pre>

<p>I have validation for each field in which <code>age</code> will take only integer values but artillery is taking <code>string</code> values so i an getting validation error. how to pass age as <code>integer</code> in yaml file.</p>
",https://stackoverflow.com/questions/48280196/how-to-pass-integer-in-yaml-through-csv-file-in-artillery-load-testing,"['node.js', 'csv', 'yaml', 'load-testing']",1986,TRUE,3,2
Load Testing video streaming HLS/MPEG-DASH/Smooth : What metrics do I need?,"<p>At my company we need to load test video streaming delivering Live and VOD.</p>

<p>Video are delivered following 3 encoding formats:</p>

<ul>
<li>Apple HLS</li>
<li>MPEG-DASH</li>
<li>MS Smooth</li>
</ul>

<p>We'd like to use <a href=""https://jmeter.apache.org"" rel=""nofollow noreferrer"">Apache JMeter</a>  in order to do that.
We've found <a href=""https://ubikloadpack.com"" rel=""nofollow noreferrer"">UbikLoadPack</a>  plugin which is a commercial plugin.</p>

<p>We've been able to successfully test the 3 types of streams.</p>

<p>Now comes the Load Testing report, what metrics do we need to take into account and what does it provide ?</p>
",https://stackoverflow.com/questions/49325093/load-testing-video-streaming-hls-mpeg-dash-smooth-what-metrics-do-i-need,"['jmeter', 'video-streaming', 'mpeg-dash', 'smooth-streaming', 'ubikloadpack']",987,TRUE,1,1
How to make HTTP request to custom IP in k6 load testing API?,"<p>Is it possible to force a k6 HTTP request to a custom IP?</p>

<p>i.e. DNS has host name pointing to IP address A, while a test website, same hostname, is on IP address B; need to send k6 load test requests to website B.</p>

<p>It's HTTPS, so there's certificate issues calling <a href=""https://[ip"" rel=""nofollow noreferrer"">https://[ip</a> address] and headers Host: [hostname] (shows ""x509: cannot validate certificate for [ip address] because it doesn't contain any IP SANs"" messages)</p>

<p>Working from localhost I'm currently editing /etc/hosts as a work around.</p>

<p>Setting IP address is possible in the loadimpact.com API (<a href=""https://loadimpact.com/load-script-api#http"" rel=""nofollow noreferrer"">https://loadimpact.com/load-script-api#http</a>), I'm hoping could be done via k6 API.</p>
",https://stackoverflow.com/questions/48321454/how-to-make-http-request-to-custom-ip-in-k6-load-testing-api,['k6'],1122,TRUE,1,1
UbikLoadPack : Video Streaming load testing and how to emit requests from multiple IPs,"<p>We're using <a href=""https://ubikloadpack.com"" rel=""nofollow noreferrer"">UbikLoadPack</a> to load test streams delivered in :</p>

<ul>
<li>Apple HLS</li>
<li>MPEG-DASH</li>
<li>MS Smooth</li>
<li>Adobe HDS</li>
</ul>

<p>We now want to distribute the load from multiple IPs to check our load balancing policies and localization rules.</p>

<p>How can we do that ?</p>
",https://stackoverflow.com/questions/50878576/ubikloadpack-video-streaming-load-testing-and-how-to-emit-requests-from-multip,"['video-streaming', 'load-testing', 'http-live-streaming', 'spoofing', 'ubikloadpack']",66,TRUE,0,1
How to handle SignalR application with longpolling mechanism for load testing using Jmeter,"<p>We need to load test an web application using <code>SignalR</code> in few components with transport mode as long polling. My script gets hang in connect step. Connect step is <code>GET- /signalr/connect?transport=foreverFrame&amp;clientProtocol=1.5&amp;connectionToken=ZW6cj17pImmCjGGBQSQNy%2Bdiy7DKDUy4i4R1AE78c%2FTitzS6QgiPoX6fM3zBOrDK11hyx0QNEc92JM6bsLY19MCt5JjaYFgdTDVsbxfnRbkqKp6dpsl64BV1zI8Vu1X%2F&amp;connectionData=%5B%7B%22name%22%3A%22mypreviewhub%22%7D%5D&amp;tid=10&amp;frameId=1</code></p>

<p>I have correlated following 2 parameters- 1) captured connection token from negotiate step and used in subsequent requests 
2) used <code>${__time()}</code> for timestamp as found in link- <a href=""https://stackoverflow.com/questions/49648779/how-to-capture-signalr-connection-string-in-jmeter/52273372#52273372"">How to capture signalR connection string in Jmeter</a></p>

<p>Apart from these, I can see 2 more parameters being send in connect step- tid and frameid. Do we need to correlate these 2 parameters as well, although these are not used anywhere else apart from connect step?</p>

<p>Or what is that my script lacking? </p>

<p>In various posts, I have seen suggestions to use websocket sampler plugins but I believe that can be helpful, if your SignalR use websocket mechanism, not long polling.</p>

<p>Please help me resolve this issue. Your help is appreciated. Thanks</p>
",https://stackoverflow.com/questions/52276473/how-to-handle-signalr-application-with-longpolling-mechanism-for-load-testing-us,"['jmeter', 'signalr', 'connect', 'correlation', 'long-polling']",992,FALSE,0,2
GWT load testing with jmeter+ubik load plugin shows error converting XML to GWTRPC,"<p>I am trying to run load tests on my GWT application with jmeter + ubik load plugin. I am able to convert the GWT RPC to XML. But when I try to do the other way round, my application server throws following error:</p>

<blockquote>
  <p>com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
  This application is out of date, please click the refresh button on
  your browser. ( Malformed or old RPC message received - expecting
  version between 5 and 7 )</p>
</blockquote>

<p>The jmeter logs show the following error:</p>

<blockquote>
  <p><strong>ERROR</strong> c.u.j.p.g.p.GwtPreProcessor: Error converting XML to GWTRPC
  format, message:class
  com.google.gwt.user.client.rpc.SerializationException:java.lang.reflect.InvocationTargetException</p>
</blockquote>

<p>Is there anyone who has used this plugin before and can help me with this error? Thanks.</p>
",https://stackoverflow.com/questions/50640108/gwt-load-testing-with-jmeterubik-load-plugin-shows-error-converting-xml-to-gwtr,"['gwt', 'jmeter', 'ubikloadpack']",225,FALSE,2,1
How to make mountebank use all the CPUs in a system for load testing,"<p>If mountebank is put in a production or staging server to load test the application, do we need to configure mb to use all the cpus of the system? </p>

<p>Thanks in advance.</p>
",https://stackoverflow.com/questions/48853722/how-to-make-mountebank-use-all-the-cpus-in-a-system-for-load-testing,['mountebank'],187,TRUE,0,1
jmeter distribution load testing for no result return from slave to master gui mode,"<p>I am not getting any result from slave machine also no entry in DB
1. connectivity between master and slave is established since when i run remote from master, slave states 'Start the test' 'Finish the test'
2. also from single master and slave script is executed successfully
3. also since there is dynamic ip to server so i am not able to provide ip and port</p>

<p>Not able to catch what exactly is the problem, if you can check through Team viewer, please guide me further as you get some time</p>

<p><a href=""https://i.stack.imgur.com/h9eAB.png"" rel=""nofollow noreferrer"">slave machine</a>
<a href=""https://i.stack.imgur.com/hEjdm.png"" rel=""nofollow noreferrer"">master machine</a></p>
",https://stackoverflow.com/questions/48207432/jmeter-distribution-load-testing-for-no-result-return-from-slave-to-master-gui-m,"['testing', 'jmeter', 'distributed']",1768,FALSE,0,1
Using Visual Studio 2017 Load Testing to test rest API with different request bodies,"<p>I have a rest API that creates things. Let's say the end point is /create. The request body determines what we want to create. An example request body would be {""id"":""1""}. If I try to create something with the same id I will get an error so I would like to use a different id every time. Giving a list of these kind of ID's stored in a file or something similar, is it possible to create a load test that uses a different id every time /create is called? </p>
",https://stackoverflow.com/questions/51774109/using-visual-studio-2017-load-testing-to-test-rest-api-with-different-request-bo,"['c#', 'visual-studio', 'azure-devops', 'load-testing', 'web-testing']",301,FALSE,0,1
Cloud Load Testing in Visual Studio Online in Continous Testing - 401 error unauthorized issue,"<p>Am trying to keep load test from VSO using the task ""Load test using Azure IaaS VM’s task/Cloud Load testing"" for an application hosted in an IaaS Environment.</p>

<p>Build Template used: .NET template</p>

<ol>
<li>Created Build Definition</li>
<li>Builded the solution - Passed</li>
<li>Added task ""Load test using Azure IaaS VM’s task/Cloud Load testing"" in the build definition . Provided all
the necessary details for the task but when running facing issue</li>
</ol>

<p>Option selected: Self Provisioning</p>

<p>For Test Controller: Set up a VM machine using Azure Dev Test Labs</p>

<p>For Test Agent: Set up a VM machine using Azure Dev Test Labs</p>

<p>Non Hosted Agent: For running the Build, tried to use Test Controller/a dedicated Agent but still facing the same issue.</p>

<p>Error Details:</p>

<p>System.Net.WebException -> Remote server returned 401 error unauthorized****</p>

<p>What am I doing wrong?</p>
",https://stackoverflow.com/questions/48190047/cloud-load-testing-in-visual-studio-online-in-continous-testing-401-error-unau,"['tfs', 'azure-devops']",153,FALSE,0,0
Load testing in Visual Studio. How number of simultaneous users is implemented in Visual Studio?,"<p>Could you please explain, how load or stress test is released inside Visual Studio when the test is oriented on the number of simultaneous users? </p>

<p>Example: </p>

<p><strong>Step user count:</strong> 0</p>

<p><strong>Initial user count:</strong> 2.</p>

<p><strong>Run duration and step duration:</strong> does not important really because user count is always the same (2), let it be 30 seconds for run duration and 30 seconds for step duration. It is a kind bit weird configuration for the test but it helps to show the main idea of my question.
Web serivce is able to response after small period of time (0.1-0.5 sec).</p>

<p>There are 2 users in load test, they start request to web-service, one user recieved request result and one did not recieve. When the first user will start another request, <strong>1)</strong> immediately after recieving his response, <strong>2)</strong> or when the second user will recieve response too? Am I right that users' requests start absolutely idependently, one user is able to recieve 30/0.1=300 responses and the second one is able to recieve 30/0.5=60 responses after the test? Users send the same requests to the same service.</p>

<p>In these <strong>2</strong> scenarious could be different number of errors that will be recieved during this small test. For me, it is important to understand after what period of time (or event) the next request will begin for the same user?</p>

<p>Thank you.</p>
",https://stackoverflow.com/questions/53323471/load-testing-in-visual-studio-how-number-of-simultaneous-users-is-implemented-i,"['c#', 'visual-studio', 'load-testing', 'stress-testing']",48,FALSE,0,0
How to Perform load Testing with Selenium TestNG at a time by opening multiple windows,"<p>I have executed the below code to perform load test</p>

<pre><code> @Test(invocationCount = 5, threadPoolSize = 1)
 public void GmailLogin() throws InterruptedException {

 System.setProperty(""webdriver.chrome.driver"", ""D:\\CIPL0564\\D 
Drive\\Software\\chromedriver_win32\\chromedriver.exe"");
 driver = new ChromeDriver();
 driver.manage().window().maximize();
driver.get(""https://tst-oec-ebooking.azurewebsites.net/"");
driver.manage().timeouts().implicitlyWait(6000, TimeUnit.SECONDS);
driver.findElement(By.xpath(""//*[@id=\""Email\""]"")).sendKeys(""mad@dayrep.com"");
driver.manage().timeouts().implicitlyWait(6000, TimeUnit.SECONDS);
driver.findElement(By.xpath(""//*[@id=\""Password\""]"")).sendKeys(""Pass@123"");
driver.findElement(By.xpath(""//*[@id=\""login_submit\""]"")).click();
Thread.sleep(1500);
driver.manage().timeouts().implicitlyWait(5000, TimeUnit.SECONDS);
driver.quit();
</code></pre>

<p>}</p>

<p>It executed 5 times with no errors but one after other.I need to execute this at a time by opening multiple windows.
I have tried by giving threadPoolSize = 5,but i got error as session not created.</p>
",https://stackoverflow.com/questions/51057484/how-to-perform-load-testing-with-selenium-testng-at-a-time-by-opening-multiple-w,"['java', 'selenium', 'load-testing', 'testng-eclipse']",755,TRUE,0,1
Which test mix model option to select for REST Api Load Testing in Visual Studio?,"<p>I have created the WebTest file and now adding new Load Test using the WebTest file. The WebTest file contains api snapshot of my session that performs several REST Apis including Post, Get, etc. The Web Performance test is passing successfully.</p>

<p>I am creating the Load Test using Load Test Wizard in Visual Studio where I am asked to pick up Test Mix Model as shown in screenshot:</p>

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

<p>There are following test mix model options for your load test scenario:</p>

<ol>
<li><p>Based on the total number of tests</p></li>
<li><p>Based on the number of virtual users</p></li>
<li><p>Based on user pace</p></li>
<li><p>Based on sequential order</p></li>
</ol>

<p>I referred the official <a href=""https://msdn.microsoft.com/en-us/library/dd997826.aspx"" rel=""nofollow noreferrer"">documentation</a> but I am not able to understand still which model mix to use and what is the difference and performance impact each mix create? </p>
",https://stackoverflow.com/questions/52161080/which-test-mix-model-option-to-select-for-rest-api-load-testing-in-visual-studio,"['visual-studio', 'testing', 'visual-studio-2017', 'performance-testing', 'load-testing']",490,TRUE,0,1
"Jmeter - load testing 200 concurrent - users,how much bandwidth is required to perform load test","<p>Jmeter - load testing 200 concurrent - users checking scenarios like video viewing, pdf viewing etc, - how much bandwidth is required to perform load test</p>
",https://stackoverflow.com/questions/51631351/jmeter-load-testing-200-concurrent-users-how-much-bandwidth-is-required-to-p,"['performance', 'jmeter', 'load', 'bandwidth']",620,FALSE,0,1
How to do Queries Performance Load Testing on HBase via Phoenix especailly for Multi-tenant?,"<p>I was trying to use JMeter to do this task, but it didn't work. I was trying to add xml file via user.properties from JMeter /bin dir, and parse the user.properties in it. This way is successful for parsing the namespace when I trying to connect with HBase via Phoenix. But this time, it was failed when I wanted to parse the TenantId.. Anyone has idea for that? Or any other tool can do the performance load testing for queries?</p>
",https://stackoverflow.com/questions/48749468/how-to-do-queries-performance-load-testing-on-hbase-via-phoenix-especailly-for-m,"['jmeter', 'load-testing', 'database-performance', 'multi-tenant', 'apache-phoenix']",426,FALSE,0,1
Passing Authentication Key in header but access denied 401 in JMeter in Rest API Load Testing,"<p>Request</p>

<p>POST <a href=""http://18.185.139.167:8080/dashboard/customer/search"" rel=""nofollow noreferrer"">http://18.185.139.167:8080/dashboard/customer/search</a></p>

<p>POST data:</p>

<pre><code>{
  ""q"":"""",
  ""pageNumber"":0,
  ""pageSize"":1000,
  ""sortBy"":""createdDate"",
  ""sortDirection"":""desc"",
  ""advertisementid"":""web"",
  ""deviceid"":""web,
  ""devicetype"":""web"",
  ""gcmorapnsid"":""web"",
  ""source"":""web""
 }
</code></pre>

<p>[no cookies]</p>

<p><strong>Request Headers:</strong>  </p>

<pre><code>Connection: keep-alive  
Authorization: eyJhbGciOiJIUzUxMiJ9JzdWIiOiJpb3RAdGF0YWNvbW11bmljYXRpb25zLmNvbSIsImF1ZGl lbmNlIjoid2ViIiwiY3JlYXRlZCI6MTUyMjczNjg5OTY2NCwiZXhwIjoxNTI1MTU2MDk5LCJqdGk iOiI1YTYxZjY4NmRhYzM2ODAyNTJkNjU5OGIifQ.O3SQuj4aEJdn--bv3T2j2r7cMKuNZPqCYlOG YsdPKu9vWOkJUgbvblntlycDJxpfZWPGh6R8GJ2CXkb  
Content-Type: application/json  
Content-Length: 188  
Host: 18.188.138.167:9009  
User-Agent: Apache-HttpClient/4.5.5 (Java/1.8.0_161)  
</code></pre>

<p><strong>Response Data :</strong></p>

<pre><code>{
  ""timestamp"" : 1522826733515,
  ""status"" : 401,
  ""error"" : ""Unauthorized"",
  ""message"" : ""Unauthorized"",
  ""path"" : ""/dashboard/customer/search""
}
</code></pre>
",https://stackoverflow.com/questions/49645477/passing-authentication-key-in-header-but-access-denied-401-in-jmeter-in-rest-api,['jmeter'],186,FALSE,0,0
JMeter - 350 Concurrent Users load testing fails due to &quot;Timeout performing EVAL&quot; and 500 INTERNAL SERVAR ISSUE,"<p>I'm performing load test in my application which is registration application for schools.
So I'm performing load test for the registration scenario and when I perform load test with JMeter for 350 concurrent users using Thread group with 1 ramp up secs , I'm facing the below issue's ,</p>

<ol>
<li><p>Timeout performing EVAL</p></li>
<li><p>500 - The request timed out.</p></li>
<li><p>502 - Internal server error.</p></li>
</ol>

<p>Can any one suggest on this whether it is issue from JMeter tool or the issues is from the application side.</p>
",https://stackoverflow.com/questions/51881808/jmeter-350-concurrent-users-load-testing-fails-due-to-timeout-performing-eval,['jmeter'],392,FALSE,0,1
JMeter: How is it possible to load test live streaming videos which wont be available during load testing,"<p>First I would like to know that lets say, there is live football match on 20th oct, 2018 and we have to load test live streaming of same match. Obviosuly, live will be available on date mentioned but how would I test for the live video streaming which wont be available before mentioned date?</p>
",https://stackoverflow.com/questions/52399146/jmeter-how-is-it-possible-to-load-test-live-streaming-videos-which-wont-be-avai,"['jmeter', 'broadcast', 'live', 'blazemeter']",3000,TRUE,3,2
how to pass random inputs from a input file to apache benchmark (abs) for load testing a URL,"<p>I want to pass random inputs for load testing my search URL .
Search texts have to be read from an Input file and appended in the URL and send for the AB load testing .</p>

<p>Eg. a) Input file :
        text1
        text2
        text3
    b) URL :- <code>{{BaseURL}}/apps/{{ApplId}}/courses/search?query={{random text from input file }}</code></p>

<p>I would like to hit this search URL with different/random texts present in the input file .
Currently i am trying the below command which just takes one static URL :-</p>

<pre><code>abs -n 100 -c 100 https://ib3rf43def /courses/search?query=course  &gt; ../../abTestResult.txt
</code></pre>

<p>Thanks for the help in advance .!</p>
",https://stackoverflow.com/questions/49689898/how-to-pass-random-inputs-from-a-input-file-to-apache-benchmark-abs-for-load-t,"['apache', 'testing', 'load-testing', 'apachebench']",739,TRUE,1,1
can you access a file from a virtual machine using locust.io and perform load testing on this file,"<p>I am using locust.io for the first time. I want to access a file from a virtual machine which i have created using a get request in locust.io. I want to then simulate multiple users for this request. Is this possible using locust.io?</p>

<p>Basically the code below is what I want to replicate using locust.io for multiple users.
This is my code for a single client and server using sockets.</p>

<pre><code>#server.py
import socket

port = 3335
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
#host = socket.gethostname()
s.bind(('',port))
s.listen(5)

print(""server Ready"")

while True:
    conn,addr = s.accept()
    print(""connection received from "",addr)
    data = conn.recv(2048)
    #print(""server received"",repr(data))
    filename=data.decode()
    f=open(filename,'rb')
    l=f.read(1024)
    while(l):
        conn.send(l)
        print('sent',repr(l))
        l=f.read(1024)
    f.close()
    print('done sending')
    #conn.send('thankyou'.encode())
    conn.close()


#client.py
import socket

port = 3335
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host = input(""Enter the ip address of server"")
s.connect((host,port))
file = input(""Enter the filename"")
s.send(file.encode())

while True:
    print(""receiving data"")
    data = s.recv(1024)
    print(""data = "",(data))
    if not data:
        break
print(""successful"")
s.close()
print(""connection closed"")
</code></pre>
",https://stackoverflow.com/questions/48370193/can-you-access-a-file-from-a-virtual-machine-using-locust-io-and-perform-load-te,"['python', 'locust']",292,FALSE,1,0
I am trying to perform mobile load testing using Jmeter but i receive 401 error in result tree,"<p>I am trying to load test my mobile application using jmeter, I have given authorization token in HTTP header manager and recorded the mobile app operations. But when I run this recorded script and view the result in result tree, all of the operations appear as failed and for some i see 401 un-authorization error. Please help me in solving this problem.
<a href=""https://i.stack.imgur.com/0aPxG.png"" rel=""nofollow noreferrer"">This image shows the result I get after running the recorded</a></p>

<p><a href=""https://i.stack.imgur.com/r17rU.png"" rel=""nofollow noreferrer""></a></p>
",https://stackoverflow.com/questions/50406005/i-am-trying-to-perform-mobile-load-testing-using-jmeter-but-i-receive-401-error,"['load-testing', 'jmeter-4.0']",157,TRUE,0,1
JMeter distributed load testing - Master in local system and slave in AWS EC2 windows instance - not able to connect,"<p>I'm running my Master Jmeter in my local laptop and created Slave in AWS EC2 Windows instance. I have set up the IP address of the EC2 in my master Jmeter properties file.
I also made sure that both the master and slave are having the same JMeter Version.
Now when i connect slave through gui or non gui mode i'm getting the below error.
Please help me resolve this.</p>

<pre><code>14:52:23,294 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.RemoteStart@5b22b970
java.lang.RuntimeException: Following remote engines could not be configured:[172.31.3.238]
    at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:112) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_171]
    at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_171]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_171]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_171]
</code></pre>
",https://stackoverflow.com/questions/51242203/jmeter-distributed-load-testing-master-in-local-system-and-slave-in-aws-ec2-wi,['jmeter'],612,TRUE,1,2
what are the measurements that allow a load-testing professional to evaluate the performance of each request under certain load?,"<p>We collect performance metrics like average <strong>response time, latency, Hits</strong> etc,. when we do load test.
How can we evaluate the performance of a request using these metrics?</p>
",https://stackoverflow.com/questions/49152592/what-are-the-measurements-that-allow-a-load-testing-professional-to-evaluate-the,"['jmeter', 'performance-testing', 'loadrunner', 'gatling', 'neoload']",295,TRUE,2,2
Apache Jmeter load testing on Mobile native app failing due to android device losing internet connection while on same network,"<p>I am trying to load test mobile app with Apache Jmeter but facing a typical problem. I have done all the required configuration like setting the domain, server name, port in Jmeter. I have also configured my android phone by installing Root CA file, setting the Host name with Jmeter system's IP,  port to 8080, IP settings to DHCP, Proxy to Manual but whenever both the system and android device are on the same Wifi network, android device is getting disconnected from the internet and the recording is getting stuck. So can somebody please help me on this.</p>
",https://stackoverflow.com/questions/53540633/apache-jmeter-load-testing-on-mobile-native-app-failing-due-to-android-device-lo,['jmeter'],750,FALSE,0,1
"Which is the best high performance Jmeter sampler to use for Thrift protocol load testing Beanshell, JSR223 or Java request sampler?","<p>I have a requirement to load test Thrift protocol with very high user load using JMeter.
I need to know which is the best and most performant JMeter sampler to use out of Beanshell, JSR223 or Java request with high concurrency load?
Appreciate suggestions from industry gurus.
I am open to use other open source tools that can perform the same task.</p>

<p>Thanks,
B </p>
",https://stackoverflow.com/questions/49002592/which-is-the-best-high-performance-jmeter-sampler-to-use-for-thrift-protocol-loa,"['groovy', 'jmeter', 'beanshell', 'thrift-protocol', 'jsr223']",346,TRUE,-2,1
Why does load testing give better results when I increase number of load runner instances while my server has the same configuration,"<p>Why does load testing give better results when I increase number of load runner instances while my server has the same configuration?</p>

<p>I have a rest api hosted on an apache server.</p>

<p>With 1 Load runner instance with 250 concurrent users my average response time is 0.8 sec</p>

<p>But when i increase my Load runner instances from 1 to 4 my average response time decrease down from 0.8 to 0.48.</p>

<p>Why would that happen? Idea is to load test the server and not the consumer itself.</p>

<p>Please help me understand the logic why this would be happening</p>

<p>thanks in advance</p>
",https://stackoverflow.com/questions/50490621/why-does-load-testing-give-better-results-when-i-increase-number-of-load-runner,"['load', 'performance-testing', 'load-testing', 'loadrunner']",212,TRUE,1,2
Need a way to create multiple (say 250 for each) google and outlook test account for load testing oauth related apies. (Example: gmail api),"<p>Scenario:
My application requires oauth google api communication. 
My current requirement is need to load test the api communication and limitations. and solution for limitations.</p>

<p>Expected solution:</p>

<ul>
<li>Need simple way to create 250 gmail accounts.    </li>
<li>Account should be independent from each other.</li>
<li>Should require minimum individual phone numbers.</li>
</ul>

<p>Additional req but not mandatory</p>

<ul>
<li>Accounts should be reusable</li>
</ul>

<p>Thanks</p>
",https://stackoverflow.com/questions/52046087/need-a-way-to-create-multiple-say-250-for-each-google-and-outlook-test-account,"['performance', 'testing', 'outlook', 'load', 'google-oauth']",126,FALSE,1,0
i want to run my jmeter web driver script for 100 user without open browser,"<p>when i was run jmeter webdriver script multiple browser is open and this condition not get accurate load testing report so how i get proper load testing report without open Browser? </p>
",https://stackoverflow.com/questions/53646857/i-want-to-run-my-jmeter-web-driver-script-for-100-user-without-open-browser,"['selenium', 'jmeter']",1048,TRUE,0,2
Telegram Bot load testig,"<p>How can I make load testing of Telegram (of FB Messenger) Chatbot? Is there any online/offline tools like load testing in Microsoft Bot Framework? </p>

<p>I know about tools such as Tsung, but how can I use it when chatbot deployed on Heroku?</p>
",https://stackoverflow.com/questions/52294658/telegram-bot-load-testig,"['load-testing', 'telegram-bot', 'chatbot', 'facebook-chatbot', 'tsung']",1525,TRUE,3,1
"Is it good, sample time increasing gradually along with increase in number of users","<p>In Starting of script sample time is less and then it starts increasing as the load increasing, is it the correct way to do load testing for website?
Please help, which is the correct way to do load testing for website</p>
",https://stackoverflow.com/questions/50694714/is-it-good-sample-time-increasing-gradually-along-with-increase-in-number-of-us,"['performance', 'jmeter', 'load', 'performance-testing', 'load-testing']",463,TRUE,1,1
Unable to record multiple protocols in JMeter,"<p>I have application which has multiple protocols ex. HTTP, SMTP,FTP, When i am trying to Record this application for load testing using JMeter, JMeter captured HTTP requests only, not FTP, SMTP, JMeter does not record multiple protocols?
is there any workaround to add all protocols in load testing, 
Thanks in Advance</p>
",https://stackoverflow.com/questions/53039440/unable-to-record-multiple-protocols-in-jmeter,"['jmeter', 'protocols', 'recording']",175,TRUE,0,1
Self hosted BlazeMeter Sense and Yandex Overload analogues,"<p>Are there any self-hosted load testing results services like Yandex Overload and BlazeMeter Sense?</p>
",https://stackoverflow.com/questions/50085003/self-hosted-blazemeter-sense-and-yandex-overload-analogues,"['load-testing', 'blazemeter', 'yandex-tank']",246,TRUE,0,2
scaling django app that relies heavily on database queries,"<p>Hello I was load testing my social media platform with LocustIO that uses django 2.1 and SQlite3, and these are my results. <a href=""https://i.stack.imgur.com/HwvjI.png"" rel=""nofollow noreferrer"">Load Testing Results</a></p>

<p>I need to make sure it can run for 10000+ visitors and have looked into caching options like redis. It is a real time app so it involves heavy database usage and power. What road should I go down to make it quicker and scalable?</p>
",https://stackoverflow.com/questions/53290736/scaling-django-app-that-relies-heavily-on-database-queries,"['python', 'django', 'locust']",788,TRUE,0,2
"Can i change/use different IP,s in jmeter while using/testing hls streaming?","<p>I am using jmeter for hls streaming load testing. How can I use different IP's for testing hls streaming.</p>
",https://stackoverflow.com/questions/49899757/can-i-change-use-different-ip-s-in-jmeter-while-using-testing-hls-streaming,"['jmeter', 'ip', 'http-live-streaming', 'jmeter-plugins']",49,TRUE,0,1
"java.net.SocketException: Permission denied: connect, Whats the cause of this?","<p>During load testing using jmeter i have encountered with </p>

<blockquote>
  <p>java.net.SocketException: Permission denied: connect</p>
</blockquote>

<p>What is the cause of this ?</p>
",https://stackoverflow.com/questions/51960787/java-net-socketexception-permission-denied-connect-whats-the-cause-of-this,"['testing', 'automation', 'jmeter']",837,FALSE,0,1
Executor service or daemon threads which is better for multi threads?,"<p>sorry for the long edit,</p>

<p>I am trying to download 100k urls and I started to download using executor service as below,</p>

<pre><code>ExecutorService executorService = Executors.newFixedThreadPool(100);
for (int i = 0; i &lt; list.size(); i++) {
    try {
        Callable callable = new Callable() {
            public List&lt;String&gt; call() throws Exception {
                //http connection
            }
        };
Future future = executorService.submit(callable);
</code></pre>

<p>but the above method is downloading the data only one url at a time..</p>

<p>and so I tried to create daemon threads (as shown below) and this method created muliple download connections (as expected) ..</p>

<pre><code>for(int i=0; i&lt;10; i++) {
    Thread t = new Thread(""loadtest "" + i);
    t.setDaemon(true);
    t.start();
}

while(true) {
    boolean flag = true;
    Set&lt;Thread&gt; threads = Thread.getAllStackTraces().keySet();
    for(Thread t : threads) {
        if(t.isDaemon() &amp;&amp; t.getName().startsWith(""loadtest"")) {
            flag = false;
            break;
        }
    }
    if(flag)
        break;
    Thread.sleep(5000);
}
</code></pre>

<p>Can the same method be used for load testing on servers ?</p>

<p>Any other suggestions of how load testing can be done will also be of great help..</p>

<p>Thanks in advance !</p>
",https://stackoverflow.com/questions/50829538/executor-service-or-daemon-threads-which-is-better-for-multi-threads,"['java', 'multithreading', 'daemon', 'load-testing']",219,TRUE,-1,3
Performance Testing of OBIEE application?,"<hr>

<p>Following parameters should be set for OBIEE Presentation Server only during load testing.
OBIPS\instanceconfig.xml
save and exit file Restart OBIEE processes using OBIEE EM console.</p>

<pre><code>&lt;ServerInstance&gt;
        [...]

&lt;Cursors&gt;

&lt;NewCursorWaitSeconds&gt;36000&lt;/NewCursorWaitSeconds&gt;

&lt;OldCursorWaitSeconds&gt;36000&lt;/OldCursorWaitSeconds&gt;

&lt;/Cursors&gt;

[...]

&lt;/ServerInstance&gt;
</code></pre>
",https://stackoverflow.com/questions/50947351/performance-testing-of-obiee-application,"['jmeter', 'performance-testing', 'load-testing', 'loadrunner', 'obiee']",251,FALSE,-2,2
VuGen web-HTTP/HTML load test script debugger stop working,"<p>when I was replaying my Web app-HTTP/HTML Load testing script, blocked by
""UttStandaloneDebugger has stopped working""
what should I do...
<a href=""https://i.stack.imgur.com/oOpiM.png"" rel=""nofollow noreferrer"">enter image description here</a></p>
",https://stackoverflow.com/questions/49044537/vugen-web-http-html-load-test-script-debugger-stop-working,"['load-testing', 'loadrunner', 'vugen']",355,FALSE,0,0
Not able to record script with Kerberos Authentication,"<p>When I'm trying to do load testing I've received an error related to Kerberos authentication:</p>

<pre><code>jmeter.protocol.http.control.KerberosManager: Could not log in user ${AUTH_LOGIN} javax.security.auth.login.LoginException: kerberos.example.com
at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Unknown Source)
</code></pre>

<p>I've added the following properties to system properties but it doesn't work</p>

<pre><code>java.security.krb5.conf=krb5.conf
java.security.auth.login.config=jaas.conf 
</code></pre>
",https://stackoverflow.com/questions/51559871/not-able-to-record-script-with-kerberos-authentication,"['jmeter', 'kerberos']",770,FALSE,0,1
Firebase Android : How to test the Database?,"<p>How to do a load testing of the Firebase Database.
I don't find anything about it except the Test Lab.</p>

<p>How do you do to stress test the database ? Thanks.</p>
",https://stackoverflow.com/questions/49794620/firebase-android-how-to-test-the-database,"['database', 'firebase', 'testing', 'firebase-realtime-database']",133,FALSE,1,0
KONG gateway api testing failing using jmeter,"<p><img src=""https://i.stack.imgur.com/BugSV.png"" alt=""Sample Image"">defined api and path am currently testing KONG gateway api load testing using jmeter </p>

<p>Am getting 403 error. </p>

<p>Please suggest me how can I resolve this issue thanks in advance.</p>

<p><img src=""https://i.stack.imgur.com/pCdgi.png"" alt=""Sample Image""></p>

<p><img src=""https://i.stack.imgur.com/TpN13.png"" alt=""Sample Image""></p>
",https://stackoverflow.com/questions/51511073/kong-gateway-api-testing-failing-using-jmeter,"['jmeter', 'http-status-code-403']",796,FALSE,0,1
How to load excel or csv file using java in Jmeter within Webdriver Sampler,"<p>I want  to perform load testing, so need to access atleast 30 user names and password stored in excel or csv file, so how to do this using webdriver sampler in Jmeter. </p>
",https://stackoverflow.com/questions/53343657/how-to-load-excel-or-csv-file-using-java-in-jmeter-within-webdriver-sampler,"['testing', 'selenium-webdriver', 'jmeter', 'load']",1100,TRUE,1,1
How to share 4 counter variables between various threads in the same thread group in jmeter.Where to keep the initial values?,"<blockquote>
  <p>/*  Hello</p>
  
  <p>I need to generate 1 million json requests for load testing in >jmeter.Each thread will run each request. I have created a thread 
  group.Each json request should look something like this:*/</p>
</blockquote>

<pre><code>      {
                ""transaction_id"": ""TestTransactionId_1522743726505_0"",
                ""document_id"": ""TestDocumentId_1522743726505_200"",
                ""sender_id"": ""TestSenderId_1522743726505"",
                ""receiver_id"": ""TestReceiverId_1522743726505"",
                ""process_name"": ""TRANSACTION_TRACKING_PURCHASEORDER"",
                ""changed_by"": ""TestChangedBy_1522743726505"",
                ""system_id"": ""TestSystemId_1522743726505"",
                ""correlation_id"": ""TestDocumentId_1522743726505_200"",
                ""order_date"": ""1522743726505"",
                ""document_date"": ""1522743726505"",
                ""alert_type"": ""SUCCESS"",
                ""event_name"": ""TestEvent_1522743726505_200_0_0"",
                ""event_timestamp"": ""1522743726505"",
                ""event_id"": ""a907c672-a6bb-4295-a886-22fd1ba0b5f0"",
                ""host"": ""TestHost"",
                ""date_happened"": ""1522743726505"",
                ""reference_payload_id"": ""TestDocumentId_1522743726505_200"",
                ""error_message"": ""TestError_1522743726505"",
                ""source"": ""CIG"",
                ""attachment_document_type"": ""TRANSACTION_TRACKING_PURCHASEORDER""
            }


  /*  I need to generate this using 4 counter variables which are dependent upon each other. Following is the code for the same:
Can someone help me how to achieve this. My problem is that the threads are getting initialized everytime and its not picking the updated value. I am using jmeter groovy.*/

if (currentEventInDoc == 0) {
               currentDoc = (currentDoc+1)%numberOfDocPerOrder;
           }

           if (currentEventInDoc == 0 &amp;&amp; currentDoc == 0) {
               currentOrder++;
           }      

        I
</code></pre>
",https://stackoverflow.com/questions/49625671/how-to-share-4-counter-variables-between-various-threads-in-the-same-thread-grou,"['groovy', 'jmeter']",84,FALSE,0,1
I am getting Assertion Failed error while running jmeter script But I have not used assertions in my script,"<p>I am getting Assertion Failed error while running jmeter script But I have not used assertions in my script.</p>

<p>I was doing Load testing with 500 users and getting Assertion Failure errors</p>
",https://stackoverflow.com/questions/49188737/i-am-getting-assertion-failed-error-while-running-jmeter-script-but-i-have-not-u,"['jmeter', 'assertion']",950,TRUE,0,1
JMeter response &quot;Non HTTP response code: java.net.ConnectException&quot;,"<p>I`m a new using Jmeter to do Load testing.
I have set testing regarding Login transaction，it posted with username and password,after I run it, it responses </p>

<pre><code>Response code: Non HTTP response code: java.net.ConnectException
Response message: Non HTTP response message: Connection timed out: connect
</code></pre>

<p>and response message:</p>

<pre><code>java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
    at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.&lt;init&gt;(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
    at org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:508)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:498)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:424)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255)
    at java.lang.Thread.run(Unknown Source)
</code></pre>
",https://stackoverflow.com/questions/48484338/jmeter-response-non-http-response-code-java-net-connectexception,['jmeter'],4585,TRUE,0,1
Kafka read a batch of messages again and again,"<p>I am doing load testing of some service, and so I want to process a batch of 100-200 messages repeatedly for a period of 3-4 days. How should I do it?</p>
",https://stackoverflow.com/questions/51535175/kafka-read-a-batch-of-messages-again-and-again,"['java', 'apache-kafka', 'kafka-consumer-api']",122,TRUE,-1,1
LocustIO test result for post calls,"<p>How does post call work with LOcustIO? I was suspecting Locust not doing what it is suppose to do because it was returning success for all load testing I was running so I decided to post, write to the DB via a web application using LocustIO, to my surprise nothing was written to the db. Though I know some have successfully done this, so I want to know how to write to the Db using LocustIO as part of my load testing. </p>

<p>This is the code used:</p>

<pre><code>from locust import HttpLocust, TaskSet, task
import logging, sys
from credentials import *

class LoginWithUniqueUsersSteps(TaskSet):
    institutionCode = ""NOT_FOUND""
    username = ""NOT_FOUND""
    password = ""NOT_FOUND""

    def on_start(self):
            if len(USER_CREDENTIALS) &gt; 0:
               self.institutionCode, self.username, self.password = USER_CREDENTIALS.pop()

    @task
    def login(self):
        self.client.post(""/dejavuweb/"", {
           'institutionCode': self.institutionCode, 'email': self.username, 'password': self.password
        })
        logging.info('Login with %s institutionCode %s username and %s password', self.institutionCode, self.username, self.password)

    @task
    def createTerminal(self):
        response = self.client.request(method=""POST"", url=""/dejavuweb/Home#Function/7"", data= {""TerminalName"": ""RealterminalName""})
        print(""Create; Response status code:"", response.status_code)
        print(""Create; Response content:"", response.content)

class LoginWithUniqueUsersTest(HttpLocust):
    task_set = LoginWithUniqueUsersSteps
    host = ""http://dev.trublend.cloud""
    sock = None

    def __init__(self):
        super(LoginWithUniqueUsersTest, self).__init__()
</code></pre>

<p>Mind you, I copied, edited the code snippet above to achieve what I want. </p>

<p>Screenshot of LocustIO result:</p>

<p><a href=""https://i.stack.imgur.com/DHMdp.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/DHMdp.png"" alt=""Test result of LocustIO""></a></p>
",https://stackoverflow.com/questions/49873433/locustio-test-result-for-post-calls,"['python', 'http-post', 'locust']",155,FALSE,0,0
Wiiremock http fail errors,"<p>I wrote the following wiremock code for a HTTP request for load testing in the Jmeter:</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> </code></pre>
</div>
</div>
</p>

<p>I am getting the following errors when I run it in the eclipse:</p>



<p>Can anyone help me solving this?</p>
",https://stackoverflow.com/questions/51071063/wiiremock-http-fail-errors,"['java', 'load-testing', 'wiremock']",876,TRUE,0,1
Laravel Application usages more than 90% CPU usages for 100 concurrent users with high server configuration,"<p>I have migrated the existing application from core php to laravel framework. But the laravel application usage more than 90% cpu for the 100 concurrent users but the same application developed in core php usages the 5% cpu load only for the same load.</p>

<p>Then I have created one sample 'helloworld' application in laravel for load testing and result is the same. 
I have tested the laravel application using load testing tool siege, hits url 'siege www.mysite.com/helloworld -c250 -t20s' for 250 concurrent users (duration 20 sec) and still cpu load reaches more than 90% (linux centos 7.5 8 core 8 gb ram apache).</p>

<p>Also tested the core php file 'helloworld.php' using same load testing tool ('siege www.mysite.com/helloworld.php -c250 -t20s') but CPU usage not exceeded even 5%.</p>

<ul>
<li>I am using the latest php version ie 7.2</li>
<li>linux server centos 7.5 8 core 8 gb ram </li>
<li>apache</li>
<li>Also tried the varnish http cache</li>
<li>laravel version 5.4 (also tried the 5.6 but the result is the same)</li>
</ul>

<p>I don't know where is the issue I have tried everything but still not resolved the issue. Is there anything missing in the configuration on the server or in the coding end. Please suggest.</p>
",https://stackoverflow.com/questions/51780892/laravel-application-usages-more-than-90-cpu-usages-for-100-concurrent-users-wit,"['php', 'linux', 'apache', 'laravel-5']",1127,FALSE,3,0
How Do I Performance Test My CorDapp?,"<p>Most performance testing tools seem to be geared towards load testing web applications.</p>

<p>How do I load test a CorDapp?</p>

<p>Do I have to write an RPC Client to trigger flows or is there a Corda tool to enable this?</p>
",https://stackoverflow.com/questions/50273863/how-do-i-performance-test-my-cordapp,['corda'],86,FALSE,1,1
How can I do load test with JMS support using Citrus testing framework,"<p>I am doing load-test using citrus framework with reference of Http load testing sample in Citrus framework document but I am not able to doing load-test, it is not working.Any body please help me on that.Advance thanks.</p>
",https://stackoverflow.com/questions/50705318/how-can-i-do-load-test-with-jms-support-using-citrus-testing-framework,['citrus-framework'],79,FALSE,0,0
How can I generate an html report with k6?,"<p>I'm using grafana and influxdb with k6 for load testing, but I have a usecase where I'll need offline access to the grafana dashboard (or something similar). Does k6, or grafana, have a way to export an html report? </p>

<p>thanks,
jas</p>
",https://stackoverflow.com/questions/51794425/how-can-i-generate-an-html-report-with-k6,['k6'],2242,TRUE,0,1
How to crash application even in non-GUI mode using JMeter?,"<p>I want to perform load testing using JMeter to check where we are getting an application crash.</p>

<p>When I apply 1500 users and run the test using non-GUI mode I got heap space error but cannot crash my application.</p>
",https://stackoverflow.com/questions/53546242/how-to-crash-application-even-in-non-gui-mode-using-jmeter,['jmeter'],965,FALSE,-1,1
how to generate multiple ip&#39;s in the same subnet for a particular machine in ubuntu,"<p>I want to generate multiple ip's for a particular virtual machine in ubuntu all in the same subnet. How can this be done? I need multiple ip's as I want to perform load testing on a particular server using python.</p>
",https://stackoverflow.com/questions/48449424/how-to-generate-multiple-ips-in-the-same-subnet-for-a-particular-machine-in-ubu,"['ubuntu-16.04', 'ip-address']",62,TRUE,0,1
JMeter Exception: org.apache.http.MalformedChunkCodingException,"<p>I am running load testing scenario in <code>JMeter</code> for just 50 users over the VPN for my web application and I am getting the exception below. I have already set up <code>Implementation = HTTPClient4</code> under <code>HTTP Request Defaults</code> but the exception is still occurrs for a few transactions.</p>

<pre><code>Response code: Non HTTP response code: org.apache.http.MalformedChunkCodingException
Response message: Number of samples in transaction : 1, number of failing samples : 1
</code></pre>
",https://stackoverflow.com/questions/52034499/jmeter-exception-org-apache-http-malformedchunkcodingexception,['jmeter'],533,FALSE,0,1
How to record requests from client in Gatling,"<p>I have a Java desktop application. I want to know if there is a way to record server calls (<code>GET</code> &amp; <code>POST</code> requests) using Gatling where requests will be generated from desktop application. I am trying to use Gatling for load testing.</p>
",https://stackoverflow.com/questions/48058478/how-to-record-requests-from-client-in-gatling,"['gatling', 'scala-gatling', 'gatling-plugin']",374,FALSE,0,0
How to load test Alexa&#39;s skill,"<p>I have alexa skill and I want to test a lot of users connection, I want to use JMeter, bit I don't sure is it required to tests skills. How do you do load testing for Alexas skills and is it required?</p>
",https://stackoverflow.com/questions/52759314/how-to-load-test-alexas-skill,"['testing', 'automated-tests', 'load-testing', 'alexa', 'alexa-skill']",207,FALSE,0,1
MSTest V2: &#39;Test mix&#39; section in Load test wizard not finding the unit test,"<p>I'm trying to use my unit test for load testing as well. When I click 'Add...' button, visual studio prompts with a message 'There are no tests available to pick' (as shown in below image).</p>

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

<p>I can execute the unit test successfully from VS2017.</p>

<p><a href=""https://i.stack.imgur.com/UnkwI.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/UnkwI.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/49355088/mstest-v2-test-mix-section-in-load-test-wizard-not-finding-the-unit-test,"['visual-studio', 'visual-studio-2017', 'mstest']",304,FALSE,1,1
Getting the error &quot;Sampler error: unexpected frame type.&quot; when reading a frame using Single Read Sampler with JMeter and JMeter Websocket Plugin,"<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  ""Sampler error: unexpected frame type.""</p>

<p>Can anybody help me in solving this issue?</p>
",https://stackoverflow.com/questions/53098778/getting-the-error-sampler-error-unexpected-frame-type-when-reading-a-frame-u,"['websocket', 'jmeter', 'jmeter-plugins']",2943,FALSE,1,1
How to monitor Cassandra replication lag?,"<p>I have a Cassandra cluster setup with datacenter, each datacenter has a 3nodes. While doing load testing on it the data is replication from datacenter1 to datacenter2.</p>

<p>But is there any way by which I can monitor the replication lag/latency while data is getting replicated from dc1 to dc2?</p>
",https://stackoverflow.com/questions/53302470/how-to-monitor-cassandra-replication-lag,"['cassandra', 'monitoring', 'latency']",1553,TRUE,4,1
How do nested bool queries work ? Is there a single wrapper that can disable nesting on all the nested levels?,"<p>If you wrap bool query in constant Score Query does it calculate score for internal queries. Is there another easy way to disable scoring?</p>

<p>Hi I have an update so I have a query where no scoring is required, so I wrote it in two forms and did load testing with 10000 documents.</p>

<p>Following are the two structures of query with which I did load testing:</p>

<pre><code>{
  ""query"": {
    ""bool"": {
      ""filter"": [
        {
          ""must"": {
            ""bool"": {
              ""must"": [
                {
                  bool:.......
                }
              ]
            }
          }
        }
      ]
    }
  }
}
</code></pre>

<p>And the second one is:</p>

<pre><code>{
  ""query"": {
    ""bool"": {
      ""filter"": [
        {
          ""filter"": {
            ""bool"": {
              ""filter"": [
                {
                  bool:.......
                }
              ]
            }
          }
        }
      ]
    }
  }
}
</code></pre>

<p>What I found was that the first query took almost as double time as the second query. I would like to know why this happened?</p>

<p>Also, do the internal bool queries inside filter in first example run in query context or filter context?</p>

<p>I have read elastic search documentation and cannot find references or details on how it works internally.</p>

<p>Thanks, in advance!! </p>
",https://stackoverflow.com/questions/53737893/how-do-nested-bool-queries-work-is-there-a-single-wrapper-that-can-disable-nes,['elasticsearch'],157,TRUE,0,2
Reason for high response time of a transaction during Load test,"<p>I am doing load testing for one hour and observed one transaction is taking high response time compared to expected value. Why is this happening? What could be the reasons even if GC, thread and system resources (CPU and Memory) utilization are normal.</p>

<p>How to analyze it?</p>
",https://stackoverflow.com/questions/49891680/reason-for-high-response-time-of-a-transaction-during-load-test,"['performance-testing', 'load-testing', 'response-time']",2661,FALSE,0,1
Memory Leak : org.springframework.ws.client.core.WebServiceTemplate,"<p><a href=""https://i.stack.imgur.com/e32MQ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/e32MQ.png"" alt=""enter image description here""></a>During the load testing of invoking the SAOP Endpoint We were using Spring related: WebServiceTemplate</p>

<pre><code>JAXBElement&lt;GetXYZCostMatrixResponse&gt; resp = (JAXBElement&lt;GetXYZCostMatrixResponse&gt;) webServiceTemplate.marshalSendAndReceive(request);
</code></pre>

<p>On commenting this line I was not getting Out of Memory issue</p>

<p>Around 16 MB per each request getting retained </p>

<p>Can any body tell is it because or Jaxb2Marshaller (default implementation) ?</p>
",https://stackoverflow.com/questions/50442941/memory-leak-org-springframework-ws-client-core-webservicetemplate,"['spring', 'web-services', 'soap', 'jaxb', 'webservicetemplate']",701,FALSE,0,0
JMeter java.io.FileNotFoundException in Graphs Generator Listener,"<p>I am trying to generate graphs using Graphs Generator Listener for load testing my web application. However, I am getting following error and the graph file does not generate.</p>

<pre><code>Error encountered during shutdown of kg.apc.jmeter.listener.GraphsGeneratorListener@6d275697
java.lang.RuntimeException: java.io.FileNotFoundException: F:\Software\Network Tools\apache-jmeter-5.0\bin\results\ResponseTimesOverTime.png (Access is denied)
</code></pre>

<p>N.B: The CSV file generating successfully in that folder.</p>

<p>How can I solve this problem? Thanks in advance.</p>
",https://stackoverflow.com/questions/53449869/jmeter-java-io-filenotfoundexception-in-graphs-generator-listener,"['java', 'jmeter', 'jmeter-plugins']",277,TRUE,0,1
Mule 3.9.0 - java.util.ConcurrentModificationException: null,"<p>I am using Mule 3.9.0 CE</p>

<p>While doing load testing with multiple thread on Mule Flow, I got this exception: java.util.ConcurrentModificationException: null</p>

<p>All Mule flow and sub-flow Processing Strategies = default</p>

<pre><code>java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442) ~[?:1.8.0_152]
at java.util.HashMap$EntryIterator.next(HashMap.java:1476) ~[?:1.8.0_152]
at java.util.HashMap$EntryIterator.next(HashMap.java:1474) ~[?:1.8.0_152]
at org.mule.module.http.internal.HttpMapParam.resolveMapObjObj(HttpMapParam.java:68) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.HttpMapParam.resolve(HttpMapParam.java:48) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.HttpMessageBuilder.resolveParams(HttpMessageBuilder.java:48) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.HttpResponseBuilder.build(HttpResponseBuilder.java:116) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.HttpMessageProcessorTemplate.doBuildResponse(HttpMessageProcessorTemplate.java:122) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.HttpMessageProcessorTemplate.buildResponse(HttpMessageProcessorTemplate.java:112) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.HttpMessageProcessorTemplate.sendResponseToClient(HttpMessageProcessorTemplate.java:86) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:79) ~[mule-core-3.9.0.jar:3.9.0]
at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:36) ~[mule-core-3.9.0.jar:3.9.0]
at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.process(PhaseExecutionEngine.java:114) ~[mule-core-3.9.0.jar:3.9.0]
at org.mule.execution.PhaseExecutionEngine.process(PhaseExecutionEngine.java:41) ~[mule-core-3.9.0.jar:3.9.0]
at org.mule.execution.MuleMessageProcessingManager.processMessage(MuleMessageProcessingManager.java:32) ~[mule-core-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.DefaultHttpListener$1.handleRequest(DefaultHttpListener.java:135) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.grizzly.GrizzlyRequestDispatcherFilter.handleRead(GrizzlyRequestDispatcherFilter.java:100) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[grizzly-framework-2.3.33.jar:2.3.33]
at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.run0(ExecutorPerServerAddressIOStrategy.java:119) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.access$100(ExecutorPerServerAddressIOStrategy.java:31) ~[mule-module-http-3.9.0.jar:3.9.0]
at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy$WorkerThreadRunnable.run(ExecutorPerServerAddressIOStrategy.java:142) ~[mule-module-http-3.9.0.jar:3.9.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
</code></pre>

<p>This behavior is not exist on Mule 3.4.1   </p>

<p>All processing in my flow is ""Sync."" why these:</p>

<pre><code>at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:79) ~[mule-core-3.9.0.jar:3.9.0]
at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:36) ~[mule-core-3.9.0.jar:3.9.0]
</code></pre>
",https://stackoverflow.com/questions/48322062/mule-3-9-0-java-util-concurrentmodificationexception-null,"['java', 'mule', 'mule-component', 'mule-el', 'mule-esb']",660,FALSE,1,0
Using PEM file for jmeter auth,"<p>In the project, pem file is being used for auth while making calls to other services. pem file is basically a private key and bunch of certificates.</p>

<pre><code>client = AuthRestClient::Client.new(:username =&gt; ""user.name"",
                                    :authn_key =&gt; ""#/ssl/cert.pem"",
                                    :authn_url =&gt; ""http://10.10.10.10"",
                                    :client_id =&gt; ""http://10.11.11.11:80"")

result = JSON.parse(client.get(""http://10.11.11.11/test""))[""test""]
</code></pre>

<p>I need to use the same pem file to do load testing on the servers using JMeter. Is this possible? Please help.</p>
",https://stackoverflow.com/questions/51873313/using-pem-file-for-jmeter-auth,"['jmeter', 'pem']",1991,FALSE,0,1
Jmeter reports for functional testing,"<p>I am using Jmeter for functional testing and not just for load testing.
All the examples that I see for reports are for load testing, and I do not see how it is effective for functional, I do not care speed of response latency and so on.
I care about sampler response, is http get 200 OK, is the assertion succeed or not
the response message that I write, the JDBC response with my response message.
Is their a way to use Jmeter reports to see al that?
I have a test plan with 50 tests, is their any example of how it should look like in reports? 
Once again not care for this test from performance or load at all, just functional, Is their any guide since all the info I see its about performance and not functional </p>
",https://stackoverflow.com/questions/48253081/jmeter-reports-for-functional-testing,"['jmeter', 'report']",2227,TRUE,1,3
How to have Locust Master dynamically allocate users to slaves,"<p>I am trying to load test a HTTP URL(Dynamic) using Locust.io. I already have the python scripts that will make a GET call to the URL. The challenge i am facing is, the urls and the number of users are dynamic and are read from a CSV file.</p>

<p>For example, Here is how the input of the load testing will look like:</p>

<p>Input.csv:</p>

<pre><code>============

URLs          No of users to simulate
=============================================
URL 1               1000
URL 2               5000
URL 3               2000
URL 4               1000
</code></pre>

<p>Each url in the CSV is unique and the number of users to simulate change for every url. i would like to use the locust load testing in distributed mode.</p>

<p>For example, Locust master will read URL 1 and send it to Slave 1 to simulate 1000 users. and then pick URL2 and send it to Slave 2 to simulate 5000 users. </p>

<p>how do i achieve this using locust? can someone throw some light?</p>
",https://stackoverflow.com/questions/50241866/how-to-have-locust-master-dynamically-allocate-users-to-slaves,"['python-3.x', 'performance-testing', 'load-testing', 'locust']",1545,FALSE,0,2
"How can i resolve HTTPSConnectionPool(host=&#39;www.googleapis.com&#39;, port=443) Max retries exceeded with url (Google cloud storage)","<p>I have created API using Django Rest Framework.
API communicates with GCP cloud storage to store profile Image(around 1MB/pic).
While performing load testing (around 1000 request/s) to that server.
I have encountered the following error.
I seem to be a GCP cloud storage max request issue, but unable to figure out the solution of it.</p>

<pre><code>Exception Type: SSLError at /api/v1/users

Exception Value: HTTPSConnectionPool(host='www.googleapis.com', port=443): Max retries exceeded with url: /storage/v1/b/&lt;gcp-bucket-name&gt;?projection=noAcl (Caused by SSLError(SSLError(""bad handshake: SysCallError(-1, 'Unexpected EOF')"",),))
</code></pre>
",https://stackoverflow.com/questions/48274552/how-can-i-resolve-httpsconnectionpoolhost-www-googleapis-com-port-443-max-r,"['google-api', 'python-requests', 'google-cloud-platform', 'google-cloud-storage']",17566,TRUE,5,1
Apache Jmeter Concurrent Users Performance Testing,"<p>I want to test 400 Concurrency Users Which allow us to pass our load testing scenario as I am using below configuration setting in Apache JMeter which will through us lots of errors.</p>

<p>Number of Thread (Users): 400 
Ramp-Up Time: 1 
Loop Count: Forever Until ( Period of 1 minutes )</p>
",https://stackoverflow.com/questions/53165012/apache-jmeter-concurrent-users-performance-testing,"['performance', 'jmeter', 'performance-testing']",738,TRUE,0,1
Reuse of robotframework scripts in Jmeter,"<p>We are using Robot Framework for Automation scripting and for performance testing in Jmeter. Just wanted to know anybody has done anything to reuse the RobotFramework script in JMeter for load testing. The main intention of this query is to avoid scripting twice for the same scenarios and to reusability of the code.</p>
",https://stackoverflow.com/questions/49132964/reuse-of-robotframework-scripts-in-jmeter,"['jmeter', 'robotframework']",686,TRUE,1,2
Simple way of converting Selenium browser scripts to Jmeter scripts?,"<p>I am looking for a way to convert Selenium Browser automation scripts that already currently work, into Jmeter scripts. Baring in mind I have no load testing expereince only Browser UI automation. I know there is a tool called Blazemeter and taurus, but am looking for a simple solution that is free?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/51138194/simple-way-of-converting-selenium-browser-scripts-to-jmeter-scripts,"['java', 'selenium', 'automation', 'jmeter', 'load-testing']",2649,TRUE,0,1
JMeter - Log All Users In And Then Execute Other Steps,"<p>I am load testing against a Registration system.  I currently have a JMeter script that pulls user information from a CSV file (CSV Data Set Config) and my Thread Group has the following steps:</p>

<ol>
<li>Contact CAS server, get login ticket </li>
<li>Login to CAS </li>
<li>Execute tasks in Registration system </li>
<li>Logout of CAS</li>
</ol>

<p>JMeter runs through each of those steps as a separate thread and the script works.</p>

<p>The problem is that our test isn't quite accurate when compared against the behavior of our users in real life.  Like I mentioned, this is a Registration system, and our end users are logging in and authenticating (via CAS) minutes before they actually begin hammering the actual system (when Registration opens at midnight - and the floodgates open).  </p>

<p>In real life we never have problems with our CAS authentication system because we don't have thousands of users authenticating at once.  When we do our load testing with JMeter the first two steps are to authenticate via CAS, and this makes CAS a bottleneck and it begins to fail when we load test with 500 users over a span of 10 seconds.  As such, our load testing transactions aren't able to hit the actual Registration system and the JMeter load test isn't valid. </p>

<p>Is there a way to update a JMeter script to log all users in first (loop through the first two steps and maintain the CAS session info for all users), and then perform the rest of the steps?  </p>
",https://stackoverflow.com/questions/49947328/jmeter-log-all-users-in-and-then-execute-other-steps,"['jmeter', 'load-testing', 'jmeter-3.2']",1080,TRUE,0,1
Generate a large file in memory and stream it into object store,"<p>I'm trying to do some load testing of an openstack swift object store and want to see transfer and fail rates of large files. How can I generate a big file of 0s and stream it somewhere as its generated?</p>

<p>In bash I would do something like </p>

<pre><code>dd if=/dev/zero | aws s3 cp - s3://destination/thing
</code></pre>

<p>Example of reading a file from disk </p>

<pre><code>with open(""test.png"", ""rb"") as f:
  client.put_object(""default"", ""photos/my_copy_of_test.png"", f.read())
</code></pre>
",https://stackoverflow.com/questions/52064592/generate-a-large-file-in-memory-and-stream-it-into-object-store,['python'],571,TRUE,1,1
How to authenticate to influxdb when using k6,"<p>I am using k6 for as a load testing tool and I want to write data to influxdb. It all works fine except I do not know how to send user credentials for influxdb.</p>

<p>Example:</p>

<pre><code>./k6.exe run --out ""influxdb=http://localhost:8086/stresstest"" script.js --vus 10 --duration 3s
</code></pre>

<p>I tried to pass influxdb username and password like this, but it doesn't work</p>

<pre><code>./k6.exe run --out ""influxdb=http://localhost:8086/stresstest?u=&lt;USERNAME&gt;&amp;p=&lt;PASSWORD&gt;"" script.js --vus 10 --duration 3s
</code></pre>

<p>I do not want to disable influxdb auth!</p>
",https://stackoverflow.com/questions/53765678/how-to-authenticate-to-influxdb-when-using-k6,"['influxdb', 'k6']",2663,TRUE,2,1
LocustIO: User swarm,"<p>I am trying out <a href=""https://locust.io/"" rel=""nofollow noreferrer"">Locust</a>. Here you are able to swarm your system with simulated number of users within a specified hatch rate.  </p>

<pre><code>class UserBehavior(TaskSet):  
    def on_start(self):  
        self.login()  

    def login(self):
    payload = {""grant_type"": ""password"",
              ""username"": self.my_user,
              ""password"": self.my_pw,
              ...
              }
            }
    headers = {'content-type': 'application/json'}
    response = self.client.post(""/rest/v10/oauth2/token"", data=json.dumps(payload), headers=headers, catch_response=True)
    self.token = response.json()['access_token']

    @task(1)
    def fetch_accounts(self):
        headers = {'oauth-token': self.token}
        response = self.client.get(""/rest/v10/Accounts"", headers=headers)   
</code></pre>

<p>What is the implication of using:  </p>

<ol>
<li><p>A single <code>self.my_user</code> and <code>self.my_pw</code> with <code>Number of users to simulate: 5</code></p></li>
<li><p>5 different <code>self.my_user</code> and <code>self.my_pw</code> with <code>Number of users to simulate: 1</code>  </p></li>
<li>5 different <code>self.my_user</code> and <code>self.my_pw</code> with <code>Number of users to simulate: 5</code>  </li>
</ol>

<p>Which of the three provides a more reliable output for a load testing report?</p>
",https://stackoverflow.com/questions/53330791/locustio-user-swarm,"['python', 'load-testing', 'locust']",204,TRUE,0,1
"Errors, Failed Connections, during Azure load tests - whitelist IPs?","<p>I am trying to eliminate errors and failed connection attempts during the use of Azure Performance Load testing.  I believe I need to find the correct IP addresses to whitelist as when the Web App is restricted to specific IPs, we see the issues that do not occur when IPs are unrestricted.    </p>

<p>We see 403 forbidden errors - and, almost exactly 1/2 of the connections show as failed attempts during the testing.  We use a whitelist to allow access to our dev web site from only certain IPs.  When I remove the IP restrictions, the tests work fine.  </p>

<p>If I'm on track, I need to know which IPs to whitelist.  This is for the South Central US.  </p>

<p>Azure does provide a <a href=""https://www.microsoft.com/en-us/download/details.aspx?id=41653"" rel=""nofollow noreferrer"">Datacenter IP Ranges article</a>, however, there are two problems:  1) There is no indication of which IPs are for Performance load testing.  And, 2) I see no way of importing the entire article if IPs - which I would happily do at this time.</p>
",https://stackoverflow.com/questions/49522624/errors-failed-connections-during-azure-load-tests-whitelist-ips,"['performance', 'azure', 'load', 'performance-testing']",193,FALSE,1,0
Is it possible record traffic from mobile device without WiFi,"<p>I try to use JMeter for mobile applications load testing.</p>

<p>But its not comfartable to use WiFi every time when I need to record Mobile app traffic.</p>

<p>Is it possible to use USB cable to record traffic from mobile device to computer?</p>

<p>For example create 2 line Proxy: Mobile Device(Mob app) → Computer (JMeter) Proxy → Mobile Device Proxy → Internet.</p>
",https://stackoverflow.com/questions/52287941/is-it-possible-record-traffic-from-mobile-device-without-wifi,"['jmeter', 'monitoring', 'load-testing', 'mobile-application']",237,TRUE,0,2
Break feeder file into sections,"<p>I have a feeder json file which I am getting as following</p>

<pre><code>val feeder = jsonFile(""feeder.json"").queue
</code></pre>

<p>and then defining the scenario. However, we will be running Gatling from Docker and I want when user pass parallelism parameter to create that my docker instances and start load testing, but then I want to separate feeder file for each instance evenly.</p>

<p>Is it possible?</p>
",https://stackoverflow.com/questions/48901143/break-feeder-file-into-sections,['gatling'],72,FALSE,0,0
Concurrent open statements and Out of Package Error Occurred in when migrated to jboss eap 6.4 from websphere 7.0,"<p>We are facing below issue when migrated existing application from webspere 7 to jboss eap 6.4. Please help me on solving the issue.</p>

<p>Existing setup:</p>

<p>WAS 7
IBM DB2 database
spring 1.2</p>

<p>Migrated setup:</p>

<p>jboss eap 6.4
IBM DB2 database(no change)
spring 3.2.0</p>

<p>We are facing the issue when we do the load testing on the application.</p>

<p>Issue:</p>

<pre><code>Concurrently open statements:
some queries displayed here

Number of statements:  1818
query here
Number of statements:  1756
query here
Number of statements:  368
query here
Number of statements:  255
query here
Number of statements:  13
query here
Number of statements:  6
query here
Number of statements:  3
query here
Number of statements:  1
query here

WARN  [org.hibernate.jdbc.AbstractBatcher] (ajp-/IP address) exception clearing maxRows/queryTimeout: com.ibm.db2.jcc.am.SqlException:NULLID.XXXX
        at com.ibm.db2.jcc.am.ed.a(ed.java:682)
    at com.ibm.db2.jcc.am.ed.a(ed.java:60)
    at com.ibm.db2.jcc.am.ed.a(ed.java:127)
    at com.ibm.db2.jcc.am.Agent.copyAsUnchainedSQLException(Agent.java:559)
    at com.ibm.db2.jcc.am.Agent.chainDeferredExceptionsToAgentOrAsConnectionWarnings(Agent.java:514)
    at com.ibm.db2.jcc.am.Sqlca.getJDBCMessage(Sqlca.java:336)
    at com.ibm.db2.jcc.am.SqlExceptionContainer.getMessage(SqlExceptionContainer.java:80)
    at com.ibm.db2.jcc.am.SqlException.getMessage(SqlException.java:54)
    at java.lang.Throwable.getLocalizedMessage(Throwable.java:391) [rt.jar:1.8.0_77]
    at java.lang.Throwable.toString(Throwable.java:480) [rt.jar:1.8.0_77]
    at java.lang.String.valueOf(String.java:2994) [rt.jar:1.8.0_77]
    at java.io.PrintWriter.println(PrintWriter.java:754) [rt.jar:1.8.0_77]
    at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) [rt.jar:1.8.0_77]
    at java.lang.Throwable.printStackTrace(Throwable.java:655) [rt.jar:1.8.0_77]
    at java.lang.Throwable.printStackTrace(Throwable.java:721) [rt.jar:1.8.0_77]
    at com.dynatrace.diagnostics.agent.introspection.Introspection.a(Unknown Source)
    at com.dynatrace.diagnostics.agent.introspection.Introspection.a(Unknown Source)
    at com.dynatrace.diagnostics.agent.introspection.Introspection.MethodException(Unknown Source)
    at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:472)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120) [hibernate3.jar:]
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1272) [hibernate3.jar:]


2018-09-04 04:40:59,251 WARN  [org.hibernate.util.JDBCExceptionReporter] (ajp-/IP address) SQL Error: -805, SQLState: 51002
2018-09-04 04:40:59,286 ERROR [stderr] (ajp-/10.204.106.115:8109-11) ***** Out of Package Error Occurred (2018-09-04 04:40:59.286) *****
2018-09-04 04:40:59,286 ERROR [stderr] (ajp-/10.204.106.115:8109-11)
2018-09-04 04:40:59,286 ERROR [stderr] (ajp-/10.204.106.115:8109-11) Exception stack trace:
2018-09-04 04:40:59,286 ERROR [stderr] (ajp-/10.204.106.115:8109-11) com.ibm.db2.jcc.am.SqlException: NULLID.XXXX
</code></pre>
",https://stackoverflow.com/questions/52205766/concurrent-open-statements-and-out-of-package-error-occurred-in-when-migrated-to,"['spring', 'db2', 'jboss6.x']",951,FALSE,0,0
Connection closed prematurely with Springboot 2.0.3-RELEASE version,"<p>We are seeing too many ""Connection closed prematurely &amp; reset by peer"" error while invoking downstream RESTful services, even after upgrading the Springboot version to latest as few experts suggested.</p>

<p>We tried to reproduce it, but couldn't reproduce in dev. And it is happening in load testing and when there is too much load to application.</p>

<p>StackTrace:</p>

<pre><code>Suppressed: java.io.IOException: Connection closed prematurely
    at reactor.ipc.netty.http.client.HttpClientOperations.onInboundClose(HttpClientOperations.java:269)
    at reactor.ipc.netty.channel.ChannelOperationsHandler.channelInactive(ChannelOperationsHandler.java:113)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
    at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:420)
    at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:377)
    at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)
    at io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:282)
    at io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:223)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
    at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:377)
    at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)
    at io.netty.handler.ssl.SslHandler.channelInactive(SslHandler.java:1028)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1429)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
    at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:947)
    at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:822)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    ... 1 common frames omitted
</code></pre>

<p>Any help and suggestion is appreciated, thanks in advance.</p>
",https://stackoverflow.com/questions/51427583/connection-closed-prematurely-with-springboot-2-0-3-release-version,"['spring-boot', 'reactor-netty']",3970,FALSE,5,0
VSTS Release Phase Condition,"<p>I have a release pipeline including 3 phases. The first phase has some load testing I use to warm-up a website. When I run out of VUM, the load testing of course fails. </p>

<p>I configured an agentless phase (second) to warm-up the site by hand (run only when a previous phase failed).</p>

<p>Then after the warmup (either by hand or by load test) I want to swap some azure slot and call some api's in the last (third) phase. I can't find a condition for this phase. It needs to run only when the manual phase is approved (and not when rejected) or when the load test did work (aka got enough VUM)</p>

<p>BTW; I tried creating a manual condition using a variable. But i couldn't find a way (except maybe by hand) to set the variable to true when approving the serverless phase.</p>

<p>(sorry i could think of a better short title)</p>
",https://stackoverflow.com/questions/48265764/vsts-release-phase-condition,['azure-pipelines-release-pipeline'],130,FALSE,0,1
Python locust not working in AWS instances,"<p>I am trying to use locust in ec2 instance for load testing of my project. So, I have installed locust using this command:</p>

<pre><code>python -m pip install locustio
</code></pre>

<p>I got this below response:</p>

<pre><code>Requirement already satisfied: locust in /usr/local/lib/python2.7/site-packages (0.0)
Requirement already satisfied: locustio in /usr/local/lib/python2.7/site-packages (from locust) (0.9.0)
Requirement already satisfied: six&gt;=1.10.0 in /usr/local/lib/python2.7/site-packages (from locustio-&gt;locust) (1.11.0)
Requirement already satisfied: msgpack&gt;=0.4.2 in /usr/local/lib64/python2.7/site-packages (from locustio-&gt;locust) (0.5.6)
Requirement already satisfied: requests&gt;=2.9.1 in /usr/local/lib/python2.7/site-packages (from locustio-&gt;locust) (2.19.1)
Requirement already satisfied: gevent&gt;=1.2.2 in /usr/local/lib64/python2.7/site-packages (from locustio-&gt;locust) (1.3.6)
Requirement already satisfied: pyzmq&gt;=16.0.2 in /usr/local/lib64/python2.7/site-packages (from locustio-&gt;locust) (17.1.2)
Requirement already satisfied: flask&gt;=0.10.1 in /usr/local/lib64/python2.7/site-packages (from locustio-&gt;locust) (1.0.2)
Requirement already satisfied: chardet&lt;3.1.0,&gt;=3.0.2 in /usr/local/lib/python2.7/site-packages (from requests&gt;=2.9.1-&gt;locustio-&gt;locust) (3.0.4)
Requirement already satisfied: urllib3&lt;1.24,&gt;=1.21.1 in /usr/local/lib/python2.7/site-packages (from requests&gt;=2.9.1-&gt;locustio-&gt;locust) (1.23)
Requirement already satisfied: certifi&gt;=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests&gt;=2.9.1-&gt;locustio-&gt;locust) (2018.8.24)
Requirement already satisfied: idna&lt;2.8,&gt;=2.5 in /usr/local/lib/python2.7/site-packages (from requests&gt;=2.9.1-&gt;locustio-&gt;locust) (2.6)
Requirement already satisfied: greenlet&gt;=0.4.14; platform_python_implementation == ""CPython"" in /usr/local/lib64/python2.7/site-packages (from gevent&gt;=1.2.2-&gt;locustio-&gt;locust) (0.4.15)
Requirement already satisfied: itsdangerous&gt;=0.24 in /usr/local/lib/python2.7/site-packages (from flask&gt;=0.10.1-&gt;locustio-&gt;locust) (0.24)
Requirement already satisfied: Jinja2&gt;=2.10 in /usr/local/lib/python2.7/site-packages (from flask&gt;=0.10.1-&gt;locustio-&gt;locust) (2.10)
Requirement already satisfied: Werkzeug&gt;=0.14 in /usr/local/lib/python2.7/site-packages (from flask&gt;=0.10.1-&gt;locustio-&gt;locust) (0.14.1)
Requirement already satisfied: click&gt;=5.1 in /usr/local/lib64/python2.7/site-packages (from flask&gt;=0.10.1-&gt;locustio-&gt;locust) (7.0)
Requirement already satisfied: MarkupSafe&gt;=0.23 in /usr/local/lib/python2.7/site-packages (from Jinja2&gt;=2.10-&gt;flask&gt;=0.10.1-&gt;locustio-&gt;locust) (1.0)
</code></pre>

<p>I was thinking, locust is already installed. But when I execute my python script to start the server, it says below:</p>

<pre><code>bash: locust: command not found
</code></pre>

<p>Can anyone please help me understand what's going wrong here? Thanks in advance.</p>
",https://stackoverflow.com/questions/52577808/python-locust-not-working-in-aws-instances,"['python', 'locust']",1041,TRUE,0,1
The proxy server is refusing connections JMeter,"<p>I am trying to load test for my web application. I followed all the steps as per JMeter guide. After that enable proxy server also using port number 8080.</p>

<p><strong>Please take a look my proxy server description in Firefox:<br/></strong>
<a href=""https://i.stack.imgur.com/JI0S3.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/JI0S3.png"" alt=""Please take a look my proxy server description in Firefox""></a></p>

<p><strong>Please check my JMETER Configuration<br/></strong>
<a href=""https://i.stack.imgur.com/oRfVe.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/oRfVe.png"" alt=""Please check my JMETER Configuration""></a></p>

<p><strong>Output after did all configuration<br/></strong>
<a href=""https://i.stack.imgur.com/ZFLIC.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/ZFLIC.png"" alt=""Output after did all configuration""></a></p>

<p>I am new for JMETER load testing, hope you guys will help to solve this problem.</p>
",https://stackoverflow.com/questions/49912954/the-proxy-server-is-refusing-connections-jmeter,"['jmeter', 'load-testing']",4511,TRUE,2,4
How to set eom byte in jmeter?,"<p>I am load testing a tcp server in jmeter in gui mode and getting this error</p>

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

<p>I read about adding end of line byte but my data kind of has 2 bytes as ending message byte = ""0d0a""</p>

<p>How can I use BinaryTCPClientImpl class and set this eombyte?</p>

<p>2) I have always used the gui mode, do I have to extend the BinaryTCPClientImpl class to set the eombyte?</p>
",https://stackoverflow.com/questions/48215009/how-to-set-eom-byte-in-jmeter,"['java', 'jmeter', 'load-testing']",406,FALSE,1,0
Close to 50% threads are in BLOCKED state while sending some concurrent requests,"<p>Basic configuration for tomcat is as follows:</p>

<pre><code>&lt;Executor name=""tomcatThreadPool"" namePrefix=""catalina-exec-"" maxThreads=""500"" minSpareThreads=""30"" maxIdleTime=""60000"" prestartminSpareThreads = ""true"" /&gt;

 &lt;Connector port=""80"" protocol=""org.apache.coyote.http11.Http11Nio2Protocol""
    maxThreads=""200"" minSpareThreads=""10"" acceptCount=""100""
    maxConnections=""10000"" acceptorThreadCount=""4"" URIEncoding=""UTF-8"" redirectPort=""8443""/&gt; 
</code></pre>

<p>While doing load testing with JMeter, simulating some concurrent users, like 2000, from thread dump log, close to 50% threads are in BLOCKED state, which are waiting to lock the same resource &lt;0x00000007401424d0>, as follows:</p>

<pre><code>“http-nio2-80-exec-3"" #19 daemon prio=5 os_prio=0 tid=0x00007f7090635000 nid=0x6bab waiting for monitor entry [0x00007f70705be000]
   java.lang.Thread.State: BLOCKED (on object monitor)
at org.apache.log4j.Category.callAppenders(Category.java:204)
- waiting to lock &lt;0x00000007401424d0&gt; (a org.apache.log4j.spi.RootLogger)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.info(Category.java:666)
</code></pre>

<p>Then find out the following thread which locks the resource &lt;0x00000007401424d0>, as follows, could anyone help look at what's going on here?</p>

<pre><code>“http-nio2-80-exec-1"" #17 daemon prio=5 os_prio=0 tid=0x00007f7090631000 nid=0x6ba9 runnable [0x00007f70706c0000]
   java.lang.Thread.State: RUNNABLE
at java.io.FileOutputStream.writeBytes(Native Method)
at    java.io.FileOutputStream.write(FileOutputStream.java:326)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291
  at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
- locked &lt;0x00000007420ef208&gt; (a java.io.OutputStreamWriter)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:59)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:324)
at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:369)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
- locked &lt;0x0000000741000de8&gt; (a org.apache.log4j.DailyRollingFileAppender)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
- locked &lt;0x00000007401424d0&gt; (a org.apache.log4j.spi.RootLogger)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.debug(Category.java:260)
</code></pre>
",https://stackoverflow.com/questions/49833136/close-to-50-threads-are-in-blocked-state-while-sending-some-concurrent-requests,['tomcat8'],273,FALSE,0,0
How to test Web Services with Elixir?,"<p>We have a couple of REST APIs that need to be tested. APIs are owned by some other team. Currently, we use <strong>Node.js</strong> with <strong>Ava</strong> to test our APIs.</p>

<p>We have recently started exploring Elixir as our scripting language. We would like to experiment with Elixir to test REST API. The question here is - <strong>how to test external web services/REST API with Elixir?</strong></p>

<p>Every Google search around Elixir testing refers back to ExUnit which is basically for unit testing of Elixir apps. We don't have any app written in Elixir or in Phoenix.</p>

<p>All we want to do is to test API end-to-end. How to do that with Elixir? Which libraries to use? I know I can make network calls from my tests written in ExUnit and verify the API behavior, but not sure if it is the right way.</p>

<p><em>NOTE: We already have JMeter in place for load testing of API but we wish to keep functional testing separate from load testing due to complex workflows involved with API.</em></p>
",https://stackoverflow.com/questions/51626365/how-to-test-web-services-with-elixir,"['testing', 'automated-tests', 'elixir', 'web-api-testing']",582,TRUE,1,1
How to generate allure reports after run testNG test for several times,"<p>I have recently tried to API load testing, and I choose maven+OKHTTP+allure reports+jenkins, 
  when I just try one time run everything is fine, the reports get generated successfully but after that I make the test run for 100 times, 
  then I just look at the reports - it's only showing the first time runs.
  Did anyone face the same issue? Please help.</p>

<p><a href=""https://i.stack.imgur.com/XGN2d.png"" rel=""nofollow noreferrer"">TestNGcode</a>
  <a href=""https://i.stack.imgur.com/zzWEK.png"" rel=""nofollow noreferrer"">Allureports</a></p>
",https://stackoverflow.com/questions/52181426/how-to-generate-allure-reports-after-run-testng-test-for-several-times,"['testng', 'allure']",964,FALSE,0,1
Many Phusion Passenger processess spawn and stick around,"<p>I'm using Phusion Passenger Standalone 5.3.4 with a Rails 5 application. After some load testing yielded some less then satisfactory results I decided to look at some of the processes under the hood and discovered quite a number of different Passenger-related processes, with names ranging from ""Passenger Watchdog"", ""Passenger Core"", ""Passenger AppPreloader"" all spawning and sticking around. They seemed to remain for a little while even after I stopped my load testing, needlessly using up precious memory on the server.</p>

<p>Is it normal for Passenger to be spawning dozens of these processes mentioned above for a meager amount of traffic (I was only testing with 20 concurrent users). If the quantity of these processes is normal, is it also normal for them to stick around even after the traffic has left the website?</p>

<p><a href=""https://i.stack.imgur.com/VFm1F.png"" rel=""nofollow noreferrer"">lots of passenger processes</a></p>

<p>For additional context, I'm running all of this on an Ubuntu 16.04 VM, and I'm also leveraging Systemd in <code>Type=forking</code> config. I'm not passing any particular options to Passenger at the moment, for the most part everything is just using default configurations.</p>
",https://stackoverflow.com/questions/52351384/many-phusion-passenger-processess-spawn-and-stick-around,"['nginx', 'ruby-on-rails-5', 'passenger', 'systemd']",418,FALSE,1,1
How to send http request without waiting for response from server,"<p>We are planning to do load testing of our server and we need to generate heavy load from Jmeter tool. But as per i know, jmeter waits for the response to create another request thread. Is there a way to create http request without waiting for response from the server using jmeter? if not, what are the available work around to generate heavy load keeping number of threads fixed?</p>
",https://stackoverflow.com/questions/49747921/how-to-send-http-request-without-waiting-for-response-from-server,"['jmeter', 'jmeter-4.0']",4454,TRUE,2,2
Scripting Issue with JMeter for Cognito applications,"<p>I am facing some problem while doing the load testing with Cognito based applications using JMeter. While capturing the request I have observed that ""PASSWORD_CLAIM_SIGNATURE"" parameter which is added by AWS SDK. It is impossible to capture it before that request as it is passed in that request. The particular request is failing. I am blocking to create the script. Did anyone work successfully on similar things which can help me?</p>
",https://stackoverflow.com/questions/53737674/scripting-issue-with-jmeter-for-cognito-applications,['jmeter-4.0'],235,FALSE,1,0
(Async &amp; await) vs (without Async &amp; await) in Web API,"<p>I am new with Async and await using C# Programming. In WebAPI, we have created two API Controllers one with Async and await Programming and other is without that. We have done load testing using JMeter and we have got following results.</p>

<pre><code>Users          Sync                                         Async
</code></pre>

<hr>

<pre><code>100           No Errors                                    No Errors                             
500           No Errors                                    No Errors                             
750           No Errors                                    Errors - (59.0 %) - 502 Bad Gateway   
763           No Errors                                    Errors                                
764           No Errors                                    Errors                                
765           Errors - (0.13 %) - 502 Bad Gateway          Errors
1000          Errors                                      Errors                                
</code></pre>

<p>Can you any please explain/suggest which approach is best or how can we proceed ?</p>

<h1>API Code :</h1>

<h1>GetPersonalDetailsController - Async and await Used</h1>

<pre><code>public async Task&lt;IHttpActionResult&gt; GET([FromUri] RequestQueryListDTO objAPIRequest)
{
    DateTime startResponseTime = DateTime.Now;
    Response objResponse = null;
    string strResponse = string.Empty;
    var HeaderType = Request.Content.Headers.ContentType;
    ProductBAL objProductBAL = null;
    try
    {
        if (objAPIRequest != null)
        {
            Task&lt;Response&gt; tskGetProductDetails = Task&lt;Response&gt;.Run(() =&gt;
            {
                objProductBAL = new ProductBAL();
                return objProductBAL.GetProductDetails(objAPIRequest);

                //Business Access Layer Logic calling
            });
            objResponse = await tskGetProductDetails;
        }
        else
        {
            objResponse = new Response();
            objResponse.ReturnCode = -1;
            objResponse.ReturnMessage = ""Missing Parameters."";
        }
    }
    catch (Exception ex)
    {
        \\ Exception Logging
    }
    finally
    {
        objProductBAL = null;
    }
    objResponse.ResponseTime = Math.Round((DateTime.Now - startResponseTime).TotalMilliseconds).ToString();
    if (objResponse.ReturnCode == Convert.ToInt32(General.ReturnCode))
    {
        return Content&lt;Response&gt;(HttpStatusCode.BadRequest, objResponse);
    }
    else
    {
        return Ok(objResponse);
    }
}
</code></pre>

<p>========================================================================</p>

<h1>GetPDPController  - Without using Async and await</h1>

<pre><code>public IHttpActionResult GET([FromUri] RequestQueryListDTO objAPIRequest)
{
    DateTime startResponseTime = DateTime.Now;
    Response objResponse = null;
    string strResponse = string.Empty;
    var HeaderType = Request.Content.Headers.ContentType;

    try
    {
        if (objAPIRequest != null)
        {
            //Business Access Layer Logic calling
        }
        else
        {
            objResponse = new Response();
            objResponse.ReturnCode = -1;
            objResponse.ReturnMessage = ""Missing Parameters."";
        }
    }
    catch (Exception ex)
    {
        // Exception Logging Code
    }
    finally
    {
        objProductBAL = null;
    }
    objResponse.ResponseTime = Math.Round((DateTime.Now - startResponseTime).TotalMilliseconds).ToString();
    if (objResponse.ReturnCode == Convert.ToInt32(General.ReturnCode))
    {
        return Content&lt;Response&gt;(HttpStatusCode.BadRequest, objResponse);
    }
    else
    {
        return Ok(objResponse);
    }
}
</code></pre>
",https://stackoverflow.com/questions/49271052/async-await-vs-without-async-await-in-web-api,"['c#', 'asynchronous', 'async-await']",369,FALSE,1,1
Dynamodb table query time not decreasing even if i increase provisioned RCU,"<p>I have a dynamodb table User whith following attributes-</p>

<pre><code>userBirthYear - partition key- number
userDOB - sort key (number -in millisecond)
searchable - attribute (bool)
country - attribute (string)
</code></pre>

<p>Our query is - find user between an age range where searchable= true and country=xyz
Currently we query for each birthYear calculated using age range and merge result at the end.</p>

<p>We have provisioned RCU 500 and while load testing for some queries response time is not coming less than 1 second even if we increase the RCU to 1000.</p>
",https://stackoverflow.com/questions/53630155/dynamodb-table-query-time-not-decreasing-even-if-i-increase-provisioned-rcu,"['nosql', 'amazon-dynamodb', 'dynamodb-queries']",104,FALSE,1,0
How to prevent concurrency lock on flushBuffer in Spring Boot Tomcat Jackson?,"<p>I am having issues with concurrency when writing JSON out from my Spring Boot WAR app deployed to Tomcat 8.  In the screenshot from AppDynamics there seems to be a considerable wait when the jackson library is performing _flushBuffer.</p>

<p>This issue arises under load testing for even a small amount (&lt; 10) users.</p>

<p>I have configured the messageConverters in my configuration class.</p>

<pre><code>    @Override
    public void configureMessageConverters(List&lt;HttpMessageConverter&lt;?&gt;&gt; converters) {
        converters.add(new MappingJackson2HttpMessageConverter(
            new Jackson2ObjectMapperBuilder().dateFormat(new SimpleDateFormat(""yyyy-MM-dd'T'HH:mmZ"")).mixIn(LiquidAssignment.class,
                    InventoryProviderAssignmentMixin.class)
                    .deserializerByType(ActionData.class, new ActionDataDeserializer()).build()));
        converters.add(new MappingJackson2XmlHttpMessageConverter());
    }
</code></pre>

<p>I am using 
Spring Boot 1.5.4
Java 1.8
Jackson 2.9.7
Tomcat 8.5.33</p>

<p><img src=""https://i.stack.imgur.com/57UJd.gif"" alt=""AppDynamics screenshot""></p>
",https://stackoverflow.com/questions/53269696/how-to-prevent-concurrency-lock-on-flushbuffer-in-spring-boot-tomcat-jackson,"['java', 'spring', 'spring-boot', 'tomcat', 'jackson']",1491,TRUE,4,1
Unable to delete entities from command line,"<p>I am trying to run import on non prod env using the prod exported data but do not know how to delete all the kids from command line before starting import. Since we are creating fake data for load testing, it is essential to delete all the kinds and perform fresh import. I can delete the kinds manually from datastore admin but would like to do it programmatically.</p>
",https://stackoverflow.com/questions/53771650/unable-to-delete-entities-from-command-line,"['google-cloud-platform', 'google-cloud-datastore']",71,FALSE,-1,1
Cannot Convert from column 4 to TIMESTAMP,"<p>I am getting a MySQL exception after approximately 2 hours of load testing.</p>

<p>This is the error I'm getting</p>

<p><a href=""https://i.stack.imgur.com/O6jb0.png"" rel=""nofollow noreferrer"">Tomcat Error Log</a></p>

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

<pre><code>rs = prstmt.executeQuery();

if(rs!=null) {
    test = new ArrayList&lt;NewBidListingVO&gt;();
    while(rs.next()) {
        NewBidListingVO row = new NewBidListingVO();

        row.setAbcOrgID(rs.getString(""abc_org_id""));
        row.setAbcOprID(rs.getString(""abc_opr_id""));
        row.setAbcTranID(rs.getString(""abc_tranid""));
        //row.setAbcTrnDate(rs.getString(""abc_trndate""));
        timeStamp = rs.getTimestamp(""abc_trndate"");
        row.setAbcTrnDate((timeStamp != null) ? timeStamp.toString():null);

        row.setAbcLotID(rs.getString(""abc_lot_id""));
        row.setAbcBidType(rs.getString(""abc_bid_type""));
        //row.setAbcBidID(rs.getString(""abc_bid_id""));

        //row.setAbcStartDate(rs.getString(""abc_start_date""));
        timeStamp = rs.getTimestamp(""abc_start_date"");
        row.setAbcStartDate((timeStamp != null) ? timeStamp.toString():null);
</code></pre>

<p>Previously I had tried <code>rs.getString()</code>, but that caused the same error. So, I tried <code>getTimestamp()</code> instead but the problem still persists. The MySQL column is of DATETIME type.</p>

<p>I am using Mysql version 5.5.6 and mysql-connector-java-5.1.45-bin.jar as jdbc.</p>
",https://stackoverflow.com/questions/48577573/cannot-convert-from-column-4-to-timestamp,"['java', 'mysql', 'jdbc', 'mysql-connector']",483,FALSE,0,0
Node Process hangs when saving many pubnub instances in memory,"<p>When load testing the program i was using pubnub for creating some integration i sent around 2000 request and on each request pubnub instance was created with different pub,sub keys and subscription to channel and listeners added but after some time when there is network issue pubnub throws socket hang up error and the memory starts spiking and eventually process is killed though i am destroying pubnub object when there is failure in subscription.</p>

<pre><code>class pubnub{
  private config;
  private pubnub;
  constructor(options){
    this.config = options
  }
  register(callback) {
    let timetoken = null;
    this.pubnub = new Pubnub({
      publish_key: options.publish_key,
      subscribe_key: options.subscribe_key,
      ssl: true,
      keepAlive: true
    });

    this.pubnub.addListener({
      message: function (m) {
        // console.log('----------------- ', m);
        if (timetoken !== m.timetoken) {
          timetoken = m.timetoken;
        }
      },
      status: function (m) {
        console.log(m);
          if (m &amp;&amp; m.error === true) {
            this.pubnub.destroy(true);  
            return callback(m.errorData);
          }
          callback(null, true);
        }
      }
    });


    this.pubnub.subscribe({
      channels: option.channels
    });
  }
}
</code></pre>
",https://stackoverflow.com/questions/50754145/node-process-hangs-when-saving-many-pubnub-instances-in-memory,"['node.js', 'sockets', 'pubnub']",103,FALSE,2,0
"angular universal app performance, APP_BOOTSTRAP_LISTENER, flicker","<pre><code>Angular 4.4.6
Angular CLI 1.3.2
Node 6.x.x
NPM 3.10.10
Webpack 3.4.1
</code></pre>

<p>In Angular Universal application when server view sift to client view there is flicker of screen, because all the API's which were called in server side rendering, also called in client side rendering, due to there was a flicker.</p>

<p>To remove this flicker I implemented Angular Universal Transfer Module, it stores data in a Map cache (<code>private _map = new Map&lt;string, any&gt;();</code>) while in server side rendering, and transfers it to client so client does not need to call the api again and imediately have the data from cache.</p>

<p>And the transfer was through this provider.</p>

<pre><code>{
    provide: APP_BOOTSTRAP_LISTENER,
    useFactory: onBootstrap,
    multi: true,
    deps: [
        ApplicationRef,
        TransferState
    ]
}

export function onBootstrap(appRef: ApplicationRef, transferState: TransferState) {
    return () =&gt; {
        appRef.isStable
        .filter(stable =&gt; stable)
        .first()
        .subscribe(() =&gt; {
            transferState.inject();
        });
    };
}
</code></pre>

<p>This way the flicker has gone, but application performace has decreased, on load testing the app, the flickered result is more faster than non-flickered app, why is that ?</p>

<p>May be because in case of load testing or in case of bots hitting the website there is no browser so the cache never get cleared and it just fill the server with cache memory and server gets slow, what could be the solution for that, either create different instace for bots and real user, by identifying request at nginx level, oe there is some other thing I'm missing in angular universal.</p>
",https://stackoverflow.com/questions/48365849/angular-universal-app-performance-app-bootstrap-listener-flicker,"['javascript', 'angular', 'nginx', 'angular-universal', 'server-side-rendering']",2634,TRUE,2,1
Jmeter random function is not working from java application,"<p>I want to make use of Jmeter Random function <code>(${__RandomString(10,0123456789,Value)})</code> in my java application for load testing.</p>

<h2>Below is maven dependency</h2>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.apache.jmeter&lt;/groupId&gt;
    &lt;artifactId&gt;ApacheJMeter_functions&lt;/artifactId&gt;
    &lt;version&gt;4.0&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>It is working properly If I add <code>ApacheJMeter_functions</code> jar to class path but the same is not working if I use Maven dependency.</p>

<p>Note : Works fine if I add jar to classpath without version name.</p>

<p>pom :</p>

<pre><code>&lt;project xmlns=""http://maven.apache.org/POM/4.0.0"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
    xsi:schemaLocation=""http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd""&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;artifactId&gt;performance-api&lt;/artifactId&gt;
    &lt;version&gt;0.1&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;

    &lt;dependencies&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-web-services&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.jmeter&lt;/groupId&gt;
            &lt;artifactId&gt;ApacheJMeter_core&lt;/artifactId&gt;
            &lt;version&gt;4.0&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.jmeter&lt;/groupId&gt;
            &lt;artifactId&gt;ApacheJMeter_http&lt;/artifactId&gt;
            &lt;version&gt;4.0&lt;/version&gt;
        &lt;/dependency&gt;

        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.jmeter&lt;/groupId&gt;
            &lt;artifactId&gt;ApacheJMeter_functions&lt;/artifactId&gt;
            &lt;version&gt;4.0&lt;/version&gt;
            &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;build&gt;
        &lt;plugins&gt;

            &lt;plugin&gt;
                &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                &lt;executions&gt;
                    &lt;execution&gt;
                        &lt;goals&gt;
                            &lt;goal&gt;repackage&lt;/goal&gt;
                        &lt;/goals&gt;
                        &lt;/execution&gt;
                &lt;/executions&gt;
            &lt;/plugin&gt;

        &lt;/plugins&gt;
    &lt;/build&gt;
&lt;/project&gt;
</code></pre>

<p><a href=""https://i.stack.imgur.com/jYtjq.png"" rel=""nofollow noreferrer"">Response when added ApacheJMeter_functions jar to class path without version name</a></p>

<p><a href=""https://i.stack.imgur.com/md1Bj.png"" rel=""nofollow noreferrer"">Response when added ApacheJMeter_functions dependency jar into pom</a></p>
",https://stackoverflow.com/questions/51552096/jmeter-random-function-is-not-working-from-java-application,['jmeter-5.0'],564,TRUE,1,1
Jmeter: Scenario to test 5 users with ramp up 1 hour to trigger 10 thousand requests,"<p>Jmeter: We have a scenario where 5 users should trigger 10 thousand requests in 1 hour, to achieve this below configurations have been done.</p>

<ol>
<li>Thread group - users - 5; ramp up - 3600 (secs); loop count - 1</li>
<li>Loop controller value: 10000</li>
<li>Request is under this Loop Controller</li>
</ol>

<p>When executed the above scenario, Jmeter is executing/triggering 5 users in 1 second only.</p>

<p>Are these configurations correct to achieve our scenario load testing output.</p>

<p>Please suggest and guide.</p>
",https://stackoverflow.com/questions/53274333/jmeter-scenario-to-test-5-users-with-ramp-up-1-hour-to-trigger-10-thousand-requ,['jmeter'],2006,TRUE,1,1
Tools to test the UI response for Android and IOS mobile applications,"<p>Requirement: To verify the UI response times for Android and IOS app.</p>

<p>I have an app for which I need to test the UI response times for the below scenarios.</p>

<ol>
<li>Launch the app</li>
<li>Customer registration by providing personal information.</li>
</ol>

<p>There are about 6-8 screens in the entire process and I would like to calculate the response time for each screen.</p>

<p>There is no load testing involved. Please suggest any tools. Thanks. </p>
",https://stackoverflow.com/questions/49975279/tools-to-test-the-ui-response-for-android-and-ios-mobile-applications,"['android', 'ios', 'user-interface', 'mobile-application']",186,FALSE,0,0
What would be the best way to add Performance Testing in Continuous Integration/Delivery Environment,"<p>I'm about to integrate performance testing on CI, but I'm having a hard time to decide which ones I should execute and how to run it:</p>

<ol>
<li>Should I run load testing on individual APIs or should I run the whole workflow (e.g.: <code>Login -&gt; Home Page -&gt; Search</code>)</li>
<li>How long I should run it? </li>
<li>Should I also add stress, peak and soak testing?<br>
I'm thinking, those should be run out of the CI.</li>
</ol>

<p>Any comments would be really appreciated.</p>
",https://stackoverflow.com/questions/49138684/what-would-be-the-best-way-to-add-performance-testing-in-continuous-integration,"['jmeter', 'continuous-integration', 'performance-testing', 'load-testing', 'continuous-deployment']",289,TRUE,0,3
How to do Perfomance testing with jmeter on visual lansa web application,"<p>We are executing performance testing on visual lansa web application</p>

<ol>
<li>we recorded our scenario in jmeter to execute load testing on lansa web application</li>
<li>when we playback again , came through some errors</li>
<li>where in a xhr post request we found multiple values to post, but now we are unable to find the values from the previous responses to correlate with this request.</li>
</ol>

<p>We got stuck in this situation. Please suggeat your ideas...</p>
",https://stackoverflow.com/questions/51195659/how-to-do-perfomance-testing-with-jmeter-on-visual-lansa-web-application,"['jmeter', 'performance-testing', 'load-testing', 'correlation', 'lansa']",90,FALSE,0,1
ALM-PC - Error &quot;Change Machine Identity Failed&quot; occurred while trying to add PC Host VM,"<p>I am using HPE-PC 12.55 version. While trying to add new PC host machine (already did host configurations), getting an error Change Machine Identity Failed.</p>
<p>Tried below resolutions in order to resolve issue but no luck -</p>
<ol>
<li>Restarted all ALM machines</li>
<li>Restarted IIS on PC servers and also restarted ALM service(s).</li>
<li>Added IUSR_METRO user as local administrators on host machine.</li>
<li>Restarted PC services of host machine [Performance Center Agent and Performance Center Load Testing Service]</li>
</ol>
<p><a href=""https://i.stack.imgur.com/XjIjN.jpg"" rel=""nofollow noreferrer"">Error screenshot</a></p>
",https://stackoverflow.com/questions/50389409/alm-pc-error-change-machine-identity-failed-occurred-while-trying-to-add-pc,"['loadrunner', 'alm', 'hp-performance-center']",660,FALSE,0,1
Hibernate Jpa - constraint violation exception on Primary Key(Sequence),"<p>I use Hibernate JPA in my application. I have a Table that has a Primary key(Sequence). Service inserts records to that table.</p>

<p>Version: Oracle 12c</p>

<p>Dialect: org.hibernate.dialect.Oracle10gDialect</p>

<p><strong>Issue :</strong></p>

<p>We face problem(Unique constraint violation on SEQUENCE Key) during the load testing. </p>

<p><strong>Questions :</strong></p>

<ol>
<li><p>This issue is not occurring all the time. But only during load test. Can someone please check and help to use thread safe generator?</p></li>
<li><p>Is it DB side sequence definition issue or at Java side?</p></li>
</ol>

<p><strong>DB Sequence :</strong></p>

<pre><code>CREATE SEQUENCE MY_SEQ    
START WITH 1
INCREMENT BY 1
NOMINVALUE
NOMAXVALUE
CACHE 30
NOORDER;

CREATE TABLE MY_TABLE    (  
    MY_PRIMARY_KEY INT default MY_SEQ.nextval NOT NULL,
    VALUE_COL VARCHAR2(10) NULL       
);
</code></pre>

<p><strong>Entity :</strong></p>

<pre><code>public class MyTableEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = ""MY_PRIMARY_KEY"")
    @GenericGenerator(
        name = ""mySequenceGenerator"",
        strategy = ""org.hibernate.id.enhanced.SequenceStyleGenerator"",
        parameters = {
                @Parameter(name = ""sequence_name"", value = ""SEQUENCE MY_SEQ""),
                @Parameter(name = ""increment_size"", value = ""1"")
        }
    )
    @GeneratedValue(generator = ""mySequenceGenerator"")
    private long myPrimaryKey;

    @Column(name = ""VALUE"")
    private String value;

}
</code></pre>
",https://stackoverflow.com/questions/53505794/hibernate-jpa-constraint-violation-exception-on-primary-keysequence,"['spring', 'multithreading', 'oracle', 'hibernate', 'jpa']",2814,TRUE,1,2
Gatling HTTP Proxy,"<p>I am load testing a double sited HA application, whose each site is accessed by a proxy.
I need to attack both proxies equally through Gatling in a circular manner. </p>

<p>To do so, I am looking for a method to feed my proxies' IPs to the proxy http conf, but it seems Gatling doesn't parse feeders variables in that place !!!</p>

<pre><code>val feeder = csv(""prxyList.csv"").circular
val scn = scenario(""My Scenario"")
  .feed(feeder)
  .exec(
    http(""My Request"")
    .proxy(Proxy(s""${proxyIP}"", 8080))
}
</code></pre>

<p>Is there a way to feed the peoxy IP in a round robin manner for each execution ?Any Help is appreciated</p>
",https://stackoverflow.com/questions/50658251/gatling-http-proxy,"['java', 'scala', 'proxy', 'load-testing', 'gatling']",1096,TRUE,1,1
dial tcp: getsockopt: connection refused on local testing,"<p>I have been using k6 for a couple of days to do load testing against and API in several different environments and chase down some bugs.</p>

<p>Everything was going great, until suddenly it started failing locally.</p>

<p>All requests result in the following error:</p>

<blockquote>
  <p>Request Failed   error=""Get <code>http://localhost:8000</code>: dial tcp [::1]:8000: getsockopt: connection refused""</p>
</blockquote>

<p>This only occurs in k6; I can still call the local API successfully through a browser, Postman, and cURL.</p>

<p>Is there any way to get more information out of k6 and figure out why it can't connect anymore?</p>
",https://stackoverflow.com/questions/48895411/dial-tcp-getsockopt-connection-refused-on-local-testing,['k6'],9407,TRUE,6,3
Is it possible to do recording on blaze meter while running protractor automation test?,"<p>We have a lot of UI automation scripts written in Typescript and we use Protractor with the Jasmine test framework to run them. They work great and now we want to do load testing with jMeter. </p>

<p>Is it possible to hook up these UI tests in jMeter instead of recording the same flows again separately? </p>

<p>I have read that Loadrunner allowed using winrunner scripts from the UI automation. I wanted to do something similar with my UI tests and jMeter. Is it feasible?</p>
",https://stackoverflow.com/questions/53315681/is-it-possible-to-do-recording-on-blaze-meter-while-running-protractor-automatio,"['jmeter', 'protractor']",244,FALSE,0,1
pm2 hangs and unable to restart process due to high numbers of request,"<p>For the purpose of load testing i created an API which request around 2000 bookings at a time and after hitting this API, server(AWS EC2 instance) reaches to the more than 20% of CPU consumption and consume almost all the memory(900/991M) of system. After that i was trying to restart node app with pm2 restart but it's not working and even ""pm2 ls"" and ""pm2 log"" commands are also not working. What can i do now to run my application again ?
List of command which i already run on server.</p>

<pre><code>pm2 restart pid &amp;&amp; pm2 log pid
pm2 ls
pm2 log pid
</code></pre>
",https://stackoverflow.com/questions/48109137/pm2-hangs-and-unable-to-restart-process-due-to-high-numbers-of-request,"['node.js', 'amazon-ec2', 'server', 'ubuntu-16.04', 'pm2']",7784,TRUE,5,2
Siege doesn&#39;t work with big header: [fatal] header is too large,"<p>I am trying to perform load testing of my end-point via connecting to some server via ssh and running siege command there against another server. Unfortunately, when I provide all my cookies in the request:</p>

<pre><code>-H $'Cookie:
</code></pre>

<p>It fails with the following message:</p>

<pre><code> [fatal] header is too large
</code></pre>

<p>Is there a way siege or other similar tool can work with large headers? Because without sending cookies, my requests don't make any sense and they can't emulate real scenario. </p>

<p>If there is any other tool, It should be something that can be easily run from the command line via ssh without GUI.</p>
",https://stackoverflow.com/questions/53615775/siege-doesnt-work-with-big-header-fatal-header-is-too-large,"['performance', 'testing', 'benchmarking', 'siege']",332,FALSE,4,0
How to get monitoring stats on Erlang Ranch,"<p>I'm new to Elixir. I'm getting timeouts from my Elixir app during load testing. Any idea how to find out, at any point in time, how many connections are open and how many requests are queued up waiting to be processed? I can already see that the node is hitting memory and cpu limits but I wanted more detailed info so I know what to tune.</p>

<p>I know Ranch has a <code>max_connections</code> setting but does it make available stats on how many open connections or or requests queued up?</p>
",https://stackoverflow.com/questions/49538951/how-to-get-monitoring-stats-on-erlang-ranch,"['erlang', 'elixir', 'cowboy', 'ranch']",357,TRUE,2,1
JMeter 4 remote testing in cloud with SSL keystore,"<p>I am setting up JMeter 4.0 for load testing in the cloud (GCE). I am creating VM images for the master and slave with the only difference being the slaves run jmeter-server on boot. I ran <code>bin/create-rmi-keystore.sh</code> per <a href=""http://jmeter.apache.org/usermanual/remote-test.html#setup_ssl"" rel=""nofollow noreferrer"">http://jmeter.apache.org/usermanual/remote-test.html#setup_ssl</a> and ensured the .jks file is on the master/client and all the slaves. 
Now, when I create multiple slave instances (new slave IPs), the load test fails due to SSL errors - </p>

<p><code>Configuring remote engine: 10.150.0.11
error during JRMP connection establishment; nested exception is:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Failed to configure 10.150.0.11</code></p>

<p>Can I avoid having to manually regenerate the keystore every time I plan a test run? </p>
",https://stackoverflow.com/questions/49797793/jmeter-4-remote-testing-in-cloud-with-ssl-keystore,"['performance', 'ssl', 'jmeter', 'cloud', 'keystore']",1572,TRUE,1,1
Azure Redis timeout with multiple instance of Azure webapp,"<p>I am using StackExchange's Redis client to read and write data to Azure Cache (C2). During load testing, if I use one instance of the webapp, the redis behaves fine without any error. However if I set multiple instance of the webapp (tried 5 instances with and without autoscaling), I get following error</p>

<pre><code>Timeout performing GET {key}, inst: 2, mgr: Inactive, err: never, queue: 0, qu: 0, qs: 0, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, clientName: {client}, serverEndpoint: Unspecified/{redis_server}, keyHashSlot: 13746, IOCP: (Busy=1,Free=999,Min=4,Max=1000), WORKER: (Busy=26,Free=32741,Min=4,Max=32767) (Please take a look at this article for some common client-side issues that can cause timeouts: http://stackexchange.github.io/StackExchange.Redis/Timeouts)
</code></pre>

<p>I tried increasing the <code>IOCP</code> and <code>WORKER</code> as well for the MVC project, which does show correct <code>Min</code> values but still gives the error.</p>

<p>Log with increased thread looks as below</p>

<pre><code>Timeout performing GET {key}, inst: 6, mgr: Inactive, err: never, queue: 1, qu: 0, qs: 1, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, clientName: {client}, serverEndpoint: Unspecified/{redis_server}, keyHashSlot: 13746, IOCP: (Busy=2,Free=998,Min=100,Max=1000), WORKER: (Busy=84,Free=32683,Min=200,Max=32767) (Please take a look at this article for some common client-side issues that can cause timeouts: http://stackexchange.github.io/StackExchange.Redis/Timeouts)
</code></pre>

<p>Any suggestion what could be causing this?</p>
",https://stackoverflow.com/questions/49481778/azure-redis-timeout-with-multiple-instance-of-azure-webapp,"['azure', 'redis', 'azure-web-app-service', 'stackexchange.redis', 'azure-redis-cache']",531,TRUE,1,1
How do I load test async response?,"<p>I am developing a bot application, using LUIS and MS Bot Framework, written in Node.js.</p>

<p>I am trying to load test my bot but the problem is that LUIS response is Async, which means my load test must be able to receive new incoming connection some time after the initial request.</p>

<p>Which framework would be able to handle this?  I looked at the following and none seem to be able to do it:  <code>JMeter</code>, <code>Dimon</code>, <code>Artillery</code>, <a href=""https://blog.botframework.com/2017/06/19/load-testing-a-bot/"" rel=""nofollow noreferrer"">Bot Framework Load Testing</a>.</p>

<p>EDIT:  What about QMetry?  Anyone having experience can comment on its feasibility?</p>
",https://stackoverflow.com/questions/49265763/how-do-i-load-test-async-response,"['node.js', 'botframework', 'load-testing']",130,FALSE,1,0
JMETER - Using recorder for HTTPS requests for an IP adress (instead of a domain name),"<p>I have some load testing to do. My web application does not have a domaine name (only an IP adress) and uses HTTPS.</p>

<p>When try to top use JMeter's Script Recorder, I get the following error in my web browser:</p>

<pre><code>An error occurred during a connection to 188.165.49.217:8443. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
</code></pre>

<p>And if I look at JMeter's log I see the following:</p>

<pre><code>Problem with keystore
java.io.IOException:   &gt;&gt; erreur keytool : java.lang.RuntimeException: 
java.io.IOException: DNSName components must begin with a letter &lt;&lt;
Command failed, code: 1
'""C:\Program Files (x86)\Java\jre1.8.0_121\bin\keytool"" -genkeypair -alias 1XX.XXX.XX.XXX -dname ""cn=1XX.XXX.XX.XXX, o=JMeter Proxy (TEMPORARY TRUST ONLY)"" -keyalg RSA -keystore proxyserver.jks -storepass {redacted} -keypass {redacted} -validity 7 -ext san=dns:1XX.XXX.XX.XXX'
    at org.apache.jorphan.exec.KeyToolUtils.genkeypair(KeyToolUtils.java:171) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jorphan.exec.KeyToolUtils.generateSignedCert(KeyToolUtils.java:285) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jorphan.exec.KeyToolUtils.generateHostCert(KeyToolUtils.java:276) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jmeter.protocol.http.proxy.ProxyControl.updateKeyStore(ProxyControl.java:1563) ~[ApacheJMeter_http.jar:4.0 r1823414]
    at org.apache.jmeter.protocol.http.proxy.Proxy.getSSLSocketFactory(Proxy.java:324) [ApacheJMeter_http.jar:4.0 r1823414]
    at org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:429) [ApacheJMeter_http.jar:4.0 r1823414]
    at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:194) [ApacheJMeter_http.jar:4.0 r1823414]
2018-04-16 17:33:24,397 WARN o.a.j.p.h.p.Proxy: [61014]  Unable to negotiate SSL transaction, no keystore?
2018-04-16 17:33:24,397 ERROR o.a.j.p.h.p.Proxy: [61014]  Exception when processing sample java.io.IOException: Unable to negotiate SSL transaction, no keystore?
        at org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:446) ~[ApacheJMeter_http.jar:4.0 r1823414]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:194) [ApacheJMeter_http.jar:4.0 r1823414]
2018-04-16 17:33:24,398 WARN o.a.j.p.h.p.Proxy: [61014]  Exception while writing error java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method) ~[?:1.8.0_121]
    at java.net.SocketOutputStream.socketWrite(Unknown Source) ~[?:1.8.0_121]
        at java.net.SocketOutputStream.write(Unknown Source) ~[?:1.8.0_121]
        at java.io.DataOutputStream.writeBytes(Unknown Source) ~[?:1.8.0_121]
        at org.apache.jmeter.protocol.http.proxy.Proxy.writeErrorToClient(Proxy.java:561) 
[ApacheJMeter_http.jar:4.0 r1823414]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:258)     [ApacheJMeter_http.jar:4.0 r1823414]
</code></pre>

<p>The way I see it, the JMeterScript Recorder does not accept IP adresses for HTTPS recording, Am I right? Is there any way to around that (besides usin a domain name for my we app)?</p>

<p>Regards
Elie</p>
",https://stackoverflow.com/questions/49861413/jmeter-using-recorder-for-https-requests-for-an-ip-adress-instead-of-a-domain,"['https', 'jmeter']",1199,TRUE,1,2
how to execute a code based on some ratio?,"<p>I know the heading might not give you a clarity . let me  explain here</p>

<p>I have a test case (load testing) in visual studio.The requirement is, it has to access different url based on the allocation which is given in the web.config file.</p>

<p>In web.config I have a set of value   </p>

<pre><code>&lt;appSettings&gt;
&lt;add key=""Allocation1"" value=""20""/&gt;
&lt;add key=""Allocation2"" value=""80""/&gt;
&lt;/appSettings&gt;
</code></pre>

<p>While running the test I want to access the 1st url 20% and 2nd url 80%. Means if the first url selected 2 times then next 8 times 2nd url should be selected . </p>

<p>can anyone have a clue that , is that achievable? any leads ? </p>
",https://stackoverflow.com/questions/50213444/how-to-execute-a-code-based-on-some-ratio,"['c#', 'asp.net', 'visual-studio', 'performance']",69,TRUE,1,1
Is seeing high CPU utilization always bad?,"<p>Let's take couple of scenarios here:</p>

<ol>
<li>I have a web application which reaches a CPU of 90% whenever I make couple of requests to a specific end point.</li>
<li>I am load testing my other web application where I see a throughput of 100,000 requests/second. Here also I see a CPU of 90%.</li>
</ol>

<p>In scenario #1, I can understand that this is pretty bad, but how should one decide if this is good/bad. I mean 100,000 requests is pretty huge, so how does one decide if the utilization is bad?</p>
",https://stackoverflow.com/questions/50433920/is-seeing-high-cpu-utilization-always-bad,"['web-applications', 'performance-testing']",217,FALSE,0,0
SAP Fiori Performance Testing,"<p>I need to do load-testing for SAP Fiori using HP load runner.</p>

<p>For SAP GUI Vusers to run need large number of GDI's in LG machine to overcome this. Terminal Server concept is brought in to picture this is fine for testing large number of Vusers on LG machine.
Here my doubt is, for SAP Fiori(html5 0r sapgui5) Vusers. Is it requires large number of GDI's(Graphical Device Interface) for testing Vusers on LG Machine again terminal server concept should brought back to solve?</p>

<p>Regards &amp; Thanks,
Venkateshs.</p>
",https://stackoverflow.com/questions/53612913/sap-fiori-performance-testing,['sapui5'],630,FALSE,0,0
Passing visual studio webtests fail in test explorer,"<p>I have a web performance and load testing project which executes as epected when I open the test definition and hit run however fails when i run through test explorer.</p>

<p>I have narrowed this down to only tests which reference another project in the solution (utilities project for custom validators).</p>

<p>when running tests via test explorer it errors with <code>Request failed: Could not load file or assembly 'PerformanceTestingUtilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.</code> However works fine if I open the test and hit run.</p>

<p>What could be causing this to happen? I get no errors on build and nothing in the output.</p>
",https://stackoverflow.com/questions/52814796/passing-visual-studio-webtests-fail-in-test-explorer,"['visual-studio', 'testing', 'performance-testing', 'webtest', 'test-explorer']",73,FALSE,0,0
LoadRunner testing over different domains,"<p>I have been requested to use LoadRunner to do load testing.  While my LR servers are all physical servers, i will need to test a system that's not only on VM's, but i'll need to access through a VDI AND the system under test is in a completely different secure domain (diff OU's).  This makes me believe there is going to be a large disparity and skewed performance results with all of the tokens and authentication that will have to happen.  How can I measure this gap if at all?</p>
",https://stackoverflow.com/questions/48191093/loadrunner-testing-over-different-domains,"['cross-domain', 'loadrunner']",91,FALSE,0,1
Pytest ETL Unit testing,"<p>My requirement is do ETL testing through python pytest module.</p>

<p>I pass a job name into the pytest script and script will test for four table load testing using a for loop. </p>

<p>I have below two issues -</p>

<ol>
<li>I am not able to pass command line argument in the pytest script.</li>
<li>Though I written a for loop inside which pytest test functions are present. But my test scripts are not running for fours tables , it's only running for one table and coming out of the loop and showing the results. </li>
</ol>

<p>Any help in this regard would be helpful.</p>
",https://stackoverflow.com/questions/49691959/pytest-etl-unit-testing,"['python', 'unit-testing', 'etl', 'pytest']",1279,FALSE,4,0
Dispatching up to max parallel REST calls in node.js / how does await work in node,"<p>I'm using node.js, have a graph of dependent REST calls and am trying to dispatch them in parallel. It's part of a testing/load testing script.</p>

<p>My graph, has ""connected components"", and each component is directed and acyclic. I toposort each component, so I end up with a graph that looks like this</p>

<pre><code>Component1 = [Call1, Call2...., Callm] (Call2 possibly dependent on call1 etc)
Component2 = [Call1, Call2... Calln]
...
Componentp
</code></pre>

<p>The number of components, and calls in each component m, n and p are dynamic</p>

<p>I want to round robin over the components, and each of it's calls, dispatching up to ""x"" calls concurrently. </p>

<p>Whilst I understand a little about Promises, async/await and Node's event loop I'm NOT an expert. </p>

<p>PSEUDO CODE ONLY</p>

<pre><code>maxParallel = x
runningCallCount = 0
while(components.some(calls =&gt; calls.some(call =&gt; noResponseYet(call)) {
    if (runningCallCount &lt; maxParallel) {
        runningCallCount++
        var result = await axios(call)
        runningCallCount--
    }
}
</code></pre>

<p>This doesn't work - I never dispatch the calls. 
Remove the await and i fall through to the runningCallCount-- straight away. </p>

<p>Other approaches I've tried and comments</p>

<ul>
<li>Wrapping every call in an async function, and using Promise.All on a chunk of x number at a time - a chunking style of approach. This may work, but It doesn't acheive the result of allways trying to have x parallel calls going

<ul>
<li>Used RxJs - tried merge on all components with a max number of parallelism - but this parallelises the components, not the calls within the components, and i couldn't work out how to 
make it work the way i wanted based on the poor doco. I'd used the .NET version before so this was a bit disappointing.  </li>
<li>I haven't yet tried recursion</li>
</ul></li>
</ul>

<p>Can anyone chime in with an idea as to how to do this ?
How does await work in node ? I've seen it explained like generator functions and yield statements (<a href=""https://medium.com/siliconwat/how-javascript-async-await-works-3cab4b7d21da"" rel=""nofollow noreferrer"">https://medium.com/siliconwat/how-javascript-async-await-works-3cab4b7d21da</a>)
Can anyone add detail - how is the event loop checked when code strikes an await call ? Again I'm guessing either the entire stack unrolls, or a call to run the event loop is somehow inserted by
the await call. </p>

<p>I'm not interested in using a load testing package, or other load testing tools - I just want to understand the best way to do this, but also understand what's going on in node and await.</p>

<p>I'll update this if i understand this or find a solution, but </p>

<p>Help appreciated.</p>
",https://stackoverflow.com/questions/52077554/dispatching-up-to-max-parallel-rest-calls-in-node-js-how-does-await-work-in-no,"['node.js', 'async-await']",174,TRUE,0,1
Python 3.7 crashes down during locustio load test,"<p>I use Locustio version 0.8.1 (<a href=""https://locust.io/"" rel=""nofollow noreferrer"">https://locust.io/</a>) for load testing on MacOS machine. It works fine with python 2, python 3.6.6, but when I try to use it with python 3.7 python crashes down. If I start load test with only one parallel user python 3.7 works fine, but with at least 2 users it crashes down.</p>

<pre><code>OS Version:            Mac OS X 10.13.5 (17F77)
Identifier:            Python
Version:               3.7.0 (3.7.0)
Code Type:             X86-64 (Native)
Parent Process:        bash [2997]
Responsible:           Python [4258]
Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]
</code></pre>

<p>I checked it also using a very basic load test, locustfile.py:</p>

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


class UserBehavior(TaskSet):

    @task(1)
    def get_smth(self):
        self.client.get(url=""/"")


class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait = 0
    max_wait = 0
</code></pre>

<p>Command for staring Locust: </p>

<pre><code>locust --host=http://example.com
</code></pre>

<p>Using Web monitor on local host I specify ""Number of users to simulate"", ""Hatch rate"" to start swarming. And after it starts swarming python 3.7 crashes down.</p>

<p>Any advice ?</p>
",https://stackoverflow.com/questions/51311412/python-3-7-crashes-down-during-locustio-load-test,"['python', 'locust']",855,FALSE,1,0
JMeter - Load XML files from a folder and use in HTTP request body,"<p>In JMeter, is it possible to load XML files from a directory and use it in the body of HTTP request? I have few thousand XML files that need to be used for load testing, and the data is not available in CSV format as the XML was generated by another system.</p>

<p>So, is there any plugin available in JMeter, which takes a directory of XML files and make the HTTP request with the content of XML file as the body. Looking for a solution that will also work when using with multiple users (threads).</p>

<p>J</p>
",https://stackoverflow.com/questions/52481129/jmeter-load-xml-files-from-a-folder-and-use-in-http-request-body,['jmeter'],1363,TRUE,1,1
Compare two arrays in LINQ query,"<p>I want to write LINQ query to compare two arrays.  I want the query to be translated to the following query:  </p>

<pre><code>SELECT id, name 
FROM persons 
WHERE '{""dance"", ""acting"", ""games""}' &amp;&amp; (hobbies);
</code></pre>

<p>That condition work in that way:  </p>

<pre><code> '{""dance""}' &amp;&amp; '{""dance"", ""acting"", ""games""}';  -- true
 '{""dance"",""singins""}' &amp;&amp; '{""dance"", ""acting"", ""games""}';  -- true
 '{""singins""}' &amp;&amp; '{""dance"", ""acting"", ""games""}';  -- false
</code></pre>

<p>I wrote this query:  </p>

<pre><code>List&lt;string&gt; arr = new List&lt;string&gt;(){ ""dance"", ""acting"", ""games"" };
var query = (from p in _context.Persons
             where arr.Any(kw =&gt; p.hobbies.Contains(kw))
             select new
                  {
                      id = p.id,
                      name = p.name
                  }).ToList();
</code></pre>

<p>The translated query is:  </p>

<pre><code>SELECT p.""id"" AS id, p.""name"" AS name 
FROM dataBase.""Persons"" AS p
</code></pre>

<p>It can understand that the filter performs in the server. so the query brings all the data from DB and filtered on the server. This causes to performance problems and not pass Load-Testing.  </p>

<p>I need a query that will not only do the job but will also be translated to the above query with '&amp;&amp;'.  </p>

<p>Is there any way in LINQ to execute this query?  </p>

<p>Thanks</p>
",https://stackoverflow.com/questions/53905115/compare-two-arrays-in-linq-query,"['postgresql', 'linq']",213,FALSE,0,1
Gatling with load balanced IP hash Nginx,"<p>I'm load testing a Tomcat web application with 4 nodes. Those nodes are configured through Nginx with ip_hash:</p>

<pre><code>ip_hash;
server example:8888 weight=2 max_fails=3 fail_timeout=10s;
server example:8888 weight=4 max_fails=3 fail_timeout=10s;
server example:8888 weight=2 max_fails=3 fail_timeout=10s;
server example:8888 weight=2 max_fails=3 fail_timeout=10s;
</code></pre>

<p>Anyway, I use Gatling for load and performance testing but everytime when I start a test all traffic is routed to one node.. Only when I change the load balance node to least_conn of round robin then the traffic is divided. But this application needs a persistent node to do the work. </p>

<p>Is there any way to let Gatling route the traffic to all 4 nodes during a run? Maybe with a setup configuration? I'm using this setUp right now:</p>

<pre><code>setUp(scenario1.inject(
  atOnceUsers(50),
  rampUsers(300) over (1800 seconds),
  ).protocols(httpConf)
)
</code></pre>

<p>Thank you! </p>
",https://stackoverflow.com/questions/50592533/gatling-with-load-balanced-ip-hash-nginx,"['scala', 'nginx', 'load', 'load-balancing', 'gatling']",753,FALSE,0,1
HTTP Request&#39;s response shows error like 401&quot;Unauthorized&quot; for &quot;HttpClient4&quot; Implementation,"<p>I am new to Jmeter. I want load testing for my web url. Web application is on Intranet.In My Http Request, I send request for the URL Home Page with Implementation as ""HttpClient4"". Method is ""GET"". Then View Result Tree shows error like ""401 - Unauthorized: Access is denied due to invalid credentials"" in the Response.</p>

<p>However, when I send same request with Implementation as ""JAVA"" then it works perfectly. I got correct response from the server without providing any credential details. I am using Jmeter version 3.2</p>

<p>Can anyone tell me how can I test same application with ""HttpClient4"" Implementation ?</p>
",https://stackoverflow.com/questions/53429731/http-requests-response-shows-error-like-401unauthorized-for-httpclient4-imp,"['jmeter', 'performance-testing']",235,FALSE,0,1
AttributeError: &#39;str&#39; object has no attribute &#39;loads&#39;,"<p>I am trying to use LocustIO for load testing. To make a POST call, I passed the json params to it and it returned the value. I created an expected response value because that is what it is expected to return. Now what I have been trying to do is to compare the expected value and the response value, I kept on getting this error:</p>

<pre><code>s...
[2018-04-10 10:32:23,351] DESKTOP-MJ573AA/INFO/stdout: Response status code:
[2018-04-10 10:32:23,351] DESKTOP-MJ573AA/INFO/stdout:
[2018-04-10 10:32:23,352] DESKTOP-MJ573AA/INFO/stdout: 201
[2018-04-10 10:32:23,352] DESKTOP-MJ573AA/INFO/stdout:
[2018-04-10 10:32:23,352] DESKTOP-MJ573AA/INFO/stdout: Response status code:
[2018-04-10 10:32:23,352] DESKTOP-MJ573AA/INFO/stdout:
[2018-04-10 10:32:23,352] DESKTOP-MJ573AA/INFO/stdout: b'[\n  {\n    ""userId"": 1,\n    ""id"": 1,\n    ""title"": ""delectus aut autem"",\n    ""completed"": false\n  }\n]'
[2018-04-10 10:32:23,352] DESKTOP-MJ573AA/INFO/stdout:
[2018-04-10 10:32:23,354] DESKTOP-MJ573AA/ERROR/stderr: Traceback (most recent call last):
  File ""c:\users\kadeoya\appdata\local\programs\python\python36\lib\site-packages\locust\core.py"", line 271, in run
    self.execute_next_task()
  File ""c:\users\kadeoya\appdata\local\programs\python\python36\lib\site-packages\locust\core.py"", line 297, in execute_next_task
    self.execute_task(task[""callable""], *task[""args""], **task[""kwargs""])
  File ""c:\users\kadeoya\appdata\local\programs\python\python36\lib\site-packages\locust\core.py"", line 309, in execute_task
    task(self, *args, **kwargs)
  File ""C:\Programs\Others\Locust\locustfile.py"", line 37, in send
    a = json.loads(responseValue)
AttributeError: 'str' object has no attribute 'loads'
</code></pre>

<p>I have tried all the suggested options on SO and none seems to work. Sorry, this is just my 3rd day of learning python. An example - <a href=""https://stackoverflow.com/questions/19474832/python-str-object-has-no-attribute-read/19474907"">Python &#39;str&#39; object has no attribute &#39;read&#39;</a>
Code:</p>

<pre><code>from locust import HttpLocust, TaskSet, task
from slumber import API 
import json, requests

json = """"""
[{
  userId: 1
}]
""""""

jsonsecond = """"""
[{
    ""userId"": 1,
    ""id"": 1,
    ""title"": ""delectus aut autem"",
    ""completed"": false
  }]
""""""

responseValue = """"""
[{
    ""userId"": 1,
    ""id"": 1,
    ""title"": ""delectus aut autem"",
    ""completed"": false
  }]
""""""

json_response = dict()
class MyTaskSet(TaskSet):
  @task(1)
  def send(self):
    response = self.client.post(""/todos"", jsonsecond, headers= { 'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Token eyJhbGciOiJSUzI1NiIsImtpZCI6ImRiYzQ3M2U0OWViODkyNGM4YTdjMDkxNmZhZmFjODgyIiwidHlwIjoiSldUIn0.eyJuYmYiOjE1MTE4ODk5NzIsImV4cCI6MTUxNDQ4MTk3MiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MDAwIiwiYXVkIjpbImh0dHA6Ly9sb2NhbGhvc3Q6NTAwMC9yZXNvdXJjZXMiLCJhcGkxIl0sImNsaWVudF9pZCI6ImNsaWVudCIsInNjb3BlIjpbImFwaTEiXX0.Qku54rtPbPyyEubJekXwKlbmKXEI3hABPVYNZzpAv69Dii8Ud42ucDyZ90gjyZ3yF7v5XiK9s_ZuKmiL2IxJF4zDc4dal78T7B9gnwmSatyWPRBOKjJw8N_qcuaJlnOsvVVAZ2JuMqZion7GX8W8ykbG3xjB-EAPpyYCoP7YEI8qqMQ6PLKpLi_RwYNt3ATF6nzOQIIV4McfroNPuRKfHAszgLqPMPw2bWqcgFzSEeQTTzU2lQieQNr3vOsUVmW6DX5QpdpwYSW4fNeEByVgcCrvPx-ZnPm85HR4nthEAV1Y1yoxJUzgl1wOu9k2JadRdjnF_8UVWriO96zKb2PDDg' } )
    print(""Response status code:"", response.status_code)
    print(""Response status code:"", response.content)

    a = json.loads(responseValue)
    b = json.loads(response.content)
    if sorted(a.items()) == sorted(b.items()):
      print('good. application success')

class MyLocust(HttpLocust):
    task_set = MyTaskSet
    min_wait = 5000
    max_wait = 15000
    # host = ""http://www.somaku.com""
    host = ""https://jsonplaceholder.typicode.com""
    stop_timeout = 200
</code></pre>
",https://stackoverflow.com/questions/49750306/attributeerror-str-object-has-no-attribute-loads,"['python', 'python-3.x']",2586,TRUE,0,1
What is the GUID for load test,"<p>I am trying to do a load test on a chat bot that I deployed on Microsoft Azure bot service, and I am following the blog post on here: <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>,
I am able to finish the first step, I am able to get auth token and get Mock channel, but for the last step:
it states: </p>

<pre><code>    {
  ""type"": ""message"",
  ""id"": &lt;GUID&gt;,
  ""channelId"" : ""test"", 
  ""conversation"": { ""id"": &lt;CONVERSATION ID&gt; },
  ""from"": { ""id"": &lt;USER ID&gt; },
  ""recipient"": { ""id"": &lt;BOT HANDLE&gt; },
  ""serviceUrl"": &lt;SEE BELOW&gt; 
}
</code></pre>

<p>I know service URL is the endpoint of the mock channel. but for all other Id, I don't know where can I get it?
Can anyone help me with this? give me some guidance on how to get all those ids?</p>

<p>Thanks a lot.
Node.js</p>
",https://stackoverflow.com/questions/49737195/what-is-the-guid-for-load-test,"['node.js', 'botframework', 'load-testing', 'azure-bot-service']",164,TRUE,1,1
What could be causing Spring Boot server to process requests two at a time?,"<p>I have a simple Spring Boot REST server which I intend to use for load testing modules under development.</p>

<p>Under moderate loads, the clients were experiencing prolonged delays, even timeouts. It turns out that the server was only processing 2 requests at a time.</p>

<p>This has nothing to do with <em>server.tomcat.max-threads</em>.  The worker thread pool (<em>http-nio-&lt; port>-exec-&lt; number></em>) never exceeded 10 when I increased max-threads above 10, but shrank to 1 when set to 1. I assume because the pool did not receive more than the two requests at a time.</p>

<p>What could be limiting the number of concurrent requests to 2 ?</p>
",https://stackoverflow.com/questions/49806458/what-could-be-causing-spring-boot-server-to-process-requests-two-at-a-time,"['java', 'spring', 'http', 'spring-boot', 'server']",293,FALSE,0,0
How to Simulate a new user on each iteration,"<p>Need to perform load testing for the 1000 virtual users. But due to lack of  users credentials cannot perform it. So can any one explain me how to simulate a new user on each iterations. I have already enabled the <code>Simulate a new user on each iteration</code> and also enabled the <code>Clear cache on each iteration</code> but still getting the same session id for the multiple iterations.</p>

<p>We have SSO integrated with our application and just created the simple <code>Sign In</code> and <code>Sign Out</code> scenario under <code>Action.c</code> with 4 iterations. </p>

<p>Below is the logs which i am getting after executing the script. For each iterations, the session id is remaining same</p>

<h3>Iteration 1:</h3>

<pre><code>Action.c(110): ************** SESSION ID ************** : 1e9e644f-7023-4641-b53d-4a8db900a8c9
</code></pre>

<h3>Iteration 2:</h3>

<pre><code>Action.c(110): ************** SESSION ID ************** : 1e9e644f-7023-4641-b53d-4a8db900a8c9
</code></pre>

<h3>Iteration 3:</h3>

<pre><code>Action.c(110): ************** SESSION ID ************** : 1e9e644f-7023-4641-b53d-4a8db900a8c9
</code></pre>

<h3>Iteration 4:</h3>

<pre><code>Action.c(110): ************** SESSION ID ************** : 1e9e644f-7023-4641-b53d-4a8db900a8c9
</code></pre>

<p><strong>And my Run time setting looks like below:</strong></p>

<p><a href=""https://i.stack.imgur.com/KHilg.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/KHilg.png"" alt=""Run time setting looks ""></a></p>
",https://stackoverflow.com/questions/50372982/how-to-simulate-a-new-user-on-each-iteration,"['performance-testing', 'load-testing', 'loadrunner', 'vugen']",1731,TRUE,0,2
When does Jmeter releases object?,"<p>I am working on load testing Video streaming, I have observed that when we execute Jmeter to download any video files it gets downloaded in the Heap memory and many times it does not releases the heap memory, this causes JVM out of memory issues.</p>

<p>I have also observed that when we select option “Save as MD5 Hash option”, proper GC cycle kicks in and Jmeter does through JVM out of memory error.</p>

<p>Could you please help me in knowing:</p>

<ol>
<li>How does Jmeter handles the object?</li>
<li>When does it releases the object? and </li>
<li>When Save as MD5 option is selected what difference it makes during execution and releasing the option?</li>
</ol>
",https://stackoverflow.com/questions/52159689/when-does-jmeter-releases-object,"['jmeter', 'garbage-collection', 'jvm', 'md5', 'heap-memory']",86,TRUE,0,1
Reducing queue length from application pool in IIS when a load balancer is used,"<p>I have a testing environment where web application deployed. However, it seems there are two servers in which this particular web application is deployed. These two servers are under a load balancer. I would like to use one server for load testing to reproduce a particular issue, by reducing number of request from app pool. How can I do this?As this is on load balancer and I want to use (temporarily use ) one server only to reproduce issue, what setting I need to change in load balancer? Basically, how to reduce the <strong>queue</strong> <strong>length</strong> when application is deployed on two servers with a load balancer?</p>

<p>Please let me know.Thanks</p>
",https://stackoverflow.com/questions/52980556/reducing-queue-length-from-application-pool-in-iis-when-a-load-balancer-is-used,"['asp.net', 'asp.net-mvc', 'iis-7', 'load-balancing', 'load-testing']",519,FALSE,0,0
"In JMeter, Getting &quot;Object moved here&quot; response for login post request while performing Load test in Asp.net Web app","<p>I have performed Load testing in Asp.net application using JMeter. While login, am getting ""Object Moved Here"" message as response.</p>

<p>In View result tree, I found Login main sampler displaying with two sub samplers.
In that one sub sampler is with the ""Object Moved Here"" message.</p>

<p>In my test plan, I have handled
- CSS/JQUERY Extractor to extract dynamic values ""Event validation"" &amp; ""View State""
- HTTP Cookie manager(Checked ""Clear cookies each iteration"" &amp; Cookie policy: Compatibility)</p>

<p>Note: Except the Login functionality request &amp; response, all the other HTTP samplers in my test plan are worked as expected.</p>

<p>Anybody have any solution for this?</p>
",https://stackoverflow.com/questions/52553748/in-jmeter-getting-object-moved-here-response-for-login-post-request-while-per,"['asp.net', 'performance', 'jmeter', 'http-headers', 'load-testing']",695,TRUE,0,1
How to test if my java application can successfully handle low memory/CPU resources on Tomcat server?,"<p>I want to test how my java application would behave on Tomcat server with 512M RAM only. In other words I need to do memory load-testing to check if my application can run in such restricted environment.</p>

<p>Using which tools and how can I achieve this?</p>

<p>I heard about APM software including Stackify Prefix, New Relic APM, JMeter, JVisualVM, JVM Monitor, JBenchX - but I am not sure I need to proceed with any of them for my specific purpose.</p>

<p>The same problem for having very limited CPU resources. I'd like to test my app on my desktop PC before deploying to Jelastic cloud with limited memory/CPU.</p>
",https://stackoverflow.com/questions/53545053/how-to-test-if-my-java-application-can-successfully-handle-low-memory-cpu-resour,"['java', 'tomcat', 'load-testing', 'apm']",517,TRUE,0,2
Is there a way I could convert GWT RPC response into a readable format?,"<p>I have a large scale GWT Application and I wanted to perform load testing on it. After trying jmeter and a lot of plugins with it I finally thought I should instead figure out how to make the RPC response readable so that I can use the response along with Regular Expression Extractor to proceed with my testing instead of using the plugins. So is there a way I could convert the response into readable format?</p>

<p>Here is a sample response:</p>

<pre><code>//OK[2,1,[""com.google.gwt.safehtml.shared.SafeHtmlString/235635043"",""Hello, 
Hello!&lt;br&gt;I am running jetty-6.1.x.&lt;br&gt;&lt;br&gt;It looks like you are using: 
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.4 (KHTML, like 
Gecko) Chrome/22.0.1229.94 Safari/537.4""],0,7]
</code></pre>

<p>I am more interested in doing so for GWT 2.8+ Applications whereas almost all the sources found online give information on the older versions.</p>
",https://stackoverflow.com/questions/50718314/is-there-a-way-i-could-convert-gwt-rpc-response-into-a-readable-format,"['gwt', 'jmeter', 'load-testing', 'gwt-rpc']",517,FALSE,0,0
Is it possible to use a unique external (outgoing) IP on a per-pod basis in Kubernetes,"<p>I'm trying to implement a distributed load-testing application using Kubernetes; each pod is running a single container which sends SMB requests to a server on my local network.</p>

<p>After tracing the packets sent to/from the server I've found that all of the requests going out to the server originate from the cluster IP (as they should with the default behavior of Kuberentes). </p>

<p>Is there a way to configure this setup so that each pod gets it's own external IP rather than connecting through the cluster? Or is there another container orchestration service (i.e. Docker Swarm) that would better fit this use case?</p>
",https://stackoverflow.com/questions/50799597/is-it-possible-to-use-a-unique-external-outgoing-ip-on-a-per-pod-basis-in-kube,['kubernetes'],516,FALSE,0,2
Health check timeout,"<p>I have a simple spring boot app with a few endpoints deployed to the pcf cloud. When I am doing load testing towards them I get request time increased  on calls to my EPs and finally timeout on /health which causes my instance get restarted (as the timeout is 1sec and AFAIK there is no way to adjust it) As I understand this happens due to the fact that tomcat can't handle that many of requests given provided resources and ideally I would like to handle requests to health endpoint with high priority so that my instance doesn't fail. How can I achieve this?</p>
",https://stackoverflow.com/questions/52624803/health-check-timeout,"['spring', 'spring-boot', 'cloud-foundry']",1232,TRUE,0,1
Finding difficulty in understanding Jmeter functionality,"<p>I have recorded one scenario in JMeter. Scenario is, I will login to the application, perform some Registration and logout. when i run/execute this, Login is failing for some reason(i have figured out login failure issue), but my question is, 'Registration' part is executing successfully. whatever 'Success' i am receiving for registration without login, is a correct functionality of the jmeter? i am very new to jmeter, trying to understand how it works.</p>

<p>One more question is, when i execute more than 1 thread(may be 100 or 1000), how does it do the load testing(Does it actually inserts data/values into the database)?</p>
",https://stackoverflow.com/questions/49484727/finding-difficulty-in-understanding-jmeter-functionality,"['jmeter', 'performance-testing']",87,TRUE,-2,3
Create a test web application replay to test and also to warm up a server,"<p>I would like to record a step through of a web application, and then replay this for testing. However it would be brilliant if this could be replayed say on a VM every so often to emulate a user to warm up a server.</p>

<p>JMeter, Katalon and Selenium have come up. </p>

<p>EDIT:</p>

<p>I have been playing with Katalon Studio and I'm very impressed with it in recording tests and replaying in a browser. This seems more about functional testing, ie do all the pages work. JMeter is about Load Testing. So different tools. However being able to export JMeter (JMX) files from Katalon would be fab, but I haven't heard it is possible.</p>
",https://stackoverflow.com/questions/53347288/create-a-test-web-application-replay-to-test-and-also-to-warm-up-a-server,"['selenium', 'jmeter', 'katalon-studio']",481,TRUE,3,2
How do I verify my LoadRunner test scripts are actually being executed?,"<p>I've a requirement to load test a web application using loadRunner(Community edition : 12.53 ). Currently I've my test scripts recorded using loadrunner default test script recorder. I'm assuming that, the operations I chose to perform in SUT should actually update the application backend/DB when I'm executing the test scripts. Is this the correct behavior of a load testing scenario? 
When I ran my test scripts, I couldn't see any value or nothing updated in the application DB.</p>

<p>I've my test scripts written in C and also manual correlation is applied using web_reg_save_param method. </p>

<p>What might be the things that could go wrong in such a scenario?. Any help would be deeply appreciated.</p>
",https://stackoverflow.com/questions/53433784/how-do-i-verify-my-loadrunner-test-scripts-are-actually-being-executed,"['performance', 'testing', 'load-testing', 'loadrunner']",114,TRUE,2,1
Task Getting rejected due to max pool size in ThreadPoolExecutor,"<p>Application has configured Zuul and Eureka to route request to backend services and everything works fine until we do load testing. </p>

<p>I started executing with 10 concurrent request on our load test environment and getting forwarding error in zuul gateway, and cause was, thread pool was not able to allocate thread for future task and rejecting tasks, with below error.</p>

<pre><code>Caused by: java.util.concurrent.RejectedExecutionException: Task 
java.util.concurrent.FutureTask@70fe89b5 rejected from 
java.util.concurrent.ThreadPoolExecutor@25df1748[Running, pool size = 10, 
active threads = 10, queued tasks = 0, completed tasks = 1502]
</code></pre>

<p>My wonder; Above cause, i see pool size was only 10 and 10 threads were buzy, practical since i was firing 10 consecutive requests. </p>

<p>But my corepoolsize should be much greater than what i experience here of count 10. what is causing my application limited to 10 pool size , can i increase the corepoolsize and maxpoolsize in my application. </p>
",https://stackoverflow.com/questions/53613154/task-getting-rejected-due-to-max-pool-size-in-threadpoolexecutor,"['java', 'multithreading', 'threadpool', 'threadpoolexecutor']",10561,TRUE,2,2
How do I disable csrf protection on gitlab enterprise server?,"<p>I have an internal requirement to stress gitlab to evaluate its performance serving requests for large sized repos with concurrent commits by many engineers. I am using JMeter to record a flow of committing a file from the UI. On replay, I get a 403 because the csrf token validation fails. I have tried extracting the <strong>authenticity_token</strong> via Regex but the value getting used as part of the <strong>X-CSRF_Token</strong> header is different and there is no way for me to extract that value from the preceding response.
For the purposes of my load testing, I want to disable this check in gitlab-rails. Where and how should I go about doing this?</p>
",https://stackoverflow.com/questions/49338318/how-do-i-disable-csrf-protection-on-gitlab-enterprise-server,"['ruby-on-rails', 'jmeter', 'gitlab', 'csrf-protection']",629,FALSE,1,0
What constitutes a true error in JMeter when the server always returns 200?,"<p>I am load testing an e-commerce site. Under medium to heavy loads, Jmeter reports an unusually high number of errors, i.e. <code>succes=FALSE</code> in the resulting .csv file which translates to a fairly high % errors in the JMeter dashboard report.</p>

<p>On inspecting the Kibana logs, other than a few <code>WARN</code>, there aren't any errors and the status for all the http requests are <code>200</code>. In fact, I am able to verify that the test users created in my flow are able to login and view whatever the test was supposed to do.</p>

<p>My question is - how is JMeter determining this error (non-200 ?) when the server side returns nothing but 200? For fewer threads, the errors are 0%.</p>
",https://stackoverflow.com/questions/51658029/what-constitutes-a-true-error-in-jmeter-when-the-server-always-returns-200,"['jmeter', 'load-testing']",713,TRUE,1,1
How to troubleshoot why the Endpoints in my service don&#39;t get updated?,"<p>I have a Kubernetes cluster running on the Google Kubernetes Engine.</p>

<p>I have a deployment that I manually (by editing the <code>hpa</code> object) scaled up from 100 replicas to 300 replicas to do some load testing. When I was load testing the deployment by sending HTTP requests to the service, it seemed that not all pods were getting an equal amount of traffic, only around 100 pods were showing that they were processing traffic (by looking at their CPU-load, and our custom metrics). So my suspicion was that the service is not load balancing the requests among all the pods equally.</p>

<p>If I checked the <code>deployment</code>, I could see that all 300 replicas were ready.</p>

<pre><code>$ k get deploy my-app --show-labels
NAME                DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE       LABELS
my-app              300       300       300          300         21d       app=my-app
</code></pre>

<p>On the other hand, when I checked the <code>service</code>, I saw this:</p>

<pre><code>$ k describe svc my-app
Name:              my-app
Namespace:         production
Labels:            app=my-app
Selector:          app=my-app
Type:              ClusterIP
IP:                10.40.9.201
Port:              http  80/TCP
TargetPort:        http/TCP
Endpoints:         10.36.0.5:80,10.36.1.5:80,10.36.100.5:80 + 114 more...
Port:              https  443/TCP
TargetPort:        https/TCP
Endpoints:         10.36.0.5:443,10.36.1.5:443,10.36.100.5:443 + 114 more...
Session Affinity:  None
Events:            &lt;none&gt;
</code></pre>

<p>What was strange to me is this part</p>

<pre><code>Endpoints:         10.36.0.5:80,10.36.1.5:80,10.36.100.5:80 + 114 more...
</code></pre>

<p>I was expecting to see 300 endpoints there, is that assumption correct?</p>

<p>(I also found <a href=""https://engineering.dollarshaveclub.com/kubernetes-fixing-delayed-service-endpoint-updates-fd4d0a31852c"" rel=""noreferrer"">this post</a>, which is about a similar issue, but there the author was experiencing only a few minutes delay until the endpoints were updated, but for me it didn't change even in half an hour.)</p>

<p>How could I troubleshoot what was going wrong? I read that this is done by the Endpoints controller, but I couldn't find any info about where to check its logs.</p>

<p><strong>Update</strong>: We managed to reproduce this a couple more times. Sometimes it was less severe, for example 381 endpoints instead of 445. One interesting thing we noticed is that if we retrieved the details of the endpoints:</p>

<pre><code>$ k describe endpoints my-app
Name:         my-app
Namespace:    production
Labels:       app=my-app
Annotations:  &lt;none&gt;
Subsets:
  Addresses:          10.36.0.5,10.36.1.5,10.36.10.5,...
  NotReadyAddresses:  10.36.199.5,10.36.209.5,10.36.239.2,...
</code></pre>

<p>Then a bunch of IPs were ""stuck"" in the <code>NotReadyAddresses</code> state (not the ones that were ""missing"" from the service though, if I summed the number of IPs in <code>Addresses</code> and <code>NotReadyAddresses</code>, that was still less than the total number of ready pods). Although I don't know if this is related at all, I couldn't find much info online about this <code>NotReadyAddresses</code> field.</p>
",https://stackoverflow.com/questions/51116023/how-to-troubleshoot-why-the-endpoints-in-my-service-dont-get-updated,"['kubernetes', 'google-kubernetes-engine']",3002,TRUE,6,3
JMeter LDAP tests using GSSAPI/kerberos credentials,"<p>I would like to use JMeter to run some load testing against our OpenLDAP service authenticating using GSSAPI (i.e., Kerberos). How do I get JMeter to use a keytab with Kerberos credentials to do this? (Note: I tried following the directions here but they did not work for me: <a href=""https://community.hortonworks.com/articles/141035/jmeter-kerberos-setup-for-hive-load-testing.html"" rel=""nofollow noreferrer"">https://community.hortonworks.com/articles/141035/jmeter-kerberos-setup-for-hive-load-testing.html</a>)</p>

<p>UPDATE</p>

<p>The command I use to start JMeter is </p>

<pre><code>java.exe -XX:+HeapDumpOnOutOfMemoryError -Xms1g -Xmx1g 
-XX:MaxMetaspaceSize=256m -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:G1ReservePercent=20 -Djava.security.egd=file:/dev/urandom
-Duser.language=""en"" -Duser.region=""EN""
-Djava.security.debug=gssloginconfig,configfile,configparser,logincontext 
-jar ""D:\JMeter\bin\ApacheJMeter.jar""  
-Dsun.security.krb5.debug=true 
-Djava.security.krb5.conf=""D:\JMeter\bin\krb5.conf""
-Djava.security.auth.login.config=""D:\JMeter\bin\jaas.conf""
-Djavax.security.auth.useSubjectCredsOnly=false
</code></pre>

<p>The contents of <code>D:\JMeter\bin\jaas.conf</code>:</p>

<pre><code>JMeter {
    com.sun.security.auth.module.Krb5LoginModule required
    doNotPrompt=true
    useTicketCache=false
    useKeyTab=true
    keyTab=""D:\JMeter\bin\ldap.keytab""
    principal=""service/testing-prod@example.com""
    debug=true;
};
</code></pre>

<p>I have a single LDAP Request sampler. For that sampler I entered the LDAP server, port, and search base and filter. I run the test which ""succeeds"" but no information comes back.</p>

<p>I see <strong>no</strong> log messages in <code>jmeter.log</code> concerning the success or failure of authentication.</p>
",https://stackoverflow.com/questions/52745400/jmeter-ldap-tests-using-gssapi-kerberos-credentials,"['jmeter', 'openldap', 'gssapi']",506,FALSE,0,1
JMeterLib Robot Framework- Pass parameters as keywords,"<p>I have a csv file with 3 columns, I am reading the columns and creating a different list for each column I want to pass this with JmeterLib for robot framework, I want to read the list and send each value in the list a parameter for ""Load testing""-ish</p>

<p>My goal is to have 200+ request per second, and i need to pass the list values for each thread at a time.</p>

<p>Is this possible to do with JmeterLib and Robot Framework?</p>

<pre><code>*** Settings ***
Library           JMeterLib
Library           csvLibrary.py
*** Variables ***
${JMeter2_path}    C:/Users/User/Desktop/tools/apache-jmeter*/bin/jmeter.bat
${JMeter_script_1thread1loop_path}    Test Plan.jmx
${JMeter_log01_path}    results/jmeterTest1Thread1Loop_log01.jtl


*** Test Cases ***
Sort CSV Staff location file
    ${staff_ID_list}=  create list
    ${DeviceName_list}=  create list
    ${ExternalID_list}=  create list
    ${row_ID}=  convert to integer  1

    :FOR  ${Row_Elements}  IN RANGE  ${row_ID}  517
    \  ${read_csv} =  read cell value by row  staff.csv  ${row_ID}
    \  log  ${read_csv}
    \  ${Staff_ID}  get from dictionary   ${read_csv}  Col1
    \  append to list  ${staff_ID_list}  '${Staff_ID}'
    \  ${External_ID}  get from dictionary   ${read_csv}  Col2
    \  append to list  ${ExternalID_list}  '${External_ID}'
    \  ${DeviceName}  get from dictionary   ${read_csv}  Col3
    \  append to list  ${DeviceName_list}  '${DeviceName}'
    \  ${row_ID}=  evaluate  ${row_ID} + 1
    log  ${staff_ID_list}
    log  ${ExternalID_list}
    log  ${DeviceName_list}

jmeter2_tc1_justRunJMeter
    run jmeter    ${JMeter2_path}    ${JMeter_script_1thread1loop_path}    ${JMeter_log01_path}
</code></pre>

<p>And this is my test plan to hit stackoverflow 200 times per second.</p>

<pre><code>&lt;?xml version=""1.0"" encoding=""UTF-8""?&gt;
&lt;jmeterTestPlan version=""1.2"" properties=""5.0"" jmeter=""5.0 r1840935""&gt;
  &lt;hashTree&gt;
    &lt;TestPlan guiclass=""TestPlanGui"" testclass=""TestPlan"" testname=""Test Plan"" enabled=""true""&gt;
      &lt;stringProp name=""TestPlan.comments""&gt;&lt;/stringProp&gt;
      &lt;boolProp name=""TestPlan.functional_mode""&gt;false&lt;/boolProp&gt;
      &lt;boolProp name=""TestPlan.tearDown_on_shutdown""&gt;true&lt;/boolProp&gt;
      &lt;boolProp name=""TestPlan.serialize_threadgroups""&gt;false&lt;/boolProp&gt;
      &lt;elementProp name=""TestPlan.user_defined_variables"" elementType=""Arguments"" guiclass=""ArgumentsPanel"" testclass=""Arguments"" testname=""User Defined Variables"" enabled=""true""&gt;
        &lt;collectionProp name=""Arguments.arguments""/&gt;
      &lt;/elementProp&gt;
      &lt;stringProp name=""TestPlan.user_define_classpath""&gt;&lt;/stringProp&gt;
    &lt;/TestPlan&gt;
    &lt;hashTree&gt;
      &lt;ThreadGroup guiclass=""ThreadGroupGui"" testclass=""ThreadGroup"" testname=""Thread Group"" enabled=""true""&gt;
        &lt;stringProp name=""ThreadGroup.on_sample_error""&gt;continue&lt;/stringProp&gt;
        &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;2&lt;/stringProp&gt;
        &lt;/elementProp&gt;
        &lt;stringProp name=""ThreadGroup.num_threads""&gt;200&lt;/stringProp&gt;
        &lt;stringProp name=""ThreadGroup.ramp_time""&gt;0.1&lt;/stringProp&gt;
        &lt;boolProp name=""ThreadGroup.scheduler""&gt;false&lt;/boolProp&gt;
        &lt;stringProp name=""ThreadGroup.duration""&gt;&lt;/stringProp&gt;
        &lt;stringProp name=""ThreadGroup.delay""&gt;&lt;/stringProp&gt;
      &lt;/ThreadGroup&gt;
      &lt;hashTree/&gt;
      &lt;ConfigTestElement guiclass=""HttpDefaultsGui"" testclass=""ConfigTestElement"" testname=""HTTP Request Defaults"" enabled=""true""&gt;
        &lt;elementProp name=""HTTPsampler.Arguments"" elementType=""Arguments"" guiclass=""HTTPArgumentsPanel"" testclass=""Arguments"" testname=""User Defined Variables"" enabled=""true""&gt;
          &lt;collectionProp name=""Arguments.arguments""/&gt;
        &lt;/elementProp&gt;
        &lt;stringProp name=""HTTPSampler.domain""&gt;stackoverflow.com&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.port""&gt;&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.protocol""&gt;&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.contentEncoding""&gt;&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.path""&gt;/&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.concurrentPool""&gt;6&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.connect_timeout""&gt;&lt;/stringProp&gt;
        &lt;stringProp name=""HTTPSampler.response_timeout""&gt;&lt;/stringProp&gt;
      &lt;/ConfigTestElement&gt;
      &lt;hashTree/&gt;
      &lt;ResultCollector guiclass=""ViewResultsFullVisualizer"" testclass=""ResultCollector"" testname=""View Results Tree"" enabled=""true""&gt;
        &lt;boolProp name=""ResultCollector.error_logging""&gt;false&lt;/boolProp&gt;
        &lt;objProp&gt;
          &lt;name&gt;saveConfig&lt;/name&gt;
          &lt;value class=""SampleSaveConfiguration""&gt;
            &lt;time&gt;true&lt;/time&gt;
            &lt;latency&gt;true&lt;/latency&gt;
            &lt;timestamp&gt;true&lt;/timestamp&gt;
            &lt;success&gt;true&lt;/success&gt;
            &lt;label&gt;true&lt;/label&gt;
            &lt;code&gt;true&lt;/code&gt;
            &lt;message&gt;true&lt;/message&gt;
            &lt;threadName&gt;true&lt;/threadName&gt;
            &lt;dataType&gt;true&lt;/dataType&gt;
            &lt;encoding&gt;false&lt;/encoding&gt;
            &lt;assertions&gt;true&lt;/assertions&gt;
            &lt;subresults&gt;true&lt;/subresults&gt;
            &lt;responseData&gt;false&lt;/responseData&gt;
            &lt;samplerData&gt;false&lt;/samplerData&gt;
            &lt;xml&gt;false&lt;/xml&gt;
            &lt;fieldNames&gt;true&lt;/fieldNames&gt;
            &lt;responseHeaders&gt;false&lt;/responseHeaders&gt;
            &lt;requestHeaders&gt;false&lt;/requestHeaders&gt;
            &lt;responseDataOnError&gt;false&lt;/responseDataOnError&gt;
            &lt;saveAssertionResultsFailureMessage&gt;true&lt;/saveAssertionResultsFailureMessage&gt;
            &lt;assertionsResultsToSave&gt;0&lt;/assertionsResultsToSave&gt;
            &lt;bytes&gt;true&lt;/bytes&gt;
            &lt;sentBytes&gt;true&lt;/sentBytes&gt;
            &lt;url&gt;true&lt;/url&gt;
            &lt;threadCounts&gt;true&lt;/threadCounts&gt;
            &lt;idleTime&gt;true&lt;/idleTime&gt;
            &lt;connectTime&gt;true&lt;/connectTime&gt;
          &lt;/value&gt;
        &lt;/objProp&gt;
        &lt;stringProp name=""filename""&gt;&lt;/stringProp&gt;
      &lt;/ResultCollector&gt;
      &lt;hashTree/&gt;
      &lt;ResultCollector guiclass=""SummaryReport"" testclass=""ResultCollector"" testname=""Summary Report"" enabled=""true""&gt;
        &lt;boolProp name=""ResultCollector.error_logging""&gt;false&lt;/boolProp&gt;
        &lt;objProp&gt;
          &lt;name&gt;saveConfig&lt;/name&gt;
          &lt;value class=""SampleSaveConfiguration""&gt;
            &lt;time&gt;true&lt;/time&gt;
            &lt;latency&gt;true&lt;/latency&gt;
            &lt;timestamp&gt;true&lt;/timestamp&gt;
            &lt;success&gt;true&lt;/success&gt;
            &lt;label&gt;true&lt;/label&gt;
            &lt;code&gt;true&lt;/code&gt;
            &lt;message&gt;true&lt;/message&gt;
            &lt;threadName&gt;true&lt;/threadName&gt;
            &lt;dataType&gt;true&lt;/dataType&gt;
            &lt;encoding&gt;false&lt;/encoding&gt;
            &lt;assertions&gt;true&lt;/assertions&gt;
            &lt;subresults&gt;true&lt;/subresults&gt;
            &lt;responseData&gt;false&lt;/responseData&gt;
            &lt;samplerData&gt;false&lt;/samplerData&gt;
            &lt;xml&gt;false&lt;/xml&gt;
            &lt;fieldNames&gt;true&lt;/fieldNames&gt;
            &lt;responseHeaders&gt;false&lt;/responseHeaders&gt;
            &lt;requestHeaders&gt;false&lt;/requestHeaders&gt;
            &lt;responseDataOnError&gt;false&lt;/responseDataOnError&gt;
            &lt;saveAssertionResultsFailureMessage&gt;true&lt;/saveAssertionResultsFailureMessage&gt;
            &lt;assertionsResultsToSave&gt;0&lt;/assertionsResultsToSave&gt;
            &lt;bytes&gt;true&lt;/bytes&gt;
            &lt;sentBytes&gt;true&lt;/sentBytes&gt;
            &lt;url&gt;true&lt;/url&gt;
            &lt;threadCounts&gt;true&lt;/threadCounts&gt;
            &lt;idleTime&gt;true&lt;/idleTime&gt;
            &lt;connectTime&gt;true&lt;/connectTime&gt;
          &lt;/value&gt;
        &lt;/objProp&gt;
        &lt;stringProp name=""filename""&gt;&lt;/stringProp&gt;
      &lt;/ResultCollector&gt;
      &lt;hashTree/&gt;
    &lt;/hashTree&gt;
  &lt;/hashTree&gt;
</code></pre>

<p><strong><em>My Question:</em></strong>  is there a way to pass the in the parameters dynamically to the test plan upon execution with robot framework?</p>
",https://stackoverflow.com/questions/52496277/jmeterlib-robot-framework-pass-parameters-as-keywords,"['testing', 'jmeter', 'robotframework']",222,FALSE,0,0
ConcurrentModificationException while iterating through a list but not modifying it,"<p>I am running my application for load testing using <strong>JMeter</strong> and getting <code>ConcurrentModificationException</code> in a scenario where <em>(I think)</em> its not supposed to come. This occurred only for few cases and not all.</p>

<p>I am having an <code>ArrayList</code> which is a class variable in which elements are added through a method. Later on in a different method which is invoked after the list is prepared, iteration is going on using <code>stream</code> and a <strong>local arraylist</strong> is getting prepared using some filters as follows</p>

<pre><code>...
//class variable getting elements from a separate method
List&lt;String&gt; myGlobalList = new ArrayList(); 
...

public String returnValue(String _value){
  List myLocalList = new ArrayList();
  myGlobalList.stream().filter(ele -&gt; {
    ele = ele.replaceAll(""\\[(.*?)\\]"", ""$1"");

    String[] strArr = ele.split("","");
    for(String sArr : strArr) {
      if(sArr.contains(_value)){
        System.out.println(""sArr ---- &gt; ""+sArr);
        myLocalList.add(sArr);
        return true ;
      }
    }
    return false;
  }).findFirst();

  return myLocalList.size()&gt;0 ? myLocalList.get(0): null;
}
</code></pre>

<p>The <code>findFirst()</code> method is throwing <code>ConcurrentModificationException</code> only under load (not for every request).</p>

<p>Can't figure out why it's happening. <em>Am I missing any key?</em> How can this code be modified to avoid this exception in all cases?</p>

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

<p>Below is a snippet from the stacktrace for the exception</p>

<pre><code>java.util.ConcurrentModificationException
at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1353)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at com.pkg.MyClass.returnValue(MyClass.java:501)
</code></pre>
",https://stackoverflow.com/questions/49876119/concurrentmodificationexception-while-iterating-through-a-list-but-not-modifying,"['java', 'java-8', 'jmeter', 'java-stream', 'concurrentmodification']",1095,FALSE,0,1
Jmeter results average shows more time than AWS metrics,"<p>Jmeter results average/min/max time shows more time than the service/server average/min/max actual results (AWS Lambda end point).</p>

<p>We have AWS Lambda end point which needs to be tested for Load testing, used Jmeter in distributed environment (1 Master, 2 slave EC2 instnaces).</p>

<p>Jmx file: one http request with ramp up of 1 second for 100 users. (no listeners, assertions added)</p>

<ol>
<li>Jmeter version: 3.1</li>
<li>Running in Non-gui mode (Dockerized)
Tested for 100 users (Jmeter results):
Avg: 1.5 secs
Max: 2 secs</li>
</ol>

<p>AWS metrics:
Max: 200 milli seconds</p>

<p>Tried multiple times for the same scenario  however unable to get similar results at both the places.</p>

<p>Please guide what could be gone wrong or the way needs to be tested.</p>
",https://stackoverflow.com/questions/48516194/jmeter-results-average-shows-more-time-than-aws-metrics,['jmeter'],129,TRUE,0,1
How solve slow througput with blocking call in SpringBoot2?,"<p>I use Spring Boot 2 and Router Function and all fine if haven't blocking code, but if I have block for 2 seconds - awfully. My application can't reach huge numbers of concurrent users and I can't impove throughput.</p>

<p>Doc have a section <a href=""http://projectreactor.io/docs/core/release/reference/#faq.wrap-blocking"" rel=""nofollow noreferrer"">How do I wrap a synchronous, blocking call</a> , but this approach doesn't solve the problem.</p>

<p>I created simple springboot2 applications where recreated the problem.</p>

<pre><code>    return serverRequest
            .bodyToMono(ValueDto.class)
            .doOnNext(order -&gt; log.info(""get order request "" + order))
            .map(i -&gt; {
                log.info(""map 1 "" + requestId);
                return i;
            })
            .map(i -&gt; {
                log.info(""map 2 "" + requestId);
                return i;
            })
            .map(i -&gt; {
                log.info(""map 3 "" + requestId);
                return i;
            })
            .flatMap(i -&gt; Mono.fromCallable(() -&gt; executeLongMethod(i, requestId))
                    .subscribeOn(Schedulers.elastic()))
            .map(v -&gt; {
                log.info(""map 5 "" + requestId);
                return v;
            })
            .flatMap(req -&gt; ServerResponse.ok().build());


private ValueDto executeLongMethod(final ValueDto dto, final String requestId) {
    final long start = System.currentTimeMillis();
    try {
        log.info(""start executeLongMethod. requestId:"" + requestId);


        TimeUnit.MILLISECONDS.sleep(1500);

        return dto;
    } catch (InterruptedException e) {
        e.printStackTrace();
        return dto;
    } finally {
        log.info(""finish executeLongMethod requestId:"" + requestId + "" executed in "" + (System.currentTimeMillis() - start) + ""ms."");
    }
}
</code></pre>

<p>Perform Automated Load Testing through Jmeter. It Settings:</p>

<p>ThreadGroup: </p>

<p>Number of Threads: number of concurrent threads to run during the test : <strong>30</strong> </p>

<p>Ramp-Up Period: linear increase the load from 0 to target load over this time: <strong>1</strong></p>

<p>Loop Count: <strong>forever</strong></p>

<p>Post request: {
""valueA"":""fake"",
""valueB"":""fake"",
""valueC"":""fake""
}</p>

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

<p>Code samples can be found <a href=""https://github.com/MaximDzhezhelo/fakeReceiver.git"" rel=""nofollow noreferrer"">over on GitHub.</a></p>
",https://stackoverflow.com/questions/51213142/how-solve-slow-througput-with-blocking-call-in-springboot2,"['spring-boot', 'asynchronous', 'project-reactor', 'throughput']",215,FALSE,0,0
Jmeter with CSV data: How to make a get post where Parameter is in the String not at the end,"<p>I'm using Jmeter for load testing done. I have successfully added a CSV data where i need to login with different users, that works fine, the CSV data is added to the end of the call.</p>

<p>Now I would like to make another call with CSV data, which contains a list of IDs. I need to make multiple GET calls with different IDs from that CSV file. </p>

<p>I have tried GET: api/Companies/${companyId}/random/request
Unfortunately this doesn't work cause it still adds the CSV data item at the end of the call instead of inside the string request.</p>

<p>How to I add a parameter from a CSV file into the Request String is my question?
I've tried {companyId} and ${companyId}</p>

<p>Please advise.</p>
",https://stackoverflow.com/questions/53477416/jmeter-with-csv-data-how-to-make-a-get-post-where-parameter-is-in-the-string-no,"['csv', 'jmeter', 'load']",580,TRUE,0,1
Caching with Kotlin Exposed?,"<p>I'm wondering how to add caching when using the Kotlin-Exposed library for SQL access.</p>

<p>For experimentation I've written a small application using both Spring Boot + Hibernate, and KTOR + Exposed.</p>

<p>I did some load-testing and when POSTing to both versions of the application, performance is quite similar with the KTOR + Exposed version having the edge.</p>

<p>However when GETting an existing record from both versions the difference is shocking especially when the database is getting larger - and all time is in Postgres.
My conclusion is that the difference can only be in Hibernate second-level caching that Spring Boot configures.</p>

<p>Seeing the value of caching for items that are repeatedly queried in multiple transactions / sessions, I'm wondering how to configure this in into the low level Exposed framework?</p>
",https://stackoverflow.com/questions/53260153/caching-with-kotlin-exposed,['kotlin-exposed'],2140,TRUE,2,1
Azure Kubernetes Services 502 Bad Gateway,"<p>I have AKS cluster up and running and on a heavy user load I get some 502 bad gateway responses. This only happens when the request load is high. I used the Azure DevOps load testing to achieve this behavior. I believe that it has something to do with the Load Balancer timeouts but I am not too sure how to go about debugging this. Perhaps I should be checking logs somehwere? Searching around google tells me that i should be checking nginx logs but not sure where to find those. Sorry I am newbie in kubernettes world. </p>

<p>These are all the pods that are in the cluster. apsever-api-... are my actual apps that serve the request:
<a href=""https://i.stack.imgur.com/MC3zV.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/MC3zV.png"" alt=""enter image description here""></a></p>

<p>The YAML file used to generate this:</p>

<pre><code># DS for AP
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
  name: apserver-api
spec:
  updateStrategy:
    type: RollingUpdate 
  selector:
  template:
    metadata:
      labels:
        app: apserver-api
    spec:
      containers:
      - name: apserver-api
        image: IMAGE
        env:
        - name: APP_SVC
          value: apserver-api
        ports:
        - containerPort: 80
        imagePullPolicy: IfNotPresent
# Service for AP
kind: Service
apiVersion: v1
metadata:
  labels:
    app: apserver-api
  name: apserver-api
spec:
  type: ClusterIP
  ports:
  - name: http
    port: 80
  - name: https
    port: 443
    targetPort: 80
  selector:
    app: apserver-api
  type: ""LoadBalancer""
</code></pre>

<p>and screenshot of the load test:<a href=""https://i.stack.imgur.com/kOcld.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/kOcld.png"" alt=""enter image description here""></a><a href=""https://i.stack.imgur.com/M0qoN.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/M0qoN.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/52657903/azure-kubernetes-services-502-bad-gateway,"['azure', 'nginx', 'kubernetes']",1486,FALSE,1,0
Gmail IMAP Javamail search returns no messages where web does,"<p>I'm working on load testing a web application that sends links via email.  I have a gmail account set up specifically to be the recipient for this.  When generating new accounts I add a guid to the recipient email (eg. loadtest_<strong>nmndbiwpdi</strong>@gmaildomain.com).  When I execute the test it will either succeed entirely or fail entirely, but failures seem to be pretty random.</p>

<p>Here is my search snippet:</p>

<pre><code>        if (!inbox.isOpen()) {
            inbox.open(Folder.READ_ONLY);
        }

        SearchTerm toTerm = new RecipientTerm(RecipientType.TO, new InternetAddress(to));
        messages = inbox.search(toTerm);
</code></pre>

<p>While the script is running, it executes this in a 100 iteration loop with a 3 second pause.  When it's failing script output with imap debugging on repeatedly shows the following:</p>

<pre><code>A4 SEARCH TO loadtest_nmndbiwpdi@gmaildomain.com ALL
* SEARCH
A4 OK SEARCH completed (Success)
</code></pre>

<p>But no actual result.  during the period of execution, however, I can do a search in gmail for this recipient and it pops right up.  Any suggestions for getting to the bottom of this?</p>
",https://stackoverflow.com/questions/51863628/gmail-imap-javamail-search-returns-no-messages-where-web-does,"['gmail', 'jakarta-mail', 'imap']",298,TRUE,0,2
race conditiion arises in Spring boot restful api using hibernate,"<p>Here is my controller and api :- </p>

<pre><code>@RequestMapping(value = ""/insertData"", method = RequestMethod.POST)
public  ResponseEntity&lt;?&gt; insertTransaction(@Valid @RequestBody Params requestParams,
        BindingResult results) {
    Map&lt;String, String&gt; responseMap = new HashMap&lt;String, String&gt;();
    transactionService.insertTransaction(requestParams);
    return new ResponseEntity&lt;Transactions&gt;(response, HttpStatus.OK);
}
</code></pre>

<p>Following is my service class's method having <code>@Transactional</code> annotation on class level. Here I need to insert a row in the table. But before that I'm fetching latest value from db by using this method mentioned in code  [getBalance()]. Now according to this value my table's columns will be updated (last line here in code) <code>dao.insert(Entity)</code></p>

<pre><code>public ResponseDTO insert(ReequestParams request) {
    Entity entity = new entity();
    List&lt;?&gt; list = null;
    request.setCurrTranPrevBal(getBalance(bEntity, loggedInUserId, opponentUserId));
    setCurrentPaymentStatus(request);

    BeanUtils.copyProperties(request, entity );

    entity .setTransactionId(transactionId());
    entity .setCreatedBy(entity .getInitiatedFrom());
    Date date = DateUtils.getCurrentDateTime();
    entity .setPaymentDate(date);
    entity .setCreatedOn(date);
    entity .setModifiedOn(date);
    entity .setModifiedBy(entity .getInitiatedFrom());

bEntity=balanceDAO.getByBothUsersId(entity .getPayerId(),
      transactionEntity.getPayeeId());


    } else {
        updatePendingTransactionAmount(entity , bEntity);


    saveUsersItems(entity );

    list = transactionDao.insert(entity );

    ResponseDTO dto = copyInResponseDto(list);
    return dto;
}

private void updatePendingAmount(Entity entity,
        BalanceEntity balanceEntity) {
    int payerId = entity.getPayerId();
    BigDecimal skyCredit = entity.getSkyCredit();
    BigDecimal pendingAmount = bEntity.getPendingAmount();

    bEntity.setPendingTransactionAmount(pendingAmount);
    bEntity.setModifiedOn(DateUtils.getCurrentDateTime());
    bEntity.setModifiedBy(transactionEntity.getInitiatedFrom());
    bEntity.setTransacted(true);

}
</code></pre>

<p>But when multiple http requests hits the api (load testing) , then insertion is done before reading the latest value. What I want is transaction must be inserted after reading the latest value. Insertion must be done one by one.
I tried synchronized block too and also isolatio levels but not working.
Here we are updating two tables by <code>usersBalanceDAO</code> and <code>transactionDao</code>.
Please help me implementing lock or synchronization if neeed here or is there any architectural issue .</p>
",https://stackoverflow.com/questions/48186366/race-conditiion-arises-in-spring-boot-restful-api-using-hibernate,"['spring', 'hibernate', 'spring-boot', 'spring-rest']",46,FALSE,0,0
why my application performance got increased while using appmetrics profiler in nodejs,"<p>I am running my nodejs application in <strong>production</strong> mode. while doing load testing using jmeter(100 requests per second), my system cpu goes up to 100% and throughput started reducing from 125 to 96 and it keeps decreasing when test continues. so i have added <strong><a href=""https://www.npmjs.com/package/appmetrics-dash"" rel=""nofollow noreferrer"">appmetrics-dash</a></strong> profiler in my application for cpu profiling. Below code has been added before creating and the server.</p>

<pre><code>var dash = require('appmetrics-dash');  
dash.monitor();
</code></pre>

<p>while doing profiling to check the cpu by running the nodejs application in <strong>production</strong> mode with same load cpu was normal(even if it goes high also, becomes normal) and the  through was 185. so i don't have any idea that due to which profiler parameter performance increased. i want to use the same parameter in my application to increase the performance. please help me to do this. </p>
",https://stackoverflow.com/questions/48299830/why-my-application-performance-got-increased-while-using-appmetrics-profiler-in,['node.js'],158,FALSE,0,1
Gatling: Random Feeder POST request: not found: value email (Gatling 3.0.0),"<p>**Randomized Load Testing with Gatling **
I want to test my built API for higher load, and therefore, I have to generate huge amount of random emails (I know there is currently no email-checking on the server, so I just create random strings). 
The tool I use is gatling-charts-highcharts-bundle-3.0.0 and I checked out other questions and webpages on how to solve this, and I got the information to use feeders. I tried the following code, but I don't get why there is an value not error always upcoming.
Basically:
I'm trying to create a randomized string feeder and use it in gatling 3.0.0, but when i do it the following way, I always receive a "" not found: value email"" error: </p>

<pre><code>package computerdatabase

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import scala.util.Random

class testsimu extends Simulation {


val httpProtocol = http
.baseUrl(""http://testurl.com/api"") // Here is the root for all    relative URLs
.acceptHeader(""application/json"") // Here are the common headers
.acceptLanguageHeader(""en;q=1.0,de-AT;q=0.9"")
.acceptEncodingHeader(""gzip;q=1.0,compress;q=0.5"")
.userAgentHeader(""TestApp/1.3.0(com.test.test;build:1;iOS12.1.0)Alamofire/4.7.0"")

val headers_10 = Map(""Content-Type"" -&gt; ""application/json"") // Note the  headers specific to a given request

val feeder = Iterator.continually(Map(""email"" -&gt; (Random.alphanumeric.take(20).mkString)))

val scn = scenario(""Login"") // A scenario is a chain of requests and pauses
 // Note that Gatling has recorded real time pauses
.feed(feeder)
.exec(http(""LoginRequest"") // Here's an example of a POST request
  .post(""/login"")
  .headers(headers_10)
  .body(StringBody(s""""""{ ""testmail"": ${email}, ""testmailagain"": ${email}, }"""""")).asJson)

setUp(scn.inject(constantUsersPerSec(10) during(5 seconds) randomized).protocols(httpConf))
}
</code></pre>

<p>Here the error message: </p>

<pre><code>GATLING_HOME is set to  /Users/privat/Documents/test/Development/gatling-charts-highcharts-bundle-3.0.0
15:06:12.819 [ERROR] i.g.c.ZincCompiler$ - /Users/privat/Documents/test/Development/gatling-charts-highcharts-bundle-  3.0.0/user-files/simulations/test/test.scala:45:46: not found: value email
  .body(StringBody(s""""""{ ""testmail"": ${email}, ""testmailagain"": ${email}, }"""""")).asJson)
                                         ^
15:06:12.821 [ERROR] i.g.c.ZincCompiler$ - /Users/privat/Documents/test/Development/gatling-charts-highcharts-bundle-3.0.0/user-files/simulations/higgs/higgs-sim.scala:45:103: not found: value email
  .body(StringBody(s""""""{ ""testmail"": ${email}, ""testmailagain"": ${email}, }"""""")).asJson)
                                                                                                     ^
15:06:12.856 [ERROR] i.g.c.ZincCompiler$ - two errors found
15:06:12.858 [ERROR] i.g.c.ZincCompiler$ - Compilation crashed
sbt.internal.inc.CompileFailed: null
    ...
</code></pre>

<p>Why is there an ""value not found"" error coming?</p>
",https://stackoverflow.com/questions/53361926/gatling-random-feeder-post-request-not-found-value-email-gatling-3-0-0,"['scala', 'gatling', 'scala-gatling', 'zinc']",1702,TRUE,2,1
Jmeter: Getting low throughput via HTTP Request Sampler,"<p>We are performing load testing via JMeter on our server. We are testing 2 load operations(Registration and Authentication). We have separate plans for both test-plans. Each test-plan consists of 2 HTTP Requests. After the first HTTP request, we are forming the response(using 3rd party jars) and forwarding it to the 2nd HTTP request.</p>

<p>Now, in the first load-operation(Registration), we are getting a throughput of ~10/sec.</p>

<p><a href=""https://i.stack.imgur.com/ZaMwB.png"" rel=""nofollow noreferrer"">see image of first operation</a></p>

<p>But, we are getting 1.3/sec of throughput in the second operation(Authentication).</p>

<p><a href=""https://i.stack.imgur.com/zilgv.png"" rel=""nofollow noreferrer"">see image of second operation</a></p>

<p>We are using the exact configurations for both operations. We tried increasing the HEAP size for JMETER and still, we are achieving the same throughput. We can use distributed testing as last resort, but we want to know the <strong>root cause</strong> of the problem.</p>
",https://stackoverflow.com/questions/51900156/jmeter-getting-low-throughput-via-http-request-sampler,"['jmeter', 'jmeter-4.0']",732,TRUE,2,2
Load test automation as part of VSTS release pipeline,"<p>I am trying to automate the load testing for one of mine Azure app services API suite. I was able to create a VSTS release pipeline which will do on-demand provision of performance environment (Azure resources) and was able to add load test as a step (VSTS release task) which will invoke a cloud load test. </p>

<p>The next step that i am trying to achieve is to have multiple cloud based load test for each region with a variable load pattern running as part of the same release pipe line in parallel to mimic a concurrent load from multiple region but unfortunately a load test task seems to be only for one load test file. Is there a way we can configure multiple load test in a single task. Any thing am missing or any thoughts on this entire process in general.</p>
",https://stackoverflow.com/questions/50818213/load-test-automation-as-part-of-vsts-release-pipeline,"['performance', 'azure', 'azure-devops', 'azure-pipelines-release-pipeline']",354,FALSE,1,1
Kafka throwing &quot;org.apache.kafka.clients.consumer.CommitFailedException&quot;,"<p>I have developed Kafka consumer application using <code>spring-kafka</code> library and used default consumer configurations with Manual commits. </p>

<p>I am running two instances of application listening to two different Kafka topics. While performing load testing I observed that I am getting below error in only one of the application for higher load:</p>

<pre><code>Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. 

    This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, 
    which typically implies that the poll loop is spending too much time message processing. 

    You can address this either by increasing the session timeout or by reducing the maximum size of batches 
    returned in poll() with max.poll.records.


org.apache.kafka.clients.consumer.CommitFailedException: 
    Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. 

    This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, 
    which typically implies that the poll loop is spending too much time message processing. 


You can address this either by increasing the session timeout or by reducing the maximum size of batches returned in poll() with max.poll.records.
    \n org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.sendOffsetCommitRequest(ConsumerCoordinator.java:725)
</code></pre>

<p>I read several articles and found if consumer spending to much time in processing message and broker is not getting information about consumer liveliness then consumer rebalancing happens and above exception will be thrown for uncommited messages.</p>

<p>I have resolved above error by setting max.poll.interval.ms to INEGER.MAX_VALUE.
But I am wondering why I am getting above error only in one of instance and why other instance working as expected for higher loads.</p>

<p>Can anyone please share correct root cause and ideal value for <code>max.poll.interval.ms</code> or appropriate solution for this issue</p>
",https://stackoverflow.com/questions/51537244/kafka-throwing-org-apache-kafka-clients-consumer-commitfailedexception,"['java', 'apache-kafka', 'kafka-consumer-api', 'spring-kafka']",5420,TRUE,0,3
Issue while passing data from one task function to another in locust with sequential task one by one,"<p>We are trying to achieve a user-scenatio based load testing which basically creates an order in one url and then we have to pass the order id in the next url to get the status of that order. </p>

<p>We are using locust sequential task for it. As we want it to run sequentially like first request -> second request -> third request. We are already getting the response data as expected but we are not able to send that variable data to the third task in order to display the status of the order.</p>

<pre><code>import json
from locust import HttpLocust, TaskSet, task, TaskSequence, seq_task

class MyTaskSequence(TaskSequence):

    response_data = """"

    @seq_task(1)
    def index(self):
        print(""--- First Task"")
        response = self.client.get(""/order/testing-06a5c/"")
        print(response.status_code)

    @seq_task(2)
    def get_details(self):
        print(""--- Second Task"")
        response = self.client.post(return_data, headers={""authority"": ""staging.domain.com"", ""referer"":""https://staging.domain.com/""})
        print(response.status_code)
        response_data = json.loads(response.text)
        print(response_data[""details""][""claim_uri""])
        self.response_data

    def on_start(self):
        self.get_details()

    @seq_task(3)     
    def post_details(self):
        print(self.get_details())
        print(""-- Third Task"", self.response_data)
        #return_data = self.response_data[""details""][""claim_uri""]
        #response = self.client.post(return_data, headers={""authority"": ""staging.domain.com"", ""referer"":""https://staging.domain.com/""})
        #print(response.text)

class MyLocust(HttpLocust):
    task_set = MyTaskSequence
    min_wait = 5000
    max_wait = 15000
    host = 'https://staging.domain.com'
</code></pre>

<p>Output:</p>

<pre><code>[2018-11-19 19:24:19,784] system.local/INFO/stdout:
[2018-11-19 19:24:19,784] system.local/INFO/stdout: --- First Task
[2018-11-19 19:24:19,785] system.local/INFO/stdout:
[2018-11-19 19:24:20,235] system.local/INFO/stdout: 200
[2018-11-19 19:24:20,235] system.local/INFO/stdout:
[2018-11-19 19:24:29,372] system.local/INFO/stdout: --- Second Task
[2018-11-19 19:24:29,373] system.local/INFO/stdout:
[2018-11-19 19:24:29,653] system.local/INFO/stdout: 200
[2018-11-19 19:24:29,654] system.local/INFO/stdout:
[2018-11-19 19:24:29,654] system.local/INFO/stdout: /payment/initiate/claim/bc6d5024-f608-41af-8e78-191798c31a69/
[2018-11-19 19:24:29,654] system.local/INFO/stdout:
[2018-11-19 19:24:37,089] system.local/INFO/stdout: --- Second Task
[2018-11-19 19:24:37,089] system.local/INFO/stdout:
[2018-11-19 19:24:37,367] system.local/INFO/stdout: 200
[2018-11-19 19:24:37,367] system.local/INFO/stdout:
[2018-11-19 19:24:37,367] system.local/INFO/stdout: /payment/initiate/claim/72217a35-01fc-488e-885e-aea81a57a463/
[2018-11-19 19:24:37,368] system.local/INFO/stdout:
[2018-11-19 19:24:37,368] system.local/INFO/stdout: None
[2018-11-19 19:24:37,368] system.local/INFO/stdout:
[2018-11-19 19:24:37,368] system.local/INFO/stdout: ('-- Third Task', '')
[2018-11-19 19:24:37,368] system.local/INFO/stdout:
^C[2018-11-19 19:24:40,598] system.local/ERROR/stderr: KeyboardInterrupt
</code></pre>

<p>We wanted to pass <code>response_data[""details""][""claim_uri""]</code> variable to @seq_task(3). So that we can form a dynamic target which will be <code>domain.com/response_data[""details""][""claim_uri""]</code>. This variable will be of string type and have to pass separately everytime the third task invokes.</p>

<p>We tried <a href=""https://stackoverflow.com/questions/35991355/in-locust-how-to-get-a-response-from-one-task-and-pass-it-to-other-task"">this</a> method but getting None in the output. </p>

<p>Is there anything which is missing out? </p>
",https://stackoverflow.com/questions/53376427/issue-while-passing-data-from-one-task-function-to-another-in-locust-with-sequen,['locust'],4021,TRUE,4,1
Launch Windows executable without conhost?,"<p>Is there a way to programmatically launch a background (i.e. non-windowed) executable <strong><em>without launching an associated conhost.exe process</em></strong>?</p>

<p>I have tried code such as this in the launcher process that spawns the worker process(es):</p>

<pre><code>var process = new Process();

process.StartInfo.FileName = executable;
process.StartInfo.Arguments = args;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
</code></pre>

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

<p>Context:</p>

<p>We are doing performance and load testing. To replicate our large customer environments, we have leased server capacity to allow us to run thousands of virtual servers but they are memory constrained (~ 300-500MB memory per VM).</p>

<p>The scenario is to run 100 processes per VM. The combination of the ~1.3 MB executable process and the 4-5 MB conhost.exe process (on <em>Windows Server Standard Edition core update 1803</em>) makes it impossible to run 100 processes. If we could eliminate the associated conhost.exe, we'd have a shot.</p>

<p>Note: conhost is much smaller on a Windows 7 environment (&lt; 800KB) but we have to use Windows server.</p>

<p>This same scenario works on Linux.</p>
",https://stackoverflow.com/questions/53328013/launch-windows-executable-without-conhost,"['.net', 'windows-server-2016', 'createprocess']",1019,FALSE,6,0
What is the benefit of putting async on a WebAPI controller action that performs no await operations?,"<p>I was recently asked an interview question for .NET WebAPI and it went like this...</p>
<p>Interviewer:</p>
<blockquote>
<p>Is there any benefit to adding <code>async</code> to the method signature of a WebAPI controller action that <strong>does not</strong> perform any async operations?</p>
</blockquote>
<p>My answer:</p>
<blockquote>
<p>No, because there is no blocking code in the method which means the controller action should run synchronously in its own thread from the thread Pool. Is that correct?</p>
</blockquote>
<p>Interviewer:</p>
<blockquote>
<p>No, it's actually not.</p>
</blockquote>
<p>I've searched the web for about 15-20 minutes to find a conclusive answer but have not been fully satisfied with the answers... So, am I right or was the interviewer right?</p>
<p>To further clarify the question: Would load testing a WebAPI controller action in this case perform better under load just because it has an async keyword places in the signature even though it has no async code in it?</p>
",https://stackoverflow.com/questions/51091546/what-is-the-benefit-of-putting-async-on-a-webapi-controller-action-that-performs,"['c#', 'asp.net-web-api']",88,TRUE,2,2
Have to restart Haproxy every few minutes,"<p>(Ubuntu 16.04, 6 cores, 24GB Ram, Haproxy 1.8.0)
I've read so much about how easy haproxy is, so we set it up, did some basic testing / load testing and things looked good. Put it into production last night, things look good, until we start getting production traffic. I have to restart haproxy every few minutes b/c sites just stop responding. The stats website isnt showing me any stats that look alarming, and the machine is hardly using any resources.</p>

<p>Basically here is what we see - We restart haproxy, everything works great, then a few minutes later we have to restart it again (under production load). 
Looking at the stats page I see the backend gets to around 50k sessions and then stuff just stops working.</p>

<p>Here is my config, can you check it out and help me understand how I should tune it?</p>

<pre><code>global

        log 127.0.0.1:22514 local2 debug
        chroot /var/lib/haproxy
        stats socket /run/haproxy/admin.sock mode 660 level admin
        stats timeout 30s
        user haproxy
        group haproxy
        daemon

        # Default SSL material locations
        ca-base /etc/ssl/certs
        crt-base /etc/ssl/private

        # Default ciphers to use on SSL-enabled listening sockets.
        # For more information, see ciphers(1SSL). This list is from:
        #  https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
        ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
        ssl-default-bind-options no-sslv3
        tune.ssl.default-dh-param 2048

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        option http-server-close
        timeout connect 50000000
        timeout client  50000000
        timeout server  50000000
        maxconn 80000
        errorfile 400 /etc/haproxy/errors/400.http
        errorfile 403 /etc/haproxy/errors/403.http
        errorfile 408 /etc/haproxy/errors/408.http
        errorfile 500 /etc/haproxy/errors/500.http
        errorfile 502 /etc/haproxy/errors/502.http
        errorfile 503 /etc/haproxy/errors/503.http
        errorfile 504 /etc/haproxy/errors/504.http

frontend loadbalanced_main
    log global
    bind *:80
    mode http
    redirect scheme https if !{ ssl_fc }
    acl web1 hdr(host) -i -m sub 1.a.com
    acl web2 hdr(host) -i -m sub 2.a.com
    acl web3 hdr(host) -i -m sub 3.a.com
    use_backend ordweb1 if web1
    use_backend ordweb2 if web2
    use_backend ordweb3 if web3
    default_backend loadbalanced_nodes

frontend loadbalanced_main_ssl
        log global
        bind *:443 ssl crt /etc/ssl/private/a.com.pem crt /etc/ssl/private/b.com.pem
        reqadd X-Forwarded-Proto:\ https
        acl web1 hdr(host) -i -m sub 1.a.com
        acl web1 hdr(host) -i -m sub 1.b.com
        acl web2 hdr(host) -i -m sub 2.a.com
        acl web2 hdr(host) -i -m sub 2.b.com
        acl web3 hdr(host) -i -m sub 3.a.com
        acl web3 hdr(host) -i -m sub 3.b.com
        use_backend ordweb1 if web1
        use_backend ordweb2 if web2
        use_backend ordweb3 if web3
        default_backend loadbalanced_nodes

backend ordweb1
    mode http
    redirect scheme https if !{ ssl_fc }
    balance roundrobin
    option forwardfor
    http-request set-header X-Forwarded-Port %[dst_port]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost
    server ordweb1 10.154.18.100:80 cookie check

backend ordweb2
    mode http
    redirect scheme https if !{ ssl_fc }
    balance roundrobin
    option forwardfor
    http-request set-header X-Forwarded-Port %[dst_port]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost
    server ordweb2 10.154.18.8:80 cookie check

backend ordweb3
    mode http
    redirect scheme https if !{ ssl_fc }
    balance roundrobin
    option forwardfor
    http-request set-header X-Forwarded-Port %[dst_port]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost
    server ordweb3 10.154.18.9:80 cookie check

backend loadbalanced_nodes
    mode http
    redirect scheme https if !{ ssl_fc }
    balance roundrobin
    option forwardfor
    http-request set-header X-Forwarded-Port %[dst_port]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost
    cookie SRV insert indirect nocache
    server ordweb1 10.154.18.100:80 check cookie ordweb1
    server ordweb2 10.154.18.8:80 check cookie ordweb2
    server ordweb3 10.154.18.9:80 check cookie ordweb3

listen stats
        bind *:1936
        stats enable
        stats uri /
        stats hide-version
        stats auth nope:blah
</code></pre>
",https://stackoverflow.com/questions/48207428/have-to-restart-haproxy-every-few-minutes,['haproxy'],482,FALSE,1,0
Sign in Webtest Oauth2,"<p>Using a full VS Enterprise to do some load testing against our WebApplication, I am struggling to create a webtest that works.
Our tested site is an Azure WebApp/API with an AAD authentication frontend. It is the authenticating as a test user that is failing. While recording with VS or fiddler, I'm failing to playback the test again. I believe it is a credentials/token issue...</p>

<p>As our app is not a Native one, I cannot get a token for a specific users credentials. (I'm getting a known exception)
I have succeeded in getting a Bearer token via the creation of a plugin and its PreWebtest method utilizing the code below however this is at application rather than specific user level.</p>

<pre><code>private string GetAdToken(string inClientId, string inAppKey, string 
inAadInstance, string inTenant, string inToDoResourceId)
{
// inToDoResourceId = https://graph.microsoft.com
var myCredential = new ClientCredential(inClientId, inAppKey);
string myAuthority = string.Format(CultureInfo.InvariantCulture, 
inAadInstance, inTenant);
var myAuthContext = new AuthenticationContext(myAuthority);
Task&lt;AuthenticationResult&gt; myResults = 
myAuthContext.AcquireTokenAsync(inToDoResourceId, myCredential);
return myResults.Result.AccessToken;
}
</code></pre>

<p>How can I achieve automation (via the web test) against a specific AAD test user identity to allow further testing automation of our web application?
Thanks in advance,</p>
",https://stackoverflow.com/questions/50976963/sign-in-webtest-oauth2,"['c#', 'visual-studio', 'web-testing']",769,TRUE,0,1
How to load a json file with unit ML test examples into jmeter http request payload,"<p>I have an endpoint that serves a ML model and I want to perform load testing on it. I'm using Jmeter 4.0 and its UI to construct a simple plan test. With 1 thread group that loops  for a given duration and continuosly performs https requests.</p>

<p>How do I parse multiple test examples into the payload of a http request, one by one and in json format. These examples are contained in a json file called samples.json. The nested structure is the following:</p>

<pre><code>{ ""dataset"": [
    {""id"": 1,
    ""in"":[
     {
        ""Feature1"": 8.9
        ""Feature2"":7.1
     }],
    ""out"": ""Class1"",
    },
    {""id"": 2,
    ""in"":[
     {
        ""Feature1"": 3.2
        ""Feature2"":5.1
     }],
    ""out"": ""Class1"",
    }]
}
</code></pre>

<p>IMPORTANT: I do not know the number of attributes a priori, so I need to retrieve them from the <strong>in</strong> key as that may change for other types of models, therefore I can't make use of harcoded jmeter variables, similar to what it's used  in the <em>CSV Config Set add-on</em>, where they need to specify the variables names for each column of the csv file</p>
",https://stackoverflow.com/questions/51503547/how-to-load-a-json-file-with-unit-ml-test-examples-into-jmeter-http-request-payl,"['json', 'parsing', 'request', 'jmeter', 'loading']",179,FALSE,0,1
Tools for measuring UI Performance,"<p>Can anyone suggest a tool to measure the performance of the UI level of a Web App? </p>

<p>I am not looking at Load testing specifically our app only has a max of 5 users at any one time, the metrics I want to be able to automate and rerun are things like Page Load times, the time it takes from clicking a button to an event happening, reaction times for slide out pains etc. We are measuring API performance seperatly and want to be able to determine if slowdown is an API issue or something that can be tidied up in the UI. </p>

<p>Ideally is there something I can combine with Selenium, click a button and then time how long it takes for the expected action to occur. Our Automation Framework is written in Ruby. Our testing is all done on Chrome as it is the only browser used, we have not yet moved to Headless Chrome and ideally don't want to move to Phantom JS. </p>
",https://stackoverflow.com/questions/48763303/tools-for-measuring-ui-performance,"['java', 'selenium', 'selenium-webdriver', 'webdriver', 'performance-testing']",3416,TRUE,3,2
How to loop every minute until API response condition is true?,"<p>I just recently started on writing Powershell scripts. I have a project where I'm performing Load Tests. I Run the test and Generate a Report based on the result of the test. The tool I am using does that all through their API's. So I have 3 Rest API's that I am sending calls using Powershell script. </p>

<p><strong>1st call: Starts a Load Testing for however many iteration is setup in the configuration (Maybe it runs for hours):</strong></p>

<pre><code>Invoke-RestMethod -Method Post -Uri $StartTestUrl -ContentType ""application/json"" -OutVariable StartTestResponse -Body $StartTestRequestBody | ConvertTo-Json
</code></pre>

<p><strong>2nd call: Gets status of the Load Test we just ran/or still running:</strong></p>

<pre><code>Invoke-RestMethod -Method Post -Uri $GetStatusUrl -ContentType ""application/json"" -OutVariable GetStatusResponse -Body $GetStatusRequestBody | ConvertTo-Json
</code></pre>

<p><strong>3rd call: Generate Report From the finished Test Run:</strong></p>

<pre><code>Invoke-RestMethod -Method Post -Uri $GenerateReportUrl -ContentType ""application/json"" -OutVariable GenerateReportResponse -Body $GenerateReportRequestBody | ConvertTo-Json
</code></pre>

<p><strong>Goal:</strong> I want to able to write a DO-WHILE loop or other loops in Powershell that checks the status of the test by calling 2nd api every minute for the status ""DONE"" in the response. And then start the 3rd call, because if the test is not DONE, I cannot generate a report. </p>

<p><strong>Example:</strong> </p>

<pre><code>foreach(var minute in minutes)
{

    // if(status.Done)
    // {
    //   CALL GenerateReport
    // }
    // else
    //{
        //keep checking every minute 
    //}
}
</code></pre>
",https://stackoverflow.com/questions/48491467/how-to-loop-every-minute-until-api-response-condition-is-true,"['powershell', 'loops', 'rest', 'scripting']",6772,TRUE,3,2
Elasticsearch performance degradation after migration to es 5,"<p>We have recently migrated our es clusters from 1.4 to 5.4 and seeing degradation in the performance.</p>

<pre><code> {
""from"": 0,
""size"": 100,
""query"": {
""constant_score"": {
""filter"": {
""bool"": {
""must"": [
{
""term"": {
""entityType"": {
""value"": ""PAID_INITIATIVE""
}
}
}
]
}
}
}
}
}
</code></pre>

<p>`</p>

<p>JVM : Java 8
Hardware is same for both the clusters
We aren't using both the cluster for any other queries except for load testing</p>

<p>Issue becomes deep when we query for 100k docs (size : 100k)</p>

<p>We have a use case, where we need to filter 100k docs
I have tested with both LZ4 and best_compression in es 5 cluster. Performance is bad in both cases</p>

<pre><code>For 100k docs
Es 1.4 : ~2s
ES 5.4 : ~3.5s (LZ4)
ES 5.4 : ~ 5s (best_compression)
</code></pre>

<p>I have checked the hot threads</p>

<p>Most of the threads are stuck at decompression</p>

<p>100.2% (501ms out of 500ms) cpu usage by thread 'elasticsearch[es-data-nqa-spr_nqa_elasticsearch-5.4-1-7-1c][[transport_server_worker.default]][T#12]'
7/10 snapshots sharing following 52 elements</p>

<pre><code>java.util.zip.Inflater.inflateBytes(Native Method)
java.util.zip.Inflater.inflate(Inflater.java:259)
org.apache.lucene.codecs.compressing.CompressionMode$DeflateDecompressor.decompress(CompressionMode.java:224)
org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader$BlockState.document(CompressingStoredFieldsReader.java:560)
org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.document(CompressingStoredFieldsReader.java:576)
org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.visitDocument(CompressingStoredFieldsReader.java:583)
org.apache.lucene.index.CodecReader.document(CodecReader.java:88)
org.apache.lucene.index.FilterLeafReader.document(FilterLeafReader.java:411)
org.elasticsearch.search.fetch.FetchPhase.loadStoredFields(FetchPhase.java:347)
</code></pre>

<p>I just need the id from the documents, even when I try with stored_fields : [""id""], it still decompresses the documents.</p>

<p>Any insights on this would be highly appreciated</p>

<p>Thanks,
Nitish</p>
",https://stackoverflow.com/questions/48897388/elasticsearch-performance-degradation-after-migration-to-es-5,"['elasticsearch', 'elasticsearch-5']",196,FALSE,2,0
Postgres Out of Memory,"<p>I am setting up a new install of postgres 10.4 and during load testing I keep receiving an out of memory error. </p>

<p><strong>Configuration</strong>:</p>

<pre><code> $ cat /etc/security/limits.conf
 postgres   hard    memlock 508559360
 postgres   soft    memlock 508559360


$ cat /etc/sysctl.conf
vm.nr_hugepages = 248320
vm.hugetlb_shm_group = 118
vm.overcommit_memory=2
vm.swappiness=1
vm.vfs_cache_pressure=50
kernel.sem = 250 32000 32 128
</code></pre>

<p><strong>System Specs</strong>:</p>

<pre><code>$ cat /proc/cpuinfo | grep ""core id"" | wc -l
32
</code></pre>

<p>Each CPU is an Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz. 16 physical cores, 32 logical as shown above.</p>

<pre><code>$ free -m
free -m
             total        used        free      shared  buff/cache   available
Mem:         510969       498048      2434      3098    10485        8343
Swap:        1071         1071        0
</code></pre>

<p><strong>Note</strong>: we have the memlock set at approximately 485 GB dedicated directly to postgres which shows in the high ""used"" column.</p>

<pre><code>$ df -h /dev/shm
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           250G   64K  250G   1% /dev/shm

$ cat /proc/meminfo 
MemTotal:       523232496 kB
MemFree:         1216648 kB
MemAvailable:    8348808 kB
Buffers:           65220 kB
Cached:         10211780 kB
SwapCached:         7620 kB
Active:          5556092 kB
Inactive:        5432428 kB
Active(anon):    2208064 kB
Inactive(anon):  1593084 kB
Active(file):    3348028 kB
Inactive(file):  3839344 kB
Unevictable:       24128 kB
Mlocked:           24128 kB
SwapTotal:       1097724 kB
SwapFree:              0 kB
Dirty:                52 kB
Writeback:             0 kB
AnonPages:        728044 kB
Mapped:            62904 kB
Shmem:           3085592 kB
Slab:            1454276 kB
SReclaimable:    1345008 kB
SUnreclaim:       109268 kB
KernelStack:       11984 kB
PageTables:        22856 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    15770860 kB
Committed_AS:    7920136 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:     71680 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:   248320
HugePages_Free:    245883
HugePages_Rsvd:     1800
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      329600 kB
DirectMap2M:    534444032 kB
</code></pre>

<p><strong>Postgres Info</strong>:</p>

<pre><code>SELECT version();
PostgreSQL 10.4 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609, 64-bit

max_connections=600   
shared_buffers= '8192 MB'
work_mem = '20 MB'
maintenance_work_mem = 2GB
max_parallel_workers = 8
wal_buffers = 16MB
max_wal_size = 20GB
min_wal_size = 1GB
checkpoint_completion_target = 0.9
effective_cache_size = '364 GB'
default_statistics_target = 1000
log_timezone = 'US/Eastern'
track_activities = on
track_counts = on
track_io_timing = on
stats_temp_directory = 'pg_stat_tmp'
datestyle = 'iso, mdy'
timezone = 'US/Eastern'
default_text_search_config = 'pg_catalog.english'
transform_null_equals = on
shared_preload_libraries = 'pg_stat_statements'
track_activity_query_size = 16384
track_functions = all
track_io_timing = true
pg_stat_statements.track = all
session_preload_libraries = 'auto_explain'
auto_explain.log_min_duration = '3s'
auto_explain.log_nested_statements='on'
auto_explain.log_analyze=true
</code></pre>

<p><strong>Note</strong>: I've started w/ work memory set as high as 250 MB and have slowly brought it down to 20 MB and still receive the errors. I've also verified that connections don't go higher than 120 connections. We use PGBouncer in front of the instance in session mode.</p>

<p><strong>The errors are too large for stack overflow but here they are linked</strong>:</p>

<p><a href=""https://codepad.co/snippet/derPU4E8"" rel=""noreferrer"">https://codepad.co/snippet/derPU4E8</a></p>

<p>The standout errors are:</p>

<pre><code>2018-06-18 15:02:22 EDT,28197,mydb,ERROR:  could not resize shared memory segment ""/PostgreSQL.1552129380"" to 192088 bytes: No space left on device
</code></pre>

<p>I don't understand what device its talking about. I don't have any that appear to be even close to OOM let alone the tiny 192088 bytes its talking about.</p>

<pre><code>2018-06-18 15:02:22 EDT,19708,mydb,ERROR:  out of memory
2018-06-18 15:02:22 EDT,19708,mydb,DETAIL:  Failed on request of size 7232.


2018-06-18 15:02:22 EDT,16688,,LOG:  could not fork worker process: Cannot allocate memory
2018-06-18 15:02:22 EDT,4555,,ERROR:  out of memory
2018-06-18 15:02:22 EDT,4555,,DETAIL:  Failed on request of size 78336.
2018-06-18 15:02:22 EDT,4552,,LOG:  could not open directory ""/usr/lib/postgresql/10/share/timezone"": Cannot allocate memory
2018-06-18 15:02:22 EDT,19935,mydb,ERROR:  could not load library ""/usr/lib/postgresql/10/lib/auto_explain.so"": /usr/lib/postgresql/10/lib/auto_explain.so: failed to map segment from shared object


2018-06-18 15:02:22 EDT,28193,mydb,ERROR:  out of memory
2018-06-18 15:02:22 EDT,28193,mydb,DETAIL:  Failed on request of size 8192.
2018-06-18 15:02:22 EDT,26927,mydb,ERROR:  could not resize shared memory segment ""/PostgreSQL.1101931262"" to 192088 bytes: No space left on device
</code></pre>

<p><strong>Question</strong>: How do I debug this issue and more importantly how can I resolve it?</p>
",https://stackoverflow.com/questions/50916940/postgres-out-of-memory,['postgresql'],7555,TRUE,9,2
"How and why do TypeInitializationExceptions crash dotnet on linux, and how can I prevent this defensively?","<p>I've been using <code>dotnet</code> on linux for a bit now and I've noticed that my <code>dotnet</code> process crashes hard and produces a core dump whenever a <code>TypeInitializationException</code> occurs.</p>

<p>Of course the solution is to fix the underlying type initialization issue, but I am wondering <em>why</em> this sort of exception is not one from which <code>dotnet</code> can recover, and 2) whether there is anything I can do to prevent a <code>dotnet</code> crash if such an exception occurs? Is there something worse about unhandled <code>TypeInitializationException</code> as opposed to other unhandled exceptions?</p>

<h2>example</h2>

<p>For instance, one of the API calls to my application eventually hits the following lines of code.</p>

<p>While load-testing this API call in particular I started seeing my <code>dotnet</code> crash.</p>

<pre><code>using (var gThumbNail = System.Drawing.Graphics.FromImage(scaledMap)) {
    gThumbNail.FillRectangle(new System.Drawing.SolidBrush(System.Drawing.Color.FromName(backgroundcolor)), 0, 0, width, height);

    int masterWidth = large.Width;
    int masterHeight = large.Height;
    int heightOffset = 0;
    int widthOffset = 0;
    int oldHeight = height;
    int oldWidth = width;

    // Scale or crop desired size thumb from master image
    if (cropthumb == false) {
        var pluckRect = new System.Drawing.Rectangle(large.Width / 2 - width / 2, large.Height / 2 - height / 2, width, height);
        var cropRect = new System.Drawing.Rectangle(0, 0, width, height);
        gThumbNail.DrawImage(large, cropRect, pluckRect, System.Drawing.GraphicsUnit.Pixel);
    } else {
        gThumbNail.DrawImage(large, widthOffset / 2, heightOffset / 2, width, height);
    }
}
</code></pre>

<p>You can reproduce this by instantiating a new <code>System.Drawing.Graphics</code> without all this particular code - <strong>on a Linux machine without GDI installed.</strong> Sometimes to reproduce the crash I have to hit it with some load (5 or 10 concurrent users).</p>

<p>When I inspected the core dump, I found:</p>

<pre><code>Nested exception -------------------------------------------------------------
Exception object: 00007fcab86500b0
Exception type:   System.TypeInitializationException
Message:          The type initializer for 'Gdip' threw an exception.
InnerException:   System.DllNotFoundException, Use !PrintException 00007FCAB864AAC8 to see more.
StackTrace (generated):
    SP               IP               Function
    00007FC994FF5A70 00007FCFCD621866 System.Drawing.Common.dll!Unknown+0x56
    00007FC994FF5AF0 00007FCFCD621735 System.Drawing.Common.dll!Unknown+0x95
    00007FC994FF5B50 00007FCFCD61EADA Acme.App.dll!Unknown+0x9ca
    00007FC994FF5F30 00007FCFC5D88ACF System.Private.CoreLib.dll!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
    00007FC996FF9F40 00007FCFC5DCBEB7 System.Private.CoreLib.dll!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x57
    00007FC996FF9F60 00007FCFCD5B8CD3 Acme.App.dll!Unknown+0x343
    00007FC9F3FFBAF0 00007FCFCD621735 System.Drawing.Common.dll!Unknown+0x95
    00007FC9F3FFBB50 00007FCFCD61EADA Acme.App.dll!Unknown+0x9ca
    00007FC996FFA040 00007FCFC5D88ACF System.Private.CoreLib.dll!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
    00007FC9F3FFBF30 00007FCFC5D88ACF System.Private.CoreLib.dll!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
</code></pre>
",https://stackoverflow.com/questions/53728851/how-and-why-do-typeinitializationexceptions-crash-dotnet-on-linux-and-how-can-i,"['.net', 'typeinitializationexception']",89,FALSE,1,0
Hive LLAP low Vcore allocation,"<p><strong>Problem Statment:</strong></p>

<p>Hive LLAP Daemons not consuming Cluster VCPU allocation. 80-100 cores available for LLAP daemon, but only using 16.</p>

<p><strong>Summary:</strong></p>

<p>I am testing Hive LLAP on Azure using 2 D14_v2 head nodes, 16 D14_V2 Worker Nodes, and 3 A series Zookeeper nodes. (D14_V2 = 112GB Ram/12vcpu) </p>

<p>The 15 nodes of the 16 node Cluster is dedicated to LLAP</p>

<p>The Distribution is HDP 2.6.3.2-14</p>

<p>Currently the cluster has a total of 1.56TB of Ram Available and 128vcpu. The LLAP Daemons are allocated the proper amount of memory, but the LLAP Daemons only uses 16vcpus total ( 1 vcpu per daemon + 1 vcpu for slider).</p>

<p><strong>Configuration:</strong></p>

<p>My relevant hive configs are as follows:</p>

<ul>
<li>hive.llap.daemon.num.executors = 10 (10 of the 12 available vcpu per
node)</li>
<li>Yarn Max Vcores per container - 8</li>
</ul>

<p><strong>Other:</strong></p>

<p>I have been load testing the cluster but unable to get any more vcpus engaged in the process. Any thoughts or insights would be greatly appreciated. </p>
",https://stackoverflow.com/questions/50996290/hive-llap-low-vcore-allocation,"['hive', 'hadoop-yarn']",551,FALSE,0,1
Jmeter - Distributed test - How to distribute users to multiple slaves,"<p>I am currently load testing login/logout function with max 2000 unique users and created a distributed test environment with  4 slaves and 1 master. We are able to successfully distribute traffic to all 4 slaves. </p>

<p>However, We do not want 4 slaves to use the same users during execution. We want to ensure each slave receive a unique set of test users in order to login to avoid any conflicts.</p>

<p><strong>Scenario:</strong> <br>
- Distribute test max 2000 login sessions using 2000 unique users over 1 hour (gradual increase) <br>
- Master to distribute traffic to 4 slaves <br>
- Each slave to receive or use a unique set of users to execute the test. Therefore there should be no conflict between users. </p>

<p>(user distribution, <br>
Slave#1: Users 1 - 500 <br>
Slave#2: user 501 - 1000 <br>
slave#3: User 1001 - 1500 <br>
Slave#4: user 1501 - 2000<br>
)</p>

<p>Our Jmeter version is 3.3 (Windows PCs)</p>

<p>How do we achieve this? your help will be appreciated. </p>

<p>Thank you
Z</p>
",https://stackoverflow.com/questions/51868705/jmeter-distributed-test-how-to-distribute-users-to-multiple-slaves,"['jmeter', 'unique', 'performance-testing', 'load-testing', 'distributed-testing']",1417,TRUE,0,1
How Java Thread Pool works?,"<p>I am working on an IoT project where devices send data to our Java Application called Gateway Adapter (GA).
In java I am using Thread Pool to start a new thread for every message we received from devices.</p>

<p>I have following code for Thread Allocator and Runnable Thread.</p>

<pre><code>public class ThreadAllocator {

  /** The thread pool. */
  private ExecutorService executorService = Executors.newWorkStealingPool(1000);

  public void allocateThread(IoSession session, String message) {
    LOGGER.info(""Entering allocateThread"");
    executorService.execute(new HelperThread(null,session, message));       
  }
}
public class HelperThread implements Runnable {

  private String message;

  public HelperThread(String message) {
    LOGGER.info(""Entering HelperThread"");
    this.message = message;
  }

  public void run() {
    LOGGER.info(""Entering run"");
    // Process Message
  }
}
</code></pre>

<p>With above code when i did a load testing by sending around 5000 messages, I could see messages ""Entering allocateThread"" and ""Entering HelperThread"" 5000 times in log file but my run method executed only 1000 times means message ""Entering run"" was there in log file only 1000 times. Due to which other 4000 messages could not processed.</p>

<p>Is it the expected behavior ""newWorkStealingPool"" Thread Pool? Will it only execute tasks equals to number provided in its constructor? E.g. Executors.newWorkStealingPool(<strong>1000</strong>);</p>

<p>Kindly suggest the solution?
Am i missing some configuration or it is not the correct Thread Pool for my scenario? Then which Thread Pool will work correctly in this case?</p>

<p>Really appreciate your help.</p>

<p>Regards,
Krishan</p>
",https://stackoverflow.com/questions/52774165/how-java-thread-pool-works,"['java', 'multithreading', 'threadpool']",186,FALSE,0,0
Jmeter - sends requests fine using parameter but not using body,"<p>I am load testing my website API. i try and send a request to the website for login which requires username and password. I initially set up http header manager, cookie manager and http request. </p>

<p>I enter name(username,password) and value parameter(say vis,new respectively)in parameters, then hit start and the tests completes successfully. On the other hand, if i type the key value pairs as dictionary <code>{""username"":""vis"",""password"":""new""}</code> in body tab and then run again, then request header has the post data(as seen from view results tree) but my server is not recognizing the post data. It just returns error as if no post data was sent.</p>

<p>I also made the <code>Content-Type</code> as <code>application/json</code> for the body tab method but i still get the same error.</p>

<p>Some error screenprints:
Header setting
<a href=""https://i.stack.imgur.com/9oWQw.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/9oWQw.png"" alt=""Header setting""></a></p>

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

<p>View results in tree - request header:</p>

<pre><code>Connection: keep-alive
Content-Type: application/json
Content-Length: 35
Host: url.com
User-Agent: Apache-HttpClient/4.5.6 (Java/1.8.0_191)
</code></pre>

<p>request-body:</p>

<pre><code>POST https://url.com/accounts/login.json

POST data:
{""username"":""vis"",""password"":""new""}

[no cookies]
</code></pre>

<p>So, my request works when i send it under parameters tab but not while using body data tab.</p>
",https://stackoverflow.com/questions/53743521/jmeter-sends-requests-fine-using-parameter-but-not-using-body,['jmeter'],1154,TRUE,0,1
Acquire AAD B2C access token in webtest,"<p>I have a REST API that is secured by AAD B2C access tokens. I now want to add webtests that can be used in load testing the API.</p>

<p>I am stumbling to acquire a valid access token for my test users from AAD B2C. I'm thinking to somehow get a token as a response from a REST API call to AAD B2C. </p>

<p>Looking in that direction on the net I have found a number of pages that point me to this rather undocumented endpoint </p>

<pre><code>https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/oauth2/v2.0/token?p={policy}
</code></pre>

<p>where I need to provide a number of parameters. So far I found</p>

<ul>
<li>client_id</li>
<li>client_secret</li>
<li>scope</li>
<li>grant_type</li>
</ul>

<p>When I now add</p>

<ul>
<li>grant_type=password</li>
<li>username</li>
<li>password</li>
</ul>

<p>I thought when POSTing to that I would get a token from AAD - but I rather get a service side exception</p>

<pre><code>{
    ""error"": ""server_error"",
    ""error_description"": ""AADB2C: An exception has occurred.\r\nCorrelation ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\r\nTimestamp: 2018-11-07 16:27:10Z\r\n""
}
</code></pre>

<p>Questions</p>

<ul>
<li>Is the approach correct? </li>
<li>Is there a better way to acquire an access token for a webtest?</li>
<li>Is the POST request malformed in any way?</li>
</ul>
",https://stackoverflow.com/questions/53193912/acquire-aad-b2c-access-token-in-webtest,"['azure-ad-b2c', 'restful-authentication']",419,TRUE,0,1
Saving form input from JMeter in a JSF app,"<p>I'm currently tasked to load test a JSF application using JMeter. For testing purposes, I'm trying to create the test script using localhost.</p>

<p>The scenario I've been trying to make a script of is when a user inputs something in the text field and clicks ""save as draft"". The value would then be persisted to the database.</p>

<p>I've already been successful getting the viewstate value (using CSS/JQuery Extractor), but when executing the script, Jmeter says it was successful but it wasn't able to save the input to DB. When checking the localhost sever logs, the error is index out of range:</p>

<p><a href=""https://i.stack.imgur.com/QBQxX.png"" rel=""nofollow noreferrer"">Index out of range picture</a></p>

<p>This is the generated http request via BlazeMeter Recording with edited VIEWSTATE variable:</p>

<p><a href=""https://i.stack.imgur.com/ivYjg.png"" rel=""nofollow noreferrer"">HTTP request sample</a></p>

<p>This is my first time using JMeter and JSF (I'm a developer but currently tasked to do the load testing, and I haven't used JSF before)... have I missed something in the setup? Any help would be highly appreciated, thank you!</p>
",https://stackoverflow.com/questions/53274312/saving-form-input-from-jmeter-in-a-jsf-app,"['java', 'jsf', 'testing', 'jmeter', 'load']",250,TRUE,0,1
Attempt to achieve high throughput in Hyperledger Fabric network,"<p>Hyperledger community in the article <a href=""https://arxiv.org/abs/1801.10228"" rel=""nofollow noreferrer"">Hyperledger Fabric: A Distributed Operating System for Permissioned Blockchains</a> shows that Fabric achieves end-to-end throughput of more than 3500 transactions per second in certain popular deployment configurations. I'm trying to achieve this result in my project, but I'm far from it. Here I report my first results of load testing and invite you to join the investigation how to achieve a high throughput with Hyperledger Fabric and Composer</p>

<h2>Project descriptions</h2>

<p>We build high-load service that uses Hyperledger Fabric. Our backend system consists of HF blockchain network, several microservices (node js) which communicate with blockchain via Hyperledger Composer, message broker for communication between microservices.</p>

<p><em>Hyperledger Fabric v1.1. Hypeledger Composer v0.19.0</em></p>

<p><em>Fabric network (deployed with Cello):</em></p>

<pre><code>{
    fabric001: {
      cas: [],
      peers: [""anchor@peer1st.main""],
      orderers: [""orderer1st.orderer""],
      zookeepers: [""zookeeper1st""],
      kafkas: [""kafka1st""]
    },
    fabric002: {
      cas: [],
      peers: [""worker@peer2nd.main""],
      orderers: [""orderer2nd.orderer""],
      zookeepers: [""zookeeper2nd""],
      kafkas: [""kafka2nd""]
    },
    fabric003: {
      cas: [],
      peers: [""worker@peer3rd.main""],
      orderers: [""orderer3rd.orderer""],
      zookeepers: [""zookeeper3rd""],
      kafkas: [""kafka3rd""]
    },
    fabric004: {
      cas: [""ca1st.main""],
      peers: [],
      orderers: [""orderer4th.orderer""],
      zookeepers: [""zookeeper4th""],
      kafkas: [""kafka4th""]
    }
}
</code></pre>

<p>fabric001-004 - AWS ec2 instances of t2.xlarge type. Initially, I used m5.4xlarge, but it costs a lot and CPU usage was always low even when Fabric starts to fail.</p>

<p>Fabric config:</p>

<pre><code>BatchTimeout: 0.2s
BatchSize:
    MaxMessageCount: 10
    AbsoluteMaxBytes: 98 MB
    PreferredMaxBytes: 512 KB
</code></pre>

<p>TLS disabled.</p>

<p>If required I can perform new tests with any configuration.</p>

<hr>

<h2>Load testing</h2>

<p>First of all I decided to test request to the state of the ledger (CouchDB). Blockchain is empty, only system data and few participants. Direct query requests to the CouchDB open port are very fast (~150 ms). My microservice connects to the Fabric by establishing a permanent connection for the existing identity. Requests take up ~500 ms in our system without high load. Half of this time accounts for message broker (AWS SQS is really slow). For load testing I'm using tool YandexTank. Load is going smoothly without latency increasing up to ~70 requests per second. Then latency stats degrade and at some point, chaincode starts return error messages. You can see test results here: </p>

<p><a href=""https://overload.yandex.net/97372#tab=test_data&amp;tags=&amp;plot_groups=main&amp;machines=&amp;metrics=&amp;slider_start=1523822254&amp;slider_end=1523822400"" rel=""nofollow noreferrer""><strong>TEST RESULTS</strong></a></p>

<p>There are two types of error messages that I received during iterations of load tests:</p>

<p><strong>1.</strong></p>

<blockquote>
  <p>[Hyperledger-Composer] undefined:HLFQueryHandler :queryChaincode()
  query payload returned an error: Error: 2 UNKNOWN: error executing
  chaincode: failed to execute transaction: timeout expired while
  executing transaction</p>
</blockquote>

<p><strong>2.</strong></p>

<blockquote>
  <p>LFQueryHandler :queryChaincode() query payload returned an error:
  Error: 2 UNKNOWN: error executing chaincode: transaction returned with
  failure: Error: The current identity, with the name 'txBuilder' and
  the identifier
  '5606acbada327a8ef33134e601f990076872b31a3dda5ec0a983e04915d16007',
  has not been registered`</p>
</blockquote>

<p>Chaincode container does not restart by itself, but from this time it doesn't work well. Sometimes I can't ping it, sometimes I can, but anyway latency is terrible. Only restart of the peer container can help. (I remind you that request to the ledger goes through one peer due to Composer, that's not good, but it's not the point of my investigation).
The second error is really strange because this is the only identity I use and it works before chaincode starts to fail. And it works after I restart peer.</p>

<p>During applying the load, CPU usage of the peer, chaicode and CouchDB are the most (as expected). I'm in the middle of a configuring monitoring system for my blockchain network and soon I will be able to share more information.</p>

<p>Any thoughts?</p>

<hr>

<h2>UPDATE #1</h2>

<p>I've been advised to use c*-type AWS instances for deploying Fabric. I chose c5.4xlarge (16 vCPU) for my tests. Also, I changed Fabric config a little bit:</p>

<pre><code>BatchTimeout: 1s
BatchSize:
    MaxMessageCount: 20
    AbsoluteMaxBytes: 98 MB
    PreferredMaxBytes: 512 KB
</code></pre>

<p>I performed the same test and, to my regret, I got the same result:</p>

<p><a href=""https://overload.yandex.net/98248#tab=test_data&amp;tags=&amp;plot_groups=main&amp;machines=&amp;metrics=&amp;slider_start=1524072561&amp;slider_end=1524072634"" rel=""nofollow noreferrer""><strong>TEST RESULTS</strong></a></p>

<p>In the figure below you can see the plot of containers CPU usage during the test which lasts 1 minute</p>

<p><a href=""https://i.stack.imgur.com/kMc4p.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/kMc4p.png"" alt=""CPU load of fabric001 instance""></a></p>

<p>Total CPU usage in maximum was ~ 30%. So we can see that problem of latency degradation lies elsewhere.</p>

<hr>

<h2>UPDATE #2</h2>

<p>As performance results were very poor, I decided to continue my tests with pure Fabric without any unnecessary intermediate components. Just Fabric network and nodejs SDK. See new report <a href=""https://stackoverflow.com/questions/50334489/performance-test-of-the-hyperledger-fabric"">here</a></p>
",https://stackoverflow.com/questions/49875309/attempt-to-achieve-high-throughput-in-hyperledger-fabric-network,"['load-testing', 'hyperledger-fabric', 'hyperledger-composer']",2993,TRUE,8,2
High response time on Azure Web App,"<p>I have developed a RESTful api that I deployed on Azure Web App. While performing the load test using JMeter, I see that the response time is huge i.e ~18secs. This response time appalls me because the endpoint I have exposed only receives a ~1-2KB of text data and enqueues it to azure service bus queue.</p>

<p>I have researched and found the following:</p>

<ol>
<li>Azure Web App and Queue needs to be in the same region. <strong>Yes they are</strong></li>
<li>Size of the VM matters. <strong>Mine is S3 Large</strong> </li>
<li>Software Design needs to be good/optimized. <strong>Controller only enqueues, no other operations</strong></li>
</ol>

<p>For load testing, I have provisioned a VM instance in the same region as the Azure Web App to minimize the latency. The enqueue statement takes time in the order of milliseconds, so I wonder what is taking the extra seconds while the serivce is in load?</p>

<p><strong>EDIT</strong>: My code creates a single instance of <code>QueueClient</code> which I reuse for all requests. The code is just the following two lines inside an <code>ApiController</code></p>

<pre><code>ServiceBusManager.GetQueueWriter().Enqueue(data); //data is no more than ~1KB                
return Request.CreateResponse(HttpStatusCode.OK, ""Data enqueued"");
</code></pre>
",https://stackoverflow.com/questions/48789445/high-response-time-on-azure-web-app,"['web-services', 'azure', 'azure-web-app-service', 'performance-testing', 'message-queue']",3925,TRUE,4,1
JMeter 1 user Response code: Non HTTP response code: java.net.ConnectionException Response message: Non HTTP response,"<p>I'm trying to learn load testing with JMeter(Very new). Using the tutorial to Build a Web Test Plan on the JMeter website and another youtube tutorial, I created an HTTP GET request to hit www.google.com/ but I get the following result:</p>

<pre><code>    Thread Name: Thread Group 1-1
    Sample Start: 2018-07-16 12:44:09 CDT
    Load time: 64018
    Connect Time: 64018
    Latency: 0
    Size in bytes: 2390
    Sent bytes:0
    Headers size in bytes: 0
    Body size in bytes: 2390
    Sample Count: 1
    Error Count: 1
    Data type (""text""|""bin""|""""): text
    Response code: Non HTTP response code: java.net.ConnectException
    Response message: Non HTTP response message: Connection timed out: connect
</code></pre>

<p>Here's my request:
<a href=""https://i.stack.imgur.com/E067U.png"" rel=""nofollow noreferrer"">link to image since I don't have 10 reputation yet</a></p>

<p>Looking around other people are getting this issue but their issue is after 250+ users: <a href=""https://stackoverflow.com/questions/39507765/response-code-non-http-response-code-java-net-connectexception-response-messag"">Response code: Non HTTP response code: java.net.ConnectException Response message: Non HTTP response message: Connection timed out: connect</a></p>

<p>However, I'm only trying to use one user and one thread, and I couldn't find anyone having the same error with only one user.</p>

<p>I set the Client implementation to HttpClient4 like the second answer suggests from <a href=""https://stackoverflow.com/questions/42388993/jmeter-non-http-response-code-java-net-connectexception"">jmeter Non HTTP response code: java.net.ConnectException</a> but I still get the same issue.</p>

<p>Thanks in advance!</p>

<p><strong>Answer</strong> Turns out it was because of our proxy server. Which was strange because I'm able to send request via postman and get responses. But I switched to a computer not on the proxy and everything is working now.</p>
",https://stackoverflow.com/questions/51368138/jmeter-1-user-response-code-non-http-response-code-java-net-connectionexceptio,['jmeter'],6728,TRUE,3,2
slowness after migrating to netcoreapp 2.0 and docker AWS ECS,"<p>I have migrated our WebAPI .net 4.6.1 project to netcoreapp2.0
After load testing have below observations. Need feedback ?</p>

<p>Old stack : AWS App Load balancer (ALB) -> EC2 (c4.large) -> WebAPI .net 4.6.1 (IIS)</p>

<p>New Stack : AWS App Load Balancer (ALB) -> ECS docker (c4.large eq) -> WebAPI netcore 2.0 (Kestrel) on Linux</p>

<p><a href=""https://i.stack.imgur.com/HFlhW.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/HFlhW.jpg"" alt=""Response time comparisons : .net vs netcore2.0""></a></p>

<p>Refer above response times comparison for .net 4.6 Vs netcore 2.0 Web API hosted on linux ECS docker</p>

<ol>
<li>Till 20 RPS netcore2.0 is faster.</li>
<li>After 20 RPS netcore 2.0 slows down and spiky.</li>
<li>Few more tests on netcore 2.0 failed after 40 RPS. Application simply does not respond.</li>
</ol>

<p>Was looking out for tuning kestrel.Removed AWS ALB and started hitting directly on IP from docker. Tests with 50 RPS were completing.</p>

<p>Questions :</p>

<ol>
<li><p>Has anybody observed AWS ALB not performing well when tied to docker and kestrel hosted WebAPI. As when I remove ALB things are good even till 80 RPS</p></li>
<li><p>Is putting Nginix in between ALB and Kestrel is good option and will help kestrel take more load and perform consistently on load.</p></li>
<li><p>Any other kestrel configuration that can be tweaked.</p></li>
</ol>
",https://stackoverflow.com/questions/48256954/slowness-after-migrating-to-netcoreapp-2-0-and-docker-aws-ecs,"['docker', 'amazon-ec2', 'asp.net-core-2.0', 'amazon-ecs', 'elastic-load-balancer']",135,TRUE,1,1
Any way to track custom statistics in locust,"<p>Locust is a great and simple load testing tool. By default it only tracks response times and content length from which it can deduce RPS, etc. Is there any way to track custom statistics in locust as well?</p>

<p>In my case a site Im testing returns couple of stats via headers. For example a count of SQL queries within a request. It would be very helpful to track some of these statistics in conjunction to tracking standard response times.</p>

<p>I do not see any way to do that in locust however. Is there a simple way for doing that?</p>

<p>Only customization I could see is setting <a href=""https://docs.locust.io/en/stable/api.html#locust.clients.HttpSession.request"" rel=""nofollow noreferrer"">url names in a request in docs</a>.</p>

<p>Manually storing some of the stats is not that straight forward either as locust is distributed so would like to avoid doing anything custom.</p>

<p>edit</p>

<p>There is an <a href=""https://github.com/locustio/locust/blob/master/examples/events.py#L36-L62"" rel=""nofollow noreferrer"">example</a> how custom stats can be passed around however that does not show up in the UI and requires custom export. Any way to add additional data in locust which will get logged both in UI and data export?</p>

<p>Maybe something like:</p>

<pre><code>class MyTaskSet(TaskSet):
    @task
    def my_task(self):
        response = self.client.get(""/foo"")
        self.record(foo=response.headers.get('x-foo'))
</code></pre>
",https://stackoverflow.com/questions/52596327/any-way-to-track-custom-statistics-in-locust,"['python', 'locust']",2309,FALSE,1,1
JDBC DB2 Driver Timer Threads stuck in BLOCKED state,"<p>I have a Java application hanging indefinitely, intermittently till the server is restarted</p>

<p>Looking at thread dumps, I have no clue why one of the TimerThread is spin up by underlying <strong>JDBC DB2</strong> driver and goes into <strong>BLOCKED</strong> state and Tomcat Thread goes into <strong>WAITING</strong> state</p>

<p>The Timer thread ""<em>Timer-140423</em>"" is waiting to lock an object which is held by Tomcat Thread ""<em>tomcat-http--38</em>""</p>

<p>Not sure why this would happen and how to mitigate this. Appreciate any direction to troubleshoot this behavior!</p>

<p>I've been trying to simulate this behavior in lower environments by various load testing methods (no luck so far). The performance analyzer I use behaves similar with my load tests in lower environments v/s at the time when the issue occurs in production</p>

<p><strong>Thread Dump:</strong> (elided)</p>

<pre><code>""Timer-140423"" #140723 daemon prio=5 os_prio=0 tid=0x00007f2b9c208000 nid=0x19012 waiting for monitor entry [0x00007f267ffba000]
   java.lang.Thread.State: BLOCKED (on object monitor)
    at com.ibm.db2.jcc.t4.a.l(a.java:1361)
    - waiting to lock &lt;0x0000000086226278&gt; (a com.ibm.db2.jcc.t4.b)
    at com.ibm.db2.jcc.am.fd.a(fd.java:641)
    at com.ibm.db2.jcc.am.fd.a(fd.java:306)
    at com.ibm.db2.jcc.am.fd.a(fd.java:337)
    at com.ibm.db2.jcc.t4.wb.a(wb.java:400)
    at com.ibm.db2.jcc.t4.wb.&lt;init&gt;(wb.java:78)
    at com.ibm.db2.jcc.t4.a.a(a.java:323)
    at com.ibm.db2.jcc.t4.a.b(a.java:704)
    at com.ibm.db2.jcc.am.o.a(o.java:246)
    at com.ibm.db2.jcc.am.en.c(en.java:946)
    at com.ibm.db2.jcc.am.mo.run(mo.java:27)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

""tomcat-http--38"" #68 daemon prio=5 os_prio=0 tid=0x00007f2c6ceb8800 nid=0x11715 in Object.wait() [0x00007f281ffd1000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:502)
    at com.ibm.db2.jcc.am.o.j(o.java:266)
    - locked &lt;0x0000000086226690&gt; (a com.ibm.db2.jcc.t4.a)
    at com.ibm.db2.jcc.am.fn.ec(fn.java:741)
    at com.ibm.db2.jcc.am.fn.executeUpdate(fn.java:717)
    - locked &lt;0x0000000086226278&gt; (a com.ibm.db2.jcc.t4.b)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:877)
    at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:870)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:633)
    at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:870)
    at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:931)
    at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:941)
    at com.my.app.FixTheFoxDAOJdbcImpl.completedChapter(FixTheFoxDAOJdbcImpl.java:1787)
</code></pre>

<hr>

<p><strong>Config/Env details:</strong></p>

<pre><code>Java             : jdk1.8.0_144
Tomcat           : tomcat-8.5.13.B.RELEASE
App Server       : Pivotal tcServer 3.2.5
Spring Version   : 4.5.3
DB Conn Pooling  : commons-dbcp-1.4.jar
Database         : DB2 Version: 11.1.0
JDBC/DB2 Driver  : db2jcc4-1.0.0.jar
</code></pre>

<hr>

<p>On a side note, I can certainly try using tomcat-dbcp or configure data source via JNDI to see if that helps, but not sure how to test or if issue would really be fixed and not appear again in future (until any configuration changes)</p>
",https://stackoverflow.com/questions/48798978/jdbc-db2-driver-timer-threads-stuck-in-blocked-state,"['java', 'multithreading', 'jdbc', 'apache-commons-dbcp', 'thread-dump']",625,FALSE,1,0
Apache JMeter: How to to send multiple messages using a single JMS Publisher,"<p>I am using Apache JMeter for load testing JMS consumer. My test plan is to publish messages directly to JMS Topic from which my MDB will read messages and process.</p>

<p>I have a requirement where each thread sends messages as below:</p>

<ol>
<li><p>1-session messages with unique sessionID.</p></li>
<li><p>10-request messages corresponding to above session. Here each message must have unique requestIDs. </p></li>
</ol>

<p>My messages are JSONObjects.</p>

<p>Currently in my Test Plan, I have created 11-JMS Publishers(1-for session and 10-for requests) to send messages. And I ran the test with 200 threads for 10minutes. Maximum time taken was around ~6000ms, which is huge.</p>

<p>Questions:</p>

<ol>
<li><p>Is there a way to send multiple messages using a single JMS Publisher ? 
Note: I can not use ""Number of messages to aggregate"", as each message should have a unique ID.</p></li>
<li><p>Does each JMS Publisher creates a JMS connection, even if all are running as part of a single thread ? If yes, Please suggest how to avoid.</p></li>
</ol>

<p>Looking forward to hear from experts.</p>

<p>Thanks in Advance.</p>
",https://stackoverflow.com/questions/48267000/apache-jmeter-how-to-to-send-multiple-messages-using-a-single-jms-publisher,"['jmeter', 'jms']",1768,FALSE,0,1
TCP/IP API in Jmeter,"<p>Can anyone please help on creating the TCP/IP API in Jmeter for the automation and load testing.</p>

<p>Below is the API call need to hit on Ip - 10.10.xx.xxx on port 4433</p>

<p>How to put these call in Jmeter for the scripting.</p>

<blockquote>
  <p>{
  \""COMM_DAILY_TXN_LIMIT\"":\""000001500000\"",
  \""COMM_MONTHLY_LIMIT_FLAG\"":\""1\"",
  \""COMM_CODE_USD\"":\""0\"",
  \""COMM_MER_TYPE\"":\""\"",
  \""MCHIP_FLAG\"":\""1\"",
  \""COMM_COD_POSTAL\"":\""400001\"",
  \""MASTER_TRMN_TYPE\"":\""0\"",
  \""RRN\"":\""200\"",
  \""COMM_MONTHLY_LIMIT\"":\""000015000000\"",
  \""TERMINAL_NUM\"":\""0006019A\"",
  \""MONTHLY_TXN_LIMIT\"":\""000015000000\"",
  \""COMM_KEY_ENTRY\"":\""1\"",
  \""COMM_NUM_FAX\"":\""9930197345\"",
  \""VSDC_FLAG\"":\""1\"",
  \""TYPE\"":\""3\"",
  \""PER_TXN_LIMIT_FLAG\"":\""1\"",
  \""MASTERCARD_PAN\"":\""\"",
  \""REQTYPE\"":\""200\"",
  \""DEVICE_TYPE\"":\""0\"",
  \""MONTHLY_LIMIT_UPD_FLAG\"":\""1\"",
  \""COMM_ENSEIGNE\"":\""VENK FINAL DBA\"",
  \""REQDT\"":\""15052018110916\"",
  \""COMM_CODE_CATEG\"":\""7011\"",
  \""MOBILE_NO\"":\""\"",
  \""CAM_RELIABILITY_INDICATR\"":\""1\"",
  \""COMM_NUM_COMM\"":\""0450000A0000716\"",
  \""COMM_CODE_AG\"":\""00045               \"",
  \""COMM_PER_TXN_LIMIT\"":\""000000100000\"",
  \""CODE_MONNAIE\"":\""356\"",\""COMM_DAILY_LIMIT_UPD_FLAG\"":\""1\"",
  \""COMM_INSTITUTION_FLAG\"":\""0\"",
  \""RUPAY_PAN\"":\""\"",
  \""COMM_TYPE_COMM\"":\""S\"",
  \""TERMINAL_TYPE\"":\""M\"",
  \""COMM_CODE_ANNUL\"":\""1\"",
  \""DAILY_TXN_LIMIT\"":\""000001500000\"",
  \""COMM_LOCALIS\"":\""MUMBAI\"",
  \""COMM_INTR_BIN_FLAG\"":\""0\"",
  \""VISA_PAN\"":\""\"",
  \""DAILY_LIMIT_UPD_FLAG\"":\""1\"",
  \""COMM_LIGNE1\"":\""VENK FINAL LEGAL\"",
  \""COMM_PER_TXN_LIMIT_FLAG\"":\""1\"",
  \""COMM_CODE_BNQ\"":\""00045\"",
  \""COMM_TIER\"":\""0\"",
  \""COMM_CODE_ECOMMERCE\"":\""0\"",
  \""COMM_LIGNE2\"":\""VENK FINAL LEGAL\"",
  \""PER_TXN_LIMIT\"":\""000000100000\"",
  \""MOBILE_NO1\"":\""\"",
  \""COMM_COD_PAYS\"":\""356\"",
  \""MOBILE_NO4\"":\""\"",
  \""MOBILE_NO5\"":\""\"",
  \""MOBILE_NO2\"":\""\"",
  \""PIN_ENCRYPTION_TYPE\"":\""1\"",
  \""SPECIAL_KEY_ENTRY\"":\""1\"",
  \""AMEX_MID\"":\""\"",
  \""MOBILE_NO3\"":\""\"",
  \""USER\"":\""MRLPAY\"",
  \""PAYWAVE_PAYPASS_FLAG\"":\""0\"",
  \""COMM_ADRES1\"":\""202AVANMALI\"",
  \""ACTION\"":\""C\"",
  \""BANKCODE\"":\""00045\"",
  \""COMM_ONLY_CASH_AT_POS_FLAG\"":\""0\"",
  \""COMM_ADRES2\"":\""VKPATILMARG\"",
  \""COMM_ADRES3\"":\""VKPATILMARG\"",
  \""ACTIVITY\"":\""1\"",
  \""LINE_ENCRYPT_TERM\"":\""4\"",
  \""COMM_IRD_FLAG\"":\""0\""
  }</p>
</blockquote>
",https://stackoverflow.com/questions/50487405/tcp-ip-api-in-jmeter,"['api', 'jmeter', 'tcp']",485,FALSE,-1,1
How to limit max rss memory size in nodejs?,"<p>We got a nodejs service running on a cloud server, giving it only 512MB RAM (more than enough for the application). </p>

<p>The server have slowly growing memory usage. And the server is automatically rebooted when reading 512MB memory limit. </p>

<p>I've tried reading memory usage stats with good amount of load testing, and the number shows a slowly growing <code>rss memory usage</code>, but very steady low <code>heap memory usage</code>. </p>

<p>I tried <code>--max_old_space_size</code> but that only limits the heap size, which is never a problem for me. The heap size reading is constantly under 50MB. </p>

<p>Is there a way to limit <code>rss memory size</code>? </p>

<hr>

<ol>
<li><p>Some quick research says the difference between <code>rss</code> and <code>heap</code> is buffer size from c++ code. Not sure if it's possible to debug those at all (gdb?).</p></li>
<li><p>Some say v8 has a limit of 1.4GB, is that also heap size limit? If it's rss limit, maybe I can modify nodejs source code, build a special version with smaller limit?</p></li>
<li><p>I've tried <code>--expose-gc</code> and cleanup gc frequently, but again, only help heap usage (and slow it down).</p></li>
</ol>

<hr>

<p>Update: found the reason, growing rss usage is due to a c++ memory leak from one of the libraries we used (thanks <code>bignum</code>). Avoid using it keeps rss memory steady. </p>
",https://stackoverflow.com/questions/49218331/how-to-limit-max-rss-memory-size-in-nodejs,"['node.js', 'memory', 'limit']",1678,FALSE,5,0
