title,body,link,tags,view_count,is_answered,score,answer_count
Performance testing environment,"<p>How do you begin with setting a Load environment for an Enterprise application (traditional MVC application with connectivity to some dependent enterprise systems)? For example, it would be ideal to have similar amount of Servers with same configuration as Production environment, also the Database should have similar size and capacity as Production to make Load environment similar to Production.</p>

<p>This does not happen in many organization, and I have seen organization using a trimmed down version of Production infra for the Load testing. Does that seems to be correct approach? Can we run a load test on the trimmed down version of Prod infra? Will this approach produce the result that can be used to predict Production application performance?</p>
",https://stackoverflow.com/questions/60689107/performance-testing-environment,"['performance', 'web-applications', 'jmeter', 'load-testing']",73,True,0,1
Performance testing tool vs performance testing tool Plugin integration with other tools,"<p>What is the difference between </p>

<ol>
<li><p>Using the performance testing tool directly(Jmeter ,..)</p></li>
<li><p>Integrate the performance testing tool with selenium using plugin(Jmeter ,..).</p></li>
</ol>

<p>Whether I can achieve all the functionalities in both the ways.</p>

<p>If used as a plugin will there be any limitations?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/61067331/performance-testing-tool-vs-performance-testing-tool-plugin-integration-with-oth,"['selenium', 'testing', 'selenium-webdriver', 'performance-testing', 'jmeter-plugins']",45,False,0,1
Angular simple performance testing,"<p>My question is quite easy but google did not grant me the results i wanted.
I have an angular application which is only available in our network. I want to test the perfomance before and after a certain changeset. </p>

<p>What i want is something to load my application on a certain page (maybe login before that but i can disable login for testing purposes) wait for it till its painted and measure how long that took. Do that a 1000+ times and give me back the average time and maybe some other details. </p>

<p>Important is that the browser cache is empty every test otherwise tests results will be useless.
It is a full stack test so front + backend both combined load times is the result i want.</p>

<p>Thanks in advance !</p>
",https://stackoverflow.com/questions/60510717/angular-simple-performance-testing,"['angular', 'testing', 'automated-tests']",1647,True,0,2
Performance testing with karate Mock,"<p>I am running a karate mock service on kubernetes and with replicaSet set to 10 repliacas to handle the load of the request i'm sending to the mocks. some request go through and some fail with the error message of <code>Connection refused (Connection refused)</code>. i just wanted find out if i can increase the threads so it can handle the load of about 70 to 80 tps. is there a way of increasing performance or threads with the use of <code>java -jar karate-0.9.4 -m feature -p8000</code> or configuration file</p>
",https://stackoverflow.com/questions/62062273/performance-testing-with-karate-mock,['karate'],20,False,1,0
Performance testing with custom summaryFunction,"<p>I'm tuning parameters with custom <code>summaryFunction</code> in caret.</p>
<p>I originally thought that if I set K-fold cross validation and input data has N points, performance will be measured with N/K data points.</p>
<p>However, apparently it seems not correct because when I extract <code>data$pred</code> by using <code>browser()</code> which is the handed data to summary function, it only had 10 data.
Since the input(<code>df</code>) has over 500 data points, this number is way smaller than my expectation.</p>
<p>Why does it only have 10 data? Is there any way to increase this?(=performance testing with more large data points)</p>
<p>Any kind of help is needed. Thank you.</p>
<pre><code>sigma.list &lt;- seq(1, 5, 1)
c.list &lt;- seq(1, 10, 1)
met &lt;- &quot;FValue&quot;

#define evaluation function
eval &lt;- function(data, lev = NULL, model = NULL){
  mat &lt;- table(data$pred, data$obs)
  pre &lt;- mat[1,1]/sum(mat[1,]) #precision
  rec &lt;- mat[1,1]/sum(mat[,1]) #recall
  res &lt;- c(&quot;Precision&quot;=pre, &quot;Recall&quot;=rec, &quot;FValue&quot;=2*pre*rec/(pre+rec))
  browser()
  res
}
#define train control
tc &lt;-  trainControl(method = &quot;cv&quot;,
                    number = 5,
                    summaryFunction = eval,
                    classProbs = TRUE,
                    )

#tune with caret
svm.tune &lt;- train(Flag~.,
                   data = df,
                   method = &quot;svmRadial&quot;,
                   tuneGrid = expand.grid(C=c.list, sigma=sigma.list),
                   trControl = tc,
                   metric = met
                   )
</code></pre>
",https://stackoverflow.com/questions/63098045/performance-testing-with-custom-summaryfunction,"['r', 'performance-testing', 'cross-validation', 'r-caret']",75,False,1,1
Performance testing - multiple websocket connections,"<p>I would need to test the &quot;resistance&quot; of the server receiving an increasing number of websocket connections, through which data is sent over MQTT.
To that purpose, I created a simple webpage which has an &quot;onLoad&quot; directive so that when it loads, it connects to the server over websocket and starts receiving the data. In order to simulate (and increase the number of websocket connections), I thought about JMeter with a Loop controller that opens the page. However, I note that when the page is loaded by JMeter, it does not establish the websocket (in other words, it discards the &quot;onLoad&quot;) javascript directive in the page. Is there a special JMeter configuration I'm missing? Is there another way to achieved what I would like?
Many thanks - Christian</p>
",https://stackoverflow.com/questions/65219706/performance-testing-multiple-websocket-connections,"['html', 'websocket', 'jmeter', 'performance-testing']",816,False,0,1
DHCP Server Performance Testing with Jmeter,"<p>I want to test a Router (DHCP Server),that means I  want to test the Performance of the DHCP Server (Router), in other words, when a  someone want to have access to the internet, his device get an IP address from this Router (DHCP Server).
I found a Load driver in form of a Linux Workstation which  simulate multiple DHCP clients, (device,PC,Smartphone), but it works only on Centos OS</p>

<p>my question is how to implement this Test with Jmeter.</p>
",https://stackoverflow.com/questions/59751556/dhcp-server-performance-testing-with-jmeter,"['jmeter', 'performance-testing', 'dhcp']",333,False,0,1
Performance testing for serverless applications in AWS,"<p>In Traditional Performance Automation Testing:
There is an application server where all the requests hits are received. So in this case; we have server configuration (CPU, RAM etc) with us to perform load testing (of lets say 5k concurrent users) using Jmeter or any load test tool and check server performance.</p>
<p>In case of AWS Serverless; there is no server - so to speak - all servers are managed by AWS. So code only resides in lambdas and it is decided by AWS on run time to perform load balancing in case there are high volumes on servers.</p>
<p>So now; we have a web app hosted on AWS using serverless framework and we want to measure performance of the same for 5K concurrent users. With no server backend information; only option here is to rely on the frontend or browser based response times - should this suffice?
Is there a better way to check performance of serverless applications?</p>
",https://stackoverflow.com/questions/64035750/performance-testing-for-serverless-applications-in-aws,"['amazon-web-services', 'performance-testing', 'serverless']",1205,True,3,3
I would like to use Jmeter for UI performance testing. How to use Jmeter for UI performance testing?,"<p>I would like to use Jmeter for UI performance testing. How to use Jmeter for UI performance testing? Lets say for example if i want to do for gmail or facebook. How do i enter the username/Userid and Password for it? I know that we need to pass parameters for that. But how do I do that? Can anyone please help me out with this. As, I've been stuck at it for a while now.</p>
",https://stackoverflow.com/questions/63405397/i-would-like-to-use-jmeter-for-ui-performance-testing-how-to-use-jmeter-for-ui,"['jmeter', 'performance-testing', 'jmeter-plugins', 'jmeter-5.0']",1682,False,0,2
Jmeter vs Gatling for performance testing 2020,"<p>I am trying to compare Gatling to Jmeter for performance testing.</p>

<p>My requirements is: </p>

<ol>
<li>I want compatibility with CI/CD and automation.</li>
<li>Performance should be good  (I know Gatling is a bit better performance in regard resource hogging).</li>
<li>Dynamic -> i.e. able to run a test, change some settings in the environment, and then run the test again.</li>
<li>Use on Cloud (I feel like because Gatling is better for performance, it would be better for the cloud... But I don't know if there really is a big difference here).</li>
<li>I am testing a <strong><em>Monolith</em></strong> system, so I wont be able to split up the system as well (as microservices), and using mocks(mockito) will be harder to be able to get more exact performance on for example a request for an endpoint, excluding database time, etc. So this kind of means the performance test I suppose I will be doing is more of a stress test and testing general performance of system, rather then getting measurements of isolated parts of system. </li>
</ol>

<p>Any help would be great. I ask because a lot of information seems to be out of date on this...</p>

<p>Edit: I amn't afraid of Gatling being programmed in Scala and gatling dsl. Im more afraid of limitations and gotchas that i amnt seeing! </p>
",https://stackoverflow.com/questions/61609917/jmeter-vs-gatling-for-performance-testing-2020,"['java', 'scala', 'jmeter', 'gatling']",2535,True,1,3
Performance testing of salesforce application using JMeter,"<p>I am trying to performance test the salesforce application using JMeter. All the requests has X-SFDC-Request-Id in the request headers. I couldn't correlate those header values from any of the previous request response. Is there any logic to implement the same using JMeter, as Salesforce does? Please assist</p>

<p>Thanks in advance, 
Anto</p>
",https://stackoverflow.com/questions/61237147/performance-testing-of-salesforce-application-using-jmeter,"['jmeter', 'performance-testing']",940,True,0,1
Performance Testing of SFTP server using jMeter,"<p>I need to perform testing of certain scenarios of upload/download on SFTP server. For that i am using apache JMeter plugin SSH protocol support. I am able to test single file upload for a single user. I am struggling to perform scenarios such as Multiple file upload for single user OR Multiple file upload for multiple users using this plugin.
Any idea if there is any other plugin in order to achieve this or any alternative way?</p>

<p>Custom sampler code </p>

<pre><code>import com.jcraft.jsch.*;
import java.io.*;

def jsch = new JSch()
def session = jsch.getSession(${__property(loginUserName)}, ${__property(hostURL)}, ${__property(port)}) 
session.setConfig(""StrictHostKeyChecking"", ""no"")
session.setPassword(${__property(loginUserPassword)})
def sftpSession = session.connect()
def channel = session.openChannel(""sftp"")
channel.connect();
def channelSftp = (ChannelSftp)channel;
log.info(""SFTP Connection with host is acquired"" + channelSftp)
channelSftp.cd(${__property(sftpDestinationFolder)});
for(i = 0; i &lt;100; i++){
    def f1 = new File(${__property(inputFileLocationOfBigFile)});
    channelSftp.put(new java.io.FileInputStream(f1), f1.getName()+i);
}
session.disconnect()
</code></pre>

<p>Working fine on GUI mode of apache server but when running on the linux box or headless way it gives the below error.</p>

<pre><code>2020-03-18 03:25:28,918 ERROR o.a.j.p.j.s.JSR223Sampler: Problem in JSR223 script JSR223 Sampler, message: javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 4: unable to resolve class JSch 
 @ line 4, column 12.
   def jsch = new JSch()
              ^

Script1.groovy: 12: unable to resolve class ChannelSftp 
 @ line 12, column 19.
   def channelSftp = (ChannelSftp)channel;
                     ^

2 errors

javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 4: unable to resolve class JSch 
 @ line 4, column 12.
   def jsch = new JSch()
              ^

Script1.groovy: 12: unable to resolve class ChannelSftp 
 @ line 12, column 19.
   def channelSftp = (ChannelSftp)channel;
                     ^

2 errors

    at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:183) ~[groovy-all-2.4.13.jar:2.4.13]
    at org.apache.jmeter.util.JSR223TestElement.processFileOrScript(JSR223TestElement.java:215) ~[ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.protocol.java.sampler.JSR223Sampler.sample(JSR223Sampler.java:69) [ApacheJMeter_java.jar:4.0 r1823414]
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490) [ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416) [ApacheJMeter_core.jar:4.0 r1823414]
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250) [ApacheJMeter_core.jar:4.0 r1823414]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 4: unable to resolve class JSch 
 @ line 4, column 12.
   def jsch = new JSch()
              ^

Script1.groovy: 12: unable to resolve class ChannelSftp 
 @ line 12, column 19.
   def channelSftp = (ChannelSftp)channel;
                     ^

2 errors

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310) ~[groovy-all-2.4.13.jar:2.4.13]
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:958) ~[groovy-all-2.4.13.jar:2.4.13]
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:605) ~[groovy-all-2.4.13.jar:2.4.13]
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:554) ~[groovy-all-2.4.13.jar:2.4.13]
    at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) ~[groovy-all-2.4.13.jar:2.4.13]
    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) ~[groovy-all-2.4.13.jar:2.4.13]
    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254) ~[groovy-all-2.4.13.jar:2.4.13]
    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211) ~[groovy-all-2.4.13.jar:2.4.13]
    at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:331) ~[groovy-all-2.4.13.jar:2.4.13]
    at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:181) ~[groovy-all-2.4.13.jar:2.4.13]
    ... 6 more
2020-03-18 03:25:28,927 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2020-03-18 03:25:28,927 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1
</code></pre>

<p>Any help on how to resolve this?</p>
",https://stackoverflow.com/questions/60706788/performance-testing-of-sftp-server-using-jmeter,"['ssh', 'plugins', 'jmeter', 'sftp', 'jmx']",2732,True,0,1
Who defined the currently known performance testing metrics?,"<p>Currently I am doing a research work about performance testing. I have found a lot of websites, where the following metrics are listed as the most important system metrics:</p>
<ul>
<li>speed</li>
<li>scalability</li>
<li>stability</li>
<li>reliability.</li>
</ul>
<p>I would like to 'cite'/'reference' this list properly, but nobody wrote where it comes from and I wouldn't want to cite Wikipedia in my paper.
I've been wondering whether someone defined this in his work or common usage defined this list.
Does someone have more information about this topic?</p>
",https://stackoverflow.com/questions/62917667/who-defined-the-currently-known-performance-testing-metrics,"['performance', 'testing', 'performance-testing', 'metrics']",20,False,1,0
Selenium C# integration With Neoload performance testing tool,"<p>Could anyone help me to elaborate procedure for integrating selenium C# script with neoload tool.i wanted to integrate selenium C# and Appium C# coding with neoload .So I went though some steps in documentation and unable to run the example code and didn't get the point how we can integrated with selenium/appium C# script with neoload for chrome or any browser and perform load testing for web or mobile application with same tool .Could you please have a look on shared screen shot and help me to share valuable document with any simple example for understanding the concept/getting some confidence.Thanks for giving valuable time<a href=""https://i.stack.imgur.com/99L0l.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/99L0l.jpg"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/59835313/selenium-c-integration-with-neoload-performance-testing-tool,"['c#', 'performance', 'selenium', 'devops', 'neoload']",337,False,1,1
"Google cloud CDN, performance testing using apache benchmark","<p>I have been serving static files from my NodeJS application deployed on Google App Engine, I have now setup a Google Cloud load balancer (GCLB) with CDN enabled and have moved my static files into a cloud bucket used at the backend.</p>

<p>The whole process works fine, however the issue is that the performance has not improved when testing using Apache Benchmark.</p>

<p>Testing 1000 requests, with 100 concurrency level:</p>

<pre><code>Document Length:        748366 bytes

Concurrency Level:      100
Time taken for tests:   37.069 seconds
Complete requests:      1000
Failed requests:        1
   (Connect: 0, Receive: 0, Length: 1, Exceptions: 0)
Total transferred:      748686041 bytes
HTML transferred:       747940252 bytes
Requests per second:    26.98 [#/sec] (mean)
Time per request:       3706.873 [ms] (mean)
Time per request:       37.069 [ms] (mean, across all concurrent requests)
Transfer rate:          19723.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  446 748.1    261    9033
Processing:   397 2920 2407.1   2252   17769
Waiting:       31   85 109.7     56    1595
Total:        444 3366 2578.2   2665   18986

Percentage of the requests served within a certain time (ms)
  50%   2665
  66%   3702
  75%   4410
  80%   4937
  90%   6504
  95%   8125
  98%  10853
  99%  13447
 100%  18986 (longest request)

</code></pre>

<p>Testing 1000 requests, with 10 concurrency level:</p>

<pre><code>Document Length:        748366 bytes

Concurrency Level:      10
Time taken for tests:   35.386 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      749112083 bytes
HTML transferred:       748366000 bytes
Requests per second:    28.26 [#/sec] (mean)
Time per request:       353.863 [ms] (mean)
Time per request:       35.386 [ms] (mean, across all concurrent requests)
Transfer rate:          20673.37 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       20   74  96.3     41     757
Processing:    98  278 159.5    240    2165
Waiting:       30   59  67.0     49    1915
Total:        135  352 196.6    290    2201

Percentage of the requests served within a certain time (ms)
  50%    290
  66%    334
  75%    381
  80%    442
  90%    577
  95%    742
  98%    935
  99%   1152
 100%   2201 (longest request)

</code></pre>

<p>I would not expect the concurrency level to dramatically increase the time taken to process requests. Maybe I am somehow misreading these results?</p>

<p>The other (related) issue to note is that CDN cache hits are shown as 0 in the Google LB UI.</p>
",https://stackoverflow.com/questions/59591779/google-cloud-cdn-performance-testing-using-apache-benchmark,"['google-app-engine', 'google-cloud-platform', 'apachebench', 'google-cdn']",429,True,0,1
Performance Testing with pytest fixtures- yielf related error,"<p>I am trying to implement a very basic simple performance testing using pytest, and modular fixtures.</p>
<p>I already have a fixture for time tracking:</p>
<pre><code>@pytest.fixture
def time_tracker():
    tick = datetime.now()
    yield
    tock = datetime.now()
    diff = tock - tick
    print(f&quot;\n runtime: {diff.total_seconds()}&quot;)
    return diff
</code></pre>
<p>I tried doing something like:</p>
<pre><code>@pytest.fixture
def performance_testing(time_tracking):
    diff = time_tracking
    if diff &gt; timedelta(seconds=30):
       raise ValueError(&quot;test is taking too long&quot;)
</code></pre>
<p>But I am having problems with the yield.
I think that when I am yielding from <strong>time_tracker</strong> then context goes back to the calling function which is <strong>performance_testing</strong> and not the test function itself.</p>
<p>My error:</p>
<pre><code>@pytest.fixture
def performance_testing(time_tracker):
    diff = time_tracker

&gt;       if diff &gt; timedelta(seconds=30):
E       TypeError: '&gt;' not supported between instances of 'NoneType' and 'datetime.timedelta'
</code></pre>
<p>I know I can easly implemnt this with duplicating the code and adding my <code>if diff &gt; timedelta(30)</code> logic, however I want to use modular fixtures.</p>
<p>Is this possible? if not, is there an elegant &quot;pytest&quot; way of doing this?
Also, I am not intersted in downloading pytest plugins.</p>
",https://stackoverflow.com/questions/64925498/performance-testing-with-pytest-fixtures-yielf-related-error,"['python', 'pytest', 'fixtures']",833,False,0,1
Performance Testing: What does fluctuating Response time indicates?,"<p>Below is the graph which I received after the performance test execution.
I am confused about the fluctuated response time graph.
NOTE: 1) Throughput graph is also fluctuating. 2) I did not receive any error during test.</p>

<p><a href=""https://i.stack.imgur.com/1XWOz.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/1XWOz.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/61478697/performance-testing-what-does-fluctuating-response-time-indicates,"['performance', 'jmeter', 'performance-testing', 'response-time']",476,True,0,1
How to achieve performance testing on smpp protocol,"<p>I'm trying to achieve performance testing for mobile originated(MO). I want to simulate mobile to application communication. anyone with SMS performance testing experience or knowledge can guide me on how to load test SMSC. Using an open-source tool preferably JMeter. </p>
",https://stackoverflow.com/questions/60949723/how-to-achieve-performance-testing-on-smpp-protocol,"['jmeter', 'performance-testing', 'load-testing', 'sms-gateway', 'smpp']",1220,True,0,1
"What affects TPS, hits per second in performance testing?","<p>I do a stress test to determine the maximum number of TPS(Transaction per second), Hits per second of a server by making HTTP requests through JMeter. </p>

<p>When I run script in Jmeter with different clients (tested on the same server, same script), I find that the number of tps(or hits per second) that the server can handle is different. </p>

<p>Assume that server can handle maximum of around 500 TPS when run script in client 1, 400 TPS when run script in client 2.</p>

<p>I am very confused with the following issues:</p>

<ol>
<li>Why is there such a difference  between two clients?</li>
<li>What affects TPS, hits per second ? </li>
<li>Although when doing stress test, I found that the server could only handle maximum of around 500 TPS, is there any way to increase the server's performance, increase the max number of tps that the server can handle? </li>
</ol>

<p>Thanks in advance especially if anyone who can solve this problem for me !!</p>
",https://stackoverflow.com/questions/61360152/what-affects-tps-hits-per-second-in-performance-testing,['performance-testing'],5131,True,2,2
Measure load or performance testing of GUI web applications,"<p>We are using JMeter to perform load testing of apis. If want to perform load or stress testing on web application which has JavaScript rendering, would JMeter with Selenium only option or any other options can be utilized like Selenium functional tests integrate with any performance tool. </p>

<p>Please suggest. </p>

