title,body,link,tags,view_count,is_answered,score,answer_count
Jmeter Load Testing Calculations,"<p>I need to run a Load test for 250 users for 1 hour. What are variable which I need to consider when I'm planning the load test?</p>
",https://stackoverflow.com/questions/67380369/jmeter-load-testing-calculations,"['performance', 'jmeter', 'load-testing']",21,False,0,1
Jmeter performance and load testing,"<p>I need to load multiple files in JMeter using an HTTP requests. Can we use a single HTTP request. Files are in JSON format. Is it possible to do with a single HTTP request.</p>
<p>or I need to do multiple HTTP requests. I have 10,000 files for ingestion and I need to automate it.</p>
",https://stackoverflow.com/questions/66304536/jmeter-performance-and-load-testing,['jmeter'],39,False,-1,3
Load Testing with Asset Loading,"<p>I'm currently trying to load test a homepage I develop. Till now Loader.io was good enough for my purposes, but I realized it does not download/use the embedded assets.</p>
<p>Is there a load test service, which get's as close as possible to real users?</p>
<p>I haven't found anything until now. Hopefully somebody of you guys knows a suitable service.</p>
<p>Thanks in advance!</p>
",https://stackoverflow.com/questions/67272135/load-testing-with-asset-loading,"['testing', 'load', 'load-testing', 'stress-testing']",134,True,0,1
slow load testing with Gatling,"<p>I'm using Gatling for load testing, when I'm trying to post a batch of my objects every second for longer period of time.<br />
It works as I want where there is 100 objects in a JSON array, however, the time increases with larger batches (1000 objects - around 5 seconds between requests, 2000 objects - around 10 seconds between requests, etc...).</p>
<p>I'm wondering what is the issue, my environment is capable of handling such amount of data, in the Gatling output I have response time lower than 1 second.</p>
<p>I'm using csv feeder with the csv file around 3.6gb, so my gut tells it may somehow connected. The data is preprocessed, each cell in csv file is a json array later used as a request body.</p>
<p>Any ideas?</p>
",https://stackoverflow.com/questions/66333360/slow-load-testing-with-gatling,"['scala', 'gatling']",181,False,0,0
As a part of initial load testing or incremental load testing do we validate audit fields?,"<p>We are performing initial load testing and incremental load testing on target tables in datawarehouse. so do we validate audit field values in initial load test or do we validate audit fields values  in incremental load testing ? As part of which testing do we validate audit field values</p>
",https://stackoverflow.com/questions/70308036/as-a-part-of-initial-load-testing-or-incremental-load-testing-do-we-validate-aud,"['etl', 'data-warehouse', 'sql-data-warehouse', 'uat']",151,True,0,1
Time increase with Lambda Load Testing,"<p>Can I find Load on AWS Lambda directly without any monitoring tools like Datadog/AppDynamics?
basically, I need to find out how much time does my Lambda API take when load increases?</p>
",https://stackoverflow.com/questions/69071295/time-increase-with-lambda-load-testing,"['javascript', 'node.js', 'amazon-web-services', 'aws-lambda', 'load-testing']",106,True,1,2
Setup monitoring for API load testing,"<p>I'm new to API Load Testing. Before we started to do API load testing, we need to configure some monitoring setup to monitor CPU usage and JVM heap memory as the test is executed. FYI I'm using Apache JMeter tool to execute the load tests.</p>
<p>For own exercise, I'm trying to do load test using this one sample REST web service: <a href=""https://reqres.in/"" rel=""nofollow noreferrer"">https://reqres.in/</a></p>
<p>How can I setup monitoring for the server of the sample web service when the web service is not hosted in my own PC? I've tried the JMeter plugin (Perfmon) but I guess this only works when the server is hosted at our own PC. Appreciate for your kind suggestions. Thanks!</p>
",https://stackoverflow.com/questions/68203520/setup-monitoring-for-api-load-testing,"['api', 'jmeter', 'load-testing', 'jmeter-5.0', 'web-api-testing']",203,True,1,2
TIBCO EMS Load Testing using JMeter,"<p>I have created a JMS Point-to-Point Request Response test as documented in the JMeter manual.</p>
<p>If  my message properties are set to request only, the test results to success, however when I switch to request/reply sometimes the test success and fails. Any configurations that i may be missing?</p>
<p>My JMeter Point-to-Point Configuration:</p>
<p><a href=""https://i.stack.imgur.com/KmN9h.png"" rel=""nofollow noreferrer"">Jmeter Configuration</a></p>
",https://stackoverflow.com/questions/66668926/tibco-ems-load-testing-using-jmeter,"['jmeter', 'jmeter-plugins', 'tibco', 'tibco-ems', 'tibco-designer']",155,True,0,1
429 Error in Load Testing ( Apache Jmeter),"<p>I am getting 429 error ( Too Many Requests) when I am using only 1 user to send just 1 request.
Can somebody give a suggestion on this?</p>
",https://stackoverflow.com/questions/70032701/429-error-in-load-testing-apache-jmeter,"['testing', 'jmeter', 'load']",229,False,0,1
Load-testing Asp.net Core SignalR using Locust,"<p>I would like to load-test a SignalR service using Locust. I found that the following library can send and receive SignalR requests: <a href=""https://pypi.org/project/signalrcore/"" rel=""nofollow noreferrer"">https://pypi.org/project/signalrcore/</a></p>
<p>Now, according to the Locust docs, the next step would be to write a custom client for Locust that can send SignalR requests. But there is the following warning:</p>
<blockquote>
<p>Any protocol libraries that you use must be gevent-friendly (use the
Python socket module or some other standard library function like
subprocess), or your calls are likely to block the whole Locust/Python
process.</p>
<p>Some C libraries cannot be monkey patched by gevent, but allow for
other workarounds. For example, if you want to use psycopg2 to
performance test PostgreSQL, you can use psycogreen</p>
</blockquote>
<p>I am a beginner in Python so I don't understand exactly what it means. The library &quot;signalrcore&quot; I am using is 100% synchronous. Does it means I can't use it with Locust?
I found an a fork of signalrcore that uses asyncio. Should I use that fork instead and just make sure all my signalr calls are non blocking?</p>
<p>Thanks!</p>
",https://stackoverflow.com/questions/67437961/load-testing-asp-net-core-signalr-using-locust,"['python', 'locust']",301,True,0,1
load testing kubernetes service (with istio service mesh),"<p>When load testing a kubernetes service where routing is done via istio, all the services in the cluster become unresponsive. This happens when there is 100% failure from the service that is being load tested.</p>
<p>Is there a way to prevent this? Should we apply istio circuit breaking?</p>
",https://stackoverflow.com/questions/67697727/load-testing-kubernetes-service-with-istio-service-mesh,"['kubernetes', 'load-testing', 'istio']",246,True,1,1
Load testing - Run C# selenium scripts in Jmeter,"<p>I have a MSTest project with Selenium test cases in C#.</p>
<p><a href=""https://i.stack.imgur.com/cVQo7.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/cVQo7.png"" alt=""enter image description here"" /></a></p>
<p>I saw that Jmeter used to work with Java Selenium scripts. how can I make a load testing running those C# scripts into Jmeter for multiple users at the same time?</p>
<p>The output only generates a .DLL for the project.</p>
",https://stackoverflow.com/questions/65572103/load-testing-run-c-selenium-scripts-in-jmeter,"['c#', 'selenium', 'jmeter', 'mstest', 'load-testing']",937,True,0,1
Real time load testing with Jmeter webdriver sampler,"<p>I need to load test a mendix application .<br />
The requirement is - 10 users should be able to perform file upload function simultaneously .
But the test should be like real life situation where 10 users will use 10 different machines, accounts and browsers. Basically no shared resources.
I have written Jmeter webdriver sampler and trying to setup on multiple VMs in distributed way.
Is there any other better option / or better tool</p>
",https://stackoverflow.com/questions/67618369/real-time-load-testing-with-jmeter-webdriver-sampler,"['testing', 'jmeter', 'load']",69,False,0,1
Load testing of Web UI for 20K users,"<p>I have developed automation scripts for end to end workflows using selenium webdriver io for my web application. I want to use same scripts for load testing. My requirement is to test web UI along with backend APIs for 20K users. Can you please suggest how I can achieve it with Selenium?</p>
",https://stackoverflow.com/questions/67087598/load-testing-of-web-ui-for-20k-users,"['javascript', 'selenium', 'load-testing', 'webui']",64,False,0,1
Perform Load Testing for a newly developed application,"<p>I want to know how to perform Load Testing.</p>
<p>Requirement is</p>
<ul>
<li>Total number of concurrent users at any given time are <strong>5000</strong></li>
<li>Request a session once every <strong>40 seconds</strong> on average</li>
<li>Each session requires the web application consume an average <strong>12Kb</strong> download bandwidth.</li>
</ul>
<p>Note:
We need to perform load testing for a newly developed web application to assess the data rate required for the hosting webserver.</p>
",https://stackoverflow.com/questions/68302421/perform-load-testing-for-a-newly-developed-application,"['performance-testing', 'load-testing']",35,False,0,1
Jmeter -Load testing of an API in chunks,"<p>I want to test the load where I need to pass data in chunks.</p>
<p>Instead of passing complete load at once, first 200 records in first call after few seconds in second call next 200 records and so on</p>
",https://stackoverflow.com/questions/67127145/jmeter-load-testing-of-an-api-in-chunks,"['jmeter', 'load-testing', 'jmx', 'jmeter-plugins', 'web-api-testing']",62,False,0,1
Node.JS Load Testing tools with thousand of virtual users,"<p>The goal is to make a load test of the Node.JS server on AWS.</p>
<p>The server should support extremely high peaks of different users per second (20K) event more.
I tried a few load test tools like Artillery and LoadTest. Unfortunately didn't manage to get more than 3K VUs by setting up the Kuberense cluster of 16 cores with 64G in total.
The result was less than 60 VUs per pod within 100% CPU utilization. When I tried to get at least 200 VUs on 50 pods</p>
<p>Probably anyone an idea of less CPU-consuming load testing tools.</p>
",https://stackoverflow.com/questions/66459360/node-js-load-testing-tools-with-thousand-of-virtual-users,"['node.js', 'load-testing']",626,True,0,1
Load testing an API in python for response time,"<p>I would like to do a Load test over an API I developed. I have tried the Jmeter which seems to be only providing the elapsed time and the latency</p>
<p>So is there a way I can do the same test(i.e sending over 100 POST request to the API) using python so I can get much better control over it</p>
",https://stackoverflow.com/questions/65757835/load-testing-an-api-in-python-for-response-time,"['python', 'api', 'load-testing']",545,False,0,2
Using xlsx file to do load testing with Locust,"<p>I wanna use xlsx file instead of a single data for post request in locust. How can i do this in &quot;self.client.post&quot; ?</p>
",https://stackoverflow.com/questions/67312314/using-xlsx-file-to-do-load-testing-with-locust,"['python', 'api', 'xlsx', 'load-testing', 'locust']",235,False,0,1
Load Testing the UI recommendations for a quasar project,"<h3>Current State</h3>
<p>We have an SPA application developed with quasar. We have been successfully able to load test the APIs via locust and also run automation tests via Robot Framework.</p>
<h3>Objective</h3>
<p>Since the APIs were only load tested via locust, we wanted to load test the behavior of our system, when there will be multiple users accessing our UI giving us answers to questions like</p>
<ol>
<li>How many users will be able to access the UI without slowing it down.</li>
<li>Monitoring the response times as the number of user increase.</li>
</ol>
<h3>Clarifications Needed</h3>
<p>As a starter in performance testing, I wanted recommendations on which tool would be the best to load test the UI.</p>
<ol>
<li>Is it possible to hook the automation tests of Robot Framework to locust?</li>
<li>Can we just include the selenium library in python and execute those automation scripts in locust to load test the UI?</li>
<li>Should we be using tools like JMeter or any other tools which can achieve our requirement.</li>
</ol>
",https://stackoverflow.com/questions/65772442/load-testing-the-ui-recommendations-for-a-quasar-project,"['jmeter', 'robotframework', 'performance-testing', 'ui-testing', 'locust']",193,True,0,1
Load Testing of UI User scenario - Jmeter Webdriver sampler,"<p>I want to run basic load testing scenario on a mendix application.
The initial requirement is at least 10 users should be able to perform some activities like login , file upload concurrently.
I have used the webdriver sampler in Jmeter with selenium and written the JS script for the actions.
The issue is it launches 10 browser on the same machine.</p>
<ul>
<li>Please suggest the proper way to handle this. Currently it seems that the errors which I am getting are because of I am running the test on my laptop instead of distributed setup.</li>
<li>Also the total script takes 60 seconds to finish for single user. What should be the ramp up time?</li>
<li>If not Jmeter, please suggest any other suitable tool for this scenario.</li>
</ul>
",https://stackoverflow.com/questions/67286939/load-testing-of-ui-user-scenario-jmeter-webdriver-sampler,"['jmeter', 'webdriver']",405,False,0,1
JMeter API Load Testing - 404 Response code = test failed?,"<p>Just need a clarification here, I'm doing API testing on a sample REST web services. If the response code is 404, does the test will returns 100% error too?</p>
<p><a href=""https://i.stack.imgur.com/er1Xm.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/er1Xm.png"" alt=""enter image description here"" /></a></p>
<p>FYI no body data is input here. I also add response code assertion below the HTTP request but I don't think this is related to the error.</p>
<p><a href=""https://i.stack.imgur.com/Euij7.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Euij7.png"" alt=""enter image description here"" /></a></p>
",https://stackoverflow.com/questions/68173810/jmeter-api-load-testing-404-response-code-test-failed,"['jmeter', 'performance-testing', 'load-testing', 'jmeter-5.0']",693,True,0,1
JMeter javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake Load testing,"<p>I am trying to test my API using Jmeter Load testing and i am encountering this error whenever i tried to test 10 or more concurrent request in 20 seconds or more:</p>
<pre><code>javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
    at org.apache.jmeter.protocol.http.sampler.hc.LazyLayeredConnectionSocketFactory.connectSocket(LazyLayeredConnectionSocketFactory.java:92)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:326)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:850)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:561)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1282)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1271)
    at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:627)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:551)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:490)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
    at sun.security.ssl.InputRecord.read(Unknown Source)
    ... 27 more

</code></pre>
<p>10 concurrent user for 10 seconds is successful but when i up my testing, some request replied the above error and some request had been successful during the testing. I think this is not a code issue anymore. In this regard, May i know what is the problem for this? I am trying to test my API <strong>from my workstation(Windows) to Linux Dev server where the API is located</strong> and i am curious why only some request replied with this error while some is successful since my API URL uses HTTPS.</p>
",https://stackoverflow.com/questions/67784042/jmeter-javax-net-ssl-sslhandshakeexception-remote-host-closed-connection-during,['jmeter'],3981,True,1,1
"Api automation,Load testing and Security testing Do one project","<p>I want to do API automation and load testing and security testing at the same time using one project. What kind of tool or technology can I use to implement that project?</p>
",https://stackoverflow.com/questions/68367669/api-automation-load-testing-and-security-testing-do-one-project,"['performance', 'api', 'automation', 'load-testing', 'security-testing']",61,False,0,1
Need Help to do Login authentication oauth2.0 while load testing,"<p>I have a BlazeMeter Pro account and I am stuck on the step I try to record in Jmeter and also try with BlazeMeter recording but not able to do it.</p>
<p>Now flow is I have to login into the system and perform the operation, we implement oAuh2.0 from the development side to authenticate the user from the Gmail and we face issue while record script that user is not able to authenticate to login when you hit with single or multiple users.</p>
<p>to authenticate I need all the below parameters and I have all details but now in Jmeter or BlazeMeter, I do not understand where I add all details.
client_id=
client_secret=
refresh_token=
grant_type=refresh_token</p>
<p>we are implementing a following steps at record time</p>
<ol>
<li>Load a respective URL and open Gmail Login page</li>
<li>After Enter email and password page is redirect and particular website will be display</li>
<li>After enter user name and password on the website UI is display.</li>
</ol>
<p>Please guide me on how I implement this and process my flow for load testing.</p>
",https://stackoverflow.com/questions/69116715/need-help-to-do-login-authentication-oauth2-0-while-load-testing,"['google-cloud-platform', 'oauth-2.0', 'oauth', 'jmeter', 'blazemeter']",501,False,0,1
How to add Size and Hardware parameters in Load testing?,"<p>My client has asked me to add below parameters in my load test result:</p>
<p>&quot;How are we doing on performance testing? Do we have any benchmarks - Eg. PPR 8 Core 32 GB RAM  250</p>
<p>Concurrent Users - 50</p>
<p>Reports: min &amp; min report size - xx kb)</p>
<p>If we haven’t carried out any such performance tests yet, can we plan for.&quot;</p>
<p>So, presently I'm only showing Response/elapsed time graph and Latency Graph in MS Excel, for up to 50 concurrent users.</p>
<p><a href=""https://i.stack.imgur.com/KxACg.png"" rel=""nofollow noreferrer"">enter image description here</a></p>
<p>My question is how may I add the Size parameter in the results?</p>
<p>Also how shall I test on the Hardware benchmarks for Load test (eg. 8 Core 32 GB RAM)?</p>
<p>What more things shall I do in performance testing, my client doesn't looks satisfied with the performance test I'm running currently.</p>
<p>(I'm a newbie to performance testing, 3 months only with this domain)</p>
",https://stackoverflow.com/questions/66532658/how-to-add-size-and-hardware-parameters-in-load-testing,"['performance', 'jmeter', 'load', 'performance-testing', 'load-testing']",33,True,0,1
Does aws ecs distributed load testing support jmeter mqtt sampler,"<p>I am performing jmeter distributed load testing, I have been trying to setup aws ecs containers for load testing of mosquitto mqtt.</p>
<p>Does aws distributed load testing support jmeter mqtt sampler plugin
<a href=""https://github.com/xmeter-net/mqtt-jmeter"" rel=""nofollow noreferrer"">mqtt-jmeter</a> ?</p>
",https://stackoverflow.com/questions/68576167/does-aws-ecs-distributed-load-testing-support-jmeter-mqtt-sampler,"['amazon-web-services', 'jmeter', 'mqtt', 'jmeter-plugins', 'mosquitto']",199,True,0,2
"SHould i ignore ajax,css,call in jmeter load testing","<p>I am new to jmeter load testing. i am using jmeter test script recorder to record and run the load testing and jmeter capture all type of calls including css,ajax etc.While doing load testing should i ignore css,ajax or i have to include them as well?</p>
",https://stackoverflow.com/questions/70335182/should-i-ignore-ajax-css-call-in-jmeter-load-testing,"['jmeter', 'jmeter-5.0', 'jmeter-4.0']",247,True,0,1
Load testing got stuck while running script in Non-GUI,"<p>I executed a load test of 3000 users with ramp up time of 120 secs and constant timer of 5 sec. And while  execution is gonna be completed the execution got stuck.
summary +     11 in 00:00:31 =    0.4/s Avg:   503 Min:   299 Max:  1447 Err:     0 (0.00%) Active: 136 Started: 3000 Finished: 2864
summary =  82078 in 00:07:42 =  177.7/s Avg:  2639 Min:   233 Max: 244776 Err:   177 (0.22%)
It got stuck in the above lines and i am waiting for more than a hour and its in the same state.</p>
<p>Can anyone please help me on this.</p>
",https://stackoverflow.com/questions/69364833/load-testing-got-stuck-while-running-script-in-non-gui,"['testing', 'jmeter', 'performance-testing']",337,False,-1,1
Perform load testing in JMeter with different number of users,"<p>I have a question where it might be very easy.
I have to perform load testing on a site(login) with these scenarios.
100 users within 5 minutes
500 users within 5 minutes
1000 users within 5 minutes</p>
<p>I can test each scenario separately by changing the threads in thread group. But what I want to do is run all 3 scenarios one after one automatically. I tried if controller and loop controller but could not fix it. I don't understand where it go wrong.</p>
",https://stackoverflow.com/questions/66477263/perform-load-testing-in-jmeter-with-different-number-of-users,['jmeter'],163,False,0,1
Records insertion with primary key while load testing on locust,"<p>I have to test load on POST API on multiple users. API uses the primary constrains while inserting the records in tables. Locust will be facing issue with the primary constrains approach.</p>
",https://stackoverflow.com/questions/68078275/records-insertion-with-primary-key-while-load-testing-on-locust,"['primary-key', 'locust']",217,True,0,1
JMeter Load testing - HttpHostConnectException: Connection refused: connect on windows server 2012,"<p>I am doing Load Testing for my application using JMeter. Load Test is running successfully for 1000 threads without any error on MacBook and Windows 10 systems.</p>
<p>However when I am running on Windows Server 2012, It is running fine 100 threads but when I am increasing threads to 250 or 500, I am getting the following error:</p>
<pre><code>  org.apache.http.conn.HttpHostConnectException: Connect to localhost:8050 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect&amp;#xd;
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)&amp;#xd;
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:404)&amp;#xd;
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)&amp;#xd;
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)&amp;#xd;
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)&amp;#xd;
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)&amp;#xd;
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)&amp;#xd;
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)&amp;#xd;
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)&amp;#xd;
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)&amp;#xd;
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:935)&amp;#xd;
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:646)&amp;#xd;
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)&amp;#xd;
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1296)&amp;#xd;
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1285)&amp;#xd;
    at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638)&amp;#xd;
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558)&amp;#xd;
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489)&amp;#xd;
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)&amp;#xd;
    at java.base/java.lang.Thread.run(Thread.java:830)&amp;#xd;
Caused by: java.net.ConnectException: Connection refused: connect&amp;#xd;
    at java.base/sun.nio.ch.Net.connect0(Native Method)&amp;#xd;
    at java.base/sun.nio.ch.Net.connect(Net.java:493)&amp;#xd;
    at java.base/sun.nio.ch.Net.connect(Net.java:482)&amp;#xd;
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)&amp;#xd;
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:339)&amp;#xd;
    at java.base/java.net.Socket.connect(Socket.java:603)&amp;#xd;
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)&amp;#xd;
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)&amp;#xd;
    ... 19 more&amp;#xd;