<p>Have gone through/referred to this questions:
<a href=""https://stackoverflow.com/questions/21780391/how-to-approach-end-client-performance-testing-on-single-page-web-applicatio"">How to approach &quot;end-client&quot; performance testing on single-page (web) applications?</a></p>
",https://stackoverflow.com/questions/59898695/measure-load-or-performance-testing-of-gui-web-applications,"['jmeter', 'performance-testing']",1361,True,1,2
How to do performance testing of non server application,"<p>I have to conduct performance testing of an application which is not a web server. This application picks the data from a database and pushes into Kafka. What could be the strategy? In particular, when I look at the JMeter for ex, it says about making a REST request and getting the response to measure the peeformance. But in my case, this application does not server any service. I was wondering how to proceed..</p>
",https://stackoverflow.com/questions/60788428/how-to-do-performance-testing-of-non-server-application,"['jmeter', 'performance-testing']",77,True,0,1
How can i do Stress/Performance Testing in jmeter?,"<p>I Want to go for stress testing to start with the anticipated number of users (or just from 1 virtual user) and gradually increase the load such as for 10 threads, 20 threads, …. 100 threads until response time starts exceeding the acceptable value or errors start occurring.But For all this test run should i increases the Ramp-up Period(Seconds) or it will remain the same for all test?
Picture is given below:</p>

<p><a href=""https://i.stack.imgur.com/8yenK.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/8yenK.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/61849909/how-can-i-do-stress-performance-testing-in-jmeter,"['testing', 'jmeter', 'performance-testing', 'stress-testing']",262,False,0,2
How to use testcafe for client side performance testing?,"<p>I want to use testcafe for client side performace testing.Is it possible or is their any alternate option is available for client side performance testing?</p>
",https://stackoverflow.com/questions/64480958/how-to-use-testcafe-for-client-side-performance-testing,"['testing', 'automation', 'automated-tests', 'e2e-testing', 'testcafe']",231,True,0,1
Performance Testing With Gatling for an SSO Login UI Application,"<p>I have been doing Performance testing using Gatling Tool for an UI Dashboard with SSO , With single user I am able to capture Response time . With Multiple Load the Test fails with Connection Time Out error as There is no load applied on SSO Authentication .
This Dashboard can have 100+ Users load , So I am planning to have around 5 test users that will not have SSO Logins, so that the load can be simulated for testing . Is there are way we can use SSO Authentication of an UI for Gatling?</p>
",https://stackoverflow.com/questions/62794157/performance-testing-with-gatling-for-an-sso-login-ui-application,"['scala', 'performance', 'single-sign-on', 'load-testing', 'gatling']",394,False,2,0
Performance Testing WCF services with Content-Type application/soap+msbin1,"<p>We have WCF services with binary encoding and we are attempting to do performance testing after the .net Framework upgrade to .Net 4.8</p>
<p>We have learnt that Binary-Encoding is not supported in non .Net based client</p>
<p>Wanted to check if someone managed to use any script, plugins, libraries or something different to integrate binary-encoding in any of the performance testing tools/framework such as Load Runner / SOAP UI etc.</p>
<p>Any help is greatly appreciated.</p>
",https://stackoverflow.com/questions/63597482/performance-testing-wcf-services-with-content-type-application-soapmsbin1,"['performance', 'wcf', 'performance-testing', 'wcf-binding']",145,False,1,0
When to do performance testing using jmeter in jenkins CI?,"<p>I am creating a CI pipeline for microservices using Jenkins. Now, I am confused with performance testing, I mean where should I add stage for performance testing, after deploying my microservice to server or running microservice locally and then do performance testing ?</p>
",https://stackoverflow.com/questions/59801110/when-to-do-performance-testing-using-jmeter-in-jenkins-ci,"['jenkins', 'jmeter', 'jenkins-pipeline', 'jenkins-plugins', 'performance-testing']",182,True,0,2
locust : hooks -&gt; run a custom code with locust performance testing environment,"<p>I am trying to run a code during the load testing is happening(eg push aggregated data to database).</p>
<p>I am using locust <em><strong>init event handler</strong></em> --&gt; <a href=""https://docs.locust.io/en/stable/api.html#locust.event.Events.init"" rel=""nofollow noreferrer"">https://docs.locust.io/en/stable/api.html#locust.event.Events.init</a></p>
<p>Here is my code:</p>
<p><a href=""https://i.stack.imgur.com/dYJAO.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/dYJAO.png"" alt=""enter image description here"" /></a></p>
<p><em><strong>process_exit_code</strong></em> value is always <em><strong>None</strong></em>, event locust has finish the load test.</p>
<p>Is there any way that we can run a custom code like this during the time locust is performing the performance testing ?</p>
<p>Please help.</p>
",https://stackoverflow.com/questions/62694640/locust-hooks-run-a-custom-code-with-locust-performance-testing-environment,"['python-3.x', 'locust']",390,True,1,1
performance testing of add to cart product in magento using jmeter,"<p>I am creating a <strong>JMeter Script</strong> to add products into the cart for the <strong>Magento2</strong> website. Post request is executing without any error but the product isn't displaying into cart after that request.</p>

<p><a href=""https://i.stack.imgur.com/H3Vw9.png"" rel=""nofollow noreferrer"">Check snap of post request</a></p>
",https://stackoverflow.com/questions/62172972/performance-testing-of-add-to-cart-product-in-magento-using-jmeter,"['jmeter', 'magento2']",748,False,0,2
Post request with url encoded payload in gatling performance testing tool,"<p>How to load test a Rest api post request which is having a body payload in &quot;x-www-form-urlencoded&quot; format</p>
<p>Following is my curl request -</p>
<pre><code>curl --location --request POST 'https://&lt;dns-test&gt;/master-service/v1' \
--header 'business: Test' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'apiKey: testAPIKEY' \
--data-urlencode 'assertion=eyJraWQiOiGHJKJHGHJKJHGHJKJHkhHJHjhghjkhghjklkjhghjkkjhghjkjhghjkjhjkjhLU9BRVAtMjU2In0.g965X6rIIajOC_6t2NIlMnvJzmO50_UdJhUvOwkQwOw8nS8BhqUM0n4jf2lGNFJ7TICNUPmcPUhRmriA7R5W7ZjwLrplrDeyswmjUJAgUAv4ENDHgTdvswxtINuNvAxw99_NF4ccaOJJ6_BATTtTfOB7dmi7yxlFdAgtlWDD_biBbNx0PQ77-vXOTVVcuL5AYLUq6ZHuYFKIGNhFbtzwQjm1GhDvceoGf69THWyDzJKqapiM1LBZtscbvHsM9S78r8VTgdGNqTAaICzJkaigk1BXEGkvbnfghjkjhgfghjkjhgfghjklkjhgfhjklhgfhjklkhgfghjklkjhgjklkjhgklkfjklhgfjklkjhgfhjklkjhgfjklhgfgkl;ghjklhgf7gppdKbtFalcZCkNa52RqIfJO718nNqJvmjx2zgS6VkksekeJ-_znvSC0mx-LtLA4NhNbQJJRYZFUrB4cqXYteeynXEsdhc1TBojN9FmQxxeuRrTcufXNv5qKkOu4FchvDRksx43QOHxyFBq1a6vNyTLy4wYO2gtEHM1fAo8yeoqO-N2ljUjPKlgukWal59lH_W6T-axKc1YnmvRU8VH-FAtsoI283gywghBkhOgy8ZlRRX_NV8nZEBbZmU9iyB9S1I4gnRwcxBWliqs99wVy0i6o77hPynVMqm1HSS3H4FO-JoP3ng1bkQxmGcty43mquqfXXk49HJ2s1PZSjLJHQKDEGnS8qTGjM3_lKKihWIojaxb0Dvu7ktiOXmhLATc6_Op2eO-Bp4Mu4k7eccUM063PYSD3x_G_7idWpa6X7zS6QLtl8t8MF6S76ZQp56ekbe4Ygq8LlC0af-BGlnFxHJZdpAMU2tBhD0uNSKRrmntSy8IOI8dwcCUdAIni9oOI-xLht9-CdvMtAE16XPP7q8NeA7XfkYiOTI5GYzAnMnTjOOWUF-U3WaXx9-GjUIiUboMYjHN7w3LrYIeL_UmRXha07Lm-83Lbi3VGwJRteX7sdMCLXEYFWlfkgthjJyz43DhemrpiPSvI7oKn13itiAd4ThfqJIYVlAYDI29Yix78YrIbleWyK5FQELCcmY6wNJEsfzLs57Ew8PLIk6_kjutHUIyzDpChIUOZ9Xq3Bq_E8G721raHQfPuAnKxx0OjWr6UnuqGwuuwRmHsbrNW8Vht0B4ucBiDP2cjdUmv2alifXU-X3-Pw7T2INscDNbu4bXRD1zV81K4GjQl1aveMJjCgZwu-dtSo8G4ccaHKuvdGquqyShrFR49-NYjC9Sk5UMqXbnDiDDwuJNETLs6frgqEOSqzW6deujaZSEWHhhZi5PdVOPZ7SiBFanahODXw3CpBlzU181fylwpY_-puKhzFe6NSbGwsI1fWUnSFH6SEhBuzn8Vl5jf12Av1BS4BYNl9L2pY_aGdjPbF8QhD9DvPRg22vYmUUIwAYSDQd3HfhTFauxE4Pd8Tc8YQhbj5DmRlll7fbEJGZn_CZoPGNX1aKV-6mHCemUXxebMeytjRI19y4bEGR7m1oflkmvb6LR75aMJfvEkguacKSLYdbQzfnn9Z7jKXSjhc-8z8kBaB0KfUxu26NaOCiaHVMMbl42CxhONHELIMkdP4UFS_9UMCXOMjhu2pnrzVp3H6TIT8bjs3SdLEPh9aCZ1DyXMq5x_-_jG-Bsv3rxH5cB5SI-Fo_aIfOJBn82leQjeVxW72M6yJ8DaHvFTkrWQJ6Mvm_jK4-6ybqQi1FVPCCQhcZhpl_3CHHUkEIag14-5W76s228JPJO0-HE7C1Ac6qjK8x_EU_452ut4HxontfdXdIadDm2_LCShTXEMjwCrOSw4SzxY4RPLc_Z8Ai_1DejZkG0bRYyXJfDeJfr8zK1ht7RvlTPwtio1hipvGGhXZGwGX9xHJek60H0FERaJQRSlVgPC-hfDk5ylvp2XzSX8UTf2KqLR--slLf_9VpTO8DuKlN0itx-WqDWK_G30ra4AocMdjMSOtNH1DIhqPq9Zxw6pRxoVrvtJg8gmRwq2gMN5pDnMY4XrXIfYJQ.DYoUJzMcIi5uD0Hg0y-6qA' \
--data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer' \
--data-urlencode 'scope=testing'```

Following is my code executing the request in Gatling -

val httpProtocol = http
    .baseUrl(&quot;https://&lt;dns-test&gt;/master-service/v1&quot;)
    .header(&quot;apiKey&quot;, &quot;testAPIKEY&quot;)
    .header(&quot;business&quot;, &quot;test&quot;)
    .header(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot;)
    .formParam(&quot;scope&quot;, &quot;testing&quot;)
    .formParam(&quot;grant_type&quot;, &quot;urn:ietf:params:oauth:grant-type:jwt-bearer&quot;)
    .formParam(&quot;assertion&quot;, &quot;eyJraWQiOiJjcnlwdC1rZXloc2dfghjkjhgfdghjklkjhgfghjkjhgnIjoiUlNBLU9BRVAtMjU2In0.g965X6rIIajOC_6t2NIlMnvJzmO50_UdJhUvOwkQwOw8nS8BhqUM0n4jf2lGNFJ7TICNUPmcPUhRmriA7R5W7ZjwLrplrDeyswmjUJAgUAv4ENDHgTdvswxtINuNvAxw99_NF4ccaOJJ6_BATTtTfOB7dmi7yxlFdAgtlWDD_biBbNx0PQ77-vXOTVVhgfdfghjhghjhghjhgijhghijhghikjhg80s174nxHTpzpvsC2S1f4DzefbarzZc-ypuXHxpwoTmi3PLLfmGZrIOTBvSHKhk23x8KFGiWLEJBe2dba1MmE_Lzwg9G5G-5qSHZtlxAbAUIDL6S_JlHqHm4ftd8rEzLRlV4ZmoE_ETeJI3cv1W_NZF31YYW81SM-bYfKlC0x0p0KLaILUjNxTcr_Cp8ydyiALNBjjXnK5IqAoLwlpQHZwh0t7yrmYFACWZRNkJQGXpqFhYO4ih-BJNBRDd5D97In90I3mM1wFP3yezRkSBNFVG7gppdKbtFalcZCkNa52RqIfJO718nNqJvmjx2zgS6VkksekeJ-_znvSC0mx-LtLA4NhNbQJJRYZFUrB4cqXYteeynXEsdhc1TBojN9FmQxxeuRrTcufXNv5qKkOu4FchvDRksx43QOHxyFBq1a6vNyTLy4wYO2gtEHM1fAo8yeoqO-N2ljUjPKlgukWal59lH_W6T-axKc1YnmvRU8VH-FAtsoI283gywghBkhOgy8ZlRRX_NV8nZEBbZmU9iyB9S1I4gnRwcxBWliqs99wVy0i6o77hPynVMqm1ghjjhghjkjhghjkjhjkjkjhLrYIeL_UmRXha07Lm-83Lbi3VGwJRteX7sdMCLXEYFWlfkgthjJyz43DhemrpiPSvI7oKn13itiAd4ThfqJIYVlAYDI29Yix78YrIbleWyK5FQELCcmY6wNJEsfzLs57Ew8PLIk6_kjutHUIyzDpChIUOZ9Xq3Bq_E8G721raHQfPuAnKxx0OjWr6UnuqGwuuwRmHsbrNW8Vht0B4ucBiDP2cjdUmv2alifXU-X3-Pw7T2INscDNbu4bXRD1zV81K4GjQl1aveMJjCgZwu-dtSo8G4ccaHKuvdGquqyShrFR49-NYjC9Sk5UMqXbnDiDDwuJNETLs6frgqEOSqzW6deujaZSEWHhhZi5PdVOPZ7SiBFanahODXw3CpBlzU181fylwpY_-puKhzFe6NSbGwsI1fWUnSFH6SEhBuzn8Vl5jf12Av1BS4BYNl9L2pY_aGdjPbF8QhD9DvPRg22vYmUUIwAYSDQd3HfhTFauxE4Pd8Tc8YQhbj5DmRlll7fbEJGZn_CZoPGNX1aKV-6mHCemUXxebMeytjRI19y4bEGR7m1oflkmvb6LR75aMJfvEkguacKSLYdbQzfnn9Z7jKXSjhc-8z8kBaB0KfUxu26NaOCiaHVMMbl42CxhONHELIMkdP4UFS_9UMCXOMjhu2pnrzVp3H6TIT8bjs3SdLEPh9aCZ1DyXMq5x_-_jG-Bsv3rxH5cB5SI-Fo_aIfOJBn82leQjeVxW72M6yJ8DaHvFTkrWQJ6Mvm_jK4-6ybqQi1FVPCCQhcZhpl_3CHHUkEIag14-5W76s228JPJO0-HE7C1Ac6qjK8x_EU_452ut4HxontfdXdIadDm2_LCShTXEMjwCrOSw4SzxY4RPLc_Z8Ai_1DejZkG0bRYyXJfDeJfr8zK1ht7RvlTPwtio1hipvGGhXZGwGX9xHJek60H0FERaJQRSlVgPC-hfDk5ylvp2XzSX8UTf2KqLR--slLf_9VpTO8DuKlN0itx-WqDWK_G30ra4AocMdjMSOtNH1DIhqPq9Zxw6pRxoVrvtJg8gmRwq2gMN5pDnMY4XrXIfYJQ.DYoUJzMcIi5uD0Hg0y-6qA&quot;)

  val scn = scenario(&quot; load test&quot;)
    .exec(
      http(&quot;PostRequest&quot;)
        .post(&quot;/&quot;)        
    .check(status.in(200))
    
  setUp(scn.inject(atOnceUsers(1)).protocols(httpProtocol))
</code></pre>
<p>I am getting following  error:-
value formParam is not a member of io.gatling.http.protocol.HttpProtocolBuilder</p>
",https://stackoverflow.com/questions/64193602/post-request-with-url-encoded-payload-in-gatling-performance-testing-tool,"['performance', 'gatling']",462,False,0,1
"Connect to a running JavaWebStart, Oracle Forms 12c App [Performance Testing]","<p>Until now I was doing load testing on our Oracle Forms application with Oracle Load Testing. Now we want to change our App, new app will be a Java Web Start application - will be started from a .jnlp file, not from InternetExplorer. </p>

<p>Now, when I'm testing the new app I have got a problem - I can't connect to a running application. I have got a FRM-93618: fatal error reading data from runtime process in the test-tool and FRM-92104 in the running application.
The problem occurs during step nca.connect();</p>

<p>Maybe someone has an idea what can be the problem? 
Or how to test the performance in this kind of application (functional tests are possible - we are using TestComplete). </p>

<p>Thanks in advice!</p>
",https://stackoverflow.com/questions/61053021/connect-to-a-running-javawebstart-oracle-forms-12c-app-performance-testing,"['oracle', 'performance-testing', 'java-web-start', 'jnlp', 'oracleforms']",359,False,0,1
Issue on Performance testing of H2 database using Jmeter JDBC requests,"<p>Facing some issue while running the performance testing of H2 database for a corda project.</p>

<p>JDBC requests in Jmeter is used for this testing .
some screenshots of Jmeter is given.</p>

<p><a href=""https://i.stack.imgur.com/910hO.png"" rel=""nofollow noreferrer"">jdbc connection issue</a></p>

<p><a href=""https://i.stack.imgur.com/WxfFD.png"" rel=""nofollow noreferrer"">jdbc reruest</a></p>

<p><a href=""https://i.stack.imgur.com/YakCp.png"" rel=""nofollow noreferrer"">result</a></p>
",https://stackoverflow.com/questions/60880263/issue-on-performance-testing-of-h2-database-using-jmeter-jdbc-requests,"['jdbc', 'jmeter', 'performance-testing', 'h2', 'corda']",137,True,0,1
Jmeter - Is it worth performance testing a page with embedded resources enabled,"<p>I have gone through few websites and of course BlazeMeter to learn how can i download embedded resources as well along with the main request of a page.</p>
<p>My question as stated ,is it worth performance testing along with page resources.</p>
<p><strong>assumption:
End User wont clear cache before the second and further iteration of any page.Application that needs performance test should obviously be experiencing high load and during this time its unlikely that end user clear cache each time.</strong></p>
<p>So since for the second iteration and further page resources are taken from the cache stored at client side is it worth downloading embedded resources as it wont performance test the server side behavior.</p>
<p>As i know Jmeter does not parse html and execute Java script and hence other resources called by this JS.</p>
<p>Please Correct me if I'm wrong in my above understanding.</p>
",https://stackoverflow.com/questions/63216583/jmeter-is-it-worth-performance-testing-a-page-with-embedded-resources-enabled,"['html', 'performance', 'jmeter', 'performance-testing', 'embedded-resource']",280,True,0,1
How to use Robot Framework Scripts for Load Testing or performance testing,"<p>I have python scripts which are based on Robot Framework and were generally developed for Functional Testing. How can I achieve the Load Testing?
How to approach this problem? should I use Jmeter in order to run load testing (if yes then how is it possible) or there are some other methods available?</p>
",https://stackoverflow.com/questions/62080233/how-to-use-robot-framework-scripts-for-load-testing-or-performance-testing,"['selenium', 'jmeter', 'robotframework']",5244,True,0,2
Spring Rest Template using Http Client showing high response time during performance testing,"<p>I've created a Spring boot wrapper application that invokes a REST API with the help of Rest Template. At first, I was only using the Rest Template bean and the delta response time between the main application and the wrapper during the performance test was only around 5-10 ms.</p>

<p>To have more control over the concurrency and HTTP connections we decided to use <code>httpclient-4.5.10 jar</code> and used <code>CloseableHttpClient</code> to create the Rest Template Bean. However, after implementing this we have noticed a surge in the avg. delta response time to more than 82 ms. After close analysis, we figured out that the <code>CommonsHttp[app-name]: execute</code> takes around 81.4 ms. This means HTTP client is responsible for the higher response time. We tried several ways to tune the performance by changing the keep-alive strategy, number of threads, etc., but none of them seems to be working out.</p>

<p>Here's the Http Client configuration:</p>

<pre><code>// Determines the timeout in milliseconds until a connection is established.
@Value(""${http-client.connect-timeout}"")
private int connectTimeout;

// The timeout when requesting a connection from the connection manager.
@Value(""${http-client.request-timeout}"")
private int requestTimeout;

// The timeout for waiting for data
@Value(""${http-client.socket-timeout}"")
private int socketTimeout;

@Value(""${http-client.max-total-connections}"")
private int maxTotalConnections;

@Value(""${http-client.default-max-per-route}"")
private int defaultMaxPerRoute;

@Value(""${http-client.default-keep-alive-time}"")
private int defaultKeepAliveTime;

@Value(""${http-client.close-idle-connection-wait-time}"")
private int closeIdleConnectionWaitTime;

@Bean
public PoolingHttpClientConnectionManager poolingConnectionManager() {
    SSLContextBuilder builder = new SSLContextBuilder();
    try {
        builder.loadTrustMaterial(null, new TrustSelfSignedStrategy());
    } catch (NoSuchAlgorithmException | KeyStoreException e) {
        log.error(""Pooling Connection Manager Initialisation failure because of {}"", e.getMessage());
    }

    SSLConnectionSocketFactory sslsf = null;
    try {
        sslsf = new SSLConnectionSocketFactory(builder.build());
    } catch (KeyManagementException | NoSuchAlgorithmException e) {
        log.error(""Pooling Connection Manager Initialisation failure because of {}"", e.getMessage());
    }

    Registry&lt;ConnectionSocketFactory&gt; socketFactoryRegistry = RegistryBuilder
            .&lt;ConnectionSocketFactory&gt;create().register(""https"", sslsf)
            .register(""http"", new PlainConnectionSocketFactory())
            .build();

    PoolingHttpClientConnectionManager poolingConnectionManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry);
    poolingConnectionManager.setMaxTotal(maxTotalConnections);
    poolingConnectionManager.setDefaultMaxPerRoute(defaultMaxPerRoute);
    return poolingConnectionManager;
}

@Bean
public ConnectionKeepAliveStrategy connectionKeepAliveStrategy() {
    return new ConnectionKeepAliveStrategy() {
        @Override
        public long getKeepAliveDuration(HttpResponse response, HttpContext context) {
            HeaderElementIterator it = new BasicHeaderElementIterator
                    (response.headerIterator(HTTP.CONN_KEEP_ALIVE));
            while (it.hasNext()) {
                HeaderElement he = it.nextElement();
                String param = he.getName();
                String value = he.getValue();

                if (value != null &amp;&amp; param.equalsIgnoreCase(""timeout"")) {
                    return Long.parseLong(value) * 1000;
                }
            }
            return defaultKeepAliveTime;
        }
    };
}

@Bean
public CloseableHttpClient httpClient() {
    RequestConfig requestConfig = RequestConfig.custom()
            .setConnectionRequestTimeout(requestTimeout)
            .setConnectTimeout(connectTimeout)
            .setSocketTimeout(socketTimeout).build();

    return HttpClients.custom()
            .setDefaultRequestConfig(requestConfig)
            .setConnectionManager(poolingConnectionManager())
            .setKeepAliveStrategy(connectionKeepAliveStrategy())
            .build();
}

@Bean
public Runnable idleConnectionMonitor(final PoolingHttpClientConnectionManager connectionManager) {
    return new Runnable() {
        @Override
        @Scheduled(fixedDelay = 10000)
        public void run() {
            try {
                if (connectionManager != null) {
                    log.trace(""run IdleConnectionMonitor - Closing expired and idle connections..."");
                    connectionManager.closeExpiredConnections();
                    connectionManager.closeIdleConnections(closeIdleConnectionWaitTime, TimeUnit.MILLISECONDS);
                } else {
                    log.trace(""run IdleConnectionMonitor - Http Client Connection manager is not initialised"");
                }
            } catch (Exception e) {
                log.error(""run IdleConnectionMonitor - Exception occurred. msg={}, e={}"", e.getMessage(), e);
            }
        }
    };
}
</code></pre>

<p>This is the Rest Template Config:</p>

<pre><code>@Autowired
    CloseableHttpClient httpClient;

    @Bean
    public RestTemplate getRestTemplate(RestTemplateRequestResponseLoggingInterceptor loggingInterceptor) {
        ClientHttpRequestFactory factory = new BufferingClientHttpRequestFactory(clientHttpRequestFactory());
        RestTemplate restTemplate = new RestTemplate(factory);
        restTemplate.setInterceptors(Collections.singletonList(loggingInterceptor));
        return restTemplate;
    }

    @Bean
    public HttpComponentsClientHttpRequestFactory clientHttpRequestFactory() {
        HttpComponentsClientHttpRequestFactory clientHttpRequestFactory = new HttpComponentsClientHttpRequestFactory();
        clientHttpRequestFactory.setHttpClient(httpClient);
        return clientHttpRequestFactory;
    }
</code></pre>

<p>Application properties:</p>

<pre><code># HTTP Client configs
http-client.connect-timeout: 2000
http-client.request-timeout: 5000
http-client.socket-timeout: 5000
http-client.max-total-connections: 200
http-client.default-max-per-route: 50
http-client.default-keep-alive-time: 300000
http-client.close-idle-connection-wait-time: 480000
</code></pre>
",https://stackoverflow.com/questions/61252891/spring-rest-template-using-http-client-showing-high-response-time-during-perform,"['java', 'spring-boot', 'performance-testing', 'resttemplate', 'apache-httpclient-4.x']",2033,False,3,0
How to test client side performance testing of single page application with JMeter,"<p>JMeter does not support the client side performance testing (verifying the content rendering time / page loading time) out of the box.</p>
<p>In single page applications requests are sent to the server as API calls. I am interested in verifying the client side page loading time for concurrent users with JMeter.</p>
<ol>
<li><p>What is the best way to test the SPA with JMeter ?</p>
</li>
<li><p>Do you recommend <a href=""https://github.com/undera/jmeter-plugins-webdriver"" rel=""nofollow noreferrer"">Selenium WebDriver plugin</a>?</p>
</li>
<li><p>Is there any other tools that can be used to verify the client side
load testing for concurrent users?</p>
</li>
</ol>
",https://stackoverflow.com/questions/65351656/how-to-test-client-side-performance-testing-of-single-page-application-with-jmet,"['jmeter', 'jmeter-5.0']",1286,True,0,1
"How to handle TOTP based authentication in performance testing tool e.g JMeter, Loadrunner?","<p>I need to know if there is any way we can handle TOTP based authentication in performance testing tools like Jmeter, Loadrunner or any other? I have business process in which Amazon AWS TOTP token is required after entering username and password and i am unable to handle that process, can anyone please guide me on this?</p>
",https://stackoverflow.com/questions/65219331/how-to-handle-totp-based-authentication-in-performance-testing-tool-e-g-jmeter,"['jmeter', 'performance-testing', 'loadrunner']",1029,True,0,3
How to perform stress testing/performance testing of UWP app that calls api,"<p>I am looking for a way to do some performance testing of a UWP app that calls api's and uses radis cache.
The application will continuously perform action for 100 hours or more and i need to make sure the server response time is consistent and does not deteriorate the application's action response after running for so many hours at a stretch. By the way, there is no scenario of having multiple users here. I am still on the learning curve and any help would be greatly appreciated.  </p>
",https://stackoverflow.com/questions/60729280/how-to-perform-stress-testing-performance-testing-of-uwp-app-that-calls-api,"['uwp', 'performance-testing', 'stress-testing', 'web-api-testing', 'redis-cache']",494,True,0,2
Requests are NOT capture in Jmeter to run Performance Testing for Desktop application,"<p>There is a desktop application which uses HTTP/HTTPS which needs to be done for performance testing.</p>

<p>I have configured <code>Network Proxy settings -&gt; localhost/8888</code> and Also configured 'same proxy in Jmeter' 8888</p>

<p>I am currently recording the desktop application to do few functions.. But nothing is getting captured in the Jmeter. </p>

<p>Some directions would be appreciative</p>

<p>Thanks,
Chandra</p>
",https://stackoverflow.com/questions/61186765/requests-are-not-capture-in-jmeter-to-run-performance-testing-for-desktop-applic,"['performance-testing', 'desktop-application']",115,True,0,1
Performance testing - 200 Concurrent Users Test in Jmeter is failing with 8 Machines,"<p>I have tried running a test with 150 users &amp; 6 machines in jmeter and it ran fine with no errors. But when i increased the number of users &amp; number of machines to 200 users and 8 machines respectively, it started throwing &quot;java.net.socketexception: connection reset&quot; error</p>
<p>Previously i was facing this error when i tried running for 150 users with 4 machines. But, after increasing the machines by 2, the 150 user test was successful. Need help in this.</p>
<p>I tried accessing the application manually during the execution and i was able to access the application normally.</p>
",https://stackoverflow.com/questions/63725933/performance-testing-200-concurrent-users-test-in-jmeter-is-failing-with-8-mach,"['testing', 'jmeter', 'performance-testing', 'load-testing', 'jmeter-5.0']",368,False,0,2
How to determine the number of users to use in Jmeter performance testing?,"<p>This can actually be a complex question for me, if the number is not given directly from my product owner as a direct requirement.</p>
<p>Jmeter is basically an API performance testing tool. I've seen so many Jmeter scripts that include only the important APIs needed for the flow to be tested. It does not consider any pure front end (UI) related user actions.</p>
<p>A common reply to my question in article/tutorial is: estimate how many concurrent users you normally have on your website?</p>
<p>The problem with this approach is that user purely browsing your website is not causing any 'load' that Jmeter try to simulate.</p>
<p>If user is using a form submission webpage for example, every second user uses to browse the page content, or filling the data in the form are pure front end (UI) activity and does not lead to any 'load'. There may be 10 concurrent user visiting my webpage, but only 2 are 'submitting'. Should i use 10 or 2 in this scenario? The Jmeter script is intended to only measure the performance of 'submit form' API.</p>
<p>Another most sophisticated reply to my question is 'load testing calculator' mentioned in <a href=""https://www.webperformance.com/library/tutorials/CalculateNumberOfLoadtestUsers"" rel=""nofollow noreferrer"">https://www.webperformance.com/library/tutorials/CalculateNumberOfLoadtestUsers</a>.</p>
<p>It calculate concurrent number of user from 'visit rate (visits/hour)' and 'Average visit length (minutes/visit)'. This is more precise that the 1st reply of just 'estimate how many concurrent users are using your system?'.</p>
<p>However it has the same issue as the 1st reply in that it does not define 'Average visit length (minutes/visit)' as 'Average visit length' from API perspective. The same argument i present for the form submission website applies here too. The 'visit' time a user spend on browsing the page, filling the form does not count, only the time he spend on 'submit form' API does.</p>
<p>So what's your way of determining the number of users to use in Jmeter test?</p>
",https://stackoverflow.com/questions/63073870/how-to-determine-the-number-of-users-to-use-in-jmeter-performance-testing,"['performance', 'jmeter']",872,True,-1,1
Connection refused error (111) when using Locust for Performance Testing against docker-compose app,"<p>I am using Locust, a performance testing tool, to load test an application that is setup to run within docker-compose.  I get the following error (connection refused, error 111) for every request:</p>

<pre><code>Error report
 # occurrences      Error
--------------------------------------------------------------------------------------------------------------------------------------------
 5                  GET /parties/: 'ConnectionError(MaxRetryError(""HTTPConnectionPool(host=\'localhost\', port=8080): Max retries exceeded with url: /parties/ (Caused by NewConnectionError(\'&lt;urllib3.connection.HTTPConnection object at 0x7fa6f294df28&gt;: Failed to establish a new connection: [Errno 111] Connection refused\',))"",),)'
</code></pre>

<p>I am running Locust from a docker container as follows:</p>

<pre><code>docker run --volume /mydir/locustfile:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://localhost:8080/parties -e LOCUST_OPTS=""--clients=1 --no-web --run-time=600"" locustio/locust
</code></pre>

<p>The weird thing is that when I use curl to hit the exact same URL it works properly.</p>

<pre><code>curl http://localhost:8080/parties
</code></pre>

<p>Any help is appreciated!</p>
",https://stackoverflow.com/questions/60550111/connection-refused-error-111-when-using-locust-for-performance-testing-against,"['python', 'docker', 'flask', 'docker-compose', 'locust']",2547,True,3,1
What functional/performance testing approach should I take during data ingestion testing using JMeter?,"<h2>Project overview:</h2>
<p>We are building a data ingestion backend platform. 3 major components of the backend system are: Listener (will ingest vehicle GPS tracker data and store in message queue) &gt;&gt; Adapter (will process the ingested data by Listener and store processed data in message queue) &gt;&gt; Datarouter (will route the processed data by Adapter to any 3rd party platform)</p>
<h2>My Task:</h2>
<p>In the above scenario, my task is to do the functional testing and performance testing of data ingestion backend platform using JMeter open source tool. We are using JMeter as a load generator tool, which is basically simulating the sending of vehicle GPS tracker data to the listener. In JMeter, we are using TCP sampler to send the data in the following format:</p>
<pre><code>$$${data_identifier},${imei},AAA,35,${lat},${long},${__dateTimeConvert(${__time()},,yyMMddhhmmss)},
A,8,15,60,274,0.9,25,34900,211818,404|30|7033|0BBF5744,0000,0000|0000|0000|0190|04B7,00000001,,1,0000*80
</code></pre>
<p>From functional point of view, we need to check the data ingested by listener and finally routed by datarouter after processing is all consistent.</p>
<p>From performance point of view, we need to check that the backend system can handle load of say for ex. 100 vehicles sending data packets every 10 sec for continuous period of time lets say 15-20 days.
Currently I am testing all the functions locally. After testing is done, deployment will happen to dev env.</p>
<p><strong>Note:</strong> Please note that we are <strong>not</strong> using any big data tool like HDFS, Apache Spark etc. As a message broker, we are considering Redis/Kafka.</p>
<h2>My question:</h2>
<p>Please let me know what kind of functional and performance test scenarios to execute?</p>
<p>Any option to publish test results in statistical format/pictorial form directly from JMeter?</p>
<p>How can I ensure performance bottleneck &amp; other performance aspects while testing in local environment setup?</p>
",https://stackoverflow.com/questions/62548590/what-functional-performance-testing-approach-should-i-take-during-data-ingestion,"['jmeter', 'performance-testing', 'iot', 'data-ingestion']",307,False,0,1
Should I use JMeter or Selenium for load and performance testing of Web applications?,"<p>In your opinion which will be better the record or the creation of the scripts by Exemple with selenium and junit?
Does the record method allow test visibility and maintainability of the code?</p>
",https://stackoverflow.com/questions/60165054/should-i-use-jmeter-or-selenium-for-load-and-performance-testing-of-web-applicat,"['performance', 'selenium', 'testing', 'jmeter']",65,False,-2,3
Response code error 400 in jmeter when i am doing performance testing of API,"<p><a href=""https://i.stack.imgur.com/E5JH4.png"" rel=""nofollow noreferrer"">jmeter image </a>Thread Name:SupplierAPI 1-1
Sample Start:2020-07-30 11:01:04 BST
Load time:571
Connect Time:429
Latency:571
Size in bytes:518
Sent bytes:241
Headers size in bytes:179<a href=""https://i.stack.imgur.com/sO65x.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/sO65x.png"" alt=""enter image description here"" /></a>
Body size in bytes:339
Sample Count:1
Error Count:1
Data type (&quot;text&quot;|&quot;bin&quot;|&quot;&quot;):text
Response code:400
Response message:Bad Request</p>
<p>HTTPSampleResult fields:
ContentType: text/html; charset=us-ascii
DataEncoding: us-ascii</p>
",https://stackoverflow.com/questions/63170788/response-code-error-400-in-jmeter-when-i-am-doing-performance-testing-of-api,"['api', 'jmeter']",1328,False,0,1
Performance Testing: Flag when a UI/API test&#39;s runtime increases by x% (Selenium C#),"<p>Our team currently use Selenium and C# (and NUnit) to run UI Automated tests. All tests have been manually programmed, meaning no recorders have been used.</p>
<p><strong>Issue</strong>: We now have a request that these tests track their own performance (and past performance) and raise a warning when its runtime increases by x% (5% or 10%, etc).</p>
<p><strong>Question</strong>: What would be the best way to accomplish this? Should we create to tool to analyze performance (performance history) of these UI and API tests from scratch or are there other tools out there we can leverage?</p>
<p>Blogs or stackExchange questions discussing load/performance testing usually reference three main tools for C# (NeoLoad, SilkPerformer, LoadRunnerProfessional). However, I'm not sure that what I'm being asked to do is considered performance testing (load testing) in the purest sense and therefore, not sure whether the tools mentioned above will help achieve the overall goal. They also usually separate performance/load testing from UI/API testing.</p>
<p><strong>Summary</strong>: looking for advice on what direction to take and/or what to read up on for this type of testing.</p>
",https://stackoverflow.com/questions/63046111/performance-testing-flag-when-a-ui-api-tests-runtime-increases-by-x-selenium,"['c#', 'selenium', 'automated-tests', 'performance-testing', 'neoload']",109,True,0,2
How can we perform performance testing of API if I am using using Rest Assured?,"<p>How can we perform performance testing of API if I am using using Rest Assured?</p>

<p>I am planning to use Rest Assured for API testing but also want the same tests to carryout the performance testing. Is there a way we can achieve the performance testing by integrating another tool/framework with Rest Assured?</p>
",https://stackoverflow.com/questions/60116728/how-can-we-perform-performance-testing-of-api-if-i-am-using-using-rest-assured,"['rest', 'performance-testing', 'rest-assured', 'web-api-testing']",490,False,0,1
"How can we monitor memory, threads, CPU etc. of a GraalVM native image during performance testing?","<p>I want to run some performance tests against a Quarkus native image. In a traditional Java application I would use VisualVM to connect to the application and monitor its memory (young gen, old gen, etc.), CPU usage, threads and so on.</p>

<p>Since native images are now OS processes, is there a way to get insight information of the proccess equivalent to what we got with VisualVM or should we just stick to the OS information (CPU usage + memory)</p>
",https://stackoverflow.com/questions/60929599/how-can-we-monitor-memory-threads-cpu-etc-of-a-graalvm-native-image-during-pe,"['quarkus', 'graalvm', 'graalvm-native-image']",714,False,5,1
How long to run through for lower environment performance testing using JMeter on Java APIs,"<p>I am running some lower environment perf testing on my Dev setup for Java Vertx APIs. How long should we I continue to run this test to get an acceptable numbers. Please share for any standard guideline documents on this. I am using JMeter for perf testing. My Application stack
Java, Spring, JDBC, Vertx, Oracle</p>
",https://stackoverflow.com/questions/62864549/how-long-to-run-through-for-lower-environment-performance-testing-using-jmeter-o,"['java', 'jmeter', 'performance-testing', 'vert.x', 'vertx-verticle']",67,True,0,1
Is it mandatory to check &quot;Retrieve All Embedded Resources&quot; in HTTP Request Defaults for performance testing?,"<p>During performance testing ""Retrieve All Embedded Resources"" should be checked or unchecked?</p>

<p>My analysis: ""Retrieve All Embedded Resources"" should not be checked. And cache also should not be cleared automatically.</p>

<p>Note: 
a. ""Retrieve All Embedded Resources"" option is not checked in Jmeter default recording template. </p>

<p>Which is the correct response time, if 500 user are iterating 2 scenarios 50 times.</p>

<p>My analysis: Need to refer ""Transaction Controller - Sample Time [sum value]"" in ""View Results in Table"" listener. Note, need to user parallel controller in order to handle parallel requests and need to refer max response time in that.</p>

<p><a href=""https://i.stack.imgur.com/pRIRC.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/pRIRC.png"" alt=""Aggregate Report""></a></p>
",https://stackoverflow.com/questions/60240112/is-it-mandatory-to-check-retrieve-all-embedded-resources-in-http-request-defau,"['jmeter', 'jmeter-plugins', 'jmeter-5.0']",3328,True,3,1
Should I use JMeter With Selenium And junit for load and performance testing of Web applications?,"<p>I want to Use java code with selenium and junit into jmeter to tests application performance, because i guess that the record doesnt allow test visibility and maintainability!!!</p>
",https://stackoverflow.com/questions/60167047/should-i-use-jmeter-with-selenium-and-junit-for-load-and-performance-testing-of,"['performance', 'selenium', 'jmeter', 'junit4']",74,True,0,2
Can we do performance testing on JMeter tool on API in which PKI(public key infrastructure) is implemented ?if yes How?,"<p>I am trying to do concurrent testing for the API in which PKI is implemented. I have already implemented on postman and the response is coming fine but I want to do performance testing of the same API on JMeter.<br />
Can you please suggest the technique?</p>
",https://stackoverflow.com/questions/65407333/can-we-do-performance-testing-on-jmeter-tool-on-api-in-which-pkipublic-key-infr,"['jmeter', 'pki']",90,False,0,1
"Performance testing for Android application which uses UDP protocol, how to run jmeter script on android device for UDP requests plugin?","<p>Using UDP requests plugin, I created jmeter script to run on desktop application. Now I am trying to run same jmeter script via Android device. I used 'Https Test script Recorder' but still I doesn't able to run UDP requests on android device. Is there any way to Run UDP requests on Android device ?</p>
",https://stackoverflow.com/questions/60248099/performance-testing-for-android-application-which-uses-udp-protocol-how-to-run,"['android', 'jmeter', 'udp', 'performance-testing', 'jmeter-plugins']",121,False,0,1
When to do performance testing using jmeter in jenkins CI?,"<p>I am creating a CI pipeline for microservices using Jenkins. Now, I am confused with performance testing, I mean where should I add stage for performance testing, after deploying my microservice to server or running microservice locally and then do performance testing ?</p>
",https://stackoverflow.com/questions/59801110/when-to-do-performance-testing-using-jmeter-in-jenkins-ci,"['jenkins', 'jmeter', 'jenkins-pipeline', 'jenkins-plugins', 'performance-testing']",182,True,0,2
How can we perform performance testing of API if I am using using Rest Assured?,"<p>How can we perform performance testing of API if I am using using Rest Assured?</p>

<p>I am planning to use Rest Assured for API testing but also want the same tests to carryout the performance testing. Is there a way we can achieve the performance testing by integrating another tool/framework with Rest Assured?</p>
",https://stackoverflow.com/questions/60116728/how-can-we-perform-performance-testing-of-api-if-i-am-using-using-rest-assured,"['rest', 'performance-testing', 'rest-assured', 'web-api-testing']",490,False,0,1
How to achieve performance testing on smpp protocol,"<p>I'm trying to achieve performance testing for mobile originated(MO). I want to simulate mobile to application communication. anyone with SMS performance testing experience or knowledge can guide me on how to load test SMSC. Using an open-source tool preferably JMeter. </p>
",https://stackoverflow.com/questions/60949723/how-to-achieve-performance-testing-on-smpp-protocol,"['jmeter', 'performance-testing', 'load-testing', 'sms-gateway', 'smpp']",1220,True,0,1
Performance testing tool vs performance testing tool Plugin integration with other tools,"<p>What is the difference between </p>

<ol>
<li><p>Using the performance testing tool directly(Jmeter ,..)</p></li>
<li><p>Integrate the performance testing tool with selenium using plugin(Jmeter ,..).</p></li>
</ol>

<p>Whether I can achieve all the functionalities in both the ways.</p>

<p>If used as a plugin will there be any limitations?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/61067331/performance-testing-tool-vs-performance-testing-tool-plugin-integration-with-oth,"['selenium', 'testing', 'selenium-webdriver', 'performance-testing', 'jmeter-plugins']",45,False,0,1
Jenkins pass environment variables as parameters,"<p>I am preparing the performance testing scripts(gatling) for our internal applications.This performance testings scripts execute on many Jenkins agents(~ 7 jenkins agents).</p>

<p>I would like to pass my all application/gatling related environment variables as Jenkins parameters to the Jenkins pipeline.Then application/gatling can read the environment variable and execute the performance testing base on the environment variables which is provided as Jenkins parameter</p>

<p>My code : </p>

<pre><code>pipeline {
agent { node { label 'performance-test-agents-1' } }

    parameters {
    string(defaultValue: ""https://rems-xxxxxxxxxx.dev-xxx-xxx.xx.xx.local"", description: ""please provide the base url for target environment"", name: ""Baseurl"")
    string(defaultValue: ""10"", description: ""set the execution duration"", name: ""duration"")
    string(defaultValue: ""20"", description: ""set the qps value for throttling"", name: ""maxqps"")
    string(defaultValue: ""10"", description: ""set the initial concurrent users"", name: ""initUsers"")
    string(defaultValue: ""20"", description: ""set the ramping user count"", name: ""rampUsers"")
    booleanParam(defaultValue: false, description: 'Update pipeline parameters without building/deploying', name: 'update_params_only')
    }

    environment {
      DURATION   = ""${duration}""
      MAXQPS     = ""${maxqps}""
      INITUSERS  = ""${initUsers}""
      RAMPUSERS  = ""${rampUsers}""
      DIRECT_LOGGINGAPI_URL = ""${Baseurl}""
      ONLY_UPDATE_PARAM = ""${update_params_only}""
   }
</code></pre>

<p>The error I am getting : </p>

<pre><code>java.lang.NumberFormatException: For input string: ""null""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.valueOf(Integer.java:766)
at org.codehaus.groovy.runtime.StringGroovyMethods.toInteger(StringGroovyMethods.java:3312)
at org.codehaus.groovy.runtime.dgm$1160.doMethodInvoke(Unknown Source)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)
at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:107)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at WorkflowScript.run(WorkflowScript:39)
at ___cps.transform___(Native Method)
at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixName(FunctionCallBlock.java:78)
at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:83)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
</code></pre>