</code></pre>
<p>I am using Apache Jmeter - 5.4.1.</p>
<p>I have spent an entire day searching for a solution without success. There were many similar issues but none helping my case.</p>
<p>I think some configuration changes are required but don't exactly what.</p>
<p><strong>UPDATE 1</strong></p>
<p>I have updated TCP/IP Registery parameters as well to (but no success):</p>
<p><code>TcpTimedWaitDelay</code>: REG_DWORD=0x0000001e(30)
<code>MaxUserPort</code>:REG_DWORD=0x0000fffe(65534)
<code>TcpNumConnections</code>:REG_DWORD=0x00fffffe(1677214)</p>
<p><strong>UPDATE 2</strong></p>
<p>It seems the problem is not with the OS version, but with that specific machine. I installed windows server 2012 on my laptop in a virtual Box and tested it. I sent a request with 500 threads without any error.</p>
<p>Host system spec: 8 GB RAM, 4 CPU, Windows 10<br />
Guest system spec: 4 GB RAM, 2 CPU, windows server 12</p>
<p><strong>UPDATE 3</strong></p>
<p>Screenshot of configurations:</p>
<p><a href=""https://i.stack.imgur.com/5NzR2.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/5NzR2.png"" alt=""enter image description here"" /></a></p>
<p>Can anyone help, please?
Thank you.</p>
",https://stackoverflow.com/questions/68325447/jmeter-load-testing-httphostconnectexception-connection-refused-connect-on-w,"['windows', 'jmeter', 'performance-testing', 'load-testing', 'windows-server-2012']",1598,True,3,4
facing error 443 while performing android app load testing in jmeter,"<p>I am a complete beginner in Jmeter and facing error 443 while performing android app Load testing in Jmeter(5.4.1). I have followed all required steps to connect jmeter to mobile apk.</p>
",https://stackoverflow.com/questions/68992947/facing-error-443-while-performing-android-app-load-testing-in-jmeter,"['jmeter', 'load-testing', 'manual-testing']",227,False,0,1
What are standard file sizes used for web server load testing?,"<p>I am looking for some standard file sizes that can be used on web server to load test its performance capabilities.</p>
<p>The files will he hosted on web server such as nginx, apache etc.
Client will request the different file sizes such as images, css java script or other code files.</p>
<p>So for that, I am looking for some pre defined sample files that can be used. And the standard file sizes which are applied mostly in performance testing.</p>
<p>Any help will be highly appreciated.</p>
",https://stackoverflow.com/questions/69738496/what-are-standard-file-sizes-used-for-web-server-load-testing,"['file', 'webserver', 'performance-testing', 'load-testing', 'nginx-ingress']",93,False,0,1
Spring Undertow Scaling - &quot;to many open files&quot; during load testing in Kubernetes,"<p>I developed a microservice using Spring Boot and Undertow. I was performance testing the service by &quot;load testing in 200 threads&quot;.</p>
<p>Some requests fail with a 502 error:  &quot;to many open files&quot;</p>
<p>My ulimit:</p>
<pre><code>[root@server-886d5f4f8-54494 java]# ulimit -n
1048576
</code></pre>
<p>If, for example, I load testing 150 threads, the application runs without error and delivers 15,000 throughput per second.</p>
<p>pod setting: requests 2 CPU, no limits</p>
<p>undertow settings:</p>
<pre><code>server:
  undertow:
    threads:
      worker: 128
      io: 16
</code></pre>
<p>Should 1 instance be accepting more concurrent requests? For example 1000 or 10000?</p>
<p>I need to provide about 5000 concurrent connections / requests. Should I scale horizontally in this case (5000/20 = 25 replicas) or is 1 instance able to handle more and have I configured it incorrectly?</p>
<p><strong>UPDATE</strong></p>
<p>lsof | wc -l output during load test: 9791 (this count is much less than ulimit in containter 1048576)</p>
<p><strong>UPDATE 2</strong>
Application launched in Kubernetes</p>
<pre><code>Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds   
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        unlimited            unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             unlimited            unlimited            processes 
Max open files            1048576              1048576              files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       2059511              2059511              signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us   
</code></pre>
<p><strong>UPDATE 3</strong></p>
<p>All requests go through the NodePort</p>
",https://stackoverflow.com/questions/69234314/spring-undertow-scaling-to-many-open-files-during-load-testing-in-kubernetes,"['java', 'kubernetes', 'undertow', 'horizontal-scaling']",265,False,1,0
How can I do Performance &amp; Load Testing for Spring @Scheduled task,"<p>I want to run Performance &amp; Load Test for a Spring @Scheduled task using Apache JMeter if possible.</p>
<ol>
<li>Does it support this ?</li>
<li>And how can I achieve it ?</li>
</ol>
<p><em>I'm using Spring 5 (non boot) and JMeter 5.4.1</em></p>
<p>Thank you</p>
<p>Edit 1:
My scheduled task is configured as below</p>
<pre><code>package com.mypackage.impl;

import com.mypackage.service.NotificationBatchService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class NotificationBatchServiceImpl implements NotificationBatchService {

    @Override
    @Scheduled(cron = &quot;0 0 */2 * * *&quot;)
    public void synchronizeNotificationUploadDocument() {
        // database transactions
        // HTTP requests
    }
}
</code></pre>
",https://stackoverflow.com/questions/66784470/how-can-i-do-performance-load-testing-for-spring-scheduled-task,"['java', 'spring', 'spring-mvc', 'jmeter', 'performance-testing']",535,False,1,1
Possible if want to do API Load Testing using JMeter with URI info only?,"<p>My team planned to do API Performance Testing using JMeter 5.0 for my client. My client developed the API in Kubernetes. Just wondering, they gave info such as URI, HTTP Method and Content-Type only. We never have experience using URI. Are these info sufficient to do load test in JMeter? And where do I fill in these info? Is it in Config Element: HTTP Header Manager?</p>
<p>Because usually I only do my enablement using sample website which already provide the URL.</p>
<p><a href=""https://i.stack.imgur.com/hZVfY.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/hZVfY.png"" alt=""enter image description here"" /></a></p>
<p>Do I need to ask them to provide the specific URL for this? Or URL can be extracted from URI?</p>
<p>Thanks.</p>
",https://stackoverflow.com/questions/68629980/possible-if-want-to-do-api-load-testing-using-jmeter-with-uri-info-only,"['jmeter', 'load-testing', 'jmeter-5.0', 'web-api-testing', 'jmeter-4.0']",156,True,0,1
How can I get locust to stop load testing based on response from another API?,"<p>We plan on doing load testing on a sequence of APIs using locust. So we have a set of APIs we would be calling sequentially on locust using SequentialTaskSet. By default it would run indefinitely if not stopped manually or I can set a timer in the command line to stop after a pre-defined interval. But what we plan to do is, we would be gradually increasing the number of concurrent users. Then we plan to call a separate API every 5 minutes or so which would give us memory consumed on the servers where our sequential APIs are hosted. If the value of memory consumed reaches a threshold, we want the locust script to stop automatically. I tried reading the documentation but couldn't find how we would go about doing this. Any tips?</p>
<p>Basic code we have so far:</p>
<pre><code>import json

class UserBehavior(SequentialTaskSet):

    @task
    def api_call(self):

        with self.client.get('/test_api') as response:
            print(response)