<p>Finished: FAILURE</p>
",https://stackoverflow.com/questions/60783943/jenkins-pass-environment-variables-as-parameters,"['jenkins', 'jenkins-pipeline', 'devops', 'gatling', 'jenkins-groovy']",687,False,0,0
Performance Testing WCF services with Content-Type application/soap+msbin1,"<p>We have WCF services with binary encoding and we are attempting to do performance testing after the .net Framework upgrade to .Net 4.8</p>
<p>We have learnt that Binary-Encoding is not supported in non .Net based client</p>
<p>Wanted to check if someone managed to use any script, plugins, libraries or something different to integrate binary-encoding in any of the performance testing tools/framework such as Load Runner / SOAP UI etc.</p>
<p>Any help is greatly appreciated.</p>
",https://stackoverflow.com/questions/63597482/performance-testing-wcf-services-with-content-type-application-soapmsbin1,"['performance', 'wcf', 'performance-testing', 'wcf-binding']",145,False,1,0
I would like to use Jmeter for UI performance testing. How to use Jmeter for UI performance testing?,"<p>I would like to use Jmeter for UI performance testing. How to use Jmeter for UI performance testing? Lets say for example if i want to do for gmail or facebook. How do i enter the username/Userid and Password for it? I know that we need to pass parameters for that. But how do I do that? Can anyone please help me out with this. As, I've been stuck at it for a while now.</p>
",https://stackoverflow.com/questions/63405397/i-would-like-to-use-jmeter-for-ui-performance-testing-how-to-use-jmeter-for-ui,"['jmeter', 'performance-testing', 'jmeter-plugins', 'jmeter-5.0']",1682,False,0,2
How to assign different behaviors to different users in locust,"<p>I want to simulate two users running different tasks at the same time. How to do that with locust performance testing framework?</p>
",https://stackoverflow.com/questions/63162526/how-to-assign-different-behaviors-to-different-users-in-locust,['locust'],1856,True,2,2
"Is there a way to import 10, 20 or 100K records into firestore for testing?","<p>I'd like to test performance in my firebase app.  Is there a way to import thousands of dummy records into firestore for performance testing?</p>
",https://stackoverflow.com/questions/64418901/is-there-a-way-to-import-10-20-or-100k-records-into-firestore-for-testing,"['firebase', 'google-cloud-firestore', 'automated-tests']",139,True,0,2
How to use testcafe for client side performance testing?,"<p>I want to use testcafe for client side performace testing.Is it possible or is their any alternate option is available for client side performance testing?</p>
",https://stackoverflow.com/questions/64480958/how-to-use-testcafe-for-client-side-performance-testing,"['testing', 'automation', 'automated-tests', 'e2e-testing', 'testcafe']",231,True,0,1
Neoload how to connect tibco server. Getting Cannot instantiate class: om.tibco.tibjms.TibjmsQueueConnectionFactory Error,"<p>I am using Neoload for performance testing but getting the </p>

<blockquote>
  <p>Blockquote</p>
</blockquote>

<p>the following error while connecting to the Tibco server.</p>

<pre><code>Could not create JNDI API initial context: javax.naming.NoInitialContextException: Cannot instantiate class: om.tibco.tibjms.TibjmsQueueConnectionFactory [Root exception is java.lang.ClassNotFoundException: om.tibco.tibjms.TibjmsQueueConnectionFactory]java.lang.ClassNotFoundException: om.tibco.tibjms.TibjmsQueueConnectionFactory
</code></pre>

<p>I am using the following parameters</p>

<pre><code>initialContextFactory (required):  com.tibco.tibjms.TibjmsQueueConnectionFactory
providerURL (required): tibjmsnaming://10.106.29.215:5222
connectionFactory (required): QueueConnectionFactory
destination (required): myqueuename
</code></pre>
",https://stackoverflow.com/questions/59561860/neoload-how-to-connect-tibco-server-getting-cannot-instantiate-class-om-tibco,"['tibco-ems', 'neoload']",198,False,0,1
Is it possible to execute performance test in Karate for WebUI Automation?,"<p>I am developing WebUI automation tests using Karate 0.9.5.RC5 and it is working wonderfully. Does anyone know how to execute performance testing in Karate for WebUI Automation tests?</p>
",https://stackoverflow.com/questions/60100607/is-it-possible-to-execute-performance-test-in-karate-for-webui-automation,['karate'],698,True,1,1
Connect WINCE6 device with jmeter,"<p>I have a WINCE6 Device. Is there any plugin from jmeter to connect this device. Like TestQuest.. I want to do some Automation &amp; Performance testing R&amp;D on it.</p>
",https://stackoverflow.com/questions/61636766/connect-wince6-device-with-jmeter,"['ubuntu', 'jmeter']",20,False,0,1
Issue on Performance testing of H2 database using Jmeter JDBC requests,"<p>Facing some issue while running the performance testing of H2 database for a corda project.</p>

<p>JDBC requests in Jmeter is used for this testing .
some screenshots of Jmeter is given.</p>

<p><a href=""https://i.stack.imgur.com/910hO.png"" rel=""nofollow noreferrer"">jdbc connection issue</a></p>

<p><a href=""https://i.stack.imgur.com/WxfFD.png"" rel=""nofollow noreferrer"">jdbc reruest</a></p>

<p><a href=""https://i.stack.imgur.com/YakCp.png"" rel=""nofollow noreferrer"">result</a></p>
",https://stackoverflow.com/questions/60880263/issue-on-performance-testing-of-h2-database-using-jmeter-jdbc-requests,"['jdbc', 'jmeter', 'performance-testing', 'h2', 'corda']",137,True,0,1
How to generate test plan for quiz in moodle?,"<p>I am new to Moodle, I have installed Moodle 3.4.I need to do performance testing using Jmeter.Can I get steps to generate test plan in moodle so that I can use same test plan in Jmeter.</p>
",https://stackoverflow.com/questions/62321202/how-to-generate-test-plan-for-quiz-in-moodle,"['jmeter', 'moodle']",642,True,0,1
std::bind and std::function term does not evalue as taking 0 arguments?,"<p>I'm working on generic class that will be used to run functions of different prototype for performance testing of algorithms.</p>

<p>I stuck because <code>std::function</code> can't execute what it was bound with, here is sample code, with comment where the error happens:</p>

<pre><code>#include &lt;utility&gt;
#include &lt;functional&gt;

template&lt;typename ReturnType&gt;
class Performance
{
public:
    template&lt;typename... Args&gt;
    using Algorithm = std::function&lt;ReturnType(Args...)&gt;;

    template&lt;typename... Params&gt;
    void run(const Algorithm&lt;Params...&gt;&amp; ref, const Algorithm&lt;Params...&gt;&amp; target)
    {
        // ERROR: term does not evaluate as taking 0 args
        ref();
        target();
    }
};

void bar1(int, int)
{
    // algorithm 1
}

void bar2(int, int)
{
    // algorithm 2
}

int main()
{
    using test = Performance&lt;void&gt;;
    using Algorithm = test::Algorithm&lt;int, int&gt;;

    int x = 0;
    int y = 1;

    Algorithm ref = std::bind(bar1, std::ref(x), std::ref(y));
    Algorithm target = std::bind(bar2, std::ref(x), std::ref(y));

    test foobar;

    foobar.run(ref, target);
}
</code></pre>
",https://stackoverflow.com/questions/61967784/stdbind-and-stdfunction-term-does-not-evalue-as-taking-0-arguments,"['c++', 'c++11', 'templates', 'std-function', 'stdbind']",86,True,2,1
How to solve Rate Exceed error for AWS microservices?,"<p>I am doing performance testing on AWS micro services with 50 users and ramp up time is 10 seconds.</p>
<p>However, some of the requests are giving &quot;rate Exceed&quot; error. The microservices are getting the data from S3 bucket.</p>
",https://stackoverflow.com/questions/63470016/how-to-solve-rate-exceed-error-for-aws-microservices,"['amazon-web-services', 'amazon-s3', 'aws-lambda', 'aws-cloudformation', 'performance-testing']",38,True,0,1
How can I capture traffic of an android application having pinning enabled?,"<p>I have an application for which I need to do performance testing but it has pinning enabled due to which I am not able to capture traffic. Are there any specific tools which can help me capture the traffic?</p>
",https://stackoverflow.com/questions/64807596/how-can-i-capture-traffic-of-an-android-application-having-pinning-enabled,"['android', 'ssl', 'pinning']",359,True,1,1
Does JMeter support to select a sampler in Thread Group randomly?,"<p>In my Test Plan, I have Thread Group with 5 Samplers. Is there a way with JMeter that I want to select <strong>one among the 5 samplers</strong> in Thread Group <strong>Randomly</strong> and do performance testing to only that <strong>particular sampler</strong> ?</p>
",https://stackoverflow.com/questions/60820061/does-jmeter-support-to-select-a-sampler-in-thread-group-randomly,"['random', 'jmeter', 'threadgroup']",162,True,0,1
What is causing DataDog widgets to display http status code as N/A,"<p>My organization is setting up dashboards for our backend services and after performance testing that we ran, we have noticed that some API calls report http status <code>N\A</code>.</p>

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

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

<p>It is not very helpful, anyone seen something like that? 
Is that a configuration issue? </p>
",https://stackoverflow.com/questions/61511271/what-is-causing-datadog-widgets-to-display-http-status-code-as-n-a,"['spring-boot', 'datadog']",967,True,1,1
How to Performance test react js application?,"<p>How can i do client side performance testing for ReactJS applications?</p>

<p>is there any similar kind in JMeter like true client protocol as in Load runner to test the ReactJS applications. Or any other approach with which i can test ReactJS applications.</p>
",https://stackoverflow.com/questions/62214918/how-to-performance-test-react-js-application,"['reactjs', 'jmeter', 'profiling', 'performance-testing', 'performance-monitor']",6770,True,0,3
codility:peaks: what&#39;s wrong with go implementation on performance parts testing?,"<p>Divide an array into the maximum number of same-sized blocks, each of which should contain an index P such that A[P - 1] &lt; A[P] > A[P + 1].</p>

<p>My Solution: <a href=""https://app.codility.com/demo/results/training6BNUWY-TZC/"" rel=""nofollow noreferrer"">golang solution</a></p>

<p>However partly performance testing fails without reason, anyone can add some suggestion?</p>

<pre><code>func Solution(A []int) int {
    peaks := make([]int, 0)
    for i := 1; i &lt; len(A)-1; i++ {
        if A[i] &gt; A[i-1] &amp;&amp; A[i] &gt; A[i+1] {
            peaks = append(peaks, i)
        }
    }

    if len(peaks) &lt;= 0 {
        return 0
    }

    maxBlocks := 0

    // we only loop through the possible block sizes which are less than
    // the size of peaks, in other words, we have to ensure at least one
    // peak inside each block 
    for i := 1; i &lt;= len(peaks); i++ {
        // if i is not the divisor of len(A), which means the A is not
        // able to be equally divided, we ignore them;
        if len(A)%i != 0 {
            continue
        }
        // we got the block size
        di := len(A) / i

        peakState := 0
        k := 0

        // this loop is for verifying whether each block has at least one
        // peak by checking the peak is inside A[k]~A[2k]-1
        // if current peak is not valid, we step down the next peak until
        // valid, then we move to the next block for finding valid peak;

        // once all the peaks are consumed, we can verify whether all the
        // blocks are valid with peak inside by checking the k value, 
        // if k reaches the 
        // final state, we can make sure that this solution is acceptable
        for {
            if peakState &gt; len(peaks)-1 {
                break
            }
            if k &gt;= i {
                break
            }
            if peaks[peakState] &gt;= di*k &amp;&amp; peaks[peakState] &lt;= di*(k+1)-1 {
                peakState++
            } else {
                k++
            }
        }
        // if all peaks are checked truly inside the block, we can make
        // sure this divide solution is acceptable and record it in the
        // global max block size
        if k == i-1 &amp;&amp; peakState == len(peaks) {
            maxBlocks = i
        }

    }
    return maxBlocks
}
</code></pre>
",https://stackoverflow.com/questions/61849101/codilitypeaks-whats-wrong-with-go-implementation-on-performance-parts-testing,"['algorithm', 'go']",169,False,1,1
JMeter Scripting/Execution/Monitoring of Running Test and Installation on Linux Server,"<p>Need suggestions for Performance Testing using JMeter in Linux server.</p>

<p>Any difficulty/challenges for test execution and script recording and monitoring of running test on JMeter that has installed on Linux Machine.</p>

<p>How can we do recording using JMeter if that in Linux mode.</p>
",https://stackoverflow.com/questions/61916291/jmeter-scripting-execution-monitoring-of-running-test-and-installation-on-linux,"['jmeter', 'jmeter-5.0']",145,False,0,1
React JS. this.props.children impacts minimize main thread work parameter in the lighthouse audit,"<p>I am doing performance testing on the react website. We are using lighthouse extension. I have noticed that <code>this.props.children</code> impacts almost 50 points in <code>minimize main-thread work</code> parameter. Is it possible to load <code>this.props.children</code> effectively without blocking the main thread ? I have attached a screenshot where I removed <code>this.props.children</code> and the score improved a lot.</p>

<p><a href=""https://i.stack.imgur.com/ANxLu.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/ANxLu.png"" alt=""enter image description here""></a> </p>
",https://stackoverflow.com/questions/61673196/react-js-this-props-children-impacts-minimize-main-thread-work-parameter-in-the,"['reactjs', 'lighthouse']",937,False,3,0
Guidewire profiler .gwprof file analyser,"<p>Is there any way to analyse .gwprof file (got it from guidewire profiler).</p>
<p>Background- I am performance testing guidewire application, and using guidewire profiler for monitoring the batch process and REST API's. I need to get the statistics from .gwprof file but unable to open that.</p>
",https://stackoverflow.com/questions/65412111/guidewire-profiler-gwprof-file-analyser,"['performance-testing', 'monitoring', 'loadrunner', 'guidewire']",538,False,0,3
Functional testing of UI,"<p>I am supposed to write functional test cases for a UI. Performance testing is out of scope.should I write Seperate test cases for each button, lets say review button which takes you to another page. So do we write them as seperate test cases or not .</p>
",https://stackoverflow.com/questions/61435580/functional-testing-of-ui,['testing'],54,False,0,1
Can we do performance testing on JMeter tool on API in which PKI(public key infrastructure) is implemented ?if yes How?,"<p>I am trying to do concurrent testing for the API in which PKI is implemented. I have already implemented on postman and the response is coming fine but I want to do performance testing of the same API on JMeter.<br />
Can you please suggest the technique?</p>
",https://stackoverflow.com/questions/65407333/can-we-do-performance-testing-on-jmeter-tool-on-api-in-which-pkipublic-key-infr,"['jmeter', 'pki']",90,False,0,1
I am not able to record the webrtc protocol using jmeter,"<p>I have an android app in which we can do video call peers to peers using webrtc protocol. I want to perform performance testing of this app using jmeter but I am not able to record this. So guyz Please help me if anyone knows.
Thanks in advance</p>
",https://stackoverflow.com/questions/65502553/i-am-not-able-to-record-the-webrtc-protocol-using-jmeter,"['jmeter', 'performance-testing']",208,False,0,1
Hardcode OTP in Azure AD B2C,"<p>We are using PhoneFactor Technical profile to validate a phone number during registration process. Our performance testing team is going to test the flows hence for automation they are looking forward for hardcoded OTPs. Is it in any way achievable by Azure AD B2C(to ardcode the OTP)?</p>
",https://stackoverflow.com/questions/63899409/hardcode-otp-in-azure-ad-b2c,"['azure-ad-b2c', 'one-time-password', 'identity-experience-framework']",160,True,0,1
AWS-SDK Node JS High Latency,"<p>I am facing problem while using aws-sdk <em>amazons elasticsearch</em> in my node app. I am getting high latency when having performance testing using some tools like <em>jmeter</em> or <em>seige</em>. My requests initially show low latency but when the number of requests increase the latency also increases. Need Help ! Thanks</p>
",https://stackoverflow.com/questions/62951433/aws-sdk-node-js-high-latency,"['node.js', 'amazon-web-services', 'elasticsearch', 'event-loop', 'amazon-elasticsearch']",91,False,0,0
Can we integrate the Rest Assured API Testing scripts with Jmeter?,"<p>Can we integrate the Rest Assured API Testing code with Jmeter?</p>

<p>I am planning to use Rest Assured for API testing but also want the same tests to carryout the performance testing with JMeter. Is there a way we can integrate the code created in testing Rest Assured with JMeter?</p>
",https://stackoverflow.com/questions/60146561/can-we-integrate-the-rest-assured-api-testing-scripts-with-jmeter,"['rest', 'jmeter', 'rest-assured', 'jmeter-5.0', 'jmeter-maven-plugin']",725,False,0,1
MongoDB Spring inserting multiple documents in bulk is slow,"<p>I have a method that calls <code>MongoTemplate.insert(List&lt;Object&gt;)</code> to insert multiple objects inside my mongo database.</p>
<p>During performance testing, calling the method concurrently multiple times drastically increases the response times. For example, running <code>100 threads</code> each bulk-inserting <code>~100 documents</code> raises the response time for each thread to about <code>5 seconds</code>.</p>
<p>This doesn't seem right. Am I missing something?</p>
",https://stackoverflow.com/questions/63235696/mongodb-spring-inserting-multiple-documents-in-bulk-is-slow,"['java', 'spring', 'mongodb', 'mongo-java-driver', 'spring-repositories']",297,False,0,0
How to monitor GuideWire application with GW inbuilt monitoring tool?,"<p>We are doing performance testing of guidewire application,related batch process and REST API. We have a requirement to monitor batch processes and REST API performance with Guidewire monitoring tool. I am new to this. Can someone suggest how to monitor this and get performance statistics from GW inbuilt monitoring tool.</p>
",https://stackoverflow.com/questions/65337553/how-to-monitor-guidewire-application-with-gw-inbuilt-monitoring-tool,"['performance', 'monitoring', 'loadrunner', 'vugen', 'guidewire']",220,False,0,0
Gatling: For long term should we put one REST API in one simulation?,"<p>We have decided to use Gatling as performance testing tool. But we are not able to figure how should we keep our simulations. Since we have around 25 API's as of now. So do I need to create 25 simulation for each API. This question is more on maintenance of code.</p>
",https://stackoverflow.com/questions/61500837/gatling-for-long-term-should-we-put-one-rest-api-in-one-simulation,"['gatling', 'scala-gatling']",62,True,0,1
"How to disable gradle&#39;s local build cache, but keep remote cache enabled?","<p>I'm trying to do some benchmarking and performance testing for my Android app and want to see how gradle is using the build cache.</p>

<p>I have a remote build cache configured and working. I want to test it, but I can't find a flag or option to disable the local cache specifically while keeping the remote enabled.</p>
",https://stackoverflow.com/questions/60528123/how-to-disable-gradles-local-build-cache-but-keep-remote-cache-enabled,"['gradle', 'build.gradle']",3559,True,4,1
postgres: multiple regexp_replace statements - performance?,"<p>In PostgreSQL, I'm trying to do a large number of regexp_replaces and I'm looking for ways to speed it up. I've attempted to test if nesting the statements is faster than passing the result to a variable and then running the next replace on the result.</p>

<p>I'm seeing about a 10% savings in time for the second nested example below. Is this what would be expected, and the recommended way to do multiple regexp_replaces?</p>

<p>Alternatively, is there something completely different I should be trying?</p>

<p>The third code block is an snippet of how my actual function looks.</p>

<p>not nested (no purpose to this, its just generating random chars for performance testing):</p>

<pre><code>do
$$
declare 
  i record;
  _output text;
begin
  for i in 1..100000 loop
    _output = regexp_replace((SELECT string_agg(c, '')
                            FROM (SELECT c
                            FROM regexp_split_to_table(
                            'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890',
                             ''
                           ) c
                            ORDER BY random()
                            LIMIT 6
                           ) AS q)
     ,'A|B|C|1',' ','g');

    _output = regexp_replace(_output,' ','x','g');


  end loop;
end;
$$
;
</code></pre>

<p>nested  (no purpose to this, its just generating random chars for performance testing):</p>

<pre><code>do
$$
declare 
  i record;
  _output text;
begin
  for i in 1..100000 loop

    _output = regexp_replace(regexp_replace((SELECT string_agg(c, '')
                            FROM (SELECT c
                            FROM regexp_split_to_table(
                            'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890',
                             ''
                           ) c
                            ORDER BY random()
                            LIMIT 6
                           ) AS q)
     ,'A|B|C|1',' ','g'),' ','x','g');


  end loop;
end;
$$
;
</code></pre>

<p>actual function looks like this, however there are more than two replacements and its intended to be run on tables with millions of records:</p>

<pre><code>CREATE OR REPLACE FUNCTION address_appartment_cleanup_test(_input text)
  RETURNS text
  LANGUAGE plpgsql
AS
$body$

BEGIN
 _input = (SELECT regexp_replace(_input,'^APARTMENT ','APT ', 'g'));
 _input = (SELECT regexp_replace(_input,'^SUITE ','STE ', 'g'));
RETURN _input;
END;
$body$
  VOLATILE
  COST 100;


SELECT address_appartment_cleanup_test('APARTMENT 10'); -- desired output APT 10
SELECT address_appartment_cleanup_test('SUITE 10');     -- desired output STE 10
</code></pre>
",https://stackoverflow.com/questions/62472356/postgres-multiple-regexp-replace-statements-performance,"['sql', 'regex', 'postgresql']",857,False,1,0
Requests are NOT capture in Jmeter to run Performance Testing for Desktop application,"<p>There is a desktop application which uses HTTP/HTTPS which needs to be done for performance testing.</p>

<p>I have configured <code>Network Proxy settings -&gt; localhost/8888</code> and Also configured 'same proxy in Jmeter' 8888</p>

<p>I am currently recording the desktop application to do few functions.. But nothing is getting captured in the Jmeter. </p>

<p>Some directions would be appreciative</p>

<p>Thanks,
Chandra</p>
",https://stackoverflow.com/questions/61186765/requests-are-not-capture-in-jmeter-to-run-performance-testing-for-desktop-applic,"['performance-testing', 'desktop-application']",115,True,0,1
load and perfomance testing from Multiple location using coded ui,"<p>I need to load and performance test 500 virtual users load with 5 different locations so can I do it with microsoft coded ui.</p>

<p>Load and performance testing from a different location is important in my case. can someone suggest if it possible with coded ui or some other tools they can do it.</p>
",https://stackoverflow.com/questions/61605877/load-and-perfomance-testing-from-multiple-location-using-coded-ui,"['performance-testing', 'load-testing', 'coded-ui-tests', 'msloadtest']",52,False,-2,1
JMeter: Restful API Recording,"<p>I'm understand that need to use HTTP Test script to record web application that use Oauth authentication method. 
Questions: </p>

<blockquote>
  <ol>
  <li>How about the performance testing restful api with OAuth? </li>
  <li>Why need correlate variables?</li>
  <li>Why there are two request capture in jmx?</li>
  <li>Any tutorial/video that i can follow to learn this topic?</li>
  </ol>
</blockquote>

<p>Please advice. Thanks. </p>
",https://stackoverflow.com/questions/61811225/jmeter-restful-api-recording,"['rest', 'jmeter']",264,True,0,1
"How to handle TOTP based authentication in performance testing tool e.g JMeter, Loadrunner?","<p>I need to know if there is any way we can handle TOTP based authentication in performance testing tools like Jmeter, Loadrunner or any other? I have business process in which Amazon AWS TOTP token is required after entering username and password and i am unable to handle that process, can anyone please guide me on this?</p>
",https://stackoverflow.com/questions/65219331/how-to-handle-totp-based-authentication-in-performance-testing-tool-e-g-jmeter,"['jmeter', 'performance-testing', 'loadrunner']",1029,True,0,3
Connection refused error (111) when using Locust for Performance Testing against docker-compose app,"<p>I am using Locust, a performance testing tool, to load test an application that is setup to run within docker-compose.  I get the following error (connection refused, error 111) for every request:</p>

<pre><code>Error report
 # occurrences      Error
--------------------------------------------------------------------------------------------------------------------------------------------
 5                  GET /parties/: 'ConnectionError(MaxRetryError(""HTTPConnectionPool(host=\'localhost\', port=8080): Max retries exceeded with url: /parties/ (Caused by NewConnectionError(\'&lt;urllib3.connection.HTTPConnection object at 0x7fa6f294df28&gt;: Failed to establish a new connection: [Errno 111] Connection refused\',))"",),)'
</code></pre>

<p>I am running Locust from a docker container as follows:</p>

<pre><code>docker run --volume /mydir/locustfile:/mnt/locust -e LOCUSTFILE_PATH=/mnt/locust/locustfile.py -e TARGET_URL=https://localhost:8080/parties -e LOCUST_OPTS=""--clients=1 --no-web --run-time=600"" locustio/locust
</code></pre>

<p>The weird thing is that when I use curl to hit the exact same URL it works properly.</p>

<pre><code>curl http://localhost:8080/parties
</code></pre>

<p>Any help is appreciated!</p>
",https://stackoverflow.com/questions/60550111/connection-refused-error-111-when-using-locust-for-performance-testing-against,"['python', 'docker', 'flask', 'docker-compose', 'locust']",2547,True,3,1
Performance API on IE results are different values for each call,"<p>I am trying to get performance stats in IE using puppeteer but after reading the APIs but still not clear why the results from the two calls are so different. Would I be wrong to say that the values for 'domComplete' and 'requestStart' etc should be the same across the apis ? I am not sure what values to take for performance testing of page load.</p>

<pre><code>  const getEntriesByTypeNav = JSON.parse(
          await page.evaluate(() =&gt; JSON.stringify(window.performance.getEntriesByType(""navigation"")))
    )[0];

  getEntriesByTypeNav [
  {
    connectEnd: 0.8755,
    connectStart: 0.8755,
    domComplete: 1540.0755,
    domContentLoadedEventEnd: 1508.6755,
    domContentLoadedEventStart: 1246.9755,
    domInteractive: 1246.4755,
    domLoading: 25.9755,
    domainLookupEnd: 0.8755,
    domainLookupStart: 0.8755,
    fetchStart: 0.8755,
    loadEventEnd: 1576.0755,
    loadEventStart: 1546.2755,
    navigationStart: 0,
    redirectCount: 0,
    redirectEnd: 0,
    redirectStart: 0,
    requestStart: 25.5755,
    responseEnd: 63.8755,
    responseStart: 25.9755,
    type: 'navigate',
    unloadEventEnd: 0,
    unloadEventStart: 0,
    duration: 1576.0755,
    entryType: 'navigation',
    name: 'document',
    startTime: 0
  }
]

 const performanceTiming = JSON.parse(
            await page.evaluate(() =&gt; JSON.stringify(window.performance.timing))
        );