class WebsiteUser(HttpUser):
    tasks = [UserBehavior]
    wait_time = between(2, 10)```
</code></pre>
",https://stackoverflow.com/questions/69549977/how-can-i-get-locust-to-stop-load-testing-based-on-response-from-another-api,"['python', 'load-testing', 'locust']",875,True,2,1
k6 Load Testing: Pause a ramping-vus test execution then resume it by terminal command,"<p>As I was checking, k6 provides load testers to pause/resume a live running test (as per docu: <a href=""https://k6.io/blog/how-to-control-a-live-k6-test/"" rel=""nofollow noreferrer"">https://k6.io/blog/how-to-control-a-live-k6-test/</a>)</p>
<p>Please see my set up.</p>
<pre><code>export const options = {

ext: {
    loadimpact: {
        projectID: 1234,
        // Test runs with the same name groups test runs together
        name: &quot;test&quot;,

        distribution: {
            &quot;amazon:sg:singapore&quot;: {
                loadZone: &quot;amazon:sg:singapore&quot;,
                percent: 100,
            },
        },

    }
},

stages: [
    { duration: &quot;1m&quot;, target: 150 },
    { duration: &quot;3m&quot;, target: 150 },
    { duration: &quot;1m&quot;, target: 0 },
],

 };


  export default function() {
let response;
const vars = {};

response = http.get(https://test.com);
sleep(5);
 }
</code></pre>
<p>Please note also that I am running the output on the k6 cloud.</p>
<p>After running the test…I tried making use of the k6 pause command. I opened a new terminal and entered the command : <em><strong>k6 pause</strong></em> …but it displayed an error.</p>
<p><em><strong>ERRO[0000] Pause error: ramping-vus executor ‘default’ doesn’t support pause and resume operations after its start</strong></em></p>
<p>Is there a way for me to work this out? I need to manually pause the live test and resume it whenever I want to.</p>
<p>OR is there a way from k6 wherein we can add a line in the script that will automatically pause the execution after a condition is met. For example. Pause the execution after all VUs were able to iterate one time. Then I can resume the test manually whenever I want to by inputting a command (for example: <em><strong>k6 resume</strong></em>).</p>
<p>Any help or discussion is much appreciated. Thanks.</p>
",https://stackoverflow.com/questions/68482478/k6-load-testing-pause-a-ramping-vus-test-execution-then-resume-it-by-terminal-c,"['javascript', 'performance-testing', 'load-testing', 'pause', 'k6']",323,False,1,0
I am getting Connection Errror while running doing locust load testing using gunicorn for fastapi,"<p>I am trying to do loadtesting using locust for fastapi application using gunicorn</p>
<p>below is my loadtesting code</p>
<pre><code>from locust import HttpUser, task, between

file_path = &quot;file_path&quot;

class QuickstartUser(HttpUser):
    wait_time = between(3, 10)

    @task
    def test_compress(self):
        data = {
            'compress_quality' : 30,
            'compress_threshold' : 20
        }
        files = {
            'input_file': ( 'file.jpg', open(file_path, 'rb'), 'image/jpeg'),
            
         }
        result = self.client.post(&quot;/compress&quot;, files=files, data=data)
</code></pre>
<p>i am running my fastapi application with following command</p>
<pre><code>gunicorn -k uvicorn.workers.UvicornWorker —-threads 16 chdir app main:app -b 0.0.0.0:7113
</code></pre>
<p>when i start load testing after 1 or 2 requests, the requests starts getting Connection Error , while some of them run</p>
<p>I want to remove this Connection Error</p>
<pre><code>ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')))

ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
</code></pre>
",https://stackoverflow.com/questions/67840844/i-am-getting-connection-errror-while-running-doing-locust-load-testing-using-gun,"['python', 'gunicorn', 'fastapi', 'locust']",626,False,1,0
Azure Functions fails in load testing in combination with Azure Cosmos DB or SQL database,"<p>I got a large dataset of all the addresses in my country (3.8GB). I am creating an API which will query the database for one specific address and respond with basic JSON data (300bytes). The API is running in Python on Azure Functions.</p>
<p>So far everything works great. When I do a single request I get a response time of +/- 100-150ms. Great! but... If I try to load test the API with, let's say, 200 requests in 1 minute. The average response time is around 4-6 seconds.</p>
<p>This is what I tried so far</p>
<ul>
<li>Connect the API to a SQL database</li>
<li>Connect the API to a Cosmos DB database</li>
<li>Smaller tables (less columns)</li>
</ul>
<p>Is there some limit on the number of connections per database? The SQL Database or Cosmos DB doesn't seem to be the issue (% of CPU/Mem are good).
I created a simple <code>/status</code> endpoint without the DB connection on the API which can handle 200 requests in 1 minute easily. Hopefully someone can push me in the right direction.</p>
<pre class=""lang-python prettyprint-override""><code>    import azure.functions as func
    import os
    
    from azure.functions import AsgiMiddleware
    from fastapi import Query
    from typing import Optional
    from api_app import app
    
    import azure.cosmos.documents as documents
    import azure.cosmos.cosmos_client as cosmos_client
    import azure.cosmos.exceptions as exceptions
    from azure.cosmos.partition_key import PartitionKey
    
    @app.get(&quot;/status&quot;)
    def get_status():
        return ({&quot;status&quot;:  200})
    
    @app.get(&quot;/postcode_cosmosdb/{postcode}/{huisnummer}&quot;)
    async def postcode_cosmosdb(postcode: str, huisnummer: int):
        settings = {
            'host': os.environ.get('ACCOUNT_HOST', 'XXXXXX'),
            'master_key': os.environ.get('ACCOUNT_KEY', 'XXXXXX'),
            'database_id': os.environ.get('COSMOS_DATABASE', 'WoningAdressen'),
            'container_id': os.environ.get('COSMOS_CONTAINER', 'AdressenLight'),
        }
    
        HOST = settings['host']
        MASTER_KEY = settings['master_key']
        DATABASE_ID = settings['database_id']
        CONTAINER_ID = settings['container_id']
    
        client = cosmos_client.CosmosClient(HOST, {'masterKey': MASTER_KEY}, user_agent=&quot;CosmosDBPythonQuickstart&quot;, user_agent_overwrite=True)
        db = client.get_database_client(DATABASE_ID)
        container = db.get_container_client(CONTAINER_ID)
    
        items = list(container.query_items(
            query=&quot;SELECT l.postcode, l.huisnummer, l.huisletter, l.nummeraanduiding_id as bagid, l.gemeente FROM AdressenLight as l WHERE l.postcode=@postcode AND l.huisnummer=@huisnummer&quot;,
            parameters=[
                { &quot;name&quot;:&quot;@postcode&quot;, &quot;value&quot;: postcode },
                { &quot;name&quot;:&quot;@huisnummer&quot;, &quot;value&quot;: huisnummer }
            ]
        ))
    
        return items
    
    def main(req: func.HttpRequest, context: func.Context) -&gt; func.HttpResponse:
        return AsgiMiddleware(app).handle(req, context)
</code></pre>
",https://stackoverflow.com/questions/69501957/azure-functions-fails-in-load-testing-in-combination-with-azure-cosmos-db-or-sql,"['azure', 'azure-functions', 'azure-sql-database', 'azure-cosmosdb']",185,True,1,1
way to do Load testing on emulator for mobile app (without connecting to real device),"<p>Is there any way to run Load Testing for mobile application on Emulator without connecting to real device.</p>
<p>All i see over google is jmeter with mobile app on real device. but because i am connecting to remote desktop where my jmeter is installed this is not possible,</p>
",https://stackoverflow.com/questions/66103970/way-to-do-load-testing-on-emulator-for-mobile-app-without-connecting-to-real-de,"['performance', 'android-studio', 'jmeter', 'load', 'mobile-application']",543,False,0,1
Load testing of a web Application for 500 users in one go by selenium-jmete,"<p>I need to test a web application functionality for uploading patch file for more than 500 users in one time, i tried to do by selenium Jmeter combination, but when i run for 500 threads, it invokes 500 chrome browser and system hangs, any idea how to overcome this or any workaround for this</p>
",https://stackoverflow.com/questions/68484764/load-testing-of-a-web-application-for-500-users-in-one-go-by-selenium-jmete,"['selenium', 'jmeter', 'performance-testing', 'load-testing']",270,False,0,1
"For load testing with Locust, can each locust-user reliably send a request every x seconds?","<p>I will be using <a href=""https://locust.io/"" rel=""nofollow noreferrer"">Locust</a> to perform some load tests on a web api.  I am trying to calculate how many locust-users I will need to reproduce the anticipated peak load.</p>
<p>Based on my (loose) calculations, during peak load, I will need each locust-user to be able to send http requests to my api every 2.67 seconds.</p>
<ul>
<li><p>I am new to Locust, so I have to ask- is this request-rate possible?</p>
</li>
<li><p>Suppose, during one request (during peak time), the response from the api takes longer than 2.67 seconds.  Will the locust user fire another request at the 2.67 mark- even if it has not recived a response from its previous request?</p>
</li>
</ul>
<p>For some extra info, I will be using a set of Azure virtual machines to generate the locust users.</p>
",https://stackoverflow.com/questions/66092931/for-load-testing-with-locust-can-each-locust-user-reliably-send-a-request-every,"['locust', 'azure-vm']",1876,True,1,1
unable to connect my mobile to jmeter5.4.1 (mac)for load testing. I am a complete beginner?,"<p>I have done all steps mentioned online to connect mobile to jmeter from wifi setting, certificate installation and also mentioned my mac ip in mobile local host.After all this I can't record or connect by mobile.</p>
",https://stackoverflow.com/questions/68934574/unable-to-connect-my-mobile-to-jmeter5-4-1-macfor-load-testing-i-am-a-complet,"['jmeter', 'load-testing', 'manual-testing', 'automation-testing']",224,False,0,1
Locust load testing : How to allocate single user for one particular API among all other APIs,"<p>I need to test set of APIs with below scenarios using locust.</p>
<ol>
<li>There are 8 HTTP GET APIs as below.</li>
</ol>
<pre><code>    1. &quot;/v1/api_1&quot;
    2. &quot;/v1/api_2&quot;
    3. &quot;/v1/api_3&quot;
    4. &quot;/v1/api_4&quot;
    5. &quot;/v1/api_5&quot;
    6. &quot;/v1/api_6&quot;
    7. &quot;/v1/api_7&quot;
    8. &quot;/v1/api_8&quot;
</code></pre>
<ol start=""2"">
<li>I need to allocate 3 users and those 3 users should call the 1st five APIs</li>
<li>Those 5 APIs should call with 15 second wait time with given weight.</li>
<li>I need to allocate another 3 users for the last 3 APIs and one user should responsible for 1 API.</li>
<li>Each of the last 3 APIs should call in every 5 second.</li>
</ol>
<p>Please see below image for more details</p>
<p><a href=""https://i.stack.imgur.com/57CL2.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/57CL2.jpg"" alt=""enter image description here"" /></a></p>
<p>How should I achieve above scenarios using locust.</p>
<p>Below is my code.</p>
<pre><code>class API_User(TaskSet):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    @task(10)
    def get_api_1(self):
        print(f&quot;/v1/api_1&quot;)
        time.sleep(15)

    @task(50)
    def get_api_2(self):
        print(f&quot;/v1/api_2&quot;)
        time.sleep(15)

    @task(20)
    def get_api_3(self):
        print(f&quot;/v1/api_3&quot;)
        time.sleep(15)

    @task(10)
    def get_api_4(self):
        print(f&quot;/v1/api_4&quot;)
        time.sleep(5)

    @task(10)
    def get_api_5(self):
        print(f&quot;/v1/api_5&quot;)
        time.sleep(5)

    @task
    def get_api_6(self):
        print(f&quot;/v1/api_6&quot;)
        time.sleep(5)

    @task
    def get_api_7(self):
        print(f&quot;/v1/api_7&quot;)
        time.sleep(5)

    @task
    def get_api_8(self):
        print(f&quot;/v1/api_8&quot;)
        time.sleep(5)

class API_User_Test(User):
    tasks = {API_User}
</code></pre>
",https://stackoverflow.com/questions/69195764/locust-load-testing-how-to-allocate-single-user-for-one-particular-api-among-a,"['load-testing', 'locust']",629,True,0,1
"NodeJs application response time increase tremendously during load testing, but CPU and RAM doesn&#39;t hit the limit","<p>I'm having issue running load testing on my NodeJs and MySql application at 5k concurrency.</p>
<p>During my load testing all servers doesn't hit the limit but response time increase tremendously.
Normally my api response around ~80ms, but when it hits 5k concurrent the response time increase to ~10s
(<em><strong>Please note</strong></em>: <em>this response is from logging in API console, NOT total response time received by client</em>).
At first I thought there was a problem connecting from API Servers to Database, so I set up Elastic Search APM
to monitor the operations and see only it only spent around 0.8% with MySql and 99% on api instead.
Below is my infrastructure and technology setup:</p>
<pre><code>+ Load testing tool: Locust

+ API:
  - Language: NodeJs (v12)
  - Framework: NestJs (v7.6)
  - ORM: Typeorm (v0.2.29)
  - Server specs: 4CPU/4GB RAM (x2)
  - Other: run as docker container
  - OS: Ubuntu 20
  - AVG CPU/RAM during testing: ~30%

+ Database:
  - RDBMS: MySql (v8)
  - Server specs: 8CPU/8GB RAM (x2)
  - Other: run in replication mode (1 Master, 1 Slave)
  - OS: Ubuntu 20
  - AVG CPU/RAM during testing:
      master: ~10%
      slave: ~20%

+ Load balancer
  - Load balancer: HAProxy (v2.2.9)
  - Server specs: 4CPU/8CPU RAM (x2)
  - OS: Ubuntu 20
  - AVG CPU/RAM during testing: ~10%
</code></pre>
<p>Please advise me on any suspect issue that could happen to be a bottleneck.</p>
",https://stackoverflow.com/questions/67149772/nodejs-application-response-time-increase-tremendously-during-load-testing-but,"['mysql', 'node.js', 'nestjs', 'load-testing', 'typeorm']",140,False,1,0
"Jmeter - While Load testing SOAP messages, its randomly skipping putting the SOAP header on a few messages","<p>I am relatively new to Jmeter and exploring options to load test some SOAP services.</p>
<p>I did a test today with 10000 records in a csv file as an input to my Thread group.<a href=""https://i.stack.imgur.com/1j50l.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/1j50l.png"" alt=""enter image description here"" /></a></p>
<p>For the header I added SOAP Message Username token and SOAP message timestamp as we can see in the above screenshot.</p>
<p>Finally I have Content-Type text/xml;charset=UTF-8 in Header manager.</p>
<p>and csv config file as an input from the csv file. Out of 10000 SOAP messages, 65 failed and they don't have a header in the SOAP body which caused them to be rejected as shown in below screenshots.</p>
<p><a href=""https://i.stack.imgur.com/p6GCs.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/p6GCs.png"" alt=""enter image description here"" /></a></p>
<p>Failed SOAP body is as below.</p>
<p><a href=""https://i.stack.imgur.com/BD7KV.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/BD7KV.png"" alt=""enter image description here"" /></a></p>
<p>Failure response is as below.</p>
<pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;&lt;env:Envelope xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;env:Header/&gt;&lt;env:Body&gt;&lt;env:Fault&gt;&lt;faultcode&gt;env:Server&lt;/faultcode&gt;&lt;faultstring&gt;Error on verifying message against security policy Error codes: 1001 1021 Error codes: 1001 1021&lt;/faultstring&gt;&lt;/env:Fault&gt;&lt;/env:Body&gt;&lt;/env:Envelope&gt;
</code></pre>
<p>Successful SOAP response is as below.</p>
<p><a href=""https://i.stack.imgur.com/ZwmKP.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/ZwmKP.png"" alt=""enter image description here"" /></a></p>
<p>I am not able to understand why the 65 messages out of 10000 got the headers skipped by Jmeter. Has anyone faced this issue and know why its happening?</p>
<p>Any inputs, insights or thoughts on this issue would be deeply appreciated.</p>
<p>Thanks for your time and patience.</p>
",https://stackoverflow.com/questions/68278941/jmeter-while-load-testing-soap-messages-its-randomly-skipping-putting-the-soa,"['web-services', 'soap', 'jmeter']",73,True,0,1
Locust load testing - Change hatch rate from 1 second to say 20 seconds? (1 locust every 20 seconds),"<p>I'm doing some load testing with locust and I cant seem to figure out how to change the Hatch Rate to a slower ramp up rate.  <strong>1 locust per second</strong> is still too fast so is there a way to change this to something that would resemble <strong>1 locust every 20 seconds</strong>?</p>
<p>I've tried using <code>gevent.sleep(19)</code> within the on_start method and setting the hatch rate to <strong>1 locust per second</strong> in the UI but <strong>this only hatches each locust 1 second apart</strong> and then each hatched locust sleeps for 19 seconds (they are still 1 seconds apart).</p>
<p>Is there a way of forcing each locust hatched at run time to wait 20 seconds before the next locust executes? (e.g. the first locust hatches and runs the on_start method, the next locust waits 19 seconds and then runs the on_start method, the next locust waits 19 seconds more and then runs the on_start method.)</p>
",https://stackoverflow.com/questions/68377946/locust-load-testing-change-hatch-rate-from-1-second-to-say-20-seconds-1-locu,"['python', 'python-3.x', 'load-testing', 'locust']",917,True,0,1
"For load testing , is it mandate to do Response Assertion ? If so , is there any overhead in doing assertion ( jmeter)","<p>For load testing using JMeter,</p>
<p>Is it mandate to do Response Assertion ? If so , is there any overhead in doing assertion ?</p>
",https://stackoverflow.com/questions/67198467/for-load-testing-is-it-mandate-to-do-response-assertion-if-so-is-there-any,"['jmeter', 'load-testing']",19,True,1,1
Azure Load Testing - Load Tests Return &#39;Not Applicable&#39; Failed status despite showing as successful in Exported Result Files &amp; AppInsights,"<p>We are currently running a POC on the new Azure Load Testing feature (currently in preview) as a resource to run our jMeter tests against an in development API.</p>
<p>Unfortunately we are hitting a few problems with the output results displayed within a test run, namely the tests always fail with no start, end and duration time along with a 'Not Applicable' status when running against the APIs despite all tests running successfully directly within the jMeter GUI. The same tests when run in the Azure Load Testing tool also appear to show as 'Passed' when exporting results from the test screen.</p>
<p>Has anyone experienced this before and would be able to help, as this tool could be exactly what we are looking for if we can get it to output the correct results.</p>
<p>Our jMeter test is fairly simple and obtains a validation token which is used in the latter request, I have manually verified this is all authenticating correctly and the variables we are using in these tests are being correctly populated when run in Azure. Note this issue appears in both our GraphQL and REST API tests.</p>
<p>See attached screenshots:</p>
<p><strong>Test Result</strong>
<a href=""https://i.stack.imgur.com/wD6KP.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/wD6KP.png"" alt=""enter image description here"" /></a></p>
<p><strong>Exported Result</strong>
<a href=""https://i.stack.imgur.com/aTjYQ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/aTjYQ.png"" alt=""enter image description here"" /></a></p>
",https://stackoverflow.com/questions/70423220/azure-load-testing-load-tests-return-not-applicable-failed-status-despite-sh,"['azure', 'load-testing']",229,False,0,1
How to have unique data row from a CSV file to be used/assigned for each VU only in k6 Load Testing,"<p>My set up is this:</p>
<ol>
<li><p>CSV File:<br />
-201 rows with different values/data each row.</p>
</li>
<li><p>Actual Load Test File:</p>
<p>*201 VUs</p>
<p>*Peak Load Stages:</p>
<pre><code>1m=201VUs, 
3m=201VUs, 
1m=0 VUs.
</code></pre>
<p>*No fixed Iteration.
*Duration is 5 minutes</p>
</li>
</ol>
<p>My goal:</p>
<p>I want each VUs to have its own data row from the CSV file, that they will use for all the processes/enpoints in my default function. Then those VUs with their assigned data row will loop concurrently in any number of iteration. So in this way, any VUs will not have any same data to each other fellow VUs while looping. Because as of now, Im getting an error in some of the endpoints since some VUs are sharing same data.</p>
<p>1 data row from CSV = 1 VU</p>
<p>Example :</p>
<p>-Row A is to be used only for Virtual User A   --then iterate/loop using the same data (row A)</p>
<p>-Row B is to be used only for Virtual User B   --then iterate/loop using the same data (row B)</p>
<p>-Row C is to be used only for Virtual User C  --then iterate/loop using the same data (row C)</p>
<p>...and so forth</p>
<p>…each VUs iterating/looping in parallel (as how k6 VUs normally work as far as I know, correct me if I'm wrong.)</p>
<p>Thanks for the help.</p>
",https://stackoverflow.com/questions/68287486/how-to-have-unique-data-row-from-a-csv-file-to-be-used-assigned-for-each-vu-only,"['javascript', 'load', 'performance-testing', 'load-testing', 'k6']",291,False,1,0
"Mobile Performance Testing for Unique ID for particular device,here i am not having the user credentials,How to do user Load testing?","<p>Mobile Performance Testing for Unique ID for a particular device, here I am not having the user credentials, How to do Load testing with different credentials? and Increase more user load?</p>
",https://stackoverflow.com/questions/65917956/mobile-performance-testing-for-unique-id-for-particular-device-here-i-am-not-hav,"['performance', 'testing', 'jmeter', 'performance-testing', 'load-testing']",24,False,0,1
How do I get an access token from a Laravel web app that uses Passport as the Web Guard for use in Gatling Load Testing,"<p>I have a web app whose api endpoints i want to test using Gatling.</p>
<p>I have set up the Gatling successfully. I have run the engine successfully against the recorded simulation. A report is generated.</p>
<p>However I notice that all the api endpoints in the report return KO meaning they failed. When I log the requests I can see that the endpoints return a 401: 'Unauthorized' meaning I need to include an Authorization element in the headers. From my research something like</p>
<p><code>&quot;Authorization&quot; -&gt; &quot;Bearer ${access_token}&quot;</code></p>
<p>I take it this 'access_token' is the access_token that should be issued by passport from the web app. How do I get this access_token? I have login credentials to the app. I have tried using the login credentials as a query string appended to <code>the-web-app-url/oauth/authorize</code> but to know avail.</p>
<p>I am missing something about how this access token business works. I have the read the docs(Passport/Laravel) but I still dont get it. Help.</p>
",https://stackoverflow.com/questions/68302508/how-do-i-get-an-access-token-from-a-laravel-web-app-that-uses-passport-as-the-we,"['laravel', 'oauth-2.0', 'token', 'laravel-passport', 'gatling']",62,False,0,0
Does aws ecs distributed load testing support jmeter mqtt sampler,"<p>I am performing jmeter distributed load testing, I have been trying to setup aws ecs containers for load testing of mosquitto mqtt.</p>
<p>Does aws distributed load testing support jmeter mqtt sampler plugin
<a href=""https://github.com/xmeter-net/mqtt-jmeter"" rel=""nofollow noreferrer"">mqtt-jmeter</a> ?</p>
",https://stackoverflow.com/questions/68576167/does-aws-ecs-distributed-load-testing-support-jmeter-mqtt-sampler,"['amazon-web-services', 'jmeter', 'mqtt', 'jmeter-plugins', 'mosquitto']",199,True,0,2
"SHould i ignore ajax,css,call in jmeter load testing","<p>I am new to jmeter load testing. i am using jmeter test script recorder to record and run the load testing and jmeter capture all type of calls including css,ajax etc.While doing load testing should i ignore css,ajax or i have to include them as well?</p>
",https://stackoverflow.com/questions/70335182/should-i-ignore-ajax-css-call-in-jmeter-load-testing,"['jmeter', 'jmeter-5.0', 'jmeter-4.0']",247,True,0,1
As a part of initial load testing or incremental load testing do we validate audit fields?,"<p>We are performing initial load testing and incremental load testing on target tables in datawarehouse. so do we validate audit field values in initial load test or do we validate audit fields values  in incremental load testing ? As part of which testing do we validate audit field values</p>
",https://stackoverflow.com/questions/70308036/as-a-part-of-initial-load-testing-or-incremental-load-testing-do-we-validate-aud,"['etl', 'data-warehouse', 'sql-data-warehouse', 'uat']",151,True,0,1
I want to use the one api&#39;s result into another api in karate-gatling. Both api&#39;s are being simulated in gatling,"<p>I have a GET api which returns some data, I need to use that data in POST api on which I am supposed to simulate load testing for continuously over a period of time.</p>
<p>I am able to corelate those api, but when I do load testing it is simulated on both the apis. I want to do load testing only on post api. How can I do that?</p>
",https://stackoverflow.com/questions/69223102/i-want-to-use-the-one-apis-result-into-another-api-in-karate-gatling-both-api,"['performance', 'karate']",201,False,1,1
Can I use only Dynatrace for performance testing in place pf Apache JMeter (or other Testing tools),"<p>Can I use only Dynatrace for Load testing/Soak Testing/Capacity Testing etc. in place pf Apache JMeter (or other Testing tools)?</p>
<p>I can see load testing reports in Dynatrace but is Dynatrace alternative to Apache JMeter (or other JMeter alike testing tools)?</p>
",https://stackoverflow.com/questions/68181993/can-i-use-only-dynatrace-for-performance-testing-in-place-pf-apache-jmeter-or-o,"['jmeter', 'dynatrace']",164,True,0,1
tsung not sending or receiving any data,"<p>i have an api which i was load testing with tsung.All was ok. Now , i am getting no result using varibles data from file in load testing.</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE tsung SYSTEM &quot;/usr/local/Cellar/tsung/1.7.0/share/tsung/tsung-1.0.dtd&quot;&gt;
&lt;tsung loglevel=&quot;warning&quot;&gt;

  &lt;clients&gt;
    &lt;client host=&quot;localhost&quot; use_controller_vm=&quot;true&quot;/&gt;
  &lt;/clients&gt;

  &lt;servers&gt;
    &lt;server host=&quot;127.0.0.1&quot; port=&quot;8030&quot; type=&quot;tcp&quot;/&gt;
  &lt;/servers&gt;

  &lt;load&gt;
    &lt;arrivalphase phase=&quot;1&quot; duration=&quot;1&quot; unit=&quot;minute&quot;&gt;
      &lt;users arrivalrate=&quot;100&quot; unit=&quot;second&quot;/&gt;
    &lt;/arrivalphase&gt;
  &lt;/load&gt;
  &lt;options&gt;
    &lt;option name=&quot;file_server&quot; id=&quot;ids&quot; value=&quot;id.csv&quot; &gt;&lt;/option&gt;
  &lt;/options&gt;
  &lt;sessions&gt;
    &lt;session name=&quot;dummy&quot; weight=&quot;1&quot; type=&quot;ts_http&quot;&gt;
        &lt;setdynvars sourcetype=&quot;file&quot; fileid=&quot;ids&quot; order=&quot;iter&quot;&gt;
            &lt;var name=&quot;uid&quot; /&gt;
        &lt;/setdynvars&gt;
        &lt;request subst=&quot;true&quot;&gt;
            &lt;http url=&quot;/api/v1/locations?user_ids=%%_uid&quot; method=&quot;GET&quot;  version=&quot;1.1&quot; &gt;
                &lt;http_header name=&quot;Content-Type&quot; value=&quot;application/json&quot;/&gt;
                &lt;http_header name=&quot;RLS-Referrer&quot; value=&quot;vivasoftltd.com&quot;/&gt;
            &lt;/http&gt;
        &lt;/request&gt;
    &lt;/session&gt;
  &lt;/sessions&gt;
&lt;/tsung&gt;
</code></pre>
<p>this config file.
and the id.csv is</p>
<pre><code>1
2
3
4
5
6
7
</code></pre>
<p>now generating report showing</p>
<pre><code>size_rcv is equal to 0 !
size_sent is equal to 0 !
</code></pre>
<p>And the report.html is showing all empty and all errors.
How can i solve this</p>
",https://stackoverflow.com/questions/68543533/tsung-not-sending-or-receiving-any-data,"['load-testing', 'tsung']",75,False,0,1
How to create proper JMeter workload model,"<p>How to create proper workload model in JMeter if I have only number of concurrent users and response time as input/requirement? Do I need any additional information in order to load test app?
If these are only info I can get, how to approach load testing in context of using JMeter as load testing tool, any ideas - suggestions - advices?</p>
",https://stackoverflow.com/questions/69615686/how-to-create-proper-jmeter-workload-model,['jmeter'],408,False,0,2
Perform Load Testing for a newly developed application,"<p>I want to know how to perform Load Testing.</p>
<p>Requirement is</p>
<ul>
<li>Total number of concurrent users at any given time are <strong>5000</strong></li>
<li>Request a session once every <strong>40 seconds</strong> on average</li>
<li>Each session requires the web application consume an average <strong>12Kb</strong> download bandwidth.</li>
</ul>
<p>Note:
We need to perform load testing for a newly developed web application to assess the data rate required for the hosting webserver.</p>
",https://stackoverflow.com/questions/68302421/perform-load-testing-for-a-newly-developed-application,"['performance-testing', 'load-testing']",35,False,0,1
&#39;k6 cloud&#39; doesn&#39;t work in jenkins but &#39;k6 run works&#39;,"<p>I am trying to do load testing in jenkins pipeline using k6 open-source platform.
The below given code is my Jenkinsfile to run load testing.
when I try 'k6 run loadtests/performance-test.js', I get the perfect output in the jenkins console. But 'k6 cloud oadtests/performance-test.js' throws error. I have added k6 credentials in jenkins as well.</p>
<pre><code>pipeline {
    agent any

    environment {
        K6_API_TOKEN=credentials(&quot;K6_API_TOKEN&quot;)
        K6_CLOUD_PROJECT_ID=credentials(&quot;K6_CLOUD_PROJECT_ID&quot;)
      
    }
    stages {
        stage('Performance Testing') {
            steps {
                echo 'Running K6 performance tests...'
               
                echo 'Let us login into k6'
                sh 'k6 login cloud --token ${K6_API_TOKEN}'
                
                echo 'login successful'
                sh 'k6 cloud loadtests/performance-test.js'
                echo 'Completed Running K6 performance tests!'
            }
        }
    }
}
</code></pre>
<p>but when I run this,</p>
<pre><code>Let us login into k6
[Pipeline] sh
+ k6 login cloud --token ****
  token: ****
[Pipeline] echo
login successful
[Pipeline] sh
+ k6 cloud loadtests/performance-test.js

          /\      |‾‾| /‾‾/   /‾‾/   
     /\  /  \     |  |/  /   /  /    
    /  \/    \    |     (   /   ‾‾\  
   /          \   |  |\  \ |  (‾)  | 
  / __________ \  |__| \__\ \_____/ .io

Init   [   0% ] Parsing script
Init   [   0% ] Getting script options
Init   [   0% ] Consolidating options
Init   [   0% ] Building the archive
Init   [   0% ] Validating script options
time=&quot;2021-03-23T17:45:55Z&quot; level=error msg=&quot;(500) Internal error&quot;

ERROR: script returned exit code 255
Finished: FAILURE

</code></pre>
<p>The below is my performance-test.js file</p>
<pre><code>import { sleep } from&quot;k6&quot;;
import http from &quot;k6/http&quot;;

export let options = {
  duration: &quot;0.30m&quot;,
  vus: 50,
 
};

export default function() {
  http.get('http://test.k6.io/contacts.php');
  sleep(3);
};

</code></pre>
",https://stackoverflow.com/questions/66768991/k6-cloud-doesnt-work-in-jenkins-but-k6-run-works,"['jenkins-pipeline', 'load-testing', 'k6']",323,True,0,1
"For load testing , is it mandate to do Response Assertion ? If so , is there any overhead in doing assertion ( jmeter)","<p>For load testing using JMeter,</p>
<p>Is it mandate to do Response Assertion ? If so , is there any overhead in doing assertion ?</p>
",https://stackoverflow.com/questions/67198467/for-load-testing-is-it-mandate-to-do-response-assertion-if-so-is-there-any,"['jmeter', 'load-testing']",19,True,1,1
How to test dynamodb with JMeter?,"<p>I'm relatively new to JMeter and I was wondering how one would go about load testing or performance testing on dynamodb using JMeter?</p>
",https://stackoverflow.com/questions/67384859/how-to-test-dynamodb-with-jmeter,"['testing', 'jmeter', 'amazon-dynamodb']",1127,True,0,1
"Spring-Boot REST endpoint, increase number of retries/connection from a single host Tomcat will accepts","<p>I'm load testing a Spring Boot API, a POC to show the team it will handle high throughput. I'm making the requests with a Python script that uses a multiprocessing pool. When I start sending more than like 10,000 records I get an error that &quot;Max retries exceeded&quot; which I've determined means the endpoint is refusing the connection from the client, because it's making too many connections.</p>
<p>Is there a Tomcat setting to allow more requests from a client (temporarily) for something like load testing? I tried setting &quot;server.tomcat.max-threads&quot; in the applicatin.properties file, but that doesn't seem to help.</p>
",https://stackoverflow.com/questions/69002522/spring-boot-rest-endpoint-increase-number-of-retries-connection-from-a-single-h,"['python', 'spring-boot', 'rest', 'tomcat']",39,False,1,0
How do you do a load test for a Shopify app?,"<p>I have a technical question regarding Shopify app load testing. My app adds an alternate product page to different stores and there is an api endpoint used by the end customers.</p>
<p>How do you do load testing to see how many customers can be served?</p>
<p>How do you simulate the loads generated by different stores?</p>
<p>I was trying to use apache benchmark but I can only test a store with it. Also, I don't have many test stores. Let's say there are several hundred stores using my app now. I just can't create so many stores</p>
",https://stackoverflow.com/questions/69916992/how-do-you-do-a-load-test-for-a-shopify-app,"['shopify', 'load-testing', 'shopify-app']",533,True,1,1
How to make DBMS check all conditions in WHERE section?,"<p>I write SQL load testing tool where user could just specify the number of conditions in WHERE section (and some more functionality) using sliders, then press button &quot;Start&quot; for starting load testing of database.
<a href=""https://i.stack.imgur.com/zFxsz.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/zFxsz.png"" alt=""my app"" /></a></p>
<p>The problem is: If I use OR logical operator for joining clauses, the DBMS would stop checking of WHERE section once it encounter predicate that return TRUE. With AND logical operator is similar situation: once DBMS encounter predicate that return FALSE, the the DBMS will stop checking WHERE section. How to make DBMS check all clauses in WHERE section independently of clauses TRUE/FALSE values?</p>
",https://stackoverflow.com/questions/66095503/how-to-make-dbms-check-all-conditions-in-where-section,['sql'],66,True,0,2
Not able to add data for 50 users using Jmeter,"<p>Executed load testing script using JMeter for 50 users but it is not adding data in database for 50 users and adding only for 20 users, What is the issue?</p>
",https://stackoverflow.com/questions/66331559/not-able-to-add-data-for-50-users-using-jmeter,"['jmeter', 'jmeter-5.0']",128,False,-2,1
"In JMeter, why does load time equal latency?","<p>I'm doing load testing using JMeter, and on some endpoint trigged when a user clicks on a button to submit a form, the load time equals latency. I'm wondering why?</p>
",https://stackoverflow.com/questions/65655156/in-jmeter-why-does-load-time-equal-latency,"['jmeter-plugins', 'jmeter-5.0']",164,True,-1,1
what is the logic for retry the request when http response message is 502,"<p>During my load testing in some of the request i am getting 403 and 502 error code . I want to retry those request which are failed due to these status code.</p>
",https://stackoverflow.com/questions/66184335/what-is-the-logic-for-retry-the-request-when-http-response-message-is-502,"['performance', 'jmeter']",169,False,0,1
aws distributed load test result and jmeter result is different,"<p>I have executed load testing using jmeter and aws distibuted load test. But results are different between jmeter and cloudfront. Here are the image given below:</p>
<p><a href=""https://i.stack.imgur.com/EeH8X.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/EeH8X.png"" alt=""enter image description here"" /></a></p>
<p>I do not know why</p>
",https://stackoverflow.com/questions/67497667/aws-distributed-load-test-result-and-jmeter-result-is-different,"['amazon-web-services', 'performance', 'jmeter', 'load-testing']",514,True,0,1
"Mobile Performance Testing for Unique ID for particular device,here i am not having the user credentials,How to do user Load testing?","<p>Mobile Performance Testing for Unique ID for a particular device, here I am not having the user credentials, How to do Load testing with different credentials? and Increase more user load?</p>
",https://stackoverflow.com/questions/65917956/mobile-performance-testing-for-unique-id-for-particular-device-here-i-am-not-hav,"['performance', 'testing', 'jmeter', 'performance-testing', 'load-testing']",24,False,0,1
"Api automation,Load testing and Security testing Do one project","<p>I want to do API automation and load testing and security testing at the same time using one project. What kind of tool or technology can I use to implement that project?</p>
",https://stackoverflow.com/questions/68367669/api-automation-load-testing-and-security-testing-do-one-project,"['performance', 'api', 'automation', 'load-testing', 'security-testing']",61,False,0,1
facing error 443 while performing android app load testing in jmeter,"<p>I am a complete beginner in Jmeter and facing error 443 while performing android app Load testing in Jmeter(5.4.1). I have followed all required steps to connect jmeter to mobile apk.</p>
",https://stackoverflow.com/questions/68992947/facing-error-443-while-performing-android-app-load-testing-in-jmeter,"['jmeter', 'load-testing', 'manual-testing']",227,False,0,1
V8 Memory leak when using optional chaining in script,"<p>I've embedded V8 9.5 into my app (C++ HTTP server). When I started to use optional chaining in my JS scripts I've noticed abnormal rise in memory consumption under heavy load (CPU) leading to OOM. While there's some free CPU, memory usage is normal.
I've displayed V8 HeapStats in grafana (this is only for 1 isolate, which I have 8 in my app) <a href=""https://i.stack.imgur.com/3Tlfy.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/3Tlfy.png"" alt=""heap stats"" /></a></p>
<p>Under heavy load there's a spike in <code>peak_malloced_memory</code>, while other stats are much less affected and seem normal.
I've passed <code>--expose-gc</code> flag to V8 and called <code>gc()</code> at the end of my script. It completely solved the problem and <code>peak_malloced_memory</code> doesn't rise like that. Also, by
repeatedly calling <code>gc()</code> I could free all extra memory consumed without it. <code>--gc-global</code> also works. But these approaches seem more like a workaround rather than a production-ready solution.
<code>--max-heap-size=64</code> and <code>--max-old-space-size=64</code> had no effect - memory consumption still did greatly exceed 8(number of isolates in my app)*64Mb (&gt;2Gb physical RAM).</p>
<p>I don't use any GC-related V8 API in my app.</p>
<p>My app creates <code>v8::Isolate</code> and <code>v8::Context</code> once and uses them to process HTTP requests.</p>
<p>Same behavior at v9.7.</p>
<p>Ubuntu xenial</p>
<p>Built V8 with these args.gn</p>
<pre><code>dcheck_always_on = false
is_debug = false
target_cpu = &quot;x64&quot;
v8_static_library = true
v8_monolithic = true
v8_enable_webassembly = true
v8_enable_pointer_compression = true
v8_enable_i18n_support = false
v8_use_external_startup_data = false
use_thin_lto = true
thin_lto_enable_optimizations = true
x64_arch = &quot;sandybridge&quot;
use_custom_libcxx = false
use_sysroot = false
treat_warnings_as_errors = false # due to use_custom_libcxx = false
use_rtti = true # for sanitizers
</code></pre>
<p>And then manually turned static library into dynamic one with this (had some linking issues with static lib due to LTO that I didn't want to deal with in future):</p>
<p><code>../../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -o libv8_monolith.so -Wl,--whole-archive libv8_monolith.a -Wl,--no-whole-archive -flto=thin -fuse-ld=&quot;lld&quot;</code></p>
<p>I did some load testing (since problem occurs only under load) with and without manual <code>gc()</code> call and this is the RAM usage graph during load testing with timestamps:
<a href=""https://i.stack.imgur.com/taZP2.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/taZP2.png"" alt=""RAM usage"" /></a></p>
<ol>
<li>Started load testing with <code>gc()</code> call: no &quot;leak&quot;</li>
<li>Removed <code>gc()</code> call and started another load testing session: &quot;leak&quot;</li>
<li>Brought back manual <code>gc()</code> call under low load: memory usage started to gradually decrease.</li>
<li>Started another load testing session (with <code>gc()</code> still in script): memory usage quickly decreased to baseline values.</li>
</ol>
<p>My questions are:</p>
<ol>
<li>Is it normal that peak_malloced_memory can exceed total_heap_size?</li>
<li>Why could this occur only when using JS's optional chaining?</li>
<li>Are there any other, more correct solutions to this problem other than forcing full GC all the time?</li>
</ol>
",https://stackoverflow.com/questions/70157768/v8-memory-leak-when-using-optional-chaining-in-script,"['memory-leaks', 'garbage-collection', 'v8', 'embedded-v8']",447,True,0,2
Mock IBM MQ manager,"<p>I need to mock <strong>IBM MQ manager</strong> for load testing with auto-replay for some MQ applications.</p>
<p>Are there instruments to do it? Maybe, several instruments for each operation - mock and auto-replay.</p>
<p>Thank you.</p>
",https://stackoverflow.com/questions/65716590/mock-ibm-mq-manager,"['mocking', 'load', 'websphere', 'ibm-mq']",741,True,1,2
Error: The values of --overrides does not seem to be valid JSON,"<p>I am trying for load testing using easygraphql-lt, my code look like this, but i am getting this error</p>
<p>Error: The values of --overrides does not seem to be valid JSON.</p>
<p>Any Suggestions?</p>
<pre><code>{
    &quot;config&quot;: {
        &quot;url&quot;: &quot;http://localhost:3002/&quot;,
        &quot;name&quot;: &quot;Without Load Testing.......&quot;,
        &quot;queryFile&quot;: true,
        &quot;duration&quot;: 10,
        &quot;arrivalRate&quot;: 10,
        &quot;withOutput&quot;: true
    },
    &quot;args&quot;: {
        &quot;missionTemplates&quot;: {
            &quot;_id&quot;: &quot;68e4b4f0-b3df-11eb-aa42-1d83d5dd4339&quot;
        }
    }
}
</code></pre>
",https://stackoverflow.com/questions/67657518/error-the-values-of-overrides-does-not-seem-to-be-valid-json,"['javascript', 'node.js', 'mongodb', 'graphql', 'load-testing']",48,False,0,0
jmeter load test getting dynamic values from array variable,"<p>I want handle the following url parameter dynamically in jmeter load testing</p>
<pre><code>filters=%7B%22TIME_PERIOD_TYPE%22:%5B%22QTD%22%5D,%22COUNTRY%22:%5B%22%22%5D,%22TERRITORY%22:%5B%22PTPT_SL_FE_N_T01%22%5D,%22ACCOUNT_BRICK%22:%5B%22%22%5D,%22OVERALL_PRIORITY%22:%5B%22%22%5D,%22PRODUCT_PRIORITY_PRODUCT%22:%5B%22%22%5D,%22ACCOUNT_SPECIALTY%22:%5B%22%22%5D,%22ACCOUNT_TARGET_TYPE%22:%5B%22%22%5D,%22ACCOUNT_VISITABLE_TYPE%22:%5B%22%22%5D,%22ACCOUNT_SUB_TYPE%22:%5B%22%22%5D,%22HCO_SUB_TYPE%22:%5B%22%22%5D,%22ACCOUNT_MARKET_SEGMENT%22:%5B%22%22%5D%7D
</code></pre>
<p>Here are Jmeter sampler for filtering the value
<a href=""https://i.stack.imgur.com/xr11m.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/xr11m.png"" alt=""enter image description here"" /></a></p>
<p>How can I handle those values dynamically using corelation? Filter value can vary for menus
<a href=""https://i.stack.imgur.com/1aM0b.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/1aM0b.png"" alt=""enter image description here"" /></a></p>
",https://stackoverflow.com/questions/68708766/jmeter-load-test-getting-dynamic-values-from-array-variable,"['performance', 'jmeter', 'performance-testing', 'load-testing']",179,True,0,1
AWS Elasticache CPU Utilization is different across readers,"<p>I have an elasticache instance (Cluster mode disabled) on AWS with 1 writer and 5 read replicas spread across different AZs.</p>
<p>We are having load testing of the system and I found that while load testing, CPU utilization is different across each reader. Below is the screenshot of the CPU utilization across all the nodes</p>
<p><a href=""https://i.stack.imgur.com/vtYG4.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/vtYG4.png"" alt=""enter image description here"" /></a></p>
<p>004 is the writer and others are readers.</p>
<blockquote>
<p>You can see that 002 takes 100% CPU while 005 and 006 takes only
around 50% even when all 3 are in same AZs</p>
</blockquote>
<p>So I have the following questions -</p>
<ol>
<li>Why does elasticache not distribute the load equally?</li>
<li>If I put more load, will the 005 and 006 instances be able to handle more load?</li>
</ol>
",https://stackoverflow.com/questions/66906272/aws-elasticache-cpu-utilization-is-different-across-readers,"['amazon-web-services', 'redis', 'amazon-elasticache']",407,False,1,0
Setup monitoring for API load testing,"<p>I'm new to API Load Testing. Before we started to do API load testing, we need to configure some monitoring setup to monitor CPU usage and JVM heap memory as the test is executed. FYI I'm using Apache JMeter tool to execute the load tests.</p>
<p>For own exercise, I'm trying to do load test using this one sample REST web service: <a href=""https://reqres.in/"" rel=""nofollow noreferrer"">https://reqres.in/</a></p>
<p>How can I setup monitoring for the server of the sample web service when the web service is not hosted in my own PC? I've tried the JMeter plugin (Perfmon) but I guess this only works when the server is hosted at our own PC. Appreciate for your kind suggestions. Thanks!</p>
",https://stackoverflow.com/questions/68203520/setup-monitoring-for-api-load-testing,"['api', 'jmeter', 'load-testing', 'jmeter-5.0', 'web-api-testing']",203,True,1,2
How to start with dockerized application load/performance testing with multi nodes of docker?,"<p>I've been asked by my client to start with docker based performance and load testing.</p>
<p>Also they have have multiple nodes on docker for the application.</p>
<p>They are expecting me to run a load test on the dockerized application and share the results.</p>
<p>By the way I'm totally unaware from where to start for this.</p>
<p>I've searched on Blaze meter community (<a href=""https://www.blazemeter.com/blog/performance-testing-with-docker"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/performance-testing-with-docker</a>) about this as well but looking for some guidance to start with this docker load testing.</p>
<p>What presently I have is the docker :
<a href=""https://i.stack.imgur.com/TPAsV.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/TPAsV.png"" alt=""enter image description here"" /></a></p>
<p>I also just wanted to know the suggestions what all parameters should we need to test when it comes to docker for performance testing.</p>
",https://stackoverflow.com/questions/66578357/how-to-start-with-dockerized-application-load-performance-testing-with-multi-nod,"['docker', 'performance', 'jmeter', 'performance-testing']",283,True,0,1
"How to control internet speed in android, IOS apps?","<p>I need to control internet speed when I do load testing for Android/IOS apps. Is there any apps for non rooted devices which controls bandwidth?
Any idea to develop a simple app?
At least in developer mode?</p>
",https://stackoverflow.com/questions/70060785/how-to-control-internet-speed-in-android-ios-apps,"['android', 'ios', 'networkx', 'limit', 'bandwidth']",941,True,0,1
aws distributed loadtesting with csv,"<p>I have a jmeter script that tests login flow for different users. I use csv option to read username and password.
But aws distributed load testing doesn't allow me to do so
.What can I do to load test?</p>
",https://stackoverflow.com/questions/66582970/aws-distributed-loadtesting-with-csv,"['testing', 'jmeter', 'performance-testing', 'load-testing']",381,True,0,1
Jmeter Aggregate Graph not showing up as bar chart,"<p>I have been trying to use Apache Jmeter for load testing. In the summary report, not able to see the bar chart. Attached the screenshots below:</p>
<p><a href=""https://i.stack.imgur.com/iPUUi.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/iPUUi.png"" alt=""enter image description here"" /></a></p>
<p><a href=""https://i.stack.imgur.com/dyVsF.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/dyVsF.png"" alt=""enter image description here"" /></a></p>
<p>It is showing up as numbers as you can see. Am I missing anything?</p>
",https://stackoverflow.com/questions/66492806/jmeter-aggregate-graph-not-showing-up-as-bar-chart,"['jmeter', 'load-testing', 'jmeter-5.0']",423,False,0,1
"NodeJs application response time increase tremendously during load testing, but CPU and RAM doesn&#39;t hit the limit","<p>I'm having issue running load testing on my NodeJs and MySql application at 5k concurrency.</p>
<p>During my load testing all servers doesn't hit the limit but response time increase tremendously.
Normally my api response around ~80ms, but when it hits 5k concurrent the response time increase to ~10s
(<em><strong>Please note</strong></em>: <em>this response is from logging in API console, NOT total response time received by client</em>).
At first I thought there was a problem connecting from API Servers to Database, so I set up Elastic Search APM
to monitor the operations and see only it only spent around 0.8% with MySql and 99% on api instead.
Below is my infrastructure and technology setup:</p>
<pre><code>+ Load testing tool: Locust

+ API:
  - Language: NodeJs (v12)
  - Framework: NestJs (v7.6)
  - ORM: Typeorm (v0.2.29)
  - Server specs: 4CPU/4GB RAM (x2)
  - Other: run as docker container
  - OS: Ubuntu 20
  - AVG CPU/RAM during testing: ~30%

+ Database:
  - RDBMS: MySql (v8)
  - Server specs: 8CPU/8GB RAM (x2)
  - Other: run in replication mode (1 Master, 1 Slave)
  - OS: Ubuntu 20
  - AVG CPU/RAM during testing:
      master: ~10%
      slave: ~20%

+ Load balancer
  - Load balancer: HAProxy (v2.2.9)
  - Server specs: 4CPU/8CPU RAM (x2)
  - OS: Ubuntu 20
  - AVG CPU/RAM during testing: ~10%
</code></pre>
<p>Please advise me on any suspect issue that could happen to be a bottleneck.</p>
",https://stackoverflow.com/questions/67149772/nodejs-application-response-time-increase-tremendously-during-load-testing-but,"['mysql', 'node.js', 'nestjs', 'load-testing', 'typeorm']",140,False,1,0
Start jmeter distributed testing from clouds,"<p>I want to run distributed load testing by jmeter, where servers(linux) are in the cloud and I have ability to start test from my local pc.
Is it even possible or client and servers should be in same subnet?
And in case its possible, may you provide me step by step guide how to achive this goal?
I have tired</p>
<p><a href=""https://jmeter.apache.org/usermanual/remote-test.html"" rel=""nofollow noreferrer"">https://jmeter.apache.org/usermanual/remote-test.html</a></p>
<p><a href=""https://cloud.google.com/community/tutorials/ssh-port-forwarding-set-up-load-testing-on-compute-engine?hl=ja"" rel=""nofollow noreferrer"">https://cloud.google.com/community/tutorials/ssh-port-forwarding-set-up-load-testing-on-compute-engine?hl=ja</a></p>
<p>but I got error after error.
Before I disabled ssl verification, next error appeared:</p>
<pre><code>error during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
</code></pre>
<p>With disabled ssl verification I have next error:</p>
<pre><code>Error in rconfigure() method java.rmi.MarshalException: error marshalling argume
nts; nested exception is:
        java.net.SocketException: Connection reset by peer: socket write error
</code></pre>
<p>I have feeligs, like I making smth wrong with setting ip, port or firewall, but cant understand what</p>
",https://stackoverflow.com/questions/67308686/start-jmeter-distributed-testing-from-clouds,"['java', 'jmeter']",386,True,-1,2
How to generate header oauth token in JMeter,"<p>I'm doing load testing my REST API - to hit the API request header should contain a valid token. I'm dynamically generating my request body - the same way I would like to generate header token dynamically using JMeter - what is the best approach to do that?</p>
",https://stackoverflow.com/questions/68144619/how-to-generate-header-oauth-token-in-jmeter,['jmeter'],572,False,0,1
How to increase API server performance?,"<p>I am testing my server performance using Locust.</p>
<p>API and server was configures as per this tutorial:
<a href=""https://medium.com/swlh/python-with-docker-compose-fastapi-part-2-88e164d6ef86"" rel=""nofollow noreferrer"">https://medium.com/swlh/python-with-docker-compose-fastapi-part-2-88e164d6ef86</a></p>
<p>Here is my Locust load testing code:</p>
<pre><code>from locust import HttpUser, TaskSet, task, between

class FastApi(TaskSet):
    @task(1)
    def user_by_name(self):
        self.client.get(
            url=&quot;/user/?first_name=Name&quot;
            )

class ApiLoadTest(HttpUser):
    tasks = [FastApi]
    host = &quot;http://vps1234.vps.ovh.net:8000&quot;
    stop_timeout = 20
    wait_time = between(1, 3)
</code></pre>
<p>I setup Locust as below:</p>
<ul>
<li>Number of total users to simulate: 1000</li>
<li>Spawn rate: 100</li>
</ul>
<p>For now Locust is showing below statistics:</p>
<ul>
<li>Current RPS: 226</li>
<li>Average (ms): 2704</li>
<li>Max (ms): 5200</li>
</ul>
<p>Server (OVH):</p>
<ul>
<li>1 vCore</li>
<li>2 GB RAM</li>
<li>20 GB SSD</li>
<li>100 Mbps</li>
</ul>
<p>My questions is if low performance is caused by not really good VPS, or I made some mistake in my load testing code?
I am wondering if only solution to improve server performance to achieve some about 100 ms average response is to upgrade VPS to have more CPUs/RAM/Mbps?</p>
<p>Kind regards</p>
",https://stackoverflow.com/questions/65701963/how-to-increase-api-server-performance,"['python', 'performance', 'api', 'vps', 'locust']",433,True,0,1
Prometheus metrics not constant,"<p>Prometheus metrics are different in different iterations even though application, load testing, hardware configurations are same in all cases. Kindly, anyone let me know the reason for this.</p>
<p>Edited - Added additional information based on questions posted below</p>
<p>I have created a container with simple &quot;Hello World&quot; web application in node.js and load testing it with 1000 users. Container is deployed in Digital Ocean cloud environment and container metrics are gathered using Prometheus. I'm capturing the maximum CPU and maximum memory utilization.</p>
<p>For every iteration(where I load test with 1000 users) I run, I'm getting different maximum CPU and  Memory utilization metrics.</p>
<p>My assumption is, if the test parameters and  hardware configurations remains same, the maximum utilization metrics also should remain same.</p>
<p>Question - why I'm getting different metrics?</p>
",https://stackoverflow.com/questions/68639921/prometheus-metrics-not-constant,"['kubernetes', 'prometheus']",117,False,0,0
load testing kubernetes service (with istio service mesh),"<p>When load testing a kubernetes service where routing is done via istio, all the services in the cluster become unresponsive. This happens when there is 100% failure from the service that is being load tested.</p>
<p>Is there a way to prevent this? Should we apply istio circuit breaking?</p>
",https://stackoverflow.com/questions/67697727/load-testing-kubernetes-service-with-istio-service-mesh,"['kubernetes', 'load-testing', 'istio']",246,True,1,1
way to do Load testing on emulator for mobile app (without connecting to real device),"<p>Is there any way to run Load Testing for mobile application on Emulator without connecting to real device.</p>
<p>All i see over google is jmeter with mobile app on real device. but because i am connecting to remote desktop where my jmeter is installed this is not possible,</p>
",https://stackoverflow.com/questions/66103970/way-to-do-load-testing-on-emulator-for-mobile-app-without-connecting-to-real-de,"['performance', 'android-studio', 'jmeter', 'load', 'mobile-application']",543,False,0,1
Spring Undertow Scaling - &quot;to many open files&quot; during load testing in Kubernetes,"<p>I developed a microservice using Spring Boot and Undertow. I was performance testing the service by &quot;load testing in 200 threads&quot;.</p>
<p>Some requests fail with a 502 error:  &quot;to many open files&quot;</p>
<p>My ulimit:</p>
<pre><code>[root@server-886d5f4f8-54494 java]# ulimit -n
1048576
</code></pre>
<p>If, for example, I load testing 150 threads, the application runs without error and delivers 15,000 throughput per second.</p>
<p>pod setting: requests 2 CPU, no limits</p>
<p>undertow settings:</p>
<pre><code>server:
  undertow:
    threads:
      worker: 128
      io: 16
</code></pre>
<p>Should 1 instance be accepting more concurrent requests? For example 1000 or 10000?</p>
<p>I need to provide about 5000 concurrent connections / requests. Should I scale horizontally in this case (5000/20 = 25 replicas) or is 1 instance able to handle more and have I configured it incorrectly?</p>
<p><strong>UPDATE</strong></p>
<p>lsof | wc -l output during load test: 9791 (this count is much less than ulimit in containter 1048576)</p>
<p><strong>UPDATE 2</strong>
Application launched in Kubernetes</p>
<pre><code>Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds   
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        unlimited            unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             unlimited            unlimited            processes 
Max open files            1048576              1048576              files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       2059511              2059511              signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us   
</code></pre>
<p><strong>UPDATE 3</strong></p>
<p>All requests go through the NodePort</p>
",https://stackoverflow.com/questions/69234314/spring-undertow-scaling-to-many-open-files-during-load-testing-in-kubernetes,"['java', 'kubernetes', 'undertow', 'horizontal-scaling']",265,False,1,0
Error is not View Result tree but It is displaying in sumary report in Jmeter,"<p>I was executing load testing on my application, after execution I analysis View result tree and Summary Report in listener, and found Summary report is showing error %  for some sampler but View result tree is showing them green.
What can be general reason both listener is showing different result?</p>
",https://stackoverflow.com/questions/66247778/error-is-not-view-result-tree-but-it-is-displaying-in-sumary-report-in-jmeter,['jmeter'],823,False,0,2
how to use Oauth 2.0 with PKCE within Jmeter Taurus task in the pipeline to test APIs hosted on Azure App service,"<p>I am trying to use Jmeter plugin with Taurus tasks (Taurus Installer, Taurus Runner) in the Azure Release pipeline. I want to do perform testing of the APIs hosted on Azure App service. APIs are registered in Azure AD. Firstly, I need to use Oauth2.0 for Jmeter tasks to retrieve the access token so that it can perform the load testing of those APIs and along with data load testing. Currently, APIs are using Authorization Code Flow with PKCE so I am not sure how to retrieve the access token.</p>
<p>I am creating JMX script with Apache Jmeter tool and using that JMX script in the Azure Release pipeline. But I need to use Oauth 2.0 in the pipeline so that performance testing can be performed.</p>
<p>I can do the above with postman but not sure about Jmeter.</p>
<p>Any suggestion.
Thank you</p>
",https://stackoverflow.com/questions/66687301/how-to-use-oauth-2-0-with-pkce-within-jmeter-taurus-task-in-the-pipeline-to-test,"['azure-web-app-service', 'jmeter-plugins', 'taurus']",509,False,0,1
Load testing - Run C# selenium scripts in Jmeter,"<p>I have a MSTest project with Selenium test cases in C#.</p>
<p><a href=""https://i.stack.imgur.com/cVQo7.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/cVQo7.png"" alt=""enter image description here"" /></a></p>
<p>I saw that Jmeter used to work with Java Selenium scripts. how can I make a load testing running those C# scripts into Jmeter for multiple users at the same time?</p>
<p>The output only generates a .DLL for the project.</p>
",https://stackoverflow.com/questions/65572103/load-testing-run-c-selenium-scripts-in-jmeter,"['c#', 'selenium', 'jmeter', 'mstest', 'load-testing']",937,True,0,1
"An Error message, says &quot;Error while processing samples&quot; which occurs while generating Dashboard from Jmeter","<p>I am using JMeter 5.4.1 for load testing, I wanted to generate a reporting dashboard from a .jtl file.</p>
<p>When I run the following command from Command Prompt:</p>
<pre><code>jmeter -g E:\Outcode\ProtocolNow\Data\Jmeterlog\scriptresults.jtl -f -o E:\Outcode\ProtocolNow\Data\Jmeterlog\HTMLRESULTS
</code></pre>
<p>Error on Command Prompt:</p>
<pre><code>An error occurred: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer failed with message :Begin size 1 is not equal to fixed size 5
errorlevel=1
</code></pre>
<p>I am not able to figure out the reason.</p>
<p>First 3 lines from the .jtl log are posted below:</p>
<pre><code>timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect
1637132376961,1932,oauth/token,200,OK,jp@gc - Ultimate Thread Group 1-10,text,true,,1955,541,2,2,https://app.ex.com/oauth/token,1931,0,1306
1637132377905,1450,oauth/token,200,OK,jp@gc - Ultimate Thread Group 1-9,text,true,,1693,561,3,3,https://app.ex.com/oauth/token,1450,0,862
1637132379774,353,Login/SetDefaultOrganization,200,OK,jp@gc - Ultimate Thread Group 1-10,text,true,,524,653,4,4,https://app.ex.com/api/Login/SetDefaultOrganization,352,0,0
</code></pre>
",https://stackoverflow.com/questions/70014972/an-error-message-says-error-while-processing-samples-which-occurs-while-gener,['jmeter'],206,False,0,1
Session/EntityManager is closed when using PersistenceContext,"<p>I'm using EntityManager to execute queries but getting java.lang.IllegalStateException: Session/EntityManager is closed on load testing.</p>
<pre><code>    @PersistenceContext(name = &quot;appEntityManager&quot;, type = PersistenceContextType.EXTENDED)
    private EntityManager entityManager;

public List&lt;Map&lt;String, Object&gt;&gt; runQuery(String query, Map&lt;String, Object&gt; args) {
        List&lt;Map&lt;String, Object&gt;&gt; result = null;
        try (Session session = entityManager.unwrap(Session.class)) {
            Query hqlQuery = session.createNativeQuery(query)
                    .setResultTransformer(AliasToEntityMapResultTransformer.INSTANCE);

            if (MapUtils.isNotEmpty(args)) {
                for (Map.Entry&lt;String, Object&gt; entry : args.entrySet()) {
                    hqlQuery.setParameter(entry.getKey(), entry.getValue());
                }
            }
            result = hqlQuery.list();
        } catch (Exception e) {
            LOGGER.error(&quot;Exception while runQuery method {}&quot;, query, e);
        }
        return result;
    }
</code></pre>
<p>I tried without type = PersistenceContextType.EXTENDED and using Transactional on method but it's not working.
I'm using jmeter with following config:
No. of threads: 100
Ramp up time: 10s
Loop count: 1</p>
<p>How can I avoid this exception?</p>
",https://stackoverflow.com/questions/68313187/session-entitymanager-is-closed-when-using-persistencecontext,"['java', 'spring-boot', 'hibernate', 'load-testing', 'hibernate-entitymanager']",887,False,0,0
Load testing of Web UI for 20K users,"<p>I have developed automation scripts for end to end workflows using selenium webdriver io for my web application. I want to use same scripts for load testing. My requirement is to test web UI along with backend APIs for 20K users. Can you please suggest how I can achieve it with Selenium?</p>
",https://stackoverflow.com/questions/67087598/load-testing-of-web-ui-for-20k-users,"['javascript', 'selenium', 'load-testing', 'webui']",64,False,0,1
How to create scenario for Ultimate Thread group,"<p>I wish to create scenario for Ultimate Thread group for JMeter for 50 users,  no time dependent constraint here as it's a Tableau based application.</p>
<p>There are total 46 APIs I've gathered from Swagger API documentation.</p>
<p>I've 5 user Id's which generate authorization token</p>
<p>My client also not well versed in Load testing and they are expecting me to design the scenario for Load testing.</p>
<p>I'm also new to JMeter load testing, but I've created jmx script for all 46 API's with single user they all are working with success, and I'm not sure how to create Load scenario with Ultimate Thread group which will be most suitable for my project.</p>
<p>Someone told me using Ultimate Thread Group will be correct approach for creating the scenario, also I am the only tester in my scrum team, so I need to find out all suitable scenarios.</p>
<p>At end I need to share the report to Client, but the report generation done with JMeter is very complex, since I have 46 APIs and 50 users so the graphs are getting very complex, I also need some suggestion what will be the best and simple way to generate simple reports, which I can explain to client as well.</p>
<p>I just created simple JMX script which I think would not be of any use until I create a good Load scenario and can generate a simpler report which will be understandable by me as well as by client.</p>
",https://stackoverflow.com/questions/66122099/how-to-create-scenario-for-ultimate-thread-group,"['graph', 'jmeter', 'reporting', 'load-testing', 'jmeter-plugins']",297,True,0,1
I am getting Connection Errror while running doing locust load testing using gunicorn for fastapi,"<p>I am trying to do loadtesting using locust for fastapi application using gunicorn</p>
<p>below is my loadtesting code</p>
<pre><code>from locust import HttpUser, task, between

file_path = &quot;file_path&quot;

class QuickstartUser(HttpUser):
    wait_time = between(3, 10)

    @task
    def test_compress(self):
        data = {
            'compress_quality' : 30,
            'compress_threshold' : 20
        }
        files = {
            'input_file': ( 'file.jpg', open(file_path, 'rb'), 'image/jpeg'),
            
         }
        result = self.client.post(&quot;/compress&quot;, files=files, data=data)
</code></pre>
<p>i am running my fastapi application with following command</p>
<pre><code>gunicorn -k uvicorn.workers.UvicornWorker —-threads 16 chdir app main:app -b 0.0.0.0:7113
</code></pre>
<p>when i start load testing after 1 or 2 requests, the requests starts getting Connection Error , while some of them run</p>
<p>I want to remove this Connection Error</p>
<pre><code>ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')))

ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
</code></pre>
",https://stackoverflow.com/questions/67840844/i-am-getting-connection-errror-while-running-doing-locust-load-testing-using-gun,"['python', 'gunicorn', 'fastapi', 'locust']",626,False,1,0
How to handle error - SRMSG00034: Insufficient downstream requests to emit item,"<p>I am load testing a simple application developed in Quarkus. The application proxies http request to another http service.
The application uses <em>org.eclipse.microprofile.reactive.messaging.Emitter</em> and o<em>rg.eclipse.microprofile.reactive.messaging.Channel</em>.</p>
<p>I am getting below error if I push the request rate to 300 req/sec. I am trying to understand error <em>SRMSG00034: Insufficient downstream requests to emit item</em> and how to solve it. Any help would be appreciated.</p>
<pre><code>2021-03-10 06:43:47,678 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-100) HTTP Request to /events failed, error id: cb6577a7-0cd6-4790-a5ea-5ccd73a088fc-289: java.lang.IllegalStateException: SRMSG00034: Insufficient downstream requests to emit item
    at io.smallrye.reactive.messaging.extension.ThrowingEmitter.emit(ThrowingEmitter.java:60)
    at io.smallrye.reactive.messaging.extension.AbstractEmitter.emit(AbstractEmitter.java:146)
    at io.smallrye.reactive.messaging.extension.EmitterImpl.send(EmitterImpl.java:29)
</code></pre>
",https://stackoverflow.com/questions/66559778/how-to-handle-error-srmsg00034-insufficient-downstream-requests-to-emit-item,"['quarkus', 'smallrye-reactive-messaging']",2114,True,5,1
random data generator to use with load tests in Ruby,"<p>I am new to Ruby and I want to load test my application written using Ruby on Rails frame and I need a tool/gem/library to generate random unique data to use it for the load testing since some functions such as user creation require unique data. Can you suggest a tool for that?</p>
",https://stackoverflow.com/questions/66527866/random-data-generator-to-use-with-load-tests-in-ruby,"['ruby', 'rubygems', 'load-testing']",140,True,0,1
How to set thread count for remote servers in command-line mode,"<p>I am using the following command for distributed load testing in JMeter:</p>
<pre><code>jmeter -JThreadCount=&quot;5&quot; -n -t &quot;path.jmx&quot; -R IP1,IP2 -l &quot;path.csv&quot; -e -o &quot;outputpath&quot;
</code></pre>
<p>But it does not take 5 as the thread count but runs 2 times one for each remote system. When I remove the -R parameter it takes 5 as the thread count.</p>
<p>How to pass the ThreadCount (variables) to the remote servers?</p>
",https://stackoverflow.com/questions/66883458/how-to-set-thread-count-for-remote-servers-in-command-line-mode,"['jmeter', 'jmeter-5.0']",182,True,0,1
TimeoutException in rest call,"<p>I am trying to call an api like below :</p>
<pre><code>ExternalApiRequest.builder()
                .name(ApiRequestCode.MyApiRequest.toString())
                .appName(&quot;MY_SERVICES&quot;)
                .transformFunction(MyResponse::myApiResponseObj)
                .headers(headers)
                .urlString(calliingServicesURL)
                .timeOut(callingServicesTimeOut)
                .build();
</code></pre>
<p>However I am getting the below error frequently not always :</p>
<pre><code>java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 1000ms in 'lift' (and no fallback has been configured)
u2028 at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:289)
u2028 Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
u2028 |_ checkpoint ⇢ 
u2028 |_ checkpoint ⇢ org.springframework.web.cors.reactive.CorsWebFilter [DefaultWebFilterChain]
org.springframework.security.web.server.authorization.AuthorizationWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.authorization.ExceptionTranslationWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.authentication.logout.LogoutWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.savedrequest.ServerRequestCacheWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.context.SecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.context.ReactorContextWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.header.HttpHeaderWriterWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.config.web.server.ServerHttpSecurity$ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.cloud.sleuth.instrument.web.TraceWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
u2028 |_ checkpoint ⇢ HTTP GET &quot;/callingapiurlhere&quot; [ExceptionHandlingWebHandler]
u2028 Stack trace:
u2028 at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:289)
u2028 at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.doTimeout(FluxTimeout.java:274)
u2028 at reactor.core.publisher.FluxTimeout$TimeoutTimeoutSubscriber.onNext(FluxTimeout.java:396)
u2028 at reactor.core.publisher.StrictSubscriber.onNext(StrictSubscriber.java:89)
u2028 at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:73)
u2028 at reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:117)
u2028 at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
u2028 at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
u2028 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
u2028 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
u2028 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
u2028 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
u2028 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java)
u2028 at java.lang.Thread.run(Thread.java:748)
</code></pre>
<p>My relevant properties :</p>
<pre><code>callingservices:
  baseUri: /some/path/
  url: ${my.baseUrl}${callingservices.baseUri}
  uriPostfix: /definition
  timeOut: 1000
</code></pre>
<p>When I am simply hitting the URL from postman then no issues observed. However when I run a load testing script sometimes I get this error.</p>
<p>Can someone suggest why I am getting this intermittent error.</p>
",https://stackoverflow.com/questions/69044741/timeoutexception-in-rest-call,"['java', 'spring-boot', 'rest', 'microservices']",202,False,1,0
Locust response time high latencies at the start,"<p>I'm doing some load testing on a microservice application. Collected the percentile statistics and plotted them. The application is running in a shared K8s cluster. The thing I am not quite understanding is why is there a latency spike in the start? Is this an issue with a cold boot?</p>
<p><a href=""https://i.stack.imgur.com/0TfaB.png"" rel=""nofollow noreferrer"">Locust plot showing RT over time</a></p>
",https://stackoverflow.com/questions/68488245/locust-response-time-high-latencies-at-the-start,['locust'],263,True,0,1
How to define two constant labels and their values in Avalanche metrics generator for Prometheus performance testing?,"<p>I want to define two constant labels with two static values , I refered official blog,
<a href=""https://blog.freshtracks.io/load-testing-prometheus-metric-ingestion-5b878711711c"" rel=""nofollow noreferrer"">https://blog.freshtracks.io/load-testing-prometheus-metric-ingestion-5b878711711c</a></p>
<p>Also using help,  docker run quay.io/freshtracks.io/avalanche --help</p>
<p>I got to know that it's like below , but I tried with several combinations of it  but I'm not sure how to define it.</p>
<pre><code>--const-label=CONST-LABEL
</code></pre>
",https://stackoverflow.com/questions/67637317/how-to-define-two-constant-labels-and-their-values-in-avalanche-metrics-generato,['prometheus'],242,True,0,1
How to read Query Param in Response Location header in Jmeter,"<p>I'm load testing my API which requires to authenticate everytime before calling the API. I need to read a query param from HTTP header &quot;Location&quot; and use it in further requests in Jmeter. I tried to use &quot;Regular Expression Extractor&quot; with <code>Location: .+=(.*?)\n</code> but it didn't work. Any ideas how to read a specific variable from response headers?</p>
<pre><code>Location: https://&lt;&lt;SSO_URL&gt;&gt;/authenticate?code=AbCDEfg1&amp;..... --&gt; extract &quot;code&quot;
</code></pre>
",https://stackoverflow.com/questions/66521066/how-to-read-query-param-in-response-location-header-in-jmeter,"['jmeter', 'jmeter-4.0']",351,True,0,2
Kubernetes NodeJS consuming more than 1 CPU?,"<p>We are running a single NodeJS instance in a Pod with a request of 1 CPU, and no limit. Upon load testing, we observed the following:</p>
<pre><code>NAME                                                CPU(cores)   MEMORY(bytes)
backend-deployment-5d6d4c978-5qvsh                  3346m        103Mi
backend-deployment-5d6d4c978-94d2z                  3206m        99Mi
</code></pre>
<p>If NodeJS is only running a single thread, how could it be consuming more than 1000m CPU, when running directly on a Node it would only utilize a single core? Is kubernetes somehow letting it borrow time across cores?</p>
",https://stackoverflow.com/questions/66235452/kubernetes-nodejs-consuming-more-than-1-cpu,"['node.js', 'kubernetes']",2012,True,6,1
What is jMeter doing with my requests - it is getting responses but shouldn&#39;t,"<p>So I made a copy of my jmx file and obfuscated the domain to include here. Be kind. I am a load testing noob. :)</p>
<p>I have a load testing target. I must be on the VPN to access the target's website. When connected to the VPN, my load test numbers make no sense. This is cool. I am not convinced I have the test created correctly. But what is weirder still is that when I am NOT connected to the VPN the requests receive a response. The results tree has pretty little green checkmarks (well really shield icons). But there is no way it should have been able to communicate with the server. But when I look at response body, it is a very reasonably approriate response body.</p>
<p>My jmx file is too big. I will try to attach it. But does anyone have an explanation for what might be going on? Or what I might have done wrong?</p>
",https://stackoverflow.com/questions/66482595/what-is-jmeter-doing-with-my-requests-it-is-getting-responses-but-shouldnt,['jmeter'],27,False,0,1
How much maximum thread capacity of jmeter command line mode?,"<p>I have to test load testing for 32000 users, duration 15 minutes. And I have run it on command line mode. Threads--300, ramp up--100, loop 1. But after showing some data, it is freeze. So I can't get the full report/html. Even i can't run for 50 users. How can I get rid of this. Please let me know.</p>
",https://stackoverflow.com/questions/69191335/how-much-maximum-thread-capacity-of-jmeter-command-line-mode,"['testing', 'jmeter', 'load', 'performance-testing']",374,False,0,1
How to load test video stream with jmeter,"<p>I am using <strong>Red5</strong> server to stream videos in my application. I have <strong>jmeter</strong> for load testing and <strong>blazemeter</strong> chrome extension for recording scripts.</p>
<p>Somehow the media files(the video chunks) are not getting recorded into the jmx file. Is there a way to record these files using blazemeter or any other tool?</p>
<p>Once recorded how can we use the script to perform load test in jmeter?</p>
",https://stackoverflow.com/questions/67229556/how-to-load-test-video-stream-with-jmeter,"['jmeter', 'video-streaming', 'performance-testing', 'load-testing', 'blazemeter']",888,True,2,1
Not able to decode jwt token in JMeter using PostProcessor,"<p>I am new to JMeter.I want to perfrom some load testing on one of my application.
I want to decode JWT token and from there need to get Session id and it has to be appended to JMeter variable.</p>
<p>Below is my code</p>
<pre><code>import com.auth0.jwt.*

log.info(&quot;Hello&quot;)
def jwt = JWT.decode(vars.get('idToken'))
log.info(jwt)

vars.put('sessionId', jwt.getClaim('sessionId').asString())
log.info(jwt.getClaim('sessionId').asString())
</code></pre>
<p>It is producing some errors while executing this code</p>
<p>Below is the exception message</p>
<pre><code>javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: JWT for class: Script11
    at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320) ~[groovy-jsr223-3.0.7.jar:3.0.7]
    at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:71) ~[groovy-jsr223-3.0.7.jar:3.0.7]
    at javax.script.CompiledScript.eval(CompiledScript.java:93) ~[java.scripting:?]
    at org.apache.jmeter.util.JSR223TestElement.processFileOrScript(JSR223TestElement.java:217) ~[ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.extractor.JSR223PostProcessor.process(JSR223PostProcessor.java:45) [ApacheJMeter_components.jar:5.4.1]
    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:955) [ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:573) [ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.4.1]
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.4.1]
    at java.lang.Thread.run(Thread.java:831) [?:?]
</code></pre>
<p>Need suggestion to resolve this issue.</p>
<p>JMeter Version : 5.4</p>
",https://stackoverflow.com/questions/68499525/not-able-to-decode-jwt-token-in-jmeter-using-postprocessor,"['groovy', 'jmeter', 'jwt', 'load-testing']",832,True,1,1
Failed to publish the request over MQTT - Flutter - Parse Server,"<p>I have a sample app that uses Parse Server. I've been testing my app on both emulator and physical devices and I noticed that the response time is much slower on the physical device.</p>
<p>This one is from the emulator.<a href=""https://i.stack.imgur.com/JEPV1.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/JEPV1.png"" alt=""network logs from the emulator"" /></a></p>
<p>and this is one is from the physical device:<a href=""https://i.stack.imgur.com/NlnXM.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/NlnXM.png"" alt=""network logs from the physical device"" /></a></p>
<p>I've been scratching my head regarding this one. I've also posted it on the parse community platform and followed the advice there to manually monitor the server for every change I've made until I reach my prior server configuration. I overhauled the server from scratch. Do some load testing -&gt; Deployed the server on a replica set -&gt; load testing. Now, I'm in the process of doing some basic queries. I used ADB logcat to see what's happening on both device and saw these errors on the physical device and not on the emulator:</p>
<pre><code>E[N rtchannel]_rt_mqtt_publish_callback(356)=&gt;Failed to publish the request over MQTT. token:be925eea-407c-417d-96c9-3af5a7e83e48, category:mcd-sync-data-task-category, requestId:54138, error:Error Domain=mqtt Code=3008
</code></pre>
<pre><code>E[S sync]_createResponseError(166)=&gt;Network Response be925eea-407c-417d-96c9-3af5a7e83e48 contains sync error Error Domain=mqtt Code=3008 - Underlying error (null): Error Domain=mqtt Code=3008
</code></pre>
<p>This one also shows before pulling the payload.</p>
<pre><code>W[S sync-state-machine]MCDSyncStateMachineScheduleDelayedRetry(173)=&gt;skipping the new retry with longer delay
</code></pre>
<pre><code>W[S sync]_scheduleNextCursorRetry(326)=&gt;skipping delayed retry due to state machine state decision
</code></pre>
<p>The number of times these errors pop up is related to the number of queries executed. I did not put any configurations on the server which use MQTT. Any help is much appreciated.</p>
",https://stackoverflow.com/questions/66817391/failed-to-publish-the-request-over-mqtt-flutter-parse-server,"['android', 'flutter', 'parse-platform', 'parse-server']",145,False,1,0
Can any of existing report portal agent be reused for k6?,"<p>We are using k6 in our project for load testing. As other teams uses report portal for pushing results. We also wanted to try the same.</p>
<p>It’ll be easier for Management to see from single UI.</p>
<p>There is no agent for K6 as of now.
But there are many agents for JavaScript. <a href=""https://github.com/reportportal/examples-js"" rel=""nofollow noreferrer"">https://github.com/reportportal/examples-js</a></p>
<p>Can any of the agent be reused for it?</p>
",https://stackoverflow.com/questions/70312777/can-any-of-existing-report-portal-agent-be-reused-for-k6,"['k6', 'reportportal']",303,True,0,1
403 - Forbidden: Access is denied in JMeter,"<p>I'm facing an issue while doing the load testing through Jmeter. I hosted my dot net application in AWS and added all my images through CDN. While doing the load test through Jmeter, I'm getting 403 Access denied error. But if I run single users it seems to be working. When I run concurrent users more than 2 I'm getting the error. Can anyone please support on this</p>
",https://stackoverflow.com/questions/68987685/403-forbidden-access-is-denied-in-jmeter,"['jmeter', 'load-testing', 'aws-cdn']",558,False,0,2
Single setup step in Locust 1.6.0?,"<p>I have been trying out how to setup a resource only once and share with user that gets created with locust</p>
<p>This is what I have been trying:</p>
<pre><code>from locust import HttpUser
from locust.user.task import task

class WebsiteUser(HttpUser):
    def setup(self):
        client = clients.HttpSession(base_url=self.host)
        token = client.post(&quot;get-token/&quot;, {'email': 'someemail', 'password': 'somepassword'})
        client.headers.update(
            {
                'Authorization': 'Bearer ' + token
            }
        )
    tasks = UserBehavior
    min_wait = 500
    max_wait = 900
</code></pre>
<p>As you see I wanted to fetch the token for once and share this with all other user instances that are created while load testing.
I can't figure out a way to achieve this.
Any sort of help would be really appreciated :)</p>
",https://stackoverflow.com/questions/68537204/single-setup-step-in-locust-1-6-0,"['python-3.x', 'api', 'performance-testing', 'load-testing', 'locust']",319,False,0,1
AWS AutoScaling Down policy is failing after scaling up is successful: Failed to execute autoscaling action: No step adjustment found for metric value,"<p>When creating the autoscaling policy and cloudwatch alarm resource in Terraform v13, they are created fine. However, when load testing the endpoint, they successfully scale up instances, but fail to scale down when CPU utilization hits the necessary % for a period of time. The error looks like this:</p>
<p><strong>&quot;historySummary&quot;: &quot;Failed to execute AutoScaling action: No step adjustment found for metric value [5.99763732496649, 2.7634547331059975] and breach delta -4.00236267503351&quot;</strong></p>
<p>Listed below are the terraform resources:</p>
<p>Autoscaling Policy -</p>
<pre><code>resource &quot;aws_appautoscaling_policy&quot; &quot;frontend_down&quot; {
  name               = &quot;${var.name}_frontend_scale_down&quot;
  service_namespace  = &quot;ecs&quot;
  resource_id        = &quot;service/${aws_ecs_cluster.main.name}/${aws_ecs_service.frontend.name}&quot;
  scalable_dimension = &quot;ecs:service:DesiredCount&quot;

  step_scaling_policy_configuration {
    adjustment_type         = &quot;ChangeInCapacity&quot;
    cooldown                = 30
    metric_aggregation_type = &quot;Maximum&quot;

    step_adjustment {
      metric_interval_lower_bound = 0
      scaling_adjustment          = -1
    }
  }

  depends_on = [aws_appautoscaling_target.frontend_target]
}
</code></pre>
<p>Cloudwatch Alarm -</p>
<pre><code>resource &quot;aws_cloudwatch_metric_alarm&quot; &quot;frontend_service_cpu_low&quot; {
  alarm_name          = &quot;${var.name}_cpu_utilization_low_fe&quot;
  comparison_operator = &quot;LessThanOrEqualToThreshold&quot;
  evaluation_periods  = &quot;2&quot;
  metric_name         = &quot;CPUUtilization&quot;
  namespace           = &quot;AWS/ECS&quot;
  period              = &quot;60&quot;
  statistic           = &quot;Average&quot;
  threshold           = &quot;10&quot;

  dimensions = {
    ClusterName = var.ecs_cluster_name
    ServiceName = var.ecs_service_name_frontend
  }

  alarm_actions = [var.autoscaling_down_arn_frontend]

  tags = {
    Name        = &quot;${var.name}-autoscaling&quot;
    BillingCode = var.billing_code_tag
    Environment = var.environment_tag
  }
}
</code></pre>
",https://stackoverflow.com/questions/66999238/aws-autoscaling-down-policy-is-failing-after-scaling-up-is-successful-failed-to,"['javascript', 'amazon-web-services', 'terraform', 'amazon-cloudwatch', 'autoscaling']",1482,True,4,2
Why node app is consuming more ram usage even the heap memory is low?,"<p>I have deployed a NodeJS application in Linux machine with 8GB ram, while doing load testing node application is consuming Linux memory up to 95% and machine gets crashed and requires rebooting the system. I have checked the heap memory which is about to 30mb. So, I can't understand why the memory usage is increasing and what kind of data is consumed?</p>
<p>Used the following to command to check the live memory usage,</p>
<p><code>top -o %MEM%</code></p>
",https://stackoverflow.com/questions/68341254/why-node-app-is-consuming-more-ram-usage-even-the-heap-memory-is-low,"['javascript', 'node.js', 'performance', 'memory-management', 'nodejs-server']",1743,True,0,1
Using Redisearch in Concurrent Requests,"<p>I have deployed an API using Laravel 8 in M6G 8X Large Server. My System architecture is as follows.</p>
<p><code>Client -&gt; NGINX -&gt; PHP-FPM -&gt; Laravel API -&gt; PGBouncer -&gt; PostgreSQL/PostGIS</code></p>
<p>The API gets back the result to the client request from a Postgres Function which uses the information from a table of 12 billion records on an average of 300 ms. I did load testing using jmeter for 50K requests with 500 parallel requests for which I have got only a throughput of 390 Requests/Sec.</p>
<p>In order to mitigate this issue I have loaded the 12 billion records in Redis memory and did the same operation of postgres function in Redis using RediSearch FT.Aggregate function with Geospatial filter for which I have got the result on an average of 250-300 ms. I did the same load testing for 50K requests with 400 parallel requests in which I have got only the throughput of 45 Requests/sec which is so worse than the Postgres Function approach.</p>
<p><code>Client -&gt; NGINX -&gt; PHP-FPM -&gt; Laravel API -&gt; Redisearch -&gt; Redis</code></p>
<p>Please let me know on how to improve the throughput for concurrent requests using Redis Approach as my assumption is there is no lock issue or connection to Postgres DB issue in Redis. Thanks.</p>
<p><strong>Sample Query</strong></p>
<pre><code>FT.AGGREGATE test_idx &quot;@location:[-84.31455662683010 33.92779720276280 20 mi]&quot; 
APPLY &quot;geodistance(-84.31455662683010,33.92779720276280, @location)&quot; as distance 
APPLY &quot;(@a*(( 20-(@distance/1609.344))/20))&quot; as a1 
APPLY (@a1*@b) as a1b 
APPLY 1 as test 
GROUPBY 1 @test 
    REDUCE SUM 1 @a1 as a_total 
    REDUCE SUM 1 @a1b as a1b_total 
    APPLY (@a_total/(3.14*(20^2))*100) as val_1 
    APPLY (@a1b_total/@a_total) as val_2

</code></pre>
",https://stackoverflow.com/questions/69908981/using-redisearch-in-concurrent-requests,"['laravel', 'postgresql', 'redis', 'geospatial', 'redisearch']",203,False,1,0
Mount text file greater than 3 MB in kubernetes for locust,"<p>I am using locust helm chart. I need to perform load testing by supplying a text files whose size is greater than 3MB. The configuration maps do not work such big files. I tried splitting my files into smaller chunks of less than 1MB. But I am still getting the error &quot;requested entity too large: limit is 3145728&quot; as I got before when the file was a single huge one. Is there any option available?</p>
",https://stackoverflow.com/questions/68530184/mount-text-file-greater-than-3-mb-in-kubernetes-for-locust,"['kubernetes', 'locust']",1463,False,0,4
Dynamic generation of xml files,"<p>I need to generate XML with two dynamic fields with one field being constant and another field being a 16 digits auto-generated number.</p>
<p>The number of XML and size of XML should be configurable. This is basically used for running load testing</p>
<p>Is there a script available to ease this? There is no programming language-specific. So anything should work. Can someone please help or point me in the right direction forward?</p>
",https://stackoverflow.com/questions/68441985/dynamic-generation-of-xml-files,"['xml', 'xml-parsing']",18,False,0,1
How to save and use value of cookie in Gatling?,"<p>I am relatively new to using Gatling for load testing and all aspects are still not quite clear. The testing scenario involves capturing a cookie value, which can be: 2, 4, 6. I used the following:</p>
<pre><code>http(&quot;User generation&quot;)
.get(&quot;url&quot;)
.check(headerRegex(&quot;Set-Cookie&quot;, &quot;&quot;&quot;status_id=(.*?);&quot;&quot;&quot;).saveAs(&quot;status&quot;))
</code></pre>
<p>The result is an error :</p>
<pre><code>headerRegex((Set-Cookie, status_id=(.*?);)).find.exists, found nothing
</code></pre>
<p>I did everything according to the documentation, but the result is not achieved, tell me how can I pull the value of the cookie and use this value in the future scripts? Thank you!</p>
",https://stackoverflow.com/questions/67619708/how-to-save-and-use-value-of-cookie-in-gatling,"['performance-testing', 'gatling', 'scala-gatling']",313,False,0,1
Azure Load Testing - Load Tests Return &#39;Not Applicable&#39; Failed status despite showing as successful in Exported Result Files &amp; AppInsights,"<p>We are currently running a POC on the new Azure Load Testing feature (currently in preview) as a resource to run our jMeter tests against an in development API.</p>
<p>Unfortunately we are hitting a few problems with the output results displayed within a test run, namely the tests always fail with no start, end and duration time along with a 'Not Applicable' status when running against the APIs despite all tests running successfully directly within the jMeter GUI. The same tests when run in the Azure Load Testing tool also appear to show as 'Passed' when exporting results from the test screen.</p>
<p>Has anyone experienced this before and would be able to help, as this tool could be exactly what we are looking for if we can get it to output the correct results.</p>
<p>Our jMeter test is fairly simple and obtains a validation token which is used in the latter request, I have manually verified this is all authenticating correctly and the variables we are using in these tests are being correctly populated when run in Azure. Note this issue appears in both our GraphQL and REST API tests.</p>
<p>See attached screenshots:</p>
<p><strong>Test Result</strong>
<a href=""https://i.stack.imgur.com/wD6KP.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/wD6KP.png"" alt=""enter image description here"" /></a></p>
<p><strong>Exported Result</strong>
<a href=""https://i.stack.imgur.com/aTjYQ.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/aTjYQ.png"" alt=""enter image description here"" /></a></p>
",https://stackoverflow.com/questions/70423220/azure-load-testing-load-tests-return-not-applicable-failed-status-despite-sh,"['azure', 'load-testing']",229,False,0,1
Which is the best option to select - Don&#39;t Correlate or Automatically Correlate? in Webload(Radview) recording,"<p>I am new to Webload Testing and trying to perform load testing using Webload (Radview free version) Tool.Once the recording is complete in IDE, which option is advisable to select Don't Correlate or Automatically Correlate? . I had selected both and tested.</p>
<p>When I try Don't correlate - I get error message saying &quot; 500 Internal Server Error Requested url : in main _agenda at line 74</p>
<p>When I try Automatically Correlate - It works fine.</p>
<p>This is the code without correlation</p>
<pre><code>wlGlobals.UserAgent = &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763&quot;
wlGlobals.AcceptLanguage = &quot;en-GB&quot;
wlHttp.Header[&quot;Referer&quot;] = &quot;https://gmail/LoginPage&quot; // Changed url here for security purpose
wlHttp.FormdataEncodingType = 5
wlHttp.ContentType = &quot;application/x-www-form-urlencoded&quot;
wlHttp.FormData[&quot;__EVENTTARGET&quot;] = &quot;$WL$EMPTY$STRING$&quot;
wlHttp.FormData[&quot;__EVENTARGUMENT&quot;] = &quot;$WL$EMPTY$STRING$&quot;
wlTemporary = &quot;B0B5X6bftN++BRK3vVaj2xUoVv/r9eUZR92YU0OoY42SvAdsqgU2exM428y1DY9CwyUZnpMJsjfUaY8oHSV5GRXsOz+W6nmRB/XDGcWhXbsfe7QUxcc7KVEfVtnEIEXMoaVJCSq2LxaENYBbIIn5BCMZABPbr/9Y3+/kbHsUBYFaEmrfyxXbgOvw32oFjh60UkomTCk4x6SqF8HwVNfL/ayOErj+W328j0nfX0uc6gxBgfop0yPg/FmD4JmtvM0tdxMiUlMLIY/z54bbcKMp31SXcDBz6zJ+EVftmB16gM/iBjMcAsUjKXoUyB+rbf8oN2RxJToEfdxGxdgfVa4W6v7iQyCieAN6rZJBrhEjdsXSn18yYDU+qVdtU+Xf/jyMa6ReR0MEJcxvQEmRe&quot;
        + &quot;JUVAGU0NCycInzI3wGiTfJlTWc/JSFwQzkt/tEPaAQCR2jGHmVppbOA/9XCXoDyUviiQ2CQkapXIrw+OQPngmAxmb+pRV9133ddnJ8SZXS/3jmEoGdA4RGiaYiyQCl/rpNmo240q672VUo5DN2rV1HJrsCUaseIBZZh4Vj9g2KMJZfHgUj8Vz4zuN72u7vF0nfeedecFibwMjkoFd/eqAA0OGaxYslxZPJYuMmBD74H6TLS7OSX3Y9lS8xDzcI1jiY2Ft7FlTG8rDkTQ6BPxfYqaww+n6+tP4nwViX9/koWINPSQhk938WzYdZ4Zo3rEUnrhKMkABhZcoGER593JyHm+MacTjbG38RH9tb7PV8lzvBbJPj+x2xI1HzUWDNZIIB8sucTndjGo6D53&quot;
        + &quot;0x7LZiJ9azIgVTq/VaNE/ClnTy5Sh+/JVALoViZ04gw+moUAWLk9Rz34tJLtgmUBULMDmQ8D7AYF0eDOfMZDzvECOvmsCMSGKqAHKjgJ5/gmP7jcLldyumqwWUPfxeEpQv0EaEaJGKLyrnk/3Me3yvJgbQgU7q6WLYZvk7Sy4rZ40iUcfLeRCUTwBoXDxs3L03CYHh1HSzItIwfPPUwwGUnEk/Y1/v0OMgr6FS9Al2WrXKBPdllJZF2c+Pw9kQA/buBYRyLn0NaGppRVRunZ8/mTbaxdSdtd2zoeAeYV5wIvl5K8gmP0d9jygJ8kH5UBZ4dcT/c2lNJDL/nigFFBb8IHWlxCpflJji9i4bpN0lKLb3KBroCyKzmQhac3MYlFQxoUmTwwIRXjIvvy&quot;
        + &quot;lzyRbDbNQztK7ALOE3eXo7ABAb1gUSbZ84WjSLzntNooXb6khcZgzzvyifqmN2VvNnWBE7kz6/S114rZSHt03Hi9pIOT9qZw4deLeIuL5LjChF/usa+VAkm9G397nQdvYApLyyrUMIqad2Trj6cwY986RYRLvxNb2v1z109WwZyR4LfJMWXdP+c2e3D2H/SUVe67TTk3b4t5QXWTSVsBFs76vhukIHAXIt6PrvBWwA8Kc0QaiqV00M/b84d8BgFWtNbEBTzqTKlGb/0+5+oZntgiWj1FgYqFRfDUoKsAkqfGhefW2pOXRejvAdmviObIIGxgSLKDoq3t9KQgmKupoPdCP8O1aaIKAHBiOt7fWZJzCKN31UYkUp2X+sloPAl4eZ0OLrLzPRnsa3qI&quot;
        + &quot;IINVcLPNeQzeyQ1AnWezIkq9fULB55W22opwXkC0wmr4/k4nYbnbu4s9/uxZJvUP7p73quzZ5CTQ3U9Fn8p2ONr5RgVeMtbAatNBhlzf2gOwX1HfvbQpC6pKJ3VdN0SjjJqze6Z4NhnCfUqEZCmBx2cvIUMs9Kg6kZafHFrSdn/gCWZxZRAZJElp6UPbfmkJjS6XnoCi8RRqIe1AML4XxZr9+7QhPcsRc8EKiBED0vPd19UevVp1xLrD0R9zXNKCJHzDHRNf82bbKdTO7dIRaFtVHE2e61j5QrKp5LkEbjGOoXqR9Ckwo/lV3P9RJA5cSFEN8jjj1pJNbKl0j+ZIxWMQpTiL1qEA3gqQFATZhMizxk3/n0JEk+7Aa2DByn4Huon65X0nC+TSeacJ&quot;
        + &quot;BPmNXxWhNc8/pm0fE/IuMcJxHomdr5NsBY4Lq7Y6RYphw+d9iTSZWVmxSPY18+DRwkHAw==&quot;

wlHttp.FormData[&quot;__VIEWSTATE&quot;] = wlTemporary
wlHttp.FormData[&quot;__VIEWSTATEGENERATOR&quot;] = &quot;0F9F611E&quot;
wlHttp.FormData[&quot;__VIEWSTATEENCRYPTED&quot;] = &quot;$WL$EMPTY$STRING$&quot;
wlHttp.FormData[&quot;__EVENTVALIDATION&quot;] = &quot;ArmKA5fUCSWyuG82fQTS/7t4lH/qrrjI3WEWcdtyTHSVCkwrKO1JJjm+/y79FOYP+An3W2pAlVvVwmUex7U5phHJ0/t2fuxrxkMQ1xwrf6JyRNKeElb2ty8prKE68VDxUzZHOTdZjJiWPAB5f+/KlDF9JkGXzlYY5p0I9NWK0PM83bGYEDjFWjGKUTFM5Th/Z+zQKcyQk5aj+unE9BP6RQzjsy0qYqR2X5Q4pkIu0tL5z50ZR14RAQBQSAhfIt4f&quot;
wlHttp.FormData[&quot;ctl00$maincontent$ControlLogin1$email_address&quot;] = &quot;test@gmail.com&quot;
wlHttp.FormData[&quot;ctl00$maincontent$ControlLogin1$password&quot;] = &quot;Test123&quot;
wlHttp.FormData[&quot;DocumentID&quot;] = &quot;LoginPage&quot;
wlCookie.Set(&quot;_ga&quot;, &quot;GA1.2.1957913211.1610361754&quot;, &quot;gmail.com&quot;, &quot;/&quot;, &quot;&quot;, 
&quot;&quot;);
wlCookie.Set(&quot;_gat_gtag_UA_00000000_0&quot;, &quot;1&quot;, &quot;gmail.com&quot;, &quot;/&quot;, &quot;&quot;, &quot;&quot;);
wlCookie.Set(&quot;_gid&quot;, &quot;GA1.2.632442093.1610361754&quot;, &quot;gmail.com&quot;, &quot;/&quot;, &quot;&quot;, 
&quot;&quot;);
wlHttp.Post(&quot;https://gmail.com/LoginPage&quot;)// Changed url for security purpose - line no 74 where I am getting error
</code></pre>
",https://stackoverflow.com/questions/65665848/which-is-the-best-option-to-select-dont-correlate-or-automatically-correlate,"['javascript', 'webloadui']",75,True,1,1
Apache JMeter exception NoSuchMethodError,"<p>I'm trying to run load testing on some transactions recorded with JMeter however when executing it shows the error below</p>
<blockquote>
<p>Exception in thread &quot;HomePage_thread 10-2&quot;
java.lang.NoSuchMethodError: 'void
org.apache.commons.io.IOUtils.closeQuietly(java.io.Closeable,
java.util.function.Consumer)'     at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1982)
at
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:476)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:673)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1296)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1285)
at
org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638)
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558)
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.base/java.lang.Thread.run(Thread.java:832)</p>
</blockquote>
<p>Any idea what can be the problem?</p>
",https://stackoverflow.com/questions/66583746/apache-jmeter-exception-nosuchmethoderror,"['java', 'jmeter', 'apache-commons-io']",1527,True,3,3
K6 - breakup of results for each api request,"<p>I am working on developing load testing for one workflow using HTTP request calls. In the workflow, the response of one API call is used in the next API's call either as a parameter or as a request body. So, the sequence in which API is called is very important.</p>
<p>My question is about the result. Is there any mechanism in K6 by which I get a breakup of how much time it took to execute each API call?</p>
",https://stackoverflow.com/questions/69430864/k6-breakup-of-results-for-each-api-request,['k6'],707,True,0,1
Changes csv row value,"<p>This is my code:</p>
<pre><code>
import pandas as pd
import re

# reading the csv file
patients = pd.read_csv(&quot;partial.csv&quot;)
  
# updating the column value/data
for patient in patients.iterrows():
    cip=patient['VALOR_ID']
    new_cip = re.sub('^(\w+|)',r'FIXED_REPLACED_STRING',cip)
    patient['VALOR_ID'] = new_cip
  
# writing into the file
df.to_csv(&quot;partial-writer.csv&quot;, index=False)
  
print(df)
</code></pre>
<p>I'm getting this message:</p>
<blockquote>
<p>Traceback (most recent call last):
File &quot;/home/jeusdi/projects/workarea/salut/load-testing/load.py&quot;, line 28, in 
cip=patient['VALOR_ID']
TypeError: tuple indices must be integers or slices, not str</p>
</blockquote>
<p><strong>EDIT</strong>
Form code above you can think I need to set a same fixed value to all rows.</p>
<p>I need to loop over &quot;rows&quot; and generate a random string and set it on each different &quot;row&quot;.</p>
<p>Code above would be:</p>
<pre><code>for patient in patients.iterrows():
    new_cip = generate_cip()
    patient['VALOR_ID'] = new_cip
</code></pre>
",https://stackoverflow.com/questions/69940233/changes-csv-row-value,"['python-3.x', 'pandas', 'csv']",22,True,0,1
Is it required to use jp@gc - Throughput Shaping Timer when you are using bzm - Concurrency Thread Group in JMeter?,"<p>Good day!
I'm using JMeter to do load testing. It's my first time to use this tool.
I'm confused with some aspect of JMeter.
I will be using bzm - Concurrency Thread Group to simulate traffic to the server. Based on documentation, it must be required to used it along with jp@gc - Throughput Shaping Timer.
However, I'm thinking not to use it. Will there be any problem in my during my test?
<a href=""https://i.stack.imgur.com/sKqmx.png"" rel=""nofollow noreferrer"">bzm - Concurrency Thread Group</a></p>
",https://stackoverflow.com/questions/65894647/is-it-required-to-use-jpgc-throughput-shaping-timer-when-you-are-using-bzm,"['java', 'jmeter', 'load-testing', 'jmeter-plugins', 'test-plan']",256,True,0,1
Can JMeter and LoadRunner runs the API test script developed in Kubernetes?,"<p>My team is planning to do API Load Test using JMeter 5.0 and LoadRunner 12.63 on API calls developed on Kubernetes. I tried to research about someone already done this, but there's nothing much I can find, so few resources I can refer. Do I need to understand in depth of the Kubernetes architecture first?</p>
<p>If this is possible, how can I do this? And do LoadRunner really support to do API Load Testing? Appreciate if someone can help.</p>
",https://stackoverflow.com/questions/68495069/can-jmeter-and-loadrunner-runs-the-api-test-script-developed-in-kubernetes,"['kubernetes', 'jmeter', 'loadrunner', 'jmeter-5.0', 'web-api-testing']",201,True,0,1
Include test run id in k6 metrics sent to Datadog,"<p>I use k6 on my local machine to perform load-testing as well as a <a href=""https://k6.io/docs/results-visualization/datadog"" rel=""nofollow noreferrer"">Datadog agent</a> to visualize the metrics in Datadog.</p>
<p><strong>I'd like to filter k6 metrics in Datadog as the tests aren't distinguishable.</strong></p>
<p>At this point the <code>$test_run_id</code> only shows <code>*</code> (refer to the screenshot below):
<a href=""https://i.stack.imgur.com/1oTX7.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/1oTX7.png"" alt=""enter image description here"" /></a></p>
<p>I followed <a href=""https://k6.io/docs/cloud/integrations/cloud-apm"" rel=""nofollow noreferrer"">this the official doc</a> that suggests to set <code>include_test_run_id</code> flag to <code>true</code> in k6 config, but I was unsuccessful.</p>
<p>Here's a k6 config I currently use (<code>&lt;YOUR_DATADOG_API_KEY&gt;</code> is replaced with an actual Datadog API key):</p>
<pre><code>export const options = {
  vus: 5,
  duration: &quot;10s&quot;,
  noConnectionReuse: true,
  ext: {
    loadimpact: {
      apm: [
        {
          provider: &quot;datadog&quot;,
          api_key: &quot;&lt;YOUR_DATADOG_API_KEY&gt;&quot;,
          include_test_run_id: true
        }
    ]
    }
  }
};
</code></pre>
",https://stackoverflow.com/questions/65766741/include-test-run-id-in-k6-metrics-sent-to-datadog,"['javascript', 'load-testing', 'datadog', 'k6']",1189,True,2,2
How to solve conversion error in jmeter (cli),"<p>I would like to do some tests with jmeter. When I launch jmeter it says</p>
<blockquote>
<p>Don't use GUI mode for load testing !, only for Test creation and Test
debugging.</p>
</blockquote>
<p>So I tried to launch the test in no gui mode but I always have the same error (<a href=""https://i.stack.imgur.com/HHkyU.png"" rel=""nofollow noreferrer"">See the image</a>).</p>
<p>Here is the XML code of the file &quot;cli-test.xml&quot; (only do a simple GET request to google) that I did with the jmeter gui mode:</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;jmeterTestPlan version=&quot;1.2&quot; properties=&quot;5.0&quot; jmeter=&quot;5.4.1&quot;&gt;
  &lt;hashTree&gt;
    &lt;TestPlan guiclass=&quot;TestPlanGui&quot; testclass=&quot;TestPlan&quot; testname=&quot;Test Plan&quot; enabled=&quot;true&quot;&gt;
      &lt;stringProp name=&quot;TestPlan.comments&quot;&gt;&lt;/stringProp&gt;
      &lt;boolProp name=&quot;TestPlan.functional_mode&quot;&gt;false&lt;/boolProp&gt;
      &lt;boolProp name=&quot;TestPlan.tearDown_on_shutdown&quot;&gt;true&lt;/boolProp&gt;
      &lt;boolProp name=&quot;TestPlan.serialize_threadgroups&quot;&gt;false&lt;/boolProp&gt;
      &lt;elementProp name=&quot;TestPlan.user_defined_variables&quot; elementType=&quot;Arguments&quot; guiclass=&quot;ArgumentsPanel&quot; testclass=&quot;Arguments&quot; testname=&quot;User Defined Variables&quot; enabled=&quot;true&quot;&gt;
        &lt;collectionProp name=&quot;Arguments.arguments&quot;/&gt;
      &lt;/elementProp&gt;
      &lt;stringProp name=&quot;TestPlan.user_define_classpath&quot;&gt;&lt;/stringProp&gt;
    &lt;/TestPlan&gt;
    &lt;hashTree&gt;
      &lt;ThreadGroup guiclass=&quot;ThreadGroupGui&quot; testclass=&quot;ThreadGroup&quot; testname=&quot;Thread Group&quot; enabled=&quot;true&quot;&gt;
        &lt;stringProp name=&quot;ThreadGroup.on_sample_error&quot;&gt;continue&lt;/stringProp&gt;
        &lt;elementProp name=&quot;ThreadGroup.main_controller&quot; elementType=&quot;LoopController&quot; guiclass=&quot;LoopControlPanel&quot; testclass=&quot;LoopController&quot; testname=&quot;Loop Controller&quot; enabled=&quot;true&quot;&gt;
          &lt;boolProp name=&quot;LoopController.continue_forever&quot;&gt;false&lt;/boolProp&gt;
          &lt;stringProp name=&quot;LoopController.loops&quot;&gt;1&lt;/stringProp&gt;
        &lt;/elementProp&gt;
        &lt;stringProp name=&quot;ThreadGroup.num_threads&quot;&gt;1&lt;/stringProp&gt;
        &lt;stringProp name=&quot;ThreadGroup.ramp_time&quot;&gt;1&lt;/stringProp&gt;
        &lt;boolProp name=&quot;ThreadGroup.scheduler&quot;&gt;false&lt;/boolProp&gt;
        &lt;stringProp name=&quot;ThreadGroup.duration&quot;&gt;&lt;/stringProp&gt;
        &lt;stringProp name=&quot;ThreadGroup.delay&quot;&gt;&lt;/stringProp&gt;
        &lt;boolProp name=&quot;ThreadGroup.same_user_on_next_iteration&quot;&gt;true&lt;/boolProp&gt;
      &lt;/ThreadGroup&gt;
      &lt;hashTree&gt;
        &lt;HTTPSamplerProxy guiclass=&quot;HttpTestSampleGui&quot; testclass=&quot;HTTPSamplerProxy&quot; testname=&quot;HTTP Request&quot; enabled=&quot;true&quot;&gt;
          &lt;elementProp name=&quot;HTTPsampler.Arguments&quot; elementType=&quot;Arguments&quot; guiclass=&quot;HTTPArgumentsPanel&quot; testclass=&quot;Arguments&quot; testname=&quot;User Defined Variables&quot; enabled=&quot;true&quot;&gt;
            &lt;collectionProp name=&quot;Arguments.arguments&quot;/&gt;
          &lt;/elementProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.domain&quot;&gt;google.com&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.port&quot;&gt;80&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.protocol&quot;&gt;http&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.contentEncoding&quot;&gt;&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.path&quot;&gt;/&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.method&quot;&gt;GET&lt;/stringProp&gt;
          &lt;boolProp name=&quot;HTTPSampler.follow_redirects&quot;&gt;true&lt;/boolProp&gt;
          &lt;boolProp name=&quot;HTTPSampler.auto_redirects&quot;&gt;false&lt;/boolProp&gt;
          &lt;boolProp name=&quot;HTTPSampler.use_keepalive&quot;&gt;true&lt;/boolProp&gt;
          &lt;boolProp name=&quot;HTTPSampler.DO_MULTIPART_POST&quot;&gt;false&lt;/boolProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.embedded_url_re&quot;&gt;&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.connect_timeout&quot;&gt;&lt;/stringProp&gt;
          &lt;stringProp name=&quot;HTTPSampler.response_timeout&quot;&gt;&lt;/stringProp&gt;
        &lt;/HTTPSamplerProxy&gt;
        &lt;hashTree&gt;
          &lt;ResultCollector guiclass=&quot;ViewResultsFullVisualizer&quot; testclass=&quot;ResultCollector&quot; testname=&quot;View Results Tree&quot; enabled=&quot;true&quot;&gt;
            &lt;boolProp name=&quot;ResultCollector.error_logging&quot;&gt;false&lt;/boolProp&gt;
            &lt;objProp&gt;
              &lt;name&gt;saveConfig&lt;/name&gt;
              &lt;value class=&quot;SampleSaveConfiguration&quot;&gt;
                &lt;time&gt;true&lt;/time&gt;
                &lt;latency&gt;true&lt;/latency&gt;
                &lt;timestamp&gt;true&lt;/timestamp&gt;
                &lt;success&gt;true&lt;/success&gt;
                &lt;label&gt;true&lt;/label&gt;
                &lt;code&gt;true&lt;/code&gt;
                &lt;message&gt;true&lt;/message&gt;
                &lt;threadName&gt;true&lt;/threadName&gt;
                &lt;dataType&gt;true&lt;/dataType&gt;
                &lt;encoding&gt;false&lt;/encoding&gt;
                &lt;assertions&gt;true&lt;/assertions&gt;
                &lt;subresults&gt;true&lt;/subresults&gt;
                &lt;responseData&gt;false&lt;/responseData&gt;
                &lt;samplerData&gt;false&lt;/samplerData&gt;
                &lt;xml&gt;false&lt;/xml&gt;
                &lt;fieldNames&gt;true&lt;/fieldNames&gt;
                &lt;responseHeaders&gt;false&lt;/responseHeaders&gt;
                &lt;requestHeaders&gt;false&lt;/requestHeaders&gt;
                &lt;responseDataOnError&gt;false&lt;/responseDataOnError&gt;
                &lt;saveAssertionResultsFailureMessage&gt;true&lt;/saveAssertionResultsFailureMessage&gt;
                &lt;assertionsResultsToSave&gt;0&lt;/assertionsResultsToSave&gt;
                &lt;bytes&gt;true&lt;/bytes&gt;
                &lt;sentBytes&gt;true&lt;/sentBytes&gt;
                &lt;url&gt;true&lt;/url&gt;
                &lt;threadCounts&gt;true&lt;/threadCounts&gt;
                &lt;idleTime&gt;true&lt;/idleTime&gt;
                &lt;connectTime&gt;true&lt;/connectTime&gt;
              &lt;/value&gt;
            &lt;/objProp&gt;
            &lt;stringProp name=&quot;filename&quot;&gt;&lt;/stringProp&gt;
          &lt;/ResultCollector&gt;
          &lt;hashTree/&gt;
        &lt;/hashTree&gt;
      &lt;/hashTree&gt;
    &lt;/hashTree&gt;
  &lt;/hashTree&gt;
&lt;/jmeterTestPlan&gt;
</code></pre>
<p>Someone know how to solve this problem ?</p>
",https://stackoverflow.com/questions/67178034/how-to-solve-conversion-error-in-jmeter-cli,"['xml', 'jmeter', 'load-testing']",191,True,0,1
What are the things to do after recording scenarios in JMeter?,"<p>I am currently recording some scenarios for load testing an application using JMeter. I see that there are a ton of HTTP requests recorded (all with the hostname of the app under test). I want to know what are the clean up steps to do after recording these samples?
Ex: Consider that I am recording &quot;Modifying an entry&quot; scenario. In this case, my recorded samples include all the steps I performed:</p>
<ol>
<li>Loading all entries as a list,</li>
<li>selecting &amp; loading the required entry on full screen,</li>
<li>saving the modified entry to the db and</li>
<li>displaying all the entries as list once again.</li>
</ol>
<p>My questions:</p>
<ul>
<li>Should I keep HTTP requests related to all steps (1-4) or just keep the HTTP requests of step 3 as they are the ones directly related to calling the modify API?</li>
<li>what are the other cleanup steps I should before starting my load testing?</li>
</ul>
<p>Running all these requests for each of the scenarios under test for 2 concurrent users gives me response times as large as 26 seconds per scenario whereas while performing the same steps in the app UI takes much smaller time than that. So I need some guidance in knowing the best practices to do after recording the samples so that my LT results are accurate.</p>
",https://stackoverflow.com/questions/66810797/what-are-the-things-to-do-after-recording-scenarios-in-jmeter,['jmeter'],72,True,1,1
nginx ingress controller limit-rps seems not working,"<p>I've a strange behaviour when trying to do some load testing.</p>
<p><strong>Environment :</strong></p>
<ul>
<li>NGINX Ingress controller version: 0.44.0</li>
<li>Kubernetes version : 1.17.8</li>
<li>openidc.lua version : 1.7.4</li>
</ul>
<p>Here's the situation :</p>
<ul>
<li>The nginx ingress controller is deployed as daemonset, and due to the openidc module, I activated the sessionAffinity to ClientIP.</li>
<li>I have a simple stateless rest service deployed with a basic ingress which is tested for load (no sessionAffinity on that one).</li>
</ul>
<p>When launching load testing on the rest service without the sessionAffinity ClientIP, I reach far beyond 25 req/s (about 130 req/s before the service resources begin to crash, that's another thing).
But with the sessionAffinity activated, I only reach 25 req/s.</p>
<p>After some research, I found some interesting things, desribed like here : <a href=""https://medium.com/titansoft-engineering/rate-limiting-for-your-kubernetes-applications-with-nginx-ingress-2e32721f7f57"" rel=""nofollow noreferrer"">https://medium.com/titansoft-engineering/rate-limiting-for-your-kubernetes-applications-with-nginx-ingress-2e32721f7f57</a></p>
<p>So the formula, as the load test should always be served by the same nginx pod, should be : successful requests = period * rate + burst</p>
<p>So I did try to add the annotation nginx.ingress.kubernetes.io/limit-rps: &quot;100&quot; on my ingress, but no luck, still the same 25 req/s.</p>
<p>I also tried different combinations of the following annotations : <a href=""https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#rate-limiting"" rel=""nofollow noreferrer"">https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#rate-limiting</a>, but no luck either.</p>
<p>Am I missing something ?</p>
",https://stackoverflow.com/questions/66256869/nginx-ingress-controller-limit-rps-seems-not-working,"['nginx', 'kubernetes']",442,True,0,1
CrmServiceClient - Performance Issues,"<p>We are using CrmServiceClient as a singleton instance for all the methods being used. Other configurations are</p>
<p>RequireNewInstance = True;
AuthType = OAuth</p>
<p>Normally it works as expected but in load testing, it is getting stuck at Monitor.Enter() of RetrieveMutliple()</p>
<p>Dynatrace logs show, it is taking 99.9% of the time there only and this is how it is breaching the SLA. In the On-Prem setup, it was working fine (AuthType was IFD for On-Prem).</p>
<p>Is there any specific setting we need to do for D365?</p>
",https://stackoverflow.com/questions/68992128/crmserviceclient-performance-issues,"['performance', 'oauth-2.0', 'dynamics-crm-365']",217,True,1,2
My users are not logging out in Jmeter and only one user which has logged in at the end perform all the transaction,"<p>I was trying to write a load testing script, I have created one as well but the users I am passing are all not performing the transactions, I have used correlation to capture the UUID of users and have passed this UUID in all of the samplers, now when we are logged in the last user that comes from the login only that iser execute the transactions for 'n' number of times. Please can anyone tell me why this is happening and what can be the solution.</p>
",https://stackoverflow.com/questions/66900347/my-users-are-not-logging-out-in-jmeter-and-only-one-user-which-has-logged-in-at,"['java', 'jmeter', 'jmeter-5.0']",138,False,0,1
Perform load testing in JMeter with different number of users,"<p>I have a question where it might be very easy.
I have to perform load testing on a site(login) with these scenarios.
100 users within 5 minutes
500 users within 5 minutes
1000 users within 5 minutes</p>
<p>I can test each scenario separately by changing the threads in thread group. But what I want to do is run all 3 scenarios one after one automatically. I tried if controller and loop controller but could not fix it. I don't understand where it go wrong.</p>
",https://stackoverflow.com/questions/66477263/perform-load-testing-in-jmeter-with-different-number-of-users,['jmeter'],163,False,0,1
Locust script is getting stuck with ThreadedConnectionPool,"<p>I'm trying to write a load testing script using locust in python (it uses gevent &amp; greenlet for multithreading internally as per my understanding); but my script is getting stuck when I try to put a db connection (postgres) back to connection pool inside a thread. I have defined connection pool variable as gloabl &amp; then trying to create &amp; put connections back inside threads; I have no experience in threading; not sure if these lines marked inside ** quotes are the reason locust gets stuck -</p>
<pre><code>@events.test_start.add_listener # executes one time at the start of test run
def on_test_start(**kw):
    **global t_pool**  # connection pool variable defined as global
    conn_st = config(fname = os.path.join('.', 'db'), instance = 'xxx')
    try:
        t_pool = pool.ThreadedConnectionPool(1, 100, **conn_st)
        #cur = db.cursor()
    except Exception as err:
        #db = None
        raise DatabaseError(&quot;DB Connection could not be established - %s&quot; %(err))

@contextmanager
def get_con():
    con = t_pool.getconn()
    try:
        yield con
    finally:
        **t_pool.putconn(con)**

def send_xxx():
    ind = random.randint(0, (len(xxx_data['yyy'])-1))
    body['toeknx'] = xxx_data['yyy'][ind]
    res = requests.post(url, headers=headers, json=body)
    res.raise_for_status()
    with get_con() as con:
        cur = con.cursor()
        while True:
            cur.execute(&quot;test query&quot;)
            token = cur.fetchone()
            if token is None:
                continue
            else:
                cur.execute(&quot;another test query&quot;)
                out = cur.fetchone()
                if zzz:
                    continue
                else:
                    cur.execute(&quot;final test query&quot;)
                    out1 = cur.fetchone()
                    time_diff = out1[1] - out1[0]
                    cur.close()
</code></pre>
",https://stackoverflow.com/questions/66489383/locust-script-is-getting-stuck-with-threadedconnectionpool,"['python', 'multithreading', 'connection-pooling', 'locust']",311,True,0,1
I cannot run locust on pycharm it says in the error,"<p>I would like to ask for help about this error.  FYI, I have two version of python, they are python 2.7 and 3.9 But I used 3.9 to run locust. Already set up the path in the environment variables and the python interpreter in pycharm.</p>
<p>I am new to load testing and I have searched for solutions but none of it worked. So if you have ideas on how to solve this. I would really appreciate your help. Thank you.</p>
<p>Here is the Error:</p>
<pre><code>    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: Traceback (most recent call last):
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File &quot;c:\python27\lib\runpy.py&quot;, line 
    174, in _run_module_as_main
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: &quot;__main__&quot;, fname, loader, pkg_name)
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File &quot;c:\python27\lib\runpy.py&quot;, line 
    72, in _run_code
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: exec code in run_globals
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File 
    &quot;C:\Python27\Scripts\locust.exe\__main__.py&quot;, line 9, in &lt;module&gt;
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File &quot;c:\python27\lib\site- 
    packages\locust\main.py&quot;, line 428, in main
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: docstring, locusts = 
    load_locustfile(locustfile)
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File &quot;c:\python27\lib\site- 
    packages\locust\main.py&quot;, line 397, in load_locustfile
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: imported = 
     __import_locustfile__(locustfile, path)
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File &quot;c:\python27\lib\site- 
    packages\locust\main.py&quot;, line 371, in __import_locustfile__
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: imported = 
    imp.load_source(os.path.splitext(locustfile)[0], path)
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: File 
    &quot;C:\Users\PycharmProjects\LoadTest\seq1creation.py&quot;, line 8, in &lt;module&gt;
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: from locust import HttpUser, 
    SequentialTaskSet, constant, task
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: ImportError
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: :
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr: cannot import name HttpUser
    [2021-07-06 17:14:43,209] EFSI20210122/ERROR/stderr:
</code></pre>
",https://stackoverflow.com/questions/68268224/i-cannot-run-locust-on-pycharm-it-says-in-the-error,"['python', 'testing', 'pycharm', 'load-testing', 'locust']",782,True,0,1
Using Locust with pre-defined requests per second,"<p>Looking at load testing tools, I found Locust and immediately found it appealing as a Python guy, but I'm not entirely sure if I can achieve the following scenario with it...</p>
<p>I'm tasked with load testing a REST API with real-life traffic. I've extracted 5 minutes worth of GET traffic from production Apache logs, and the idea would be to run those same requests with the same time distribution (between 1 and 36 requests per second) using the load testing tool. To this end, I've built a Python dictionary where a relative timestamp (xx:xx, i.e. mins:secs) is the key, and a list of URL paths to request on that second is the value.</p>
<p>We have a dump of the production database from a certain point in time restored to our test environment, and the requests are from the next five minutes following the moment when the dump was created. Between test runs, I'm changing the parameters of how the REST API connects to the database, so the test runs need to be as identical as possible for the metrics to be comparable.</p>
<p>I've looked at custom load shapes in the Locust documentation, and it seems like they <em>might</em> work, but I'm not positive. Can the custom <code>tick</code> method implementation achieve this:</p>
<p>At 0 seconds, make a set of 4 requests.<br />
At 1 second, make a set of 2 requests.<br />
At 2 seconds, make a set of 12 requests.<br />
...time passes, a set of predefined requests happens each second...<br />
At 4 minutes 59 seconds, make a set of 27 requests.<br />
At 5 minutes, make a set of 14 requests.</p>
<p>How would this map onto Locust's capabilities? It wouldn't matter how many users are spawned, all that matters is how many requests are made, and at what point in time.</p>
<p>I really like Locust for its ease of use and familiar syntax, but is it suitable for testing with a static, repeatable request load like this?</p>
<p><strong>EDIT:</strong> as it seems this approach may not be achievable without great difficulty (or at all), I've come up with an alternate approach, different enough to warrant a separate question: <a href=""https://stackoverflow.com/questions/69807313/getting-locust-to-send-a-predefined-distribution-of-requests-per-second"">Getting Locust to send a predefined distribution of requests per second</a></p>
",https://stackoverflow.com/questions/69798784/using-locust-with-pre-defined-requests-per-second,"['load-testing', 'locust']",4613,True,3,2
"Ubuntu: correct way to add to PATH after installation of new software, .profile vs .bashrc vs /etc/profile","<p>I downloaded and install the <code>tar.gz</code> file as noted here in the documentation: <a href=""https://golang.org/doc/install"" rel=""nofollow noreferrer"">https://golang.org/doc/install</a></p>
<p>Edited my <code>.profile</code> to include these lines</p>
<pre><code>export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
</code></pre>
<p>The first line is from the documentation and the second and third lines are in the book Learn Go by O'Reilly.</p>
<p>My book wanted me to install the <code>hey</code> library for load testing websites.  This was right after the section on installing Go.</p>
<pre><code>(base) n@u-IdeaPad-3-15IIL05: hey https://www.golang.org

Command 'hey' not found, but can be installed with:

sudo snap install hey       # version 0.1.2, or
sudo snap install hey-mail  # version 1.2.0
sudo apt  install hey       # version 0.1.2-2

See 'snap info &lt;snapname&gt;' for additional versions.

(base) n@u-IdeaPad-3-15IIL05:/media/n/NTFSUbuWin/Projects/Golang$ source $HOME/.profile(base) n@u-IdeaPad-3-15IIL05:/media/n/NTFSUbuWin/Projects/Golang$ hey https://www.golang.org

Summary:
  Total:        1.5133 secs
  Slowest:      0.6518 secs
  Fastest:      0.1353 secs
  Average:      0.3005 secs
  Requests/sec: 132.1624
  

Response time histogram:
  0.135 [1]     |■
  0.187 [61]    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.239 [21]    |■■■■■■■■■■■■■■
  0.290 [40]    |■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.342 [23]    |■■■■■■■■■■■■■■■
  0.394 [11]    |■■■■■■■
  0.445 [7]     |■■■■■
  0.497 [7]     |■■■■■
  0.548 [1]     |■
  0.600 [5]     |■■■
  0.652 [23]    |■■■■■■■■■■■■■■■


Latency distribution:
  10% in 0.1462 secs
  25% in 0.1637 secs
  50% in 0.2594 secs
  75% in 0.3852 secs
  90% in 0.6205 secs
  95% in 0.6376 secs
  99% in 0.6415 secs

Details (average, fastest, slowest):
  DNS+dialup:   0.0134 secs, 0.1353 secs, 0.6518 secs
  DNS-lookup:   0.0003 secs, 0.0000 secs, 0.0043 secs
  req write:    0.0000 secs, 0.0000 secs, 0.0006 secs
  resp wait:    0.1255 secs, 0.0650 secs, 0.3958 secs
  resp read:    0.0031 secs, 0.0002 secs, 0.0213 secs

Status code distribution:
  [200] 200 responses
</code></pre>
<p>So it worked after I did <code>source $HOME/.profile</code> from the project directory although I already ran this command in a different terminal instance I thought globally.</p>
<p>What is the problem?</p>
",https://stackoverflow.com/questions/68340611/ubuntu-correct-way-to-add-to-path-after-installation-of-new-software-profile,['go'],391,True,1,2
how to get a batch file to execute the next command without waiting,"<p>Im trying to write a simple batch file that will open a VLC and target a stream for load testing, id like to be able to open a number of windows, lets say 20 for now. the problem is with the script as is, it waits until the VLC program is terminated before activating another.</p>
<p>here is what i have:</p>
<pre><code>@echo OFF
FOR %%x IN (0, 1, 20) DO &quot;C:\Program Files\VideoLAN\VLC\vlc.exe&quot; https://5e768b74d354b.streamlock.net/tcproedge/ahowardtestingGenesis/MP4:ahowardtestingGenesis/IKqUJhTfIe4uQA8LbLA5high/playlist.m3u8
PAUSE
</code></pre>
<p>is there a way to get the for loop execute the next command regardless if the previous has terminated? or is there a more efficient way to do this?</p>
",https://stackoverflow.com/questions/68759860/how-to-get-a-batch-file-to-execute-the-next-command-without-waiting,"['loops', 'batch-file']",136,True,0,1
Error unmarshaling data &#39;\&#39;&#39; looking for beginning of value Ghz to gRPC,"<p>I have a simple gRPC service we need to  load testing and benchmarking it.
So we are testing  <a href=""https://ghz.sh/docs/intro"" rel=""nofollow noreferrer"">https://ghz.sh/docs/intro</a></p>
<pre><code>service TestService {
    rpc SimpleTest (SimpleRequest) returns (SimpleReponse);
}

message SimpleRequest{
    string Name = 1;
}

message SimpleReponse{
    bool Received = 1;
}

</code></pre>
<p>I'm trying to call it with ghz
ghz --insecure --call Interface.SimpleTest -d '{&quot;Name&quot;:&quot;test&quot;}' 0.0.0.0:6001
ghz --insecure --call Interface.SimpleTest -d '{&quot;Name&quot;:&quot;test&quot;}' 0.0.0.0:6001</p>
<p>But it's always returning:</p>
<p>ghz: error: Error unmarshaling data ''{name:test}'': invalid character ''' looking for beginning of value.</p>
<p>I'm running this on windows.
.NET Core 5.</p>
<p>I know the service works since I used BloomRPC to try a similar call and works like a charm</p>
<p>Regards</p>
<p>J</p>
",https://stackoverflow.com/questions/67409988/error-unmarshaling-data-looking-for-beginning-of-value-ghz-to-grpc,"['.net-core', 'grpc']",126,False,0,1
How to configure NestJS/Express behind load balancer for high load,"<p>I’m load testing a NestJS application running on ec2 in AWS. If I configure my load testing tool to hit the NestJS application directly, I can hit it with thousands of requests concurrently without an issue.</p>
<p>However, if I execute the same load test but through an Application Load Balancer (ALB), I start to receive frequent 502s – even with as low as 50 concurrent requests.</p>
<p>I’m using the Express framework and it looks like many people have had a similar issue with using Express behind a load balancer.  The usual recommendation is to set the keepAliveTimeout and headersTimeout to values that are larger than the load balancer’s idle timeout, which I’ve tried doing in a few different ways that haven't solved the problem:</p>
<p><div class=""snippet"" data-lang=""js"" data-hide=""false"" data-console=""false"" data-babel=""false"">
<div class=""snippet-code"">
<pre class=""snippet-code-js lang-js prettyprint-override""><code>const server = await app.listen(config.server_port);
server.keepAliveTimeout = 120 * 1000;
server.headersTimeout = 125 * 1000;</code></pre>
</div>
</div>
</p>
<p>and..</p>
<p><div class=""snippet"" data-lang=""js"" data-hide=""false"" data-console=""true"" data-babel=""false"">
<div class=""snippet-code"">
<pre class=""snippet-code-js lang-js prettyprint-override""><code>const adapterHost = app.get(HttpAdapterHost);
const httpAdapter = adapterHost.httpAdapter;
const express = httpAdapter.getHttpServer();
express.keepAliveTimeout = 120 * 1000;
express.headersTimeout = 125 * 1000;</code></pre>
</div>
</div>
</p>
<p>It appears that Node is emitting this event: <a href=""https://nodejs.org/dist/latest-v8.x/docs/api/http.html#http_event_aborted"" rel=""nofollow noreferrer"">https://nodejs.org/dist/latest-v8.x/docs/api/http.html#http_event_aborted</a> which is resulting in this stack trace from the Express ErrorHandler:</p>
<pre><code>npm: BadRequestError: request aborted
npm: at IncomingMessage.onAborted (/var/lib/hdai-apps/compute-api/node_modules/raw-body/index.js:231:10)
npm: at IncomingMessage.emit (events.js:315:20)
npm: at IncomingMessage.EventEmitter.emit (domain.js:467:12)
npm: at abortIncoming (_http_server.js:561:9)
npm: at socketOnClose (_http_server.js:554:3)
npm: at TLSSocket.emit (events.js:327:22)
npm: at TLSSocket.EventEmitter.emit (domain.js:467:12)
npm: at net.js:673:12
npm: at Socket.done (_tls_wrap.js:563:7)
npm: at Object.onceWrapper (events.js:422:26)
npm: at Socket.emit (events.js:315:20)
npm: at Socket.EventEmitter.emit (domain.js:467:12)
npm: at TCP.&lt;anonymous&gt; (net.js:673:12)
</code></pre>
<p>I've created an Express error handler and can capture a little more information:</p>
<pre><code>{&quot;message&quot;:&quot;request aborted&quot;,&quot;code&quot;:&quot;ECONNABORTED&quot;,&quot;expected&quot;:35165,&quot;length&quot;:35165,&quot;received&quot;:8948,&quot;type&quot;:&quot;request.aborted&quot;}
</code></pre>
<p>So Node is basically telling me that the client disconnected, but the ALB logs are telling me that the target disconnected.</p>
<p>Not sure where to take this next. Would greatly appreciate any advice from somebody who has successfully configured NestJS/Express to run at high load behind a load balancer.  Thanks!</p>
",https://stackoverflow.com/questions/66912012/how-to-configure-nestjs-express-behind-load-balancer-for-high-load,"['express', 'load-balancing', 'nestjs', 'http-status-code-502']",759,False,1,0
Jmeter with Taurus repeatedly use same data set until given hold-for time,"<p>I am using this for load testing of my API. I am trying to do a create operation by taking data from a csv file. Here is my yaml file</p>
<pre><code>---
settings:
  proxy:
    ssl-cert: disable
  verbose: true
  env:
    BASE_URI: https://127.0.0.1:8080/api/v2

execution:
- concurrency: 5
  hold-for: 6m
  ramp-up: 30s
  scenario: CreateOperations

scenarios:
  CreateOperations:
    variables:
      jwt_token: &quot;&quot;
    data-sources:
    - path: data.csv
      quoted: true
    headers:
      Content-Type: application/json
    requests:
    - once:
      - label: login
        method: POST
        url: ${BASE_URI}/login
        body:
          user: &quot;user&quot;
          password: &quot;password&quot;
        extract-jsonpath:
          jwt_token:
            jsonpath: $.jwt
      - set-variables:
          jwt_token: ${jwt_token}
    
    - label:  create
    method: POST
    headers:
      Authorization: Bearer ${jwt_token}
    url: ${BASE_URI}/data
    body: ${body}
</code></pre>
<p>Here when running the test, data is loading to my API from the CSV file. But when all data are loaded the test is still running until 6 minutes and loading the same data again and again. How can I stop the test execution when all data in CSV file are loaded once? Are there any settings I missed?</p>
",https://stackoverflow.com/questions/69838607/jmeter-with-taurus-repeatedly-use-same-data-set-until-given-hold-for-time,"['jmeter', 'performance-testing', 'taurus']",292,True,0,1
Differences between JMeter and Apache Benchmark,"<p>I've been using JMeter for a long time and during my research, I came across Apache Benchmark, which seemed a bit more simple load testing tool to me.</p>
<p>So my assumption is that; Apache Benchmark is more suitable choice for benchmarking one API at a time. And it won't be a good choice -and maybe impossible- for performing an end-to-end load test.</p>
<p>But I am also curious about if A/B has any kind of advantages over JMeter in terms of performance / benchmark testing.</p>
<p>Could you please explain?</p>
<p>Thanks...</p>
",https://stackoverflow.com/questions/69970510/differences-between-jmeter-and-apache-benchmark,"['jmeter', 'load-testing', 'apachebench']",644,True,-1,1
Node.JS Load Testing tools with thousand of virtual users,"<p>The goal is to make a load test of the Node.JS server on AWS.</p>
<p>The server should support extremely high peaks of different users per second (20K) event more.
I tried a few load test tools like Artillery and LoadTest. Unfortunately didn't manage to get more than 3K VUs by setting up the Kuberense cluster of 16 cores with 64G in total.
The result was less than 60 VUs per pod within 100% CPU utilization. When I tried to get at least 200 VUs on 50 pods</p>
<p>Probably anyone an idea of less CPU-consuming load testing tools.</p>
",https://stackoverflow.com/questions/66459360/node-js-load-testing-tools-with-thousand-of-virtual-users,"['node.js', 'load-testing']",626,True,0,1
Flink Kafka integration issues,"<p>Context:
Built a fraud detection kind of app.
Business logic is all fine, but when putting into production, Kafka cluster is becoming unstable.</p>
<p>The topic to which it wrote have approx 80 events/sec. post running for &gt; 1 hours Kafka broker offsets are getting corrupted.</p>
<p>Which is making consumers on this broker to fail.</p>
<p>Haven’t find any issues with load testing on non-prod environments.</p>
<p>Not sure what was causing issues.</p>
<p>Topic config: single partition, replication 3.
Kafka version - 2.1
Flink version - 1.11.2-scala-2.12
Using same version for Kafka consumer, Kafka producer.</p>
<p>Any suggestions are welcomed, what can be the cause.</p>
",https://stackoverflow.com/questions/65624885/flink-kafka-integration-issues,"['apache-kafka', 'apache-flink']",45,False,0,0
Stress test of many users accounts with JMeter,"<p>I want to perform a stress test on different cases for my web application with JMeter.
I have a small network and each PC has a large number of user accounts.<br />
I have configured JMeter to produce the same network footprint as the browser and I can record the requests generated by browser using JMeter's HTTP(S) Test Script Recorder.
What is the next step? Do I have to create test plan for each case with Samplers and Listeners (Load TEsting) or just increase the number of users and check for errors at the Graph Result?</p>
",https://stackoverflow.com/questions/67856459/stress-test-of-many-users-accounts-with-jmeter,['jmeter'],121,True,0,2
Rampusers virtual users in karate gatling,"<p>I am using karate- Gatling for load testing. I have a requirement from client like I need to rampUsers from 1 to 76 for the duration of 8 mins, then I should run the scripts with 76 vusers for the duration of 1 hour and then rampdown from 76 to 1 for the duration of 8 mins.</p>
<p>I tried with 2 vusers first. Listed below is my code:</p>
<pre><code>class CustomerProfileSimulation extends Simulation {    
val apis = karateProtocol(   )   
  apis.nameResolver = (req, ctx) =&gt; req.getHeader(&quot;karate-name&quot;) 
    val RetrieveCustomerProfile = scenario(&quot;RetrieveCustomerProfile&quot;).forever(){  exec(karateFeature(&quot;classpath:features/CustomerProfileService/RetrieveCustomerProfile.feature@CO&quot;)).pause(duration = 2 seconds).exec(karateFeature(&quot;classpath:features/CustomerProfileService/RetrieveCustomerProfile.feature@SRI&quot;))}
  
    val SearchCustomerSummaryWithContact =
     scenario(&quot;CO_SearchCustomerSummaryWithContact&quot;).forever(){ exec(karateFeature(&quot;classpath:features/CustomerProfileService/SearchCustomerSummaryWithContact.feature@CO&quot;)).pause(duration = 2 seconds).exec(karateFeature(&quot;classpath:features/CustomerProfileService/SearchCustomerSummaryWithContact.feature@SRI&quot;)))}
    
    setUp(RetrieveCustomerProfile.inject(rampUsers(2) during(30
    seconds)).protocols(apis),
        SearchCustomerSummaryWithContact.inject(rampUsers(2) during(30 seconds)).protocols(apis))
            .maxDuration(duration = 2 minutes) }
</code></pre>
<p>This is my actual output:
<a href=""https://i.stack.imgur.com/sA3l8.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/sA3l8.png"" alt=""Actual output for 2 vusers"" /></a></p>
<p>I am expecting a graph like this.
<a href=""https://i.stack.imgur.com/av4D1.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/av4D1.png"" alt=""Expected graph"" /></a></p>
<p>Looks like I am half way through the expected output but not sure how to rampdown.
Any help is appreciated.</p>
<p>Thanks</p>
",https://stackoverflow.com/questions/67207154/rampusers-virtual-users-in-karate-gatling,['karate'],272,True,-1,1
Invalid state parameter in Jmeter,"<p>I am implementing load testing in Jmeter for my web application which uses <strong>google oauth</strong>. <br>
I have generated access token and refresh token and passed it to my HTTP request, but the request fails with an <strong>Invalid state parameter</strong>.
I checked various posts on passing a random string of 30 characters but the value is not being recognised. <br>
I am not sure how to use the google API library for python to generate one as there is only snippet available in the official site and am quite unsure if that value will be recognised.<br>
Any suggestions on how to achieve my usecase?</p>
",https://stackoverflow.com/questions/70493960/invalid-state-parameter-in-jmeter,"['jmeter', 'google-oauth', 'state', 'google-api-python-client']",274,False,0,1
How to appropriately test a full REST API with JMeter,"<p>I'm currently trying to load test a REST API with <strong>JMeter</strong> for the first time. I have followed some tutorials and think I understand the basics of how JMeter works.</p>
<p>Now I want to know what's the best way to load test the API. Should I load test one http request at a time (alone or with other http requests tests in the background). Or should I load test all of the http requests of the API.</p>
<p>I would also love to get other suggestions for load testing REST APIs, that would be very much helpful.</p>
",https://stackoverflow.com/questions/70097282/how-to-appropriately-test-a-full-rest-api-with-jmeter,"['java', 'spring', 'api', 'rest', 'jmeter']",164,True,0,1
"{:amqp_msg, {:P_basic, ...:undefined, :undefined, :undefined, :undefined} AMQP error :(","<p>Error I am getting</p>
<pre><code>{:amqp_msg, {:P_basic, :undefined, :undefined, :undefined, 1, :undefined, 
:undefined, :undefined, :undefined, :undefined, :undefined, :undefined, 
:undefined, :undefined, :undefined}
</code></pre>
<p>Error type <code>:exit</code></p>
<p>This happens under the load testing, when I am trying to publish a message into the queue.
I am using ExRabbitPool which has AMQP as it's underlying call out.</p>
<p>If I have 30 requests per seconds, all fine, when start going over it then I start getting errors.</p>
<p>I am using seperate pool for Producer and Consumer and there are enough channels for them. Here are some code</p>
<pre><code> def queue_config, do: [
    queue_name: &quot;some_queue_name&quot;,
    exchange: &quot;some_exchange_name&quot;,
    queue_options: [durable: true],
    exchange_options: [type: :topic],
    bind_options: [routing_key: &quot;some_routing_name&quot;]
  ]
</code></pre>
<pre><code>ExRabbitPool.with_channel(pool_id, fn {:ok, channel} -&gt;
        try do
          with :ok &lt;- ExRabbitPool.RabbitMQ.declare_exchange(channel, exchange, exchange_options),
                :ok &lt;- ExRabbitPool.RabbitMQ.publish(channel, exchange, routing_key, Jason.encode!(message), options) do
            Logger.info &quot;Published message to the queue #{queue_name}&quot;

            {:ok, message}
          else
            {:error, reason} -&gt; Logger.error(&quot;Error publishing message to queue #{pool_id} #{queue_name} #{inspect reason}&quot;)
            {:error, reason}
          end
        catch type, error -&gt;
          msg = %{message: &quot;Fatal error occurred when publishing to the queue #{pool_id} #{queue_name} #{inspect type} #{inspect error}&quot;, error: error}
          Logger.error(Exception.format(type, msg, __STACKTRACE__))
          {:error, msg}
        end
      end)
</code></pre>
<p>Sample Error:</p>
<pre><code>06:23:51.304 pid=&lt;0.24534.2&gt; ... [error] ** (exit) %{error: {:normal, {:gen_server, :call, [#PID&lt;0.25408.2&gt;, {:call, {:&quot;basic.publish&quot;, 0, &quot;result_exchange&quot;, &quot;&quot;, false, false}, {:amqp_msg, {:P_basic, :undefined, :undefined, :undefined, 1, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined}, &quot;[{\&quot;retry_no\&quot;:0,\&quot;service_type\&quot;:\&quot;someservice\&quot;,\&quot;some_id\&quot;:123}]&quot;}, #PID&lt;0.24534.2&gt;}, 60000]}}, message: &quot;Fatal error occurred when publishing to the queue producer_pool some_queue :exit {:normal, {:gen_server, :call, [#PID&lt;0.25408.2&gt;, {:call, {:\&quot;basic.publish\&quot;, 0, \&quot;result_exchange\&quot;, \&quot;\&quot;, false, false}, {:amqp_msg, {:P_basic, :undefined, :undefined, :undefined, 1, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined, :undefined}, \&quot;[{\\\&quot;retry_no\\\&quot;:0,\\\&quot;service_type\\\&quot;:\\\&quot;someservice\\\&quot;,\\\&quot;some_id\\\&quot;:123}]\&quot;}, #PID&lt;0.24534.2&gt;}, 60000]}}&quot;}
</code></pre>
<p>So under the load I get the <code>Fatal error...</code></p>
<p>Code is pretty simple, I think it might be something at the RabbitMQ config? not sure.</p>
<p>What do you think?</p>
",https://stackoverflow.com/questions/66488923/amqp-msg-p-basic-undefined-undefined-undefined-undefined-amqp-e,"['rabbitmq', 'erlang', 'elixir', 'amqp', 'exrabbitpool']",384,False,0,0
Request to websocket server fails with WebSocket I/O error: Read timed out,"<p>I have implemented a websocket using fastapi. I am load testing it using Jmeter websocket sampler and some of these requests are failing with WebSocket I/O error: Read timed out (at least this is the error that I get on Jmeter side). The error on server side:</p>
<pre><code>ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/uvicorn/protocols/websockets/websockets_impl.py&quot;, line 157, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py&quot;, line 45, in __call__
    return await self.app(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/fastapi/applications.py&quot;, line 199, in __call__
    await super().__call__(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/applications.py&quot;, line 111, in __call__
    await self.middleware_stack(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/middleware/errors.py&quot;, line 146, in __call__
    await self.app(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/exceptions.py&quot;, line 58, in __call__
    await self.app(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/routing.py&quot;, line 566, in __call__
    await route.handle(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/routing.py&quot;, line 283, in handle
    await self.app(scope, receive, send)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/routing.py&quot;, line 57, in app
    await func(session)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/fastapi/routing.py&quot;, line 247, in app
    await dependant.call(**values)
  File &quot;./websocket.py&quot;, line 29, in post_req
    body = await websocket.receive_json()
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/websockets.py&quot;, line 98, in receive_json
self._raise_on_disconnect(message)
  File &quot;/home/udit.pandey/Desktop/workspace/chat_server/venv/lib/python3.7/site-packages/starlette/websockets.py&quot;, line 80, in _raise_on_disconnect
raise WebSocketDisconnect(message[&quot;code&quot;])
starlette.websockets.WebSocketDisconnect: 1006
</code></pre>
<p>There are 2 scenarios that I have covered with this load test:</p>
<ol>
<li>5 users spawned within 10sec
Result: No failures.</li>
<li>10 users spawned within 10sec
Result: Random failures with error &quot;WebSocket I/O error: Read timed out&quot; on Jmeter sampler.</li>
</ol>
<p>Any help on this is greatly appreciated. Thanks.</p>
",https://stackoverflow.com/questions/66264491/request-to-websocket-server-fails-with-websocket-i-o-error-read-timed-out,"['python', 'websocket', 'jmeter', 'fastapi']",1426,False,0,1