performanceTiming {
  timing: {
    navigationStart: 1583252459926,
    unloadEventStart: 0,
    unloadEventEnd: 0,
    redirectStart: 0,
    redirectEnd: 0,
    fetchStart: 1583252459926,
    domainLookupStart: 1583252459926,
    domainLookupEnd: 1583252459926,
    connectStart: 1583252459926,
    connectEnd: 1583252459926,
    requestStart: 1583252459951,
    responseStart: 1583252459951,
    responseEnd: 1583252459989,
    domLoading: 1583252459951,
    domInteractive: 1583252461172,
    domContentLoadedEventStart: 1583252461172,
    domContentLoadedEventEnd: 1583252461434,
    domComplete: 1583252461466,
    loadEventStart: 1583252461472,
    loadEventEnd: 1583252461502,
    msFirstPaint: 1583252460688
  }
</code></pre>
",https://stackoverflow.com/questions/60512728/performance-api-on-ie-results-are-different-values-for-each-call,"['javascript', 'node.js', 'internet-explorer', 'performance-testing', 'puppeteer']",243,True,1,1
Azure App Service and Application Insights where is performance test?,"<p>So i'm trying some labs on Azure and one of them ask to create a performance test on an App Service.
The problem is that i can't seem to find it anywhere.
There is this link on the documentation but even with it i can't find it.</p>
<p><a href=""https://learn.microsoft.com/en-us/azure/azure-monitor/app/performance-testing"" rel=""nofollow noreferrer"">https://learn.microsoft.com/en-us/azure/azure-monitor/app/performance-testing</a></p>
<p>Can someone tell me clearly where to find it ?</p>
",https://stackoverflow.com/questions/62876032/azure-app-service-and-application-insights-where-is-performance-test,"['azure', 'performance-testing', 'azure-web-app-service']",1440,True,0,2
How to resolve &quot;Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Reading the request body timed out due to data arriving too slowly&quot;?,"<p>While doing API Performance Testing [e.g. No of Threads/Users : 50 with Loop Count : 10], 5 to 8 % samples with POST methods are failing due to below exception :</p>

<pre><code>**Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate.**
   at Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException.Throw(RequestRejectionReason reason)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1MessageBody.PumpAsync()
   at System.IO.Pipelines.PipeCompletion.ThrowLatchedException()
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult&amp; result)
   at System.IO.Pipelines.Pipe.GetReadAsyncResult()
   at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.MessageBody.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.ReadAsyncInternal(Memory`1 buffer, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool`1 bytePool, Nullable`1 limit, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding)
   at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
   at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value)
</code></pre>

<p>Could you please suggest how i can fix this ? </p>

<p><strong>NOTE :I correctly implemented async/await in POST method.This is
    happening to POST method only and out of 500 samples only 20 to
    40 samples are failing per POST method. Providing same inputs while
    testing.</strong></p>
",https://stackoverflow.com/questions/61154053/how-to-resolve-microsoft-aspnetcore-server-kestrel-core-badhttprequestexception,"['performance', 'asp.net-core', 'asp.net-core-webapi']",11373,True,6,2
How to write log in logcat file by filtering with keyword using subprocess in Python,"<p>Currently I'm capturing the logs that are generated while performing performance testing for an app. But the log file that is generated has all the logs of the device as well.</p>
<p>My ask is to filter out the logs that are getting captured with a specific keyword.</p>
<p>My approach is as follows -</p>
<pre><code>call([adb, &quot;logcat&quot;, &quot;-c&quot;])
with open(logcat_file_path, 'w') as out:
    logcat_process = Popen([adb, &quot;logcat&quot;, &quot; | &quot;, &quot;grep&quot;, &quot;'facebook'&quot;], stdout=out)
return logcat_process
</code></pre>
<p>But there is no luck! Can someone please help me out here</p>
<p>Thanks in Advance!</p>
",https://stackoverflow.com/questions/65307665/how-to-write-log-in-logcat-file-by-filtering-with-keyword-using-subprocess-in-py,"['python', 'subprocess']",202,False,0,2
Web API Performance Tracking,"<p>I'm trying to find a tool which helps in performance testing for an action methods in Web API Controller (Basically for a post call from angular code to API). Is it possible to track the performance of code inside the method of API? If so, Can you please help me to do so with any example.</p>

<p>Thanks in Advance. </p>

<p>Thanks &amp; Regards, 
Raghu S.</p>
",https://stackoverflow.com/questions/62147102/web-api-performance-tracking,"['asp.net-web-api', '.net-core', 'performance-testing', 'webapi']",361,False,0,1
Facing issue while using WebPageTest Tool while testing my application which has MS AD Login Enabled,"<p>I am trying to do client side performance testing with <strong>WebPageTest</strong> testing tool. My application has Microsoft Login Feature. For that login one window is popping up, were i need to provide my credential.
Is there any way to handle the popped up window through scripting?</p>

<p>Or is there any other tool by using that I can overcome this issue and complete my testing?</p>
",https://stackoverflow.com/questions/62292258/facing-issue-while-using-webpagetest-tool-while-testing-my-application-which-has,"['performance-testing', 'lighthouse', 'webpagetest']",298,False,0,1
Performance Testing: Flag when a UI/API test&#39;s runtime increases by x% (Selenium C#),"<p>Our team currently use Selenium and C# (and NUnit) to run UI Automated tests. All tests have been manually programmed, meaning no recorders have been used.</p>
<p><strong>Issue</strong>: We now have a request that these tests track their own performance (and past performance) and raise a warning when its runtime increases by x% (5% or 10%, etc).</p>
<p><strong>Question</strong>: What would be the best way to accomplish this? Should we create to tool to analyze performance (performance history) of these UI and API tests from scratch or are there other tools out there we can leverage?</p>
<p>Blogs or stackExchange questions discussing load/performance testing usually reference three main tools for C# (NeoLoad, SilkPerformer, LoadRunnerProfessional). However, I'm not sure that what I'm being asked to do is considered performance testing (load testing) in the purest sense and therefore, not sure whether the tools mentioned above will help achieve the overall goal. They also usually separate performance/load testing from UI/API testing.</p>
<p><strong>Summary</strong>: looking for advice on what direction to take and/or what to read up on for this type of testing.</p>
",https://stackoverflow.com/questions/63046111/performance-testing-flag-when-a-ui-api-tests-runtime-increases-by-x-selenium,"['c#', 'selenium', 'automated-tests', 'performance-testing', 'neoload']",109,True,0,2
"Android Studio Emulator error: Failed to open /qemu.conf, err: 2","<p>I am using Windows command prompt to run this Android Studio emulator. It is able to open the emulator, but got error message Failed to open /qemu.conf, err: 2</p>

<p>What does this error means? And how to solve the error? Mind help. I am new to this. Purpose to use the emulator is only to do mobile performance testing on VuGen LoadRunner. Can refer the screenshot at link below. Thanks</p>

<p><a href=""https://i.stack.imgur.com/Pih5F.png"" rel=""noreferrer"">Failed to open /qemu.conf, err: 2</a></p>
",https://stackoverflow.com/questions/61882471/android-studio-emulator-error-failed-to-open-qemu-conf-err-2,"['android', 'android-studio', 'command-line', 'android-emulator', 'performance-testing']",3286,False,7,0
Monitoring tomcat threads and threadpool executors using Spring Boot Actuator,"<p>We are doing some performance testing of our application which uses SpringBoot 2.2.2 with Spring Actuator. </p>

<p>We want to monitor:</p>

<ol>
<li>How many tomcat threads are being used</li>
<li>How many tomcat requests are being queued</li>
<li>How many ThreadPoolTaskExecutor threads are being used (we are using @Async with a threadpool for some of the tasks)  </li>
</ol>

<p>Is this information available in the actuator? I couldn't see which metrics I needed to use.</p>
",https://stackoverflow.com/questions/60491719/monitoring-tomcat-threads-and-threadpool-executors-using-spring-boot-actuator,"['spring-boot', 'spring-boot-actuator']",2018,True,1,1
Automate profiling for iOS using Xcode 12 xctrace command line tools,"<p>I am trying to automate performance testing using Xcode 12 Instruments developer tool and need some help.</p>
<p>I want to parse .trace file into readable format and want to print leaks/CPU usage on console. I am using below xctrace command line to automate leaks/Time Profiling with Xcode 12 Instruments tool:</p>
<p><code>xcrun xctrace record --device &quot;udid&quot; --template &quot;Leaks&quot; --time-limit 10m --attach &quot;PID&quot; --output &quot;xyz.trace&quot;</code></p>
<p><code>xcrun xctrace export --input &quot;xyz.trace&quot; toc --output &quot;xyz.xml&quot;</code></p>
<p>Is would be really great if someone can help.</p>
<p>Trace file for reference: <a href=""https://gofile.io/d/EpvOXa"" rel=""nofollow noreferrer"">https://gofile.io/d/EpvOXa</a></p>
",https://stackoverflow.com/questions/65092680/automate-profiling-for-ios-using-xcode-12-xctrace-command-line-tools,"['ios', 'swift', 'xcode', 'memory-leaks', 'instruments']",1684,True,1,2
Measure load or performance testing of GUI web applications,"<p>We are using JMeter to perform load testing of apis. If want to perform load or stress testing on web application which has JavaScript rendering, would JMeter with Selenium only option or any other options can be utilized like Selenium functional tests integrate with any performance tool. </p>

<p>Please suggest. </p>

<p>Have gone through/referred to this questions:
<a href=""https://stackoverflow.com/questions/21780391/how-to-approach-end-client-performance-testing-on-single-page-web-applicatio"">How to approach &quot;end-client&quot; performance testing on single-page (web) applications?</a></p>
",https://stackoverflow.com/questions/59898695/measure-load-or-performance-testing-of-gui-web-applications,"['jmeter', 'performance-testing']",1361,True,1,2
Make Simultaneous requests in karate feature file,"<p>I have to test the rate-limiting functionality of my backend.
I need to make simultaneous requests (e.g: 5) and check if one of them has failed because of the rate-limiting settings in the backend.</p>
<p>Like something thats spawns 5 threads and each one does a request, or make 5 asynchrounous requests.</p>
<p>I have read about karate-gatling which does something similar but it seems it's for performance testing.</p>
<p>Is this possible?</p>
",https://stackoverflow.com/questions/64683103/make-simultaneous-requests-in-karate-feature-file,['karate'],294,False,1,1
locust : hooks -&gt; run a custom code with locust performance testing environment,"<p>I am trying to run a code during the load testing is happening(eg push aggregated data to database).</p>
<p>I am using locust <em><strong>init event handler</strong></em> --&gt; <a href=""https://docs.locust.io/en/stable/api.html#locust.event.Events.init"" rel=""nofollow noreferrer"">https://docs.locust.io/en/stable/api.html#locust.event.Events.init</a></p>
<p>Here is my code:</p>
<p><a href=""https://i.stack.imgur.com/dYJAO.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/dYJAO.png"" alt=""enter image description here"" /></a></p>
<p><em><strong>process_exit_code</strong></em> value is always <em><strong>None</strong></em>, event locust has finish the load test.</p>
<p>Is there any way that we can run a custom code like this during the time locust is performing the performance testing ?</p>
<p>Please help.</p>
",https://stackoverflow.com/questions/62694640/locust-hooks-run-a-custom-code-with-locust-performance-testing-environment,"['python-3.x', 'locust']",390,True,1,1
how to measure performance data for flash based games?,"<p>I am facing some issues in performing perf testing of Flash based games.</p>

<ul>
<li><p>How can I perform performance  testing for a flash game?</p></li>
<li><p>Would you recommend any automated tool for testing a flash game?</p></li>
</ul>

<p>I need to capture the performance data for flash games for 1 client session. In Chrome I am unable to inspect the dev tool to look into performance .</p>

<p>I need to capture initial load, splash screen, fps, cpu usage, gpu etc </p>
",https://stackoverflow.com/questions/59783353/how-to-measure-performance-data-for-flash-based-games,"['testing', 'flash', 'profiling', 'performance-testing']",41,False,0,0
How to do performance testing of non server application,"<p>I have to conduct performance testing of an application which is not a web server. This application picks the data from a database and pushes into Kafka. What could be the strategy? In particular, when I look at the JMeter for ex, it says about making a REST request and getting the response to measure the peeformance. But in my case, this application does not server any service. I was wondering how to proceed..</p>
",https://stackoverflow.com/questions/60788428/how-to-do-performance-testing-of-non-server-application,"['jmeter', 'performance-testing']",77,True,0,1
Unable to start the Jmeter-Server in background in Jenkins pipeline. Getting ConnectException,"<p>I have a requirement to implement distributed performance testing where I have a chance of launching multiple slave node parallelly when user count is high. Hence I suppose to launch master and slave nodes.</p>
<p>I have tried all the way to start jmeter-server in the background since it has to keep on running in the slave node to receive the incoming request.</p>
<p>But still, I am unable to start it in the background.</p>
<pre><code>node(performance) {
    properties([disableConcurrentBuilds()])
    stage('Setup') {
        cleanAndInstall()
        checkout()
    }
    max_instances_to_boot = 1
    for (val in 1..max_instances_to_boot) {
        def instance_id = val
        node_builder[instance_id] = {
            timestamps {
                node(node_label) {
                    stage('Node -&gt; ' + instance_id + ' Launch') {
                        def ipAddr = ''
                        script {
                            ipAddr = sh(script: 'curl http://xxx.xxx.xxx.xxx/latest/meta-data/local-ipv4', returnStdout: true)
                            node_ipAddr.add(ipAddr)
                        }
                        cleanAndInstall()
                        checkout()
                        println &quot;Node IP Address:&quot;+node_ipAddr
                        dir('apache-jmeter/bin') {
                            exec_cmd = &quot;nohup sh jmeter-server -Jserver.rmi.ssl.disable=true -Djava.rmi.server.hostname=$ipAddr &gt; ${env.WORKSPACE}/jmeter-server-nohup.out &amp;&quot;
                            println 'Server Execution Command: ' + exec_cmd
                            sh exec_cmd
                        }
                        sleep time: 1, unit: 'MINUTES'
                        sh &quot;&quot;&quot;#!/bin/bash
                              echo &quot;============ jmeter-server.log ============&quot;
                              cat jmeter-server.log
                              echo &quot;============ nohup.log ============&quot;
                              cat jmeter-server-nohup.out
                           &quot;&quot;&quot;
                    }
                }
            }
        }
    }
    parallel node_builder
    stage('Execution') {
        exec_cmd = &quot;apache-jmeter/bin/jmeter -n -t /home/jenkins/workspace/release-performance-tests/test_plans/delights/fd_regression_delight.jmx -e -o /home/jenkins/workspace/release-performance-tests/Performance-Report -l /home/jenkins/workspace/release-performance-tests/JTL-FD-773.jtl -R xx.0.3.210 -Jserver.rmi.ssl.disable=true -Dclient.tries=3&quot;
        println 'Execution Command: ' + exec_cmd
        sh exec_cmd
    }
}
</code></pre>
<p>Getting following error</p>
<pre><code>Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: xx.0.3.210; nested exception is: 
    java.net.ConnectException: Connection refused (Connection refused)
</code></pre>
",https://stackoverflow.com/questions/64703851/unable-to-start-the-jmeter-server-in-background-in-jenkins-pipeline-getting-con,"['jenkins', 'jmeter', 'jenkins-pipeline']",375,True,0,2
custom class decorator s in Angular - Understanding of mentioned code,"<p>I got the following code from internet for implementing auto unsubscribing from internet:</p>
<pre><code>@Component({...})
export class AppComponent implements OnInit, OnDestroy {
    notifier = new Subject()
    ngOnInit () {
        var observable$ = Rx.Observable.interval(1000);
        observable$.pipe(takeUntil(this.notifier))
        .subscribe(x =&gt; console.log(x));
    }
    ngOnDestroy() {
        this.notifier.next()
        this.notifier.complete()
    }
}
</code></pre>
<p>Instead of using the same code in components in angular app, the following custom class decorator was created:-</p>
<pre><code>// For redefining OnDestroy interfacae
export interface OnDestroy {
    readonly destroyed$?: Observable&lt;boolean&gt;;
    ngOnDestroy(): void;
}

// Function to check if the parameter passed is type of &quot;function&quot;
function isFunction(value) {
    return typeof value === 'function';
}

// Class Decorator Factory
export function TakeUntilDestroy(destroyMethodName = 'ngOnDestroy') {

    // Would retrun a modified constructor for the class where this class decotator would be applied
    return &lt;T extends new (...args: any[]) =&gt; {}&gt;(constructor: T) =&gt; {
    
    // Get access to the method 'ngOnDestroy' on the class
        const originalDestroy = constructor.prototype[destroyMethodName];

    // check if a function with name 'ngOnDestroy' exists or not. if not, throw a warning message.
        if (!isFunction(originalDestroy)) {
            console.warn(`${constructor.name} is using @TakeUntilDestroy but does not implement ${destroyMethodName}`);
        }
    
    // a modified constrcutor would be returned here
        return class extends constructor {
    
      // a new observable would be created
            takeUntilDestroy$: Subject&lt;boolean&gt; = new Subject();

        // ??    
            get destroyed$() {
                this.takeUntilDestroy$ = this.takeUntilDestroy$ || new Subject();
                return this.takeUntilDestroy$.asObservable();
            }
            
            // ngOnDestroy method present in class is being redefined
            [destroyMethodName]() {
                if (isFunction(originalDestroy)) {
            //??
                    originalDestroy.apply(this, arguments);
                }
                this.takeUntilDestroy$.next(true);
                this.takeUntilDestroy$.complete();
            }
        };
    };
}

// ?? 
export const untilDestroyed = that =&gt; &lt;T&gt;(source: Observable&lt;T&gt;) =&gt; {
    if (!('destroyed$' in that)) {
        console.warn(`'destroyed$' property does not exist on ${that.constructor.name}`);
        return source;
    }
    return source.pipe(takeUntil&lt;T&gt;(that.destroyed$));
};

//The following is how the above was used in the component:
import { TakeUntilDestroy, untilDestroyed } from '../../../somefilename';

@TakeUntilDestroy()
@Component({
  selector: 'my-comp',
  templateUrl: './my-comp.html'
})

testbservable$: Observable&lt;any&gt;;

    this.testObservable$ = this.mts.buy(buyReqBody);
    this.testObservable$
      .pipe(untilDestroyed(this))
      .subscribe((res: BuyResponse) =&gt; {
    // some code
      },
        (error) =&gt; {
          // some code
        }
      );
</code></pre>
<p>This code for auto unsubscribes work. This is based on some performance testing tools provided in chrome.</p>
<p>Can someone help me in understanding the code? I have marked //?? for comments. I have spend good about of time but seems, I could not understand the code fully.</p>
",https://stackoverflow.com/questions/63430041/custom-class-decorator-s-in-angular-understanding-of-mentioned-code,"['typescript-decorator', 'angular-decorator']",493,False,0,0
Can I add Jmeter to the project that use Gradle Java and Junit 5?,"<p>I have an Automation test project with an API test included.
I use for that JUnit, Retrofit2, Java, and Gradle. 
I want to integrate Jmeter to those tests and run performance testing using those tests. It is possible?<br>
Can I (for example) package all of those tests to the jar, and run it using plugin before running the tests? 
I saw some topics on the stack overflow and other forums, but it was for Maven and Junit. </p>
",https://stackoverflow.com/questions/60620129/can-i-add-jmeter-to-the-project-that-use-gradle-java-and-junit-5,"['java', 'gradle', 'jmeter', 'performance-testing']",310,False,0,0
xargs multiple replacement string,"<p>I want to use curl to make a bunch of http requests in parallel for some performance testing of a server.</p>

<p>The request requires a MAC address, which I would like to count upwards in the following way.</p>

<pre><code>00:00:00:00:AA:BB
             ^  ^
             |  \___ count from 00 to ff (hex)
             \______ count from 00 to ff (hex)
</code></pre>

<p>BB shall overflow to AA when it is getting larger than 0xFF</p>

<p>What I got so far is, incrementing BB and send the request in a parallel way.</p>

<pre><code>printf ""%02x\n"" {0..255} | xargs -I{} -P4 -- \
    curl -s \
    http://nginx/api/onboard/01:02:03:04:00:{}
</code></pre>

<p>This works fine, but I need to request more than 256 times.</p>

<p>xargs is BusyBox v1.31.1</p>
",https://stackoverflow.com/questions/60968147/xargs-multiple-replacement-string,"['shell', 'curl', 'printf', 'xargs']",150,True,1,1
Who defined the currently known performance testing metrics?,"<p>Currently I am doing a research work about performance testing. I have found a lot of websites, where the following metrics are listed as the most important system metrics:</p>
<ul>
<li>speed</li>
<li>scalability</li>
<li>stability</li>
<li>reliability.</li>
</ul>
<p>I would like to 'cite'/'reference' this list properly, but nobody wrote where it comes from and I wouldn't want to cite Wikipedia in my paper.
I've been wondering whether someone defined this in his work or common usage defined this list.
Does someone have more information about this topic?</p>
",https://stackoverflow.com/questions/62917667/who-defined-the-currently-known-performance-testing-metrics,"['performance', 'testing', 'performance-testing', 'metrics']",20,False,1,0
Jmeter delay between threads,"<p>I am using JMeter for performance testing. I am using csv file and there are 8 lines of data. I want to execute 3 threads in parallel at a time.
1,2,3 - execute in parallel
1 minute time delay
then 4,5,6 - parallel
1 minute time delay
then 
7,8 - parallel execution</p>

<p>I am using JSR223 timer. I used the below code:</p>

<pre><code>if(ctx.getThreadNum()%3==0) {
   sleep(60000);
</code></pre>

<p>}</p>

<p>Here its sleeping at thread 3 and 6 but not as I mentioned above. Could someone please provide a idea on this?</p>
",https://stackoverflow.com/questions/62071925/jmeter-delay-between-threads,"['for-loop', 'groovy', 'jmeter']",147,False,1,1
Does VisualVM support REST API?,"<p>Currently I am working on the subject <em>Performance Testing</em> and make a research for tools that perform such testings. For me it is important that the tool has <em>Pre and Post Processing</em> for <strong>REST</strong> service calls.</p>
<p>I did not find in the internet, whether it is possible with <strong>VisualVM</strong>. Does anyone have more information about the tool?</p>
<p><strong>EDIT:</strong> It would be interesting to find out the following, too:</p>
<ul>
<li>does it have a low overhead?</li>
<li>are custom performance profiles possible?</li>
<li>how reliable is the performance tracking?</li>
</ul>
",https://stackoverflow.com/questions/62940939/does-visualvm-support-rest-api,"['rest', 'performance-testing', 'visualvm']",113,False,3,0
JMeter Test Result - Connect time is 100% of request (HTTP) sample time,"<p>I am using JMeter 5.1 to conduct performance testing (HTTP requests), the system tested is web application on Google Cloud Platform. For JMeter, I configured 10 threads(users), and got error messages for failed request: <strong>failed: Connection timed out (Connection timed out)</strong>
and check result in ""View Results in Table"" found Connect time = Sample time and there is no latency time.</p>

<p>Under this condition, What should I try to find the root cause. Is there any analyze direction or method?</p>

<p><img src=""https://i.stack.imgur.com/0UHBJ.png"" alt=""enter image description here""></p>
",https://stackoverflow.com/questions/61888578/jmeter-test-result-connect-time-is-100-of-request-http-sample-time,"['google-cloud-platform', 'jmeter']",419,False,0,2
Constant Load pattern via JMeter,"<p>I am using JMeter to generate load for Azure Event Hub to do performance testing. I want to have constant load in Event Hub( at the time of message ingestion). I tried follwoing options.</p>

<ol>
<li>Constant Throughput Timer</li>
<li>Number of active threads(users) -100 and ramp up time - 20 seconds.</li>
</ol>

<p>I am not getting constant load in Event Hub. Getting too much spikes in Event hub. Please suggest a way to get constant load in Event hub via JMeter.</p>

<p>Regards,
Amit</p>
",https://stackoverflow.com/questions/61076152/constant-load-pattern-via-jmeter,"['performance-testing', 'jmeter-plugins', 'jmeter-5.0']",430,True,0,1
how to use Bazel to test the performance of GRPC++?,"<p>Now I get GRPC from <a href=""https://github.com/grpc/grpc.git"" rel=""nofollow noreferrer"">https://github.com/grpc/grpc.git</a>, and want to use the Performance Testing in the path of <code>./test/cpp/qps</code> to get the performance of GRPC++.</p>
<p><code>root#bazel build :test/cpp/qps</code></p>
<p>I have gotten the Files compiled by Bazel, but I can't get the way to use it. Because the number of files in <code>./Bazel-bin</code> is too much to analyze for a new person like me.</p>
<p>Can someone help me out here? Make it well to test or just telling me how to use it, is good for me.</p>
",https://stackoverflow.com/questions/62493888/how-to-use-bazel-to-test-the-performance-of-grpc,"['c++', 'grpc']",156,False,0,0
How to find the best line Fit Python(banister-impulse model),"<p>I have this formula that is used to predict athletic performance base on daily stress.
It is based on 5 constant unique to each person. I'm trying to find these based on daily stress and performance testing that has been done. I'm new to programming and I don't know where to start. 
<a href=""https://i.stack.imgur.com/Llzg3.png"" rel=""nofollow noreferrer"">see the formula</a></p>

<p>Performance= Fitness(=daily stress+yesterday fitness put decay) - Fatigue(daily stress+yesterday fatigue put decay) +P0
This is a sample of the data: <a href=""https://i.stack.imgur.com/5vcF4.png%60"" rel=""nofollow noreferrer"">data</a></p>

<p>thank you</p>

<pre><code>import pandas as pd
import numpy as np
import math
from scipy import optimize

data = pd.read_csv('data_mod1.csv')

TSS = data['stress'].fillna(0)
arr = np.array(TSS) 
#data = data.dropna()

a = [arr[0]]
b = [arr[0]]
x = arr[1:]

def Banister(x, t1, t2,k1,k2, c):
    for v in x: 
        a.append(a[-1]*np.exp(-1/t1) + v)
        b.append(b[-1]*np.exp(-1/t2) + v)
        data['fit'] = pd.Series(a)
        data['fat'] = pd.Series(b)
        data['perf'] = ((data['fit']*k1)-(data['fat']*k2))+c
    return data['perf'] 


# In[ ]:


from scipy.optimize import curve_fit
fit = curve_fit(Banister, arr,data[data.index], p0=[20, 10,1 ,2, 50])
</code></pre>
",https://stackoverflow.com/questions/61569441/how-to-find-the-best-line-fit-pythonbanister-impulse-model,"['python', 'linear-regression']",104,False,0,0
CPU Utilization while using locust,"<p>We are planning to use locust for performance testing. I have started locust in distributed mode on Kubernetes, with 800 Users for a duration of 5 minutes. Hatch rate is 100 as well. After a couple of minutes, I can see the below warning on the worker log.</p>
<p><code>[2020-07-15 07:03:15,990] pipeline1-locust-worker-1-gp824/WARNING/root: Loadgen CPU usage above 90%! This may constrain your throughput and may even give inconsistent response time measurements! </code></p>
<p>I am unable to figure what is 90% here since I have not specified any resource limits. Is it the 90% of node capacity? Which is unlikely since we use beefy nodes, 16Vcpus, and 128Gb memory. Can anyone give any insight?</p>
",https://stackoverflow.com/questions/62942428/cpu-utilization-while-using-locust,['locust'],2862,True,3,1
How to test client side performance testing of single page application with JMeter,"<p>JMeter does not support the client side performance testing (verifying the content rendering time / page loading time) out of the box.</p>
<p>In single page applications requests are sent to the server as API calls. I am interested in verifying the client side page loading time for concurrent users with JMeter.</p>
<ol>
<li><p>What is the best way to test the SPA with JMeter ?</p>
</li>
<li><p>Do you recommend <a href=""https://github.com/undera/jmeter-plugins-webdriver"" rel=""nofollow noreferrer"">Selenium WebDriver plugin</a>?</p>
</li>
<li><p>Is there any other tools that can be used to verify the client side
load testing for concurrent users?</p>
</li>
</ol>
",https://stackoverflow.com/questions/65351656/how-to-test-client-side-performance-testing-of-single-page-application-with-jmet,"['jmeter', 'jmeter-5.0']",1286,True,0,1
Azure Web App Working Memory Set vs App Service Plan Memory Usage,"<p>I am doing performance testing for my API hosted in Azure App Service. My API response time is increasing whenever there is a spike in the Working Memory Set graph. But my app service plan is showing 50-55% of memory with only one instance running.</p>
<p>Can you clarify to me, why API response time is increasing every time there is a spike in the 'Working memory Set' even though my app service plan memory is only around 50%?</p>
<p><a href=""https://i.stack.imgur.com/SAt4c.png"" rel=""nofollow noreferrer"">Response Time Graph</a></p>
<p><a href=""https://i.stack.imgur.com/nSbzn.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/nSbzn.png"" alt=""Response Time Graph"" /></a></p>
<p><a href=""https://i.stack.imgur.com/AF752.png"" rel=""nofollow noreferrer"">Working Memory Set Graph</a></p>
<p><a href=""https://i.stack.imgur.com/7zGhu.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/7zGhu.png"" alt=""Working Memory Set Graph"" /></a></p>
",https://stackoverflow.com/questions/64729708/azure-web-app-working-memory-set-vs-app-service-plan-memory-usage,"['azure', 'azure-web-app-service', 'performance-testing']",234,False,0,1
Performance Testing With Gatling for an SSO Login UI Application,"<p>I have been doing Performance testing using Gatling Tool for an UI Dashboard with SSO , With single user I am able to capture Response time . With Multiple Load the Test fails with Connection Time Out error as There is no load applied on SSO Authentication .
This Dashboard can have 100+ Users load , So I am planning to have around 5 test users that will not have SSO Logins, so that the load can be simulated for testing . Is there are way we can use SSO Authentication of an UI for Gatling?</p>
",https://stackoverflow.com/questions/62794157/performance-testing-with-gatling-for-an-sso-login-ui-application,"['scala', 'performance', 'single-sign-on', 'load-testing', 'gatling']",394,False,2,0
query on the time taken for rest api in kubernetes environment,"<p>I have a REST API running in a Kubernetes namespace. This REST API will in turn call another REST API on the same Kubernetes namespace. Sometimes the calls take within 10 milliseconds. Someother times it takes more than a second to respond. How can I check why its taking more than 500 milliseconds in some instances?</p>
<p>The REST API is developed using SpringBoot. I have also done good amount of performance testing and monitored the same using JCMD tool, Visual VM tools. I did not find significant issue with the REST API.</p>
",https://stackoverflow.com/questions/64049464/query-on-the-time-taken-for-rest-api-in-kubernetes-environment,"['spring-boot', 'performance', 'rest', 'kubernetes']",134,False,1,0
Understanding difference between thread group properties,"<p>i've started distributed performance testing using jmeter. If i give scenario 1:</p>
<pre><code>no.of threads: 10
ramp up period: 1
loop count: 300
</code></pre>
<p>Everything runs smooth, as scenario 1 translates to 3000 requests in 300 seconds. i.e. 10 requests per second.</p>
<p>If i give scenario 2:</p>
<pre><code>no.of threads: 100
ramp up period: 10
loop count: 30
</code></pre>
<p>Afaik, scenario2 is also executing 3000 requests in 300 seconds, i.e. 10 requests per second.</p>
<p>But things started failing i.e. sever is facing heavy load and requests fail. In theory both scenario1 and scenario2 should be same, right? Am i missing something?</p>
<p>All of these are heavy calls, each one will take 1-2 seconds under normal load.</p>
",https://stackoverflow.com/questions/63813819/understanding-difference-between-thread-group-properties,"['jmeter', 'performance-testing', 'load-testing']",191,True,1,3
How do i get the value using regex in jmeter,"<p>I need to correlate in jmeter for performance testing but am not able to fetch the required value. </p>

<pre><code>    {
  ""totalCount"": 8,
  ""data"": [
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821844,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T10:45:14"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821842,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T10:30:45"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821848,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T11:11:21"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821843,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T10:39:03"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821846,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T10:54:55"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821849,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T12:35:45"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821845,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T10:50:57"",
      283
    ],
    [
      ""TEST_CLASS"",
      ""2020-05-18"",
      ""2020-05-18"",
      9821847,
      ""FY21 - WK 16"",
      ""FY21 - WK 16"",
      null,
      ""USER"",
      ""Name"",
      ""2020-05-11T11:05:58"",
      283
    ]
  ],
  ""additionalInfo"": {
    ""startDates"": [
      ""FY21 - WK 16""
    ],
    ""createdByUsers"": {
      ""283"": ""USER Name""
    },
    ""endDates"": [
      ""FY21 - WK 16""
    ]
  }
}
</code></pre>

<p>And every time i create record this <code>json</code> value will keep on increasing and need to fetch the last value  <code>9821847</code> used regex but its not helping me
All the info in <code>json</code> is correlated actually like <code>""2020-05-18""</code>, <code>""TEST_CLASS""</code>, <code>""FY21 - WK 16""</code>, <code>""USER""</code>, <code>""Name""</code>
only thing which is not corelated is the UTC timestamp <code>""2020-05-11T10:30:45"",</code> Even this one am generating using <code>JSR223</code> post processor to use it in regex while creating record.</p>

<p>actual regex looks like :
<code>TEST_CLASS"",""${c3}"",""${c3}"",(.*?),""${FY_WK}"",""${FY_WK}"",null,""USER"",""Name"",""${utc_time}:</code></p>

<p>if i remove the correlated values then it looks like 
<code>TEST_CLASS"",""2020-05-18"",""2020-05-18"",(.*?),""FY21 - WK 16"",""FY21 - WK 16"",null,""USER"",""Name"",""2020-05-11T11:05:</code></p>
",https://stackoverflow.com/questions/61730866/how-do-i-get-the-value-using-regex-in-jmeter,"['json', 'regex', 'jmeter', 'performance-testing']",44,True,1,1
Support of handling callback request in locust (Server Initiated messages),"<p>I am using locust for performance testing of my application. Have to test following scenario. Want to know if its supported in locust.</p>

<ol>
<li>Locust client sends post request to Application by setting callback url and timer.</li>
<li>On expiry of timer, Application will send back the request on callback url by acting as server.</li>
<li>Locust tool has to handle the request and respond back to server.</li>
<li>Do we have support of handling server initiated messages on locust?</li>
</ol>

<p>Please let me know if anyone come accross this kind of scenario.</p>
",https://stackoverflow.com/questions/61526019/support-of-handling-callback-request-in-locust-server-initiated-messages,['locust'],353,True,0,1
How to perform stress testing/performance testing of UWP app that calls api,"<p>I am looking for a way to do some performance testing of a UWP app that calls api's and uses radis cache.
The application will continuously perform action for 100 hours or more and i need to make sure the server response time is consistent and does not deteriorate the application's action response after running for so many hours at a stretch. By the way, there is no scenario of having multiple users here. I am still on the learning curve and any help would be greatly appreciated.  </p>
",https://stackoverflow.com/questions/60729280/how-to-perform-stress-testing-performance-testing-of-uwp-app-that-calls-api,"['uwp', 'performance-testing', 'stress-testing', 'web-api-testing', 'redis-cache']",494,True,0,2
Not able to get Network(kb/s) Received/sent report in JTL result file in JMETER,"<p>I am trying to run my performance testing of file transfer over SFTP using jmeter. Jmeter sampler which i am running on a linux box using command <code>sh jmeter.sh -n -t SinglePart_MultipleUsersTest.jmx -l SinglePart_MultipleUsersTest.jtl &amp;</code> is </p>

<p><strong>SinglePart_MultipleUsersTest.jmx</strong></p>

<pre><code>import com.jcraft.jsch.*;
import java.io.*;

def jsch = new JSch()
def session = jsch.getSession(""user1"", ""xyz"", 4000) 
session.setConfig(""StrictHostKeyChecking"", ""no"")
session.setPassword(""password"")
def sftpSession = session.connect()
def channel = session.openChannel(""sftp"")
channel.connect();
def channelSftp = (ChannelSftp)channel;
log.info(""SFTP Connection with host is acquired"" + channelSftp)
channelSftp.cd(""/0002/test/upload/r9a1"");
for(i = 0; i&lt;100; i++){
    def f1 = new File(""/home/dc-user/Files/test_exact5mb.txt"");
    channelSftp.put(new java.io.FileInputStream(f1), f1.getName()+i);
}
session.disconnect()
</code></pre>

<p>It generates a .jtl file which i convert into html result using the below command <code>jmeter -g  SinglePart_MultipleUsersTest.jtl  -o OUTPUT_FOLDER</code>.</p>

<p>HTML result doesnt show the NETWORK(Kb/s) Received/Sent result in the table in html.</p>

<p><strong>jmeter.properties</strong> used for result are:</p>

<pre><code>#---------------------------------------------------------------------------
# Results file configuration
#---------------------------------------------------------------------------

# This section helps determine how result data will be saved.
# The commented out values are the defaults.

# legitimate values: xml, csv, db.  Only xml and csv are currently supported.
jmeter.save.saveservice.output_format=csv

# The below properties are true when field should be saved; false otherwise
#
# assertion_results_failure_message only affects CSV output
jmeter.save.saveservice.assertion_results_failure_message=true
#
# legitimate values: none, first, all
jmeter.save.saveservice.assertion_results=all
#
jmeter.save.saveservice.data_type=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true
# response_data is not currently supported for CSV output
jmeter.save.saveservice.response_data=true
# Save ResponseData for failed samples
jmeter.save.saveservice.response_data.on_error=false
jmeter.save.saveservice.response_message=true
jmeter.save.saveservice.successful=true
jmeter.save.saveservice.thread_name=true
jmeter.save.saveservice.time=true
jmeter.save.saveservice.subresults=true
jmeter.save.saveservice.assertions=true
jmeter.save.saveservice.latency=true
# Only available with HttpClient4
#jmeter.save.saveservice.connect_time=true
jmeter.save.saveservice.samplerData=true
#jmeter.save.saveservice.responseHeaders=false
#jmeter.save.saveservice.requestHeaders=false
#jmeter.save.saveservice.encoding=false
jmeter.save.saveservice.bytes=true
# Only available with HttpClient4
jmeter.save.saveservice.sent_bytes=true
jmeter.save.saveservice.url=true
jmeter.save.saveservice.filename=false
jmeter.save.saveservice.hostname=false
jmeter.save.saveservice.thread_counts=true
jmeter.save.saveservice.sample_count=false
jmeter.save.saveservice.idle_time=true
</code></pre>

<p>I am using SFTP protocol for transfer. Using SSH SFTP protocol as jmeter plugin.
I am missing some change in order to achieve it. Any help in this?</p>
",https://stackoverflow.com/questions/60770927/not-able-to-get-networkkb-s-received-sent-report-in-jtl-result-file-in-jmeter,"['jmeter', 'sftp', 'jmeter-plugins', 'jmeter-5.0']",356,True,0,1
Is it mandatory to check &quot;Retrieve All Embedded Resources&quot; in HTTP Request Defaults for performance testing?,"<p>During performance testing ""Retrieve All Embedded Resources"" should be checked or unchecked?</p>

<p>My analysis: ""Retrieve All Embedded Resources"" should not be checked. And cache also should not be cleared automatically.</p>

<p>Note: 
a. ""Retrieve All Embedded Resources"" option is not checked in Jmeter default recording template. </p>

<p>Which is the correct response time, if 500 user are iterating 2 scenarios 50 times.</p>

<p>My analysis: Need to refer ""Transaction Controller - Sample Time [sum value]"" in ""View Results in Table"" listener. Note, need to user parallel controller in order to handle parallel requests and need to refer max response time in that.</p>

<p><a href=""https://i.stack.imgur.com/pRIRC.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/pRIRC.png"" alt=""Aggregate Report""></a></p>
",https://stackoverflow.com/questions/60240112/is-it-mandatory-to-check-retrieve-all-embedded-resources-in-http-request-defau,"['jmeter', 'jmeter-plugins', 'jmeter-5.0']",3328,True,3,1
"Jmeter, read BLOB (Which contains an XML) using Jmeter","<p>I have a database table in which one column has a BLOB data, which can contain a text or an XML [Please do not ask why, somehow a dev made this choice]. I want to read the BLOB data and save it in a file. Can anyone help me on how to read the BLOB data?</p>
<p>I have the following JSR 223, POST processor (Groovy Code):</p>
<pre><code>byte[] blobByte = vars.getObject(&quot;gaurav&quot;).get(0).get(&quot;TEXT&quot;);
String blob = new String(blobByte);
log.info(blob);
</code></pre>
<p>However, I get the following error:</p>
<pre><code>javax.script.ScriptException: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.lang.String#&lt;init&gt;.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
    [class [B]
    [class [C]
    [class java.lang.String]
    at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:324) ~[groovy-all-2.4.16.jar:2.4.16]
    at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:72) ~[groovy-all-2.4.16.jar:2.4.16]
    at javax.script.CompiledScript.eval(Unknown Source) ~[?:1.8.0_251]
    at org.apache.jmeter.util.JSR223TestElement.processFileOrScript(JSR223TestElement.java:223) ~[ApacheJMeter_core.jar:5.2.1]
    at org.apache.jmeter.extractor.JSR223PostProcessor.process(JSR223PostProcessor.java:44) [ApacheJMeter_components.jar:5.2.1]
    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:931) [ApacheJMeter_core.jar:5.2.1]
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:569) [ApacheJMeter_core.jar:5.2.1]
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:490) [ApacheJMeter_core.jar:5.2.1]
</code></pre>
<p>Can anyone help me what is wrong in my logic?</p>
<p>PS: I refer this page for the conversion logic : <a href=""https://www.blazemeter.com/blog/performance-testing-blob-from-a-mysql-database-with-jmeter"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/performance-testing-blob-from-a-mysql-database-with-jmeter</a></p>
",https://stackoverflow.com/questions/62723923/jmeter-read-blob-which-contains-an-xml-using-jmeter,"['oracle', 'groovy', 'jmeter']",656,False,1,1
Performance testing with custom summaryFunction,"<p>I'm tuning parameters with custom <code>summaryFunction</code> in caret.</p>
<p>I originally thought that if I set K-fold cross validation and input data has N points, performance will be measured with N/K data points.</p>
<p>However, apparently it seems not correct because when I extract <code>data$pred</code> by using <code>browser()</code> which is the handed data to summary function, it only had 10 data.
Since the input(<code>df</code>) has over 500 data points, this number is way smaller than my expectation.</p>
<p>Why does it only have 10 data? Is there any way to increase this?(=performance testing with more large data points)</p>
<p>Any kind of help is needed. Thank you.</p>
<pre><code>sigma.list &lt;- seq(1, 5, 1)
c.list &lt;- seq(1, 10, 1)
met &lt;- &quot;FValue&quot;

#define evaluation function
eval &lt;- function(data, lev = NULL, model = NULL){
  mat &lt;- table(data$pred, data$obs)
  pre &lt;- mat[1,1]/sum(mat[1,]) #precision
  rec &lt;- mat[1,1]/sum(mat[,1]) #recall
  res &lt;- c(&quot;Precision&quot;=pre, &quot;Recall&quot;=rec, &quot;FValue&quot;=2*pre*rec/(pre+rec))
  browser()
  res
}
#define train control
tc &lt;-  trainControl(method = &quot;cv&quot;,
                    number = 5,
                    summaryFunction = eval,
                    classProbs = TRUE,
                    )

#tune with caret
svm.tune &lt;- train(Flag~.,
                   data = df,
                   method = &quot;svmRadial&quot;,
                   tuneGrid = expand.grid(C=c.list, sigma=sigma.list),
                   trControl = tc,
                   metric = met
                   )
</code></pre>
",https://stackoverflow.com/questions/63098045/performance-testing-with-custom-summaryfunction,"['r', 'performance-testing', 'cross-validation', 'r-caret']",75,False,1,1
Why the BAT file launched from JMeter OS Sampler is not triggering the Maven execution?,"<p><strong>Summary:-</strong> I need lots of dynamic data for my performance testing and it's not possible to generate those test data from Jmeter itself. Hence, I wrote a Java code which will generate these dynamic test data and will put those data into the excel file. This excel file can be consumed by JMeter script for the performance testing. Every iteration in JMeter needs a new set of test data and that's why I have created a bat file which will trigger the Maven execution(it's just mvn clean test) and will generate the fresh set of test data before each of iteration. Everything is working fine till this point. I just need to run the bat file from JMeter to trigger the test data creation before each iteration and that's the problem which I am facing</p>
<p><strong>Problem:-</strong> As mentioned in the link <a href=""https://stackoverflow.com/questions/22302665/how-to-run-batch-file-bat-from-jmeter"">How to run batch file(.bat) from Jmeter</a> and as suggested by user @Dmitry T, I have added the OS sampler with the given parameters(See the screenshot below) but it is not starting the Maven execution. It is hitting the bat file(I put some msg command to check) but somehow it is not starting the execution. I tried the other solution given by the same user about using the Beanshell Sampler and running the command</p>
<pre><code> Runtime.getRuntime().exec(&quot;C:/Windows/System32/cmd.exe /c D:/XXXX/XXX/XXXX/GenerateTestData.bat&quot;); 
</code></pre>
<p>This is also not working. Am I missing something here? Please let me know if there is any solution for this? Appreciate any help on this?</p>
<p><a href=""https://i.stack.imgur.com/CW9st.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/CW9st.png"" alt=""enter image description here"" /></a></p>
",https://stackoverflow.com/questions/64747105/why-the-bat-file-launched-from-jmeter-os-sampler-is-not-triggering-the-maven-exe,"['java', 'maven', 'batch-file', 'jmeter']",201,True,1,2
xml to dataframe repeating node attr,"<p>I'm trying to convert a huge .xml file to dataframe. It looks like this (but with millions of &lt;Cli clusters like this one):</p>
<pre><code>&lt;Cli Cd=&quot;11300000029&quot; CoobAss=&quot;0.00&quot; CoobRec=&quot;0.00&quot;&gt;
    &lt;Op Mod=&quot;0202&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v165=&quot;4934.84&quot; v170=&quot;4856.16&quot;/&gt;
    &lt;/Op&gt;
    &lt;Op Mod=&quot;1901&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v20=&quot;22877.77&quot;/&gt;
    &lt;/Op&gt;
&lt;/Cli&gt;

&lt;Cli Cd=&quot;11400000029&quot; CoobAss=&quot;0.00&quot; CoobRec=&quot;0.00&quot;&gt;
    &lt;Op Mod=&quot;0204&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v165=&quot;5000.10&quot;/&gt;
    &lt;/Op&gt;
    &lt;Op Mod=&quot;1902&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v20=&quot;32000.22&quot;/&gt;
    &lt;/Op&gt;
&lt;/Cli&gt;
</code></pre>
<p>Each &lt;Cli can have several &lt;Op and each &lt;Op can have several &lt;Venc.</p>
<p>Expected result is:</p>
<pre class=""lang-r prettyprint-override""><code>tibble::tribble(
  ~Cd, ~CoobAss, ~CoobRec, ~Mod, ~VincME, ~v165, ~v170, ~v20,
  &quot;11300000029&quot;, &quot;0.00&quot;, &quot;0.00&quot;, &quot;0202&quot;, &quot;N&quot;, &quot;4934.84&quot;, &quot;4856.16&quot;, NA,
  &quot;11300000029&quot;, &quot;0.00&quot;, &quot;0.00&quot;, &quot;1901&quot;, &quot;N&quot;, NA, NA, &quot;22877.77&quot;,
  &quot;11400000029&quot;, &quot;0.00&quot;, &quot;0.00&quot;, &quot;0204&quot;, &quot;N&quot;, &quot;5000.10&quot;, NA, NA,
  &quot;11400000029&quot;, &quot;0.00&quot;, &quot;0.00&quot;, &quot;1902&quot;, &quot;N&quot;, NA, NA, &quot;32000.22&quot;
)
#&gt; # A tibble: 4 x 8
#&gt;   Cd          CoobAss CoobRec Mod   VincME v165    v170    v20     
#&gt;   &lt;chr&gt;       &lt;chr&gt;   &lt;chr&gt;   &lt;chr&gt; &lt;chr&gt;  &lt;chr&gt;   &lt;chr&gt;   &lt;chr&gt;   
#&gt; 1 11300000029 0.00    0.00    0202  N      4934.84 4856.16 &lt;NA&gt;    
#&gt; 2 11300000029 0.00    0.00    1901  N      &lt;NA&gt;    &lt;NA&gt;    22877.77
#&gt; 3 11400000029 0.00    0.00    0204  N      5000.10 &lt;NA&gt;    &lt;NA&gt;    
#&gt; 4 11400000029 0.00    0.00    1902  N      &lt;NA&gt;    &lt;NA&gt;    32000.22
</code></pre>
<p><sup>Created on 2020-10-01 by the <a href=""https://reprex.tidyverse.org"" rel=""nofollow noreferrer"">reprex package</a> (v0.3.0)</sup></p>
<p>I can get Cli, Op and Venc in differents dataframes but i couldn't figure it out how to put them all together like that.</p>
<h1>EDIT: CREATING A BIG FILE</h1>
<p>In order to performance testing, you can replicate the data to increase file size. Change <code>n</code> to desired size:</p>
<pre><code>xml = c('
&lt;Cli Cd=&quot;11300000029&quot; CoobAss=&quot;0.00&quot; CoobRec=&quot;0.00&quot;&gt;
    &lt;Op Mod=&quot;0202&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v165=&quot;4934.84&quot; v170=&quot;4856.16&quot;/&gt;
    &lt;/Op&gt;
    &lt;Op Mod=&quot;1901&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v20=&quot;22877.77&quot;/&gt;
    &lt;/Op&gt;
&lt;/Cli&gt;

&lt;Cli Cd=&quot;11400000029&quot; CoobAss=&quot;0.00&quot; CoobRec=&quot;0.00&quot;&gt;
    &lt;Op Mod=&quot;0204&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v165=&quot;5000.10&quot;/&gt;
    &lt;/Op&gt;
    &lt;Op Mod=&quot;1902&quot; VincME=&quot;N&quot;&gt;
        &lt;Venc v20=&quot;32000.22&quot;/&gt;
    &lt;/Op&gt;
&lt;/Cli&gt;
')

n = 3
data = do.call(&quot;rbind&quot;, replicate(n, xml, simplify = FALSE))

write(data, &quot;xml.xml&quot;)
</code></pre>
",https://stackoverflow.com/questions/64165137/xml-to-dataframe-repeating-node-attr,"['r', 'xml']",103,True,0,1
Performance test on a webpage which loads data from multiple API&#39;s,"<p>We have a webpage which will load data from multiple api's as configured by the users. While doing performance test of this page, In HTTP request I have added this page URL and executed the script. To my surprise, the script executed successfully with status as 200 as I dig into more I changed the drop down(In View Results Tree) from Text to HTML(Download Resources) and I don't see any page data in the response. Can someone help me with this. I'm not sure how to proceed with performance testing on this particular page.</p>
",https://stackoverflow.com/questions/60491606/performance-test-on-a-webpage-which-loads-data-from-multiple-apis,['jmeter'],109,False,0,1
Understanding jmeter results - Discrepancies,"<p>I am doing performance testing for one of my applications.</p>

<p>Doing tests in Non-GUI mode.</p>

<p>I have one Jmeter master server and 3 slaves.</p>

<p>When I run the jmx file in the master server I also write the results to a .jtl file</p>

<pre><code>./jmeter -n -t /home/ubuntu/bsc.jmx -Djava.rmi.server.hostname=&lt;master-ip&gt; -R &lt;slave-1-ip&gt;,&lt;slave-2-ip&gt;,&lt;slave-3-ip&gt;  -l /home/ubuntu/bareresults.jtl
</code></pre>

<p>Now when I run the test the summary comes as follows (image attached)</p>

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

<p>According to my understanding, this shows that throughput is 1456.9/s.</p>

<p>But when I upload the bareresults.jtl in GUI (image attached) it shows throughput is 136.0/s</p>

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

<p>Why is it so? I am not able to find an exact explanation for this difference.</p>

<p>Edit: <a href=""https://drive.google.com/file/d/1uu-3yU1N9xQ8qzLhGPKfa4AIoa5wOOIF/view?usp=sharing"" rel=""nofollow noreferrer"">Link to .jtl file</a></p>
",https://stackoverflow.com/questions/60069053/understanding-jmeter-results-discrepancies,['jmeter'],34,False,1,1
Performance Testing with pytest fixtures- yielf related error,"<p>I am trying to implement a very basic simple performance testing using pytest, and modular fixtures.</p>
<p>I already have a fixture for time tracking:</p>
<pre><code>@pytest.fixture
def time_tracker():
    tick = datetime.now()
    yield
    tock = datetime.now()
    diff = tock - tick
    print(f&quot;\n runtime: {diff.total_seconds()}&quot;)
    return diff
</code></pre>
<p>I tried doing something like:</p>
<pre><code>@pytest.fixture
def performance_testing(time_tracking):
    diff = time_tracking
    if diff &gt; timedelta(seconds=30):
       raise ValueError(&quot;test is taking too long&quot;)
</code></pre>
<p>But I am having problems with the yield.
I think that when I am yielding from <strong>time_tracker</strong> then context goes back to the calling function which is <strong>performance_testing</strong> and not the test function itself.</p>
<p>My error:</p>
<pre><code>@pytest.fixture
def performance_testing(time_tracker):
    diff = time_tracker

&gt;       if diff &gt; timedelta(seconds=30):
E       TypeError: '&gt;' not supported between instances of 'NoneType' and 'datetime.timedelta'
</code></pre>
<p>I know I can easly implemnt this with duplicating the code and adding my <code>if diff &gt; timedelta(30)</code> logic, however I want to use modular fixtures.</p>
<p>Is this possible? if not, is there an elegant &quot;pytest&quot; way of doing this?
Also, I am not intersted in downloading pytest plugins.</p>
",https://stackoverflow.com/questions/64925498/performance-testing-with-pytest-fixtures-yielf-related-error,"['python', 'pytest', 'fixtures']",833,False,0,1
How to play video files containing mp4 extension in jmeter,"<p>I have an application which has videos in mp4 extension.
I need to perform performance testing using jmeter. While recording the application in jmeter 5.1.1 am getting error as socket write error. So, I tried capturing it from fiddler and convert it to jmx.</p>
<p>Now am able to get 206 status code with partial content response on running in jmeter with blank response body.
How can I validate that I am getting the correct response against the mp4 request?
Is my approach correct ?
While running the developed script for multi user.System is getting hanged on executing the particular mp4 files.
How to overcome the same?</p>
",https://stackoverflow.com/questions/64527575/how-to-play-video-files-containing-mp4-extension-in-jmeter,"['video', 'jmeter', 'performance-testing', 'mp4']",634,False,0,1
Issues with Jmeter and MongoDB: detected unknown BSON type,"<p>I would like to stress test my MongoDB 4.2 server using Jmeter.
Right now I'm not using any particular configuration, I just start the mongod instance on localhost.</p>

<p>I followed this guide to set up jmeter: <a href=""https://www.blazemeter.com/blog/mongodb-performance-testing-with-jmeter"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/mongodb-performance-testing-with-jmeter</a>.
However I'm not able to correctly run the following test:</p>

<pre><code>import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import static com.mongodb.client.model.Filters.*;

import org.bson.Document;
import org.bson.types.ObjectId;
import java.util.Arrays;

try{
    MongoClient mongoClient = MongoClients.create();
    MongoDatabase database = mongoClient.getDatabase(vars.get(""databaseName""));
    MongoCollection&lt;Document&gt; collection = database.getCollection(vars.get(""collectionName""));

    Document document = new Document(""_id"", 7);
    collection.insertOne(document);
}
catch (Exception e){
    SampleResult.setSuccessful(false);
    SampleResult.setResponseCode(""500"");
    SampleResult.setResponseMessage(""Exception: "" + e);
}
</code></pre>

<p>due to this error:</p>

<pre><code>2020-05-29 14:30:07,987 INFO o.m.d.cluster: Exception in monitor thread while connecting to server localhost:27017
com.mongodb.MongoException: org.bson.BsonSerializationException: Detected unknown BSON type ""\x7b"" for fieldname ""^A"". Are you using the latest driver version?
    at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:138) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) [mongo-java-driver-3.12.4.jar:?]
    at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: org.bson.BsonSerializationException: Detected unknown BSON type ""\x7b"" for fieldname ""^A"". Are you using the latest driver version?
    at org.bson.BsonBinaryReader.readBsonType(BsonBinaryReader.java:96) ~[bson-3.12.4.jar:?]
    at com.mongodb.internal.connection.ProtocolHelper.getField(ProtocolHelper.java:147) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.ProtocolHelper.getOperationTime(ProtocolHelper.java:102) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.InternalStreamConnection.updateSessionContext(InternalStreamConnection.java:537) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:301) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:259) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:83) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:33) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initializeConnectionDescription(InternalStreamConnectionInitializer.java:105) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:62) ~[mongo-java-driver-3.12.4.jar:?]
    at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:129) ~[mongo-java-driver-3.12.4.jar:?]
    ... 2 more
</code></pre>

<p>I tried the following MongoDB Java driver combinations (in both jmeter/lib and jmeter/lib/ext folders):</p>

<ul>
<li>mongodb-driver-core.jar, mongodb-driver-sync.jar and bson.jar (both version 4.0.3 and 3.12.3)</li>
<li>mongo-java-driver.jar and bson.jar (version 3.12.4)</li>
</ul>

<p>Can you help me figure out what's the problem?</p>
",https://stackoverflow.com/questions/62087097/issues-with-jmeter-and-mongodb-detected-unknown-bson-type,"['java', 'mongodb', 'jmeter']",554,False,0,1
Deserializing avro is slow,"<p>I try to do a performance test with Java between several serialization formats including avro/protobuf/thrift and etc.</p>
<p>Test bases on deserializing a byte array message having 30 long type fields for 1,000,000 times.
The result for avro is not good.</p>
<p>protobuf/thrift uses around 2000 milliseconds in average, but it takes 9000 milliseconds for avro.</p>
<p>In the document it advice to reuse decoder, so I do the code as follow.</p>
<pre><code>byte[] bytes = readFromFile(&quot;market.avro&quot;);
long begin = System.nanoTime();
DatumReader&lt;Market&gt; userDatumReader = new ReflectDatumReader&lt;&gt;(Market.class);
InputStream inputStream = new SeekableByteArrayInput(bytes);
BinaryDecoder reuse = DecoderFactory.get().binaryDecoder(inputStream, null);
Market marketReuse = new Market();
for (int i = 0; i &lt; loopCount; i++) {
    inputStream = new SeekableByteArrayInput(bytes);
    BinaryDecoder decoder = DecoderFactory.get().binaryDecoder(inputStream, reuse);
    userDatumReader.read(marketReuse, decoder);
}

long end = System.nanoTime() - begin;
System.out.println(&quot;avro loop &quot; + loopCount + &quot; times: &quot; + (end * 1d / 1000 / 1000));
</code></pre>
<p>I think avro should not be that slow, so I believe I do something wrong, but I am not sure what's the point. Do I make the 'reuse' in a wrong way?</p>
<p>Is there any advice for avro performance testing? Thanks in advance.</p>
",https://stackoverflow.com/questions/65457721/deserializing-avro-is-slow,"['java', 'performance', 'avro']",572,True,2,1
How to hash a big file without having to manually process chunks of data?,"<p>When we want to get the hash of a big file in Python, with Python's <code>hashlib</code>, we can process chunks of data of size 1024 bytes like this:</p>
<pre><code>import hashlib

m = hashlib.md5()
chunksize = 1024
with open(&quot;large.txt&quot;, 'rb') as f:
    while True:
        chunk = f.read(chunksize)
        if not chunk:
            break
        m.update(chunk)
print(m.hexdigest())
</code></pre>
<p>or simply ignore the splitting in chunks, like this:</p>
<pre><code>import hashlib
sha256 = hashlib.sha256()
with open(f, 'rb') as g:
    sha256.update(g.read())
print(sha256.hexdigest())
</code></pre>
<p>Finding a optimal implementation can be tricky, and would need some performance testing and improvements (1024 chunks? 4KB? 64KB? etc.), as detailed in <a href=""https://stackoverflow.com/questions/19342033/hashing-file-in-python-3"">Hashing file in Python 3?</a> or <a href=""https://codereview.stackexchange.com/questions/108330/getting-a-hash-string-for-a-very-large-file"">Getting a hash string for a very large file
</a></p>
<p><strong>Question:</strong> Is there a cross-platform, ready-to-use, function to compute a MD5 or SHA256 of a big file, with Python? (such that we don't need to reinvent the wheel, or worry about the optimal chunk size, etc.)</p>
<p>Something like:</p>
<pre><code>import hashlib

# get the result without having to think about chunks, etc.
hashlib.file_sha256('bigfile.txt')
</code></pre>
",https://stackoverflow.com/questions/64730177/how-to-hash-a-big-file-without-having-to-manually-process-chunks-of-data,"['python', 'hash', 'md5', 'sha256']",3581,True,2,2
How do I replace part of my json request body with the result of a java function/method in jmeter?,"<p>I'm new to jmeter. I'm using <code>Jmeter</code> for performance testing of my APIs. There I have a sample request which has a key1 and a dummy value as part of the HTTP request. The complete Json request is generated dynamically each time based on output of a previous <code>Rest API</code> call. I have to run my <code>java</code> method on the dynamic <code>HTTP Request</code>.  Once I run the <code>java</code> method, the value of the key1 part of the <code>Http</code> request has to be replaced by the value returned by the <code>java</code> function/method.</p>

<p>Sample Dynamic Http Request :-</p>

<pre><code>{
  ""ver"": ""1.0"",
  ""timestamp"":""2019-08-28T11:39:57.153Z"",
  ""Details"": {
        ""key"": ""Previous API call value"",
        ""key"": ""Previous API call value""
      }
    ],
  ""key1"": ""Dummy Value""
}
</code></pre>

<p>The dummy value has to be replaced with the output returned by the java function. I'm able to fetch the <code>Previous API call value</code> using Regular Expression Extractor. How do I solve this? </p>
",https://stackoverflow.com/questions/59612251/how-do-i-replace-part-of-my-json-request-body-with-the-result-of-a-java-function,"['java', 'rest', 'api', 'jmeter']",509,True,1,1
Executing Login API in which Authentication process happens with Active Directory,"<p>I am trying to do the performance testing of a logistics application. 2 types of users are there - Internal users &amp; External Users. For internal users the authentication process happens normally; usual database. I was successful in executing the jmx script for Internal users. But for External users, the authentication process happens with Active Directory. In this case when i tried to execute the jmx script, the user is not getting logged in to the application. But the login api doesn't gives any error, the Response Code is 200 but in Response I'm getting the message &quot;Try again&quot;. Do we need to do any additional settings in Jmeter for Active Directory Authentication? Can anybody help me in this?</p>
",https://stackoverflow.com/questions/64260992/executing-login-api-in-which-authentication-process-happens-with-active-director,"['jmeter', 'active-directory']",41,True,1,2
gatling Form Parameters : How to pass custom form-data to post request,"<p>I am new to gatling scripting.  I am trying to execute a performance testing against one of our application's POST api. This POST request API required to pass the form-data. </p>

<p>EG : Print-Screen of the postman collection of the request body</p>

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

<p>For that I have prepared a gatling code piece as below : </p>

<pre><code>      .exec(http(""POST Explore JSON"")
        .post(""/sunrise/explore_json/"")
        .header(""Content-Type"", ""application/x-www-form-urlencoded"")
        .header(""Referer"", ""https://example.com/sunrise/dashboard/dummy_dashboard/"")
        .header(""x-csrftoken"", ""${csrf_token1}"")
        .queryParam(""form_data"",""{\""slice_id\"":4}"")
      //.formParam(""form_data"",""datasource"":""2__table"") ----------&gt; Tried Method 1
      //.formParamSeq(Seq((""form_data"", ""datasource"":""2__table"")))  ----------&gt; Tried Method 2
      //.formParamMap(Map(""form_data"" -&gt;  ""datasource"":""2__table"")) ----------&gt; Tried Method 3
      //.form(""""""form_data={""datasource"":""2__table""}"""""") ----------&gt; Tried Method 4
</code></pre>

<p>Unfortunately gatling is not passing the form data as I want,currently how gatling pass the form data is :  </p>

<p><code>form_data: {""datasource"":""2__table""}</code></p>

<p>The way I want to pass is : (Please note I have removed the "":"" &amp; the following ""space"")</p>

<p><code>form_data={""datasource"":""2__table""}</code></p>

<p>I have tried many many ways, but I could not successfully pass form data as above
Is there any way that I can pass as <code>form_data={""datasource"":""2__table""}</code> ? </p>
",https://stackoverflow.com/questions/59719107/gatling-form-parameters-how-to-pass-custom-form-data-to-post-request,"['scala', 'performance-testing', 'gatling', 'scala-gatling']",4463,False,1,3
MongoDB Jmeter with SSL File,"<p>So I'm following the guide over on BlazeMeter about how to load test MongoDB with Jmeter here
<a href=""https://www.blazemeter.com/blog/mongodb-performance-testing-with-jmeter/"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/mongodb-performance-testing-with-jmeter/</a></p>

<p>In my case I do have a connection string because our Mongo Deployment is using a replicaset.  No biggie I just hardcoded it into the MongoClient section as I was having issues with passing it through as a variable.  </p>

<p>But here is the deal.  Our Mongo servers use a SSL file as a part of the authentication mechanism. </p>

<p>Is there a way I can just plug the SSL into a variable inside of jmeter and then have it be set properly in the database connection portion of the load test?</p>

<pre><code>import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoClient;
import com.mongodb.MongoClientSettings;
import com.mongodb.ServerAddress;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;

import java.util.Arrays;

try {

    MongoClient mongoClient = MongoClients.create(""MY_CONNECTION_STRING"");

    MongoDatabase database = mongoClient.getDatabase(vars.get(""databaseName""));
    MongoCollection&lt;Document&gt; collection = database.getCollection(vars.get(""collectionName""));

    vars.putObject(""collection"", collection);

    return ""Connected to "" + vars.get(""collectionName"");
}
catch (Exception e) {
    SampleResult.setSuccessful(false);
    SampleResult.setResponseCode(""500"");
    SampleResult.setResponseMessage(""Exception: "" + e);
}```
</code></pre>
",https://stackoverflow.com/questions/60177352/mongodb-jmeter-with-ssl-file,"['mongodb', 'jmeter']",297,True,1,1
AWS RDS MySQL Instance starts performing same SQL SELECT query much slower under certain loading,"<p>I'm running performance testing on my application that lives in AWS environment and I see a weird behavior of the DB after certain loading.</p>
<p>When I have more than 1500 queries per second to the RDS MySQL, the queries are performed much slower.</p>
<p>The query is a SELECT statement from one table by 2 columns, we have an index created for these 2 columns.</p>
<p>The current setup is the following:</p>
<p>RDS MySQL r5.2xlarge InnoDB</p>
<p>Increasing the type of RDS instance doesn't help.</p>
<p>Is there any way to improve the performance of the current setup?</p>
<p>Is there any limitation on SELECT queries to the same Table or using the same Index?</p>
<p>Any suggestions would be much appreciated.</p>
",https://stackoverflow.com/questions/63721628/aws-rds-mysql-instance-starts-performing-same-sql-select-query-much-slower-under,"['mysql', 'performance-testing', 'amazon-rds', 'innodb', 'high-load']",188,True,1,1
OS Sampler V/S HTTP Request Sampler in JMeter,"<p>I have to generate load for my performance testing using JMeter. I am having .Net code to send data to IOT hub which we want to use.
I can easily create REST endpoints or executable based on requirement. To integrate with JMeter which Sampler I should prefer OS Sampler or HTTP request Sampler to integrate with existing .Net code. </p>

<p>We will be use distributed testing in JMeter so if we go with REST Endpoints then scaling will be required but scaling is not required in case of executable so I think OS Sampler is better over HTTP request Sampler.
Do you see any concern using OS Sampler over HTTP request Sampler?
Please suggest performance comparison also.</p>

<p>Thanks in advance.</p>
",https://stackoverflow.com/questions/61099572/os-sampler-v-s-http-request-sampler-in-jmeter,"['performance', 'jmeter', 'performance-testing', 'jmeter-plugins', 'jmeter-5.0']",79,False,0,1
Higher response times are observed in Jmeter Performance test when ran in AWS windows machine,"<p>While load/performance testing of an API on DNS in AWS using JMeter, we observed relatively higher response times(~ 230 ms) in AWS windows machine. When this test is performed in my local machine, the response times are around 110 ms.The throughput/# of samples served does change widely due to this response time.</p>
<p>The tests were ran for 1 hour each with no delay for three times in both the machines. The only difference I see is my RAM size is 16 GB while AWS is 4 GB. Will this really make such a big difference? or is there something I am missing.</p>
<p>AWS Machine configuration:</p>
<p><a href=""https://i.stack.imgur.com/7yi0J.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/7yi0J.png"" alt=""enter image description here"" /></a></p>
<p>My local machine configuration:</p>
<p><a href=""https://i.stack.imgur.com/jTvgD.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/jTvgD.png"" alt=""enter image description here"" /></a></p>
<p>Can anyone share their thoughts?</p>
",https://stackoverflow.com/questions/63945112/higher-response-times-are-observed-in-jmeter-performance-test-when-ran-in-aws-wi,"['amazon-web-services', 'jmeter', 'performance-testing', 'jmeter-5.0']",128,False,0,1
"Spark Streaming - Kafka auto offset reset (Spark 2.4.5, kafka 0.8.2)","<p>I have a Spark Streaming application (Spark 2.4.5, kafka 0.8.2) which I am currently performance testing with different message sizes.</p>

<pre><code>def create_context():
    logger.info(""Creating new context - not from checkpoint"")
    print(""Creating new context"")
    ssc = StreamingContext(sc, 5)
    opts = {""metadata.broker.list"": globals()['kafka_hosts'],
            ""auto.offset.reset"": ""largest"",
            ""group.id"": ""test_v1""}
    kvs = KafkaUtils.createDirectStream(ssc, [topic_listen], opts)
    kvs.checkpoint(120)
    print(""Processing started"")
    lines = kvs.map(lambda row: row[1])
    lines.foreachRDD(my_streaming_function)
    ssc.checkpoint(checkpoint)
    return ssc

ssc = StreamingContext.getOrCreate(checkpoint, lambda: create_context())
ssc.start()
</code></pre>

<p>The application starts, processing begins, but after some point (not being able to catch up with the messages) I get the following (expected) error on a certain batch:</p>

<pre><code>Caused by: kafka.common.OffsetOutOfRangeException
    at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at kafka.common.ErrorMapping$.exceptionFor(ErrorMapping.scala:86)
    at org.apache.spark.streaming.kafka.KafkaRDD$KafkaRDDIterator.handleFetchErr(KafkaRDD.scala:188)
    at org.apache.spark.streaming.kafka.KafkaRDD$KafkaRDDIterator.fetchBatch(KafkaRDD.scala:198)
    at org.apache.spark.streaming.kafka.KafkaRDD$KafkaRDDIterator.getNext(KafkaRDD.scala:213)
    at org.apache.spark.util.NextIterator.hasNext(NextIterator.scala:73)
    at scala.collection.Iterator$class.foreach(Iterator.scala:891)
    at org.apache.spark.util.NextIterator.foreach(NextIterator.scala:21)
    at org.apache.spark.api.python.PythonRDD$.writeIteratorToStream(PythonRDD.scala:224)
    at org.apache.spark.api.python.PythonRunner$$anon$2.writeIteratorToStream(PythonRunner.scala:561)
    at org.apache.spark.api.python.BasePythonRunner$WriterThread$$anonfun$run$1.apply(PythonRunner.scala:346)
    at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1945)
    at org.apache.spark.api.python.BasePythonRunner$WriterThread.run(PythonRunner.scala:195)
</code></pre>

<p>The problem is that the application never recovers from this state. After 'catching up' with all the batches (no active batches waiting), when I publish any new messages the error still persists, even though the message has just been produced seconds before processing it.</p>

<p>I'd have thought that the 'auto.offset.reset=largest' parameter resets the offsets automatically, but I guess that's only applicable for the start of the application. What options do I have for automatic recovery?</p>
",https://stackoverflow.com/questions/61196151/spark-streaming-kafka-auto-offset-reset-spark-2-4-5-kafka-0-8-2,"['python', 'apache-spark', 'pyspark', 'apache-kafka', 'spark-streaming']",575,False,0,0
JMeter - mobile devices requests emulation with JSR223 &amp; groovy - No such property: ExpectedConditions error,"<p>I'm trying to emulate https requests from mobile devices for client-side performance testing, using JSR223 + groovy, and the problem is that I couldn't perform in this way click on &quot;Accept All Cookies&quot; span element on page.</p>
<p>Response:</p>
<blockquote>
<p>Response message:javax.script.ScriptException:
javax.script.ScriptException: groovy.lang.MissingPropertyException: No
such property: ExpectedConditions for class: Script7</p>
</blockquote>
<p>In 'desctop' part of script, xpath (implemented via WebDriver sampler) and click on this &quot;Accept All Cookies&quot; span element works 100% correctly - and by this reason I know, that xpath is correct.</p>
<p>Could you please take a look at the problem and share your thought and any tips, where could be the reason of problem in JSR223 and how is possible to solve it?</p>
<p>Code is here:</p>
<pre><code>import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.util.concurrent.TimeUnit;

System.setProperty(&quot;webdriver.chrome.driver&quot;, &quot;${webdriver_path}&quot;);

Map&lt;String, Object&gt; deviceMetrics = new HashMap&lt;&gt;();
deviceMetrics.put(&quot;width&quot;, ${width});
deviceMetrics.put(&quot;height&quot;, ${height});
deviceMetrics.put(&quot;pixelRatio&quot;, ${pixelRatio});
Map&lt;String, Object&gt; mobileEmulation = new HashMap&lt;&gt;();
mobileEmulation.put(&quot;deviceMetrics&quot;, deviceMetrics);
mobileEmulation.put(&quot;userAgent&quot;, &quot;${userAgent}&quot;);
Map&lt;String, Object&gt; chromeOptions = new HashMap&lt;&gt;();
chromeOptions.put(&quot;mobileEmulation&quot;, mobileEmulation);
//DesiredCapabilities capabilities = DesiredCapabilities.chrome();
//capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);

ChromeOptions options = new ChromeOptions();
options.setExperimentalOption(&quot;mobileEmulation&quot;, mobileEmulation);
ChromeDriver driver = new ChromeDriver(options);
driver.get(&quot;https://${HOST_MAIN}&quot;);

WebDriverWait wait = new WebDriverWait(driver, 20);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(&quot;//span[contains(text(), 'Accept All Cookies')]&quot;)));
driver.findElement(By.xpath(&quot;//span[contains(text(), 'Accept All Cookies')]&quot;)).click();

//this way doesn't work too:
//WebDriverWait(driver, 20).until(EC.element_to_be_clickable(By.xpath(&quot;//span[contains(text(), 'Accept All Cookies')]&quot;))).click();

log.info(driver.getTitle());
driver.quit();
</code></pre>
<p>How can I implement the same action when emulating mobile devices on client-side using JSR223?</p>
",https://stackoverflow.com/questions/63602550/jmeter-mobile-devices-requests-emulation-with-jsr223-groovy-no-such-proper,"['jmeter', 'emulation', 'client-side', 'jsr223', 'mobile-devices']",109,True,0,1
Is batch deletion a better way to perform a directory delete in Azure storage?,"<p>I am wondering what is the most efficient way to delete a directory (Or just a batch of blobs for that matter - I am aware of the fact that Azure storage do not have the consept of directories or folders) using c#. Right now I'm using parallel deleting (using Parallel.ForEach) of all the blobs in a folder - takes about a minute for 420 blobs that are summing up to 11 MB.</p>
<p>The code looks something like:</p>
<pre><code>Parallel.ForEach(urisToDelete.Distinct(), uri =&gt; { 
    var blobReference = await this.cloudBlobClient.GetBlobReferenceFromServerAsync(uri);
    await blobReference.DeleteAsync();
});
</code></pre>
<p>I am trying to optimize this process and I came across <a href=""https://learn.microsoft.com/en-us/dotnet/api/azure.storage.blobs.specialized.blobbatch.deleteblob?view=azure-dotnet"" rel=""nofollow noreferrer"">this Microsoft's ducumentation</a> of batch deleting. It's a bit complicated to change it in my project for performance testing. Does anyone know if the performance is better using this method of deletion? Does anyone know a better method?</p>
<p>Thanks a lot!</p>
",https://stackoverflow.com/questions/63925167/is-batch-deletion-a-better-way-to-perform-a-directory-delete-in-azure-storage,"['c#', 'azure', 'azure-storage', 'azure-blob-storage']",559,True,0,1
I am getting JMeter Out of Memory error even after I already upgraded my RAM from 8G to 16G,"<p>Can someone please help me with the <em>Out of Memory</em> (OOM) error that I encountered while running <strong>JMeter</strong></p>

<p>I am a newbie in <strong>Java</strong> and in JMeter, and also in performance testing. I used the command prompt but I am still encountering <em>Out of Memory</em> issue. I tried to adjust the heap size but running did not continue every time I change it.</p>

<p>My current heap size is below</p>

<pre><code>    set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
</code></pre>

<p>I added another memory: from <strong>8GB</strong>, my memory is now <strong>16GB</strong>.<br>
But when I run it again with <strong>1000 threads</strong>, the error below is shown:</p>

<pre><code>Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread in thread Thread[Thread Group 1-130,5,main]. See the log file for details.
Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread in thread Thread[Thread Group 1-63,5,main]. See log file for details.
Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread in thread Thread[Thread Group 1-135,5,main]. See log file for details.
Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread in thread Thread[Thread Group 1-19,5,main]. See log file for details.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate
</code></pre>

<p>Sometimes I am also encountering just this error: </p>

<pre><code># There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate
</code></pre>

<p>Can someone please help me. I am just a beginner so I would appreciate if you will reply with terms that are not too technical.</p>

<p>Thank you in advance. </p>
",https://stackoverflow.com/questions/60701312/i-am-getting-jmeter-out-of-memory-error-even-after-i-already-upgraded-my-ram-fro,"['java', 'jmeter', 'performance-testing']",1314,True,0,4
