title,body,link,tags,view_count,is_answered,score,answer_count
Http Load Testing,"<p>I am trying to create a simple microservice that can handle 1 million requests at a time. But I am getting connection reset error on my client side. Correct me in case I am making any mistake.</p>

<p><strong>Server Code</strong>
1. <strong>Listener</strong> :</p>

<pre><code>  object Collection {
  case class calculate(values:Double)
 }

 object EngineController{

 import Collection._


def main(args: Array[String]): Unit = {
try {
  implicit val system = ActorSystem()
  implicit val materializer = ActorMaterializer()
  implicit val executionContext = system.dispatcher
val requestHandler = system.actorOf(RoundRobinPool(3).props(RequestHandler.props), ""round-robin-pool"")
  val route: Route = {
    implicit val timeout = Timeout(100.seconds)
    path(""aggregate"") {
      log.info(""REQUEST RECEIVED"")
      post {
        entity(as[String]) { values =&gt;
          onSuccess(requestHandler ? calculate(values)) {
            case result: Double =&gt;
              log.info(""Response Sent -"" + result)
              complete(s""${result}"")

          }
        }
      }
    } 
  }
  val routeBinding :Future[ServerBinding] = Http().bindAndHandle(route, ""localhost"", 8080)
  log.info(""Connection Established! Waiting for Request"")
  routeBinding.failed.foreach { ex =&gt;
    log.error(ex, ""Failed to bind to {}:{}!"", host, port)
  }
  StdIn.readLine()

  routeBinding.flatMap(_.unbind())
  system.terminate()

}

catch {
  case ex: Exception =&gt;
    log.error(ex, ex)
}
}
}
</code></pre>

<ol start=""2"">
<li><p>RequestHandler: This actor return max of the number.</p>

<pre><code>object RequestHandler extends App {
def props: Props = {
Props(classOf[RequestHandler])
  }

class RequestHandler extends Actor {
var doubleArray: Array[Double] = Array.empty
val system1 = ActorSystem(""system2"")
var routees: List[ActorRef] = _
override def preStart() = {
routees = List.fill(5)(
context.actorOf(AggregateCalculator.props)
)
}
val aggregateActor = system1.actorOf(AggregateCalculator.props.withRouter(RandomPool(100)), ""ag"")

 //CONVERT STRING TO ARRAY
 def stringToArray(values: String): Array[Double] = {
 return values.split("","").map(x =&gt; x.toDouble)
 }

 override def receive: Receive = {
 case calculate(values) =&gt;
 doubleArray = stringToArray(values)
 sender() ! doubleArray.max
   }
  }
 }
</code></pre></li>
</ol>

<p><strong>Client Code</strong> :</p>

<pre><code> package Test
 import scalaj.http.{Http, HttpResponse}
 import org.apache.log4j.Logger


 //libraryDependencies += ""org.scalaj"" % ""scalaj-http_2.11"" % ""2.3.0""
 object RequestSender1 {
val log = Logger.getLogger(getClass.getName)
def main(args: Array[String]): Unit = {
try {
  val str = ""22.78, -1.23, 50, 60, 3, 32, 11, 54, 72, 78, 99, 70, 19, 47, 90, 81, 50, 69, 69, 72, 83, 14.7, 8, 41, 65, 73, 48, 63, 47, 17, 55, 39, 50, 87, 76, 8, 67, 51, 55, 94, 75, 14, 91, 35, 87, 36, 42, 74, 70, 81, 18, 14, 50, 22, 16, 55, 71, 17, 39, 44, 58, 61, 16, 4, 74, 61, 37, 31, 62, 36, 53, 30, 82, 72, 89, 96, 28, 36, 77, 89, 30, 2, 31, 79, 50, 34, 81, 39, 91, 85, 94, 25, 68, 98, 46, 42,14,14""
  var result: HttpResponse[String] = null
  var counter = 0
  for (i &lt;- 1 to 300) {

    for (i &lt;- 1 to 13000) {
      val thread = new Thread {
        override def run {
          while (counter &lt; 1000024) {
            try {
              counter += 1
              result = scalaj.http.Http(""http://localhost:8080/aggregate"").postData(str).timeout(1200000, 120000000) //192.168.0.157:8089
                .header(""Content-Type"", ""text/plain"").asString
              println(""Thread Count----"" + java.lang.Thread.activeCount())
              j += 1
              println(result.body + ""   "" + j)
            } catch {
              case ex:Exception =&gt;
                log.error(ex)
            }
          }
        }
      }
      thread.start
      // slow the loop down a bit
    }
    println(""Sent request with --"" + i)
    Thread.sleep(1)
    // slow the loop down a bit
 }
}
catch {
  case ex:Exception =&gt;
    println(""Exception""+""&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"")
}
</code></pre>

<p>}
}</p>

<p><strong>Error 1</strong> :</p>

<pre><code>09:58:07 ERROR [Thread-12803] - Test.RequestSender1$.run 32 - java.net.BindException: Address already in use: connect
</code></pre>

<p><strong>Error 2</strong> :</p>

<pre><code>Thread-12418"" java.net.SocketException: Connection reset
</code></pre>

<p><strong>Sorry for Bad Allignment</strong></p>
",https://stackoverflow.com/questions/47765389/http-load-testing,"['scala', 'akka', 'microservices', 'akka-http']",318,FALSE,0,1
Load testing Silverlight Application,"<p>We wanted to perform load testing of a silverlight application. We only need to test for max of 50-75 users 
Wanted to get inputs if we can use JMeter and if yes, how can we go about it.Also, please do suggest if there are any other possible alternatives and cost associated with them.</p>
",https://stackoverflow.com/questions/46116510/load-testing-silverlight-application,"['silverlight', 'jmeter', 'load-testing']",350,FALSE,1,2
Meteor-down load testing,"<p>I am trying to make load/stress test to my website. I am using meteor-down. I wrote the test file my_load_test.js</p>

<pre><code>meteorDown.init(function(Meteor) {
    var title = ""question""
    var description = ""description""
    var tags = [""javascript""]
    let data = {
        title,
        description,
        tags
    }
    Meteor.call('createQuestion', data, function(err, result) {
        Meteor.kill();
    });

});

meteorDown.run({
    concurrency: 10,
    url: ""http://localhost:3000/discussions"",
    key: 'mykey',
    auth: {
        userIds: ['fL6pirusvokposvwX', 'P4DNubMrEQsEQvNX2', 'AN3xqZHaQNmJ4nghe', 'v9XWPKQ7BapnNGY2F']
    }
});
</code></pre>

<p>But when i run in the terminal, only a time stamp is printed <a href=""https://i.stack.imgur.com/k6crG.png"" rel=""nofollow noreferrer"">timestamp</a></p>

<p>or some times an error occurs even though I dont change the test file
<a href=""https://i.stack.imgur.com/07zxG.png"" rel=""nofollow noreferrer"">error</a></p>
",https://stackoverflow.com/questions/43617950/meteor-down-load-testing,"['meteor', 'load-testing']",86,FALSE,1,0
meteorDown load testing output,"<p>I am load testing my meteor app using meteorDown package. But it is not working as expected. Below is the code:</p>

<pre><code>meteorDown.init(function (Meteor) {
   console.log(""userId is:"", Meteor.userId());
})

meteorDown.run({
  concurrency : 1,
  url : ""http://localhost:3000""
})
</code></pre>

<p>Following is the output : </p>

<pre><code>(node:10727) [DEP0016] DeprecationWarning: 'GLOBAL' is deprecated, use 
'global'
  --------------------------------------------------
     Time   : 2017-8-24 16:45:43
 --------------------------------------------------
   Time   : 2017-8-24 16:45:48
   --------------------------------------------------
</code></pre>

<p>Starting the test using this command : sudo meteor-down my_load_test.js.
This file is outside my app folder</p>
",https://stackoverflow.com/questions/45859870/meteordown-load-testing-output,"['performance', 'meteor', 'load']",52,FALSE,1,1
Load testing Rest services,"<p>I am trying to figure out a strategy for load testing of my Rest services. These services processes request asynchronously. They took a dumpId and dumpUrl in query parameter and return Status 200 immediately. And then process data asynchronously and dump data on provided dumpUrl. We can query the status of dump using dumpId on dumpUrl status query end point.</p>

<p>My question is what should be the best strategy for load testing of such service. We started with gattling script, but seems it is not feasible with gattling framework. </p>
",https://stackoverflow.com/questions/45981094/load-testing-rest-services,"['load', 'load-testing', 'gatling']",45,FALSE,0,1
Web API load testing,"<p>When I record script, my login page recorded as html. but other pages not recorded as html pages rather it shows as js and web APIs. I cannot able to record or create script using html url. Kindly anyone help what exactly the solution. I can able to load test only web API or any way to create script using html urls.</p>
",https://stackoverflow.com/questions/45838602/web-api-load-testing,"['asp.net-web-api', 'jmeter']",152,FALSE,-2,1
JMeter / Jvm Load Testing,"<p>I'm currently load testing a system using Apache JMeter. I am interested in JVM properties, so I added a script to the server <strong>-XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:""FILE_DESTINATION""</strong> to get such informations. </p>

<p>I have three thread groups: 100, 500 and 1000 concurrent users.</p>

<p>1) I would like to know if it is a good idea deleting the content of the log file after each group execution or not, so each log reflects the JVM statistics of that group? </p>

<p>2) Is there a needed interval between one thread group execution and another ?</p>

<p>Thanks !</p>
",https://stackoverflow.com/questions/47810545/jmeter-jvm-load-testing,"['java', 'multithreading', 'jmeter', 'jvm']",1061,TRUE,0,2
WireMock Performance and Load Testing,"<p>Is there any way to make WireMock Standalone faster?
I have 1kb response file that I want to get back between 3ms - 10ms
Currently the response is coming back within 20ms - 40ms</p>

<p>This is for an individual request/response from SoapUI, so it also needs to scale under load, although I believe this can be accommodated using the command line switches/Jetty parameters</p>

<p>Machine is 2x2.8 GHz (64 bit) / 32GB Ram</p>
",https://stackoverflow.com/questions/44792229/wiremock-performance-and-load-testing,"['java', 'performance', 'jetty', 'wiremock']",6374,TRUE,2,1
JMeter load-testing : ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup,"<p>I'm trying non-GUI and distributed JMeter load-testing.</p>

<p>Before I go distributed, I tested it locally. I installed JMeter on my laptop and setup a testplan targeting the system under test. I installed the plugin manager and install the concurrent thread plugin.
I found my JMX file to be correct and working, so I decided to rollout the distributed setting.</p>

<p>I setup three machines for load generation : load-1, load-2 and load-3. I installed JMeter as follow :
<code>apt update ; apt upgrade</code> on all of them
<code>apt install jmeter</code> on all of them
copied the JARs located in /usr/share/jmeter/lib/ext of my laptop to all of them, in the same directory :</p>

<pre><code>jmeter-plugins-casutg-2.1.jar
jmeter-plugins-cmn-jmeter-0.3.jar
jmeter-plugins-manager-0.11.jar
</code></pre>

<p>I started the JMeter server on two of them as follow :</p>

<pre><code>export JMETER_HOME=/usr ; $JMETER_HOME/bin/jmeter-server -Djava.rmi.server.hostname=207.112.137.21
export JMETER_HOME=/usr ; $JMETER_HOME/bin/jmeter-server -Djava.rmi.server.hostname=207.112.137.22
</code></pre>

<p>I use the third one to start the distributed testing as follow :</p>

<pre><code>jmeter -n -t ~/JMeter_API_TestPlan.jmx -R207.112.137.21,207.112.137.22
</code></pre>

<p>The distrubuted setting seems to start correctly, but the thread start fail probably because of a class not being found :</p>

<p>java.lang.ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no security manager: RMI class loader disabled)</p>

<p>A I missing a JAR or a configuration parameter ?</p>

<p>The jmeter.log shows the following :</p>

<pre><code>2017/06/23 09:34:33 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Loading user properties from: /usr/share/jmeter/bin/user.properties 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Loading system properties from: /usr/share/jmeter/bin/system.properties 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Copyright (c) 1998-2014 The Apache Software Foundation 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Version 2.11.20151206 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: java.version=1.8.0_131 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: java.vm.name=OpenJDK 64-Bit Server VM 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: os.name=Linux 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: os.arch=amd64 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: os.version=4.4.0-64-generic 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: file.encoding=ANSI_X3.4-1968 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Default Locale=English (United States) 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: JMeter  Locale=English (United States) 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: JMeterHome=/usr/share/jmeter 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: user.dir  =/usr/share/jmeter/lib/ext 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: PWD       =/usr/share/jmeter/lib/ext 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: IP: 127.0.1.1 Name: load-srv-1 FullName: load-srv-1.localdomain 
2017/06/23 09:34:33 INFO  - jmeter.services.FileServer: Default base='/usr/share/jmeter/lib/ext' 
2017/06/23 09:34:33 INFO  - jmeter.services.FileServer: Set new base='/home/ubuntu' 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Loading file: /home/ubuntu/JMeter_API_TestPlan.jmx 
2017/06/23 09:34:33 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 
2017/06/23 09:34:33 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 
2017/06/23 09:34:33 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.6 
2017/06/23 09:34:33 INFO  - jmeter.save.SaveService: Using SaveService properties file version 1554411 
2017/06/23 09:34:33 INFO  - jmeter.save.SaveService: All converter versions present and correct 
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_ 
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is  
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is  
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is  
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is  
2017/06/23 09:34:33 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Creating summariser &lt;summary&gt; 
Creating summariser &lt;summary&gt;
Created the tree successfully using /home/ubuntu/JMeter_API_TestPlan.jmx
Configuring remote engine for 207.112.137.21
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Configuring remote engine for 207.112.137.21
Using remote object: UnicastRef [liveRef: [endpoint:[207.112.137.21:33454](remote),objID:[-48d954a6:15cd4392e27:-7fff, 7098811430065264906]]]
Configuring remote engine for 207.112.137.22
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Configuring remote engine for 207.112.137.22
Using remote object: UnicastRef [liveRef: [endpoint:[207.112.137.22:39449](remote),objID:[-238f015b:15cd4393abf:-7fff, 6897427020325789391]]]
Starting remote engines
2017/06/23 09:34:33 INFO  - jmeter.JMeter: Starting remote engines 
Starting the test @ Fri Jun 23 09:34:33 UTC 2017 (1498210473781)
2017/06/23 09:34:33 INFO  - jmeter.engine.ClientJMeterEngine: running clientengine run method 
2017/06/23 09:34:33 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 
2017/06/23 09:34:33 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 
2017/06/23 09:34:33 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2017/06/23 09:34:33 INFO  - jmeter.samplers.BatchSampleSender: Using batching (client settings) for this run. Thresholds: num=100, time=60000 
2017/06/23 09:34:33 INFO  - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run 
2017/06/23 09:34:34 INFO  - jmeter.samplers.BatchSampleSender: Using batching (client settings) for this run. Thresholds: num=100, time=60000 
2017/06/23 09:34:34 INFO  - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run 
2017/06/23 09:34:34 INFO  - jmeter.samplers.BatchSampleSender: Using batching (client settings) for this run. Thresholds: num=100, time=60000 
2017/06/23 09:34:34 INFO  - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run 
2017/06/23 09:34:34 INFO  - jmeter.samplers.BatchSampleSender: Using batching (client settings) for this run. Thresholds: num=100, time=60000 
2017/06/23 09:34:34 INFO  - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run 
2017/06/23 09:34:34 ERROR - jmeter.engine.ClientJMeterEngine: Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no security manager: RMI class loader disabled) 
2017/06/23 09:34:34 INFO  - jmeter.engine.ClientJMeterEngine: Interrupting RMI Reaper 
Error in NonGUIDriver org.apache.jmeter.engine.JMeterEngineException: Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no security manager: RMI class loader disabled)
2017/06/23 09:34:34 ERROR - jmeter.JMeter: Error in NonGUIDriver org.apache.jmeter.engine.JMeterEngineException: Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no security manager: RMI class loader disabled)
    at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:156)
    at org.apache.jmeter.JMeter.runNonGui(JMeter.java:831)
    at org.apache.jmeter.JMeter.startNonGui(JMeter.java:733)
    at org.apache.jmeter.JMeter.start(JMeter.java:392)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no security manager: RMI class loader disabled)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:377)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    at org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub.rconfigure(Unknown Source)
    at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:133)
    ... 8 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup (no security manager: RMI class loader disabled)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:337)
</code></pre>

<p>I'm running Ubuntu 16.04.2 LTS</p>
",https://stackoverflow.com/questions/44720639/jmeter-load-testing-classnotfoundexception-com-blazemeter-jmeter-threads-conc,"['java', 'exception', 'jmeter', 'load-testing', 'distributed']",8414,TRUE,2,1
Load testing Bot builder bot,"<h1>Update</h1>
<p>Using emulator as channelId and updating to SDK 3.13.1 works for me.</p>
<hr />
<ul>
<li>App ID: 8c082f92-fb38-4841-a29f-339eb315f7aa</li>
<li>SDK Platform: Node.js</li>
<li>SDK Version: 3.13.1</li>
<li>Active Channels: Facebook</li>
<li>Deployment Environment: ngrok</li>
</ul>
<h2>Issue Description</h2>
<p>I tried following steps mentioned in <a href=""https://blog.botframework.com/2017/06/19/load-testing-a-bot/"" rel=""nofollow noreferrer"">this link</a>. This has two parts. One is creating the token and second is to send a message to the bot. POSTMAN request leads to 500 Internal Server Error and ERROR: ChatConnector: receive - invalid signing key or OpenId metadata document in the code.</p>
<h2>Code Example</h2>
<ol>
<li><p>Create token</p>
<pre><code> curl -X POST  https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token   -H 'cache-control: no-cache' -H 'content-type: application/x-www-form-urlencoded'  -H 'postman-token: 792660ab-b1aa-0cbd-edab-9b3847c170d5'  -d 'grant_type=client_credentials&amp;client_id=8c082f92-fb38-4841-a29f-339eb315f7aa&amp;client_secret=vxcihBT2679%7C(%23puEXBPT1!&amp;scope=8c082f92-fb38-4841-a29f-339eb315f7aa%2F.default'
</code></pre>
</li>
<li><p>Send a message</p>
<pre><code> curl -X POST https://1c36f336.ngrok.io/api/messages -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ing0Nzh4eU9wbHNNMUg3TlhrN1N4MTd4MXVwYyJ9.eyJhdWQiOiI4YzA4MmY5Mi1mYjM4LTQ4NDEtYTI5Zi0zMzllYjMxNWY3YWEiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vZDZkNDk0MjAtZjM5Yi00ZGY3LWExZGMtZDU5YTkzNTg3MWRiL3YyLjAiLCJpYXQiOjE1MTIxOTg2NjcsIm5iZiI6MTUxMjE5ODY2NywiZXhwIjoxNTEyMjAyNTY3LCJhaW8iOiJZMk5nWUZEOHRySzgvZk9XcDF2L1BMM2JibnRGRGdBPSIsImF6cCI6IjhjMDgyZjkyLWZiMzgtNDg0MS1hMjlmLTMzOWViMzE1ZjdhYSIsImF6cGFjciI6IjEiLCJ0aWQiOiJkNmQ0OTQyMC1mMzliLTRkZjctYTFkYy1kNTlhOTM1ODcxZGIiLCJ1dGkiOiJXLWdYbXpPSkxVYWdzSFZUbXBJd0FBIiwidmVyIjoiMi4wIn0.G705tzQIU5Mh6IROtXkIwm8Q9AKZ_q-VOtJuuozqP-ekhWoKc0HpcdhgBlnaMsMHKoM0RWhUlXn27xCfK46vEE9IZlkjcAh7huhvlWNtW8IP5w7QiL3JCSTYKCtBXZq-VKeWctNWR9M8Y9Ry4dyiEdcDMcHWrbOUqR6nXvlwG76GSR4YilqzMWdSW6t5Pep3hwOw07DSargYP0pDAnWAg3pWHnhcJ185533I1VVXEIuc_CK-RmP9qhUAScEbYkpp_7l75bVWzxKv-3E1UOG4SBj6UzfH47X5kwz_njn1kAJcrqBvP3s_CjS4qUdDSNARtxGZ3UQWj49UBKosqar0dg' -H 'cache-control: no-cache' -H 'content-type: application/json' -H 'postman-token: 3a74ce00-2da7-d674-5e4c-083f54ed30ff' -d '{ &quot;type&quot;: &quot;message&quot;, &quot;id&quot;: &quot;mid.$cAAGEkG8MNm1mOEBe-lgBvsWZbQUc&quot;, &quot;channelId&quot; : &quot;test&quot;,  &quot;conversation&quot;: { &quot;id&quot;: &quot;100023023852067-526013297749070&quot;}, &quot;from&quot;: { &quot;id&quot;: &quot;100023023852067&quot; }, &quot;recipient&quot;: { &quot;id&quot;: &quot;526013297749070&quot; },  &quot;serviceUrl&quot;: &quot;https://1c36f336.ngrok.io&quot;, &quot;text&quot;: &quot;Hi message from postman !!!&quot; }'
</code></pre>
</li>
</ol>
<h2>Reproduction Steps</h2>
<ol>
<li>Using the two curl requests mentioned above. This should lead to the mentioned issue.</li>
</ol>
<h2>Expected Behavior</h2>
<p>POSTMAN request should lead to 202 Accepted and bot receiving the message. Am I missing something or is there something wrong in the process? I saw <a href=""https://github.com/Microsoft/BotBuilder/issues/3232"" rel=""nofollow noreferrer"">some</a> <a href=""https://github.com/Microsoft/BotBuilder/issues/3510"" rel=""nofollow noreferrer""> issues </a> on load testing but none of them helped.</p>
<h2>Actual Results</h2>
<p>POSTMAN request leads to 500 Internal Server Error and ERROR: ChatConnector: receive - invalid signing key or OpenId metadata document in the code.</p>
",https://stackoverflow.com/questions/47605699/load-testing-bot-builder-bot,"['node.js', 'botframework', 'load-testing']",1086,TRUE,1,3
JMeter Load Testing Time Verification,"<p>I use JMeter for checking load testing.</p>
<ul>
<li><p>I note a time with stopwatch when i check load time personally it was
8.5 seconds</p>
</li>
<li><p>when i run same case with JMeter it gave load time of 2 seconds</p>
<p>There is huge difference between them, How can i verify the actual time?</p>
<p>e.g : if one user taking 9 seconds to load the form while in JMeter it is given load time 2 seconds</p>
</li>
</ul>
",https://stackoverflow.com/questions/45567584/jmeter-load-testing-time-verification,['jmeter'],673,TRUE,1,4
tsung load testing websockets limit,"<p>i'm testing websockets with tsung and i can achive 4820 connections after that I get this error below, I have already increased the open files limits to 
kern.maxfilesperproc: 64000
kern.maxfiles: 524288</p>

<p>I would like to reach 50000 connections for example. I'm load testing from mac book pro with sierra os 10.12.6</p>

<pre><code>    =ERROR REPORT==== 20-Oct-2017::16:30:41 ===
** Generic server &lt;0.5350.0&gt; terminating 
** Last message in was {'EXIT',&lt;0.5437.0&gt;,
                        {emfile,
                         [{erlang,open_port,
                           [{spawn,""/bin/sh -s unix:cmd""},
                            [binary,stderr_to_stdout,stream,in,hide,out]],
                           []},
                          {os,cmd,1,[{file,""os.erl""},{line,239}]},
                          {ts_os_mon_erlang,get_os_data,2,
                           [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},
                            {line,297}]},
                          {ts_os_mon_erlang,node_data,0,
                           [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},
                            {line,227}]},
                          {ts_os_mon_erlang,updatestats,3,
                           [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},
                            {line,172}]}]}}
** When Server state == {state,{global,ts_mon},
                               10000,'tsung_controller@Simons-MacBook-Pro',
                               ""Simons-MacBook-Pro"",&lt;0.5437.0&gt;,false,[]}
** Reason for termination == 
** {function_clause,
       [{ts_os_mon_erlang,handle_info,
            [{'EXIT',&lt;0.5437.0&gt;,
                 {emfile,
                     [{erlang,open_port,
                          [{spawn,""/bin/sh -s unix:cmd""},
                           [binary,stderr_to_stdout,stream,in,hide,out]],
                          []},
                      {os,cmd,1,[{file,""os.erl""},{line,239}]},
                      {ts_os_mon_erlang,get_os_data,2,
                          [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},
                           {line,297}]},
                      {ts_os_mon_erlang,node_data,0,
                          [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},
                           {line,227}]},
                      {ts_os_mon_erlang,updatestats,3,
                          [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},
                           {line,172}]}]}},
             {state,
                 {global,ts_mon},
                 10000,'tsung_controller@Simons-MacBook-Pro',
                 ""Simons-MacBook-Pro"",&lt;0.5437.0&gt;,false,[]}],
            [{file,""src/tsung_controller/ts_os_mon_erlang.erl""},{line,121}]},
        {gen_server,try_dispatch,4,[{file,""gen_server.erl""},{line,616}]},
        {gen_server,handle_msg,6,[{file,""gen_server.erl""},{line,686}]},
        {proc_lib,init_p_do_apply,3,[{file,""proc_lib.erl""},{line,247}]}]}
</code></pre>

<p>ulmit -a</p>

<pre><code>Simons-MacBook-Pro:bin simoncigoj$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 640000
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 709
virtual memory          (kbytes, -v) unlimited
</code></pre>

<p>The error in jetty websocket app:</p>

<pre><code>java.io.IOException: Too many open files
    at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
    at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
    at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
    at org.eclipse.jetty.server.ServerConnector.accept(ServerConnector.java:379)
    at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:643)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
    at java.lang.Thread.run(Thread.java:748)
</code></pre>
",https://stackoverflow.com/questions/46851630/tsung-load-testing-websockets-limit,"['websocket', 'load', 'performance-testing', 'load-testing', 'tsung']",377,FALSE,0,0
Server &amp; API load testing,"<p>I have custom API included in a website which creates new UID on new unique user visit like Google Analytics and sends the UID data to the backend server(NodeJs) for computation.</p>

<ol>
<li><p>I need to check concurrent users and max the limit of users can be created/handled per current cloud config.</p></li>
<li><p>Also, need to check, is there any limit on API creating and sending users data. The API is on CDN(fastly)</p></li>
</ol>

<p>Please suggest some testing tools, to check for above scenario.</p>
",https://stackoverflow.com/questions/43425125/server-api-load-testing,"['testing', 'load-testing']",827,TRUE,0,2
Load testing with Bot Framework,"<p>I have debugged thru the process of getting an auth token, and i am able to pass an activity from a console application to a custom connector web api.  From there i need to pass the activity to my bot, however, this is where i am running into a problem. </p>

<p>When i send my payload to my bot service end point (<a href=""https://localhost:3979/api/messages"" rel=""nofollow noreferrer"">https://localhost:3979/api/messages</a>) i am getting a 500 internal service error. using Postman, i am able to debug into the bot service, and see that i am getting an error of </p>

<pre><code>Exception thrown: 'Microsoft.Rest.SerializationException' in mscorlib.dll
</code></pre>

<p>following the stack trace, i see ""Unexpected character while parsing..."". This occurs during the following call.</p>

<pre><code>await dialogContext.PostAsync(""Testing 123"");
</code></pre>

<p>If i use the payload that is sent from the emulator, it works properly. However, if i change ChannelId to ""test"" and my ServiceUrl to my custom connector service, i get the error mentioned above. </p>

<p>I am debugging all services locally to get the pipeline setup properly. </p>

<p>Custom Connector Service url is using SSL (https).</p>

<p>What piece of the puzzle am i missing?</p>
",https://stackoverflow.com/questions/46042431/load-testing-with-bot-framework,['botframework'],1155,TRUE,0,2
Load Testing asp.nt core app,"<p>I have an asp.net project ,which I want to load test with around 100 users at a time , can someone plz tell me how can I do this. I tried jMeter but it seems very difficult to understand as because I m doing this first time..Thanks In Advance</p>
",https://stackoverflow.com/questions/46049730/load-testing-asp-nt-core-app,['jmeter'],31,FALSE,-1,1
Load Testing for authenticated website,"<p>How to test load on an authenticated website using Jmeter? 
There is a user login page on application start where we need to enter credentials to access the application.</p>
",https://stackoverflow.com/questions/44650445/load-testing-for-authenticated-website,"['authentication', 'testing', 'jmeter', 'load']",557,FALSE,0,1
Load Testing Drupal by JMeter,"<p>I want to load test DRUPAL by JMeter, but when I run my test plan (it is about updating cart in drupal commerce) it gives me this error:""The form has become outdated. Copy any unsaved work in the form below and then reload this page.""
I think the value of form-token is invalid. I use regular expressin for form-token with this regular expression: name=""form_token"" value=""(.+?)"".it still does not update cart</p>

<p>How can I solve this problem?</p>
",https://stackoverflow.com/questions/42190882/load-testing-drupal-by-jmeter,"['drupal-7', 'jmeter', 'load-testing']",312,FALSE,0,1
Load Testing for Web Application,"<p>Expected Average User online will be  50000 – 100000 users and all user should register and submit the application which contains around maximum of 3MB data transfer per user  at a time.<br>
Looking for cloud server.<br>
How much bandwidth we need to run the web application?</p>
",https://stackoverflow.com/questions/42375141/load-testing-for-web-application,"['performance', 'testing', 'automated-tests', 'stress-testing']",90,TRUE,0,2
Jmeter and Bitbucket server load testing,"<p>I am new to Jmeter. I have a locally hosted Bitbucket server. Sometimes when Bamboo plan triggers concurrent git clone operations it's found that Bitbucket servers gets slow/unresponsive and I have to restart the service. I want to simulate this behavior by running jmeter tests against another locally created Bitbucket server.  </p>

<p>I would like to load test below scenario with Jmeter and bitbucket server.</p>

<ul>
<li>Load test git clone and git update operations against bitbucket server through Jmeter.</li>
<li>Initially 20 users will make clone requests and 20 will make git update requests to bitbucket server.</li>
<li>Multiple git repos and multiple users configured in jmeter for test.</li>
</ul>

<p>As these are non browser operations (git clone operation), I am not sure how to extract exact url which is hitting to bitbucket server.</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/43679039/jmeter-and-bitbucket-server-load-testing,"['git', 'jmeter', 'bitbucket', 'bitbucket-api', 'bitbucket-server']",2211,TRUE,3,1
Load Testing Javascript on a Webpage,"<p>I am currently load testing my companies new webpage and have used JMeter for this task. We have an assessment which pulls down javascript locally to the users machine which allows them to take a test, once completed tests are uploaded back to the database.</p>

<p>The issue I'm having is that it is well documented that JMeter is not a browser and does not interact with javascript. We need a way to test the time it takes for requests to browse to the page assessment and how long it takes to pull. It is also required to up the amount of requests over a specific period of time so we can determine at what point the server falls over. </p>

<p>I have also tried using Gatling however I am running into the same issue. Has anyone else ran into these problems and how did they get around this?</p>

<p>Thanks in advance! </p>
",https://stackoverflow.com/questions/47790461/load-testing-javascript-on-a-webpage,"['javascript', 'jmeter', 'performance-testing', 'load-testing', 'gatling']",6663,TRUE,2,3
VSTS Load Testing against Azure CDN,"<p>I wanted to confirm the capabilities of Azure CDN, so I set up a VSTS load test against my static web page with other static resources. I chose 6000 users for 1 minute. I also chose to use ""automatically provisioned agents"" and as a result VSTS said it used 17 agent cores, though the logs only show 5 agents.</p>

<p>Any immediately concerning is the Avg. Response Time of 4.6 sec! I went to the diagnostic tab and found a slew of OutOfMemoryExceptions as well as high CPU warnings on the agents.[<img src=""https://i.stack.imgur.com/8TZBz.png"" alt=""enter image description here""></p>

<p>Since I'm not controlling the servers, I can only assume that the load testing tool has some issues with scale, though I would also have assumed it would be good at that. A load testing tool should not fail under load.</p>

<p>Can anyone explain what is going on here and how I can run a successful load test, as described.</p>
",https://stackoverflow.com/questions/43782886/vsts-load-testing-against-azure-cdn,"['azure', 'azure-devops', 'azure-cdn']",155,TRUE,1,1
Load testing numbers don&#39;t make sense,"<p>After completing a load test I'm having trouble making sense of the numbers reported, specifically the number of <em>total requests</em>.</p>

<p>Using MS Visual Studio Enterprise 2015 I've created 2 load tests:</p>

<p><strong>Load test 1:</strong></p>

<ul>
<li>Load pattern: Constant </li>
<li>Users: 1 </li>
<li>Run duration: 1 min </li>
<li>Scenario: A webtest consisting of 1 API GET request only. </li>
</ul>

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

<p>Based on this it appears to be executing the Get request every 5 seconds. So my assumption for 1000 users would be 1000 times this, so somewhere around 12,000 requests.</p>

<p><strong>Load test 2:</strong></p>

<ul>
<li>Load pattern: Constant </li>
<li>Users: 1,000</li>
<li>Run duration: 1 min </li>
<li>Scenario: A webtest consisting of 1 API GET request only, same as last Load test.</li>
</ul>

<p>Result:</p>

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

<p>Only 21 total requests, not even double let alone 1000x. I need to scale this even further however I don't trust the results at this stage. I'm not getting any errors and having trouble making sense of the sparse documentation. Could anyone offer any insight?</p>
",https://stackoverflow.com/questions/46802420/load-testing-numbers-dont-make-sense,"['visual-studio-2015', 'load-testing']",45,FALSE,1,0
Load Testing Thousands of SLOW Connections,"<p>I would like to test an upload service with hundreds, if not thousands,
of <em>slow</em> HTTPS connections simultaneously.
I would like to have lots of, say, 3G-quality connections,
each throttled with low bandwidth and high latency,
each sending a few megabytes of data up to the server,
resulting in lots of concurrent, long-lived requests being handled by the server.</p>

<p>There are many load generation tools that can generate thousands of simultaneous requests.
(I'm currently using <a href=""http://locust.io/"" rel=""nofollow noreferrer"">Locust</a>, mostly so that I can take
advantage of my existing client library written in Python.)
Such tools typically run each concurrent request as fast as possible
over the shared network link.</p>

<p>There are various ways to adjust the apparent bandwidth and latency of TCP connections,
such as Linux's <a href=""http://tldp.org/HOWTO/Traffic-Control-HOWTO/intro.html"" rel=""nofollow noreferrer"">TC</a>
and handy wrappers like <a href=""https://github.com/tylertreat/comcast"" rel=""nofollow noreferrer"">Comcast</a>.</p>

<p>As far as I can tell, TC and the like control the shared link
but they cannot throttle the individual requests.
If you want to throttle a single request, TC works well.
In theory, with many clients sharing the same throttled network link,
each request could be run <em>serially</em>,
subject to the constrained bandwidth,
rather than having lots of requests executing concurrently,
a few packets at a time.
The former would result in much fewer active requests executing
concurrently on the server.</p>

<p>I suspect that the tool I want has to actively manage each individual client's sending
and receiving to throttle them fairly.
Is there such a tool?</p>
",https://stackoverflow.com/questions/45320660/load-testing-thousands-of-slow-connections,"['networking', 'scalability', 'load-testing', 'throttling']",643,TRUE,1,2
Http load testing with bytes counting,"<p>I need some possibility to conduct load testing of our REST API with traffic counting.</p>

<p>For example to run 20 concurrent user for 1 hour. As a result I want to get information about responses (avg time, delays, etc) and overall traffic that has been produced.</p>

<p>I overlooked JMeter and Gatling, but found no possibilities to count bytes.</p>

<p>I don't really need big amount of concurrent users (100 would be enough) and high throughput (more than 10 requests per second from single user).</p>

<p>My goal is just to produce some load on our system and to check that it shows correct statistic data.</p>
",https://stackoverflow.com/questions/47650007/http-load-testing-with-bytes-counting,"['jmeter', 'performance-testing', 'load-testing', 'gatling']",821,TRUE,1,2
Error performing load testing using jmeter,"<p>I am trying to perform load testing using JMeter in which I have recorded a script using HTTP script recorder. now I have to perform the same test with multiple users, hence using a .csv file containing the details of 5 users.now when the test script is run after configuring for 5 users and suppose there are 5 HTTP requests.then some of the requests fails showing the error below:-</p>

<p><strong>PDOException in Connector.php line 55:
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)</strong></p>

<pre><code>in Connector.php line 55
at PDO-&gt;__construct('mysql:host=localhost;port=3306;dbname=forge', 'forge', '', array('0', '2', '0', false, false)) in Connector.php line 55
at Connector-&gt;createConnection('mysql:host=localhost;port=3306;dbname=forge', array('driver' =&gt; 'mysql', 'host' =&gt; 'localhost', 'port' =&gt; '3306', 'database' =&gt; 'forge', 'username' =&gt; 'forge', 'password' =&gt; '', 'charset' =&gt; 'utf8', 'collation' =&gt; 'utf8_unicode_ci', 'prefix' =&gt; '', 'timezone' =&gt; '+00:00', 'strict' =&gt; false, 'name' =&gt; 'mysql'), array('0', '2', '0', false, false)) in MySqlConnector.php line 22
at MySqlConnector-&gt;connect(array('driver' =&gt; 'mysql', 'host' =&gt; 'localhost', 'port' =&gt; '3306', 'database' =&gt; 'forge', 'username' =&gt; 'forge', 'password' =&gt; '', 'charset' =&gt; 'utf8', 'collation' =&gt; 'utf8_unicode_ci', 'prefix' =&gt; '', 'timezone' =&gt; '+00:00', 'strict' =&gt; false, 'name' =&gt; 'mysql')) in ConnectionFactory.php line 60
at ConnectionFactory-&gt;createSingleConnection(array('driver' =&gt; 'mysql', 'host' =&gt; 'localhost', 'port' =&gt; '3306', 'database' =&gt; 'forge', 'username' =&gt; 'forge', 'password' =&gt; '', 'charset' =&gt; 'utf8', 'collation' =&gt; 'utf8_unicode_ci', 'prefix' =&gt; '', 'timezone' =&gt; '+00:00', 'strict' =&gt; false, 'name' =&gt; 'mysql')) in ConnectionFactory.php line 49
at ConnectionFactory-&gt;make(array('driver' =&gt; 'mysql', 'host' =&gt; 'localhost', 'port' =&gt; '3306', 'database' =&gt; 'forge', 'username' =&gt; 'forge', 'password' =&gt; '', 'charset' =&gt; 'utf8', 'collation' =&gt; 'utf8_unicode_ci', 'prefix' =&gt; '', 'timezone' =&gt; '+00:00', 'strict' =&gt; false, 'name' =&gt; 'mysql'), 'mysql') in DatabaseManager.php line 175
at DatabaseManager-&gt;makeConnection('mysql') in DatabaseManager.php line 67
at DatabaseManager-&gt;connection('mysql') in Model.php line 3224
at Model::resolveConnection(null) in Model.php line 3190
at Model-&gt;getConnection() in Model.php line 1870
at Model-&gt;newBaseQueryBuilder() in Model.php line 1813
at Model-&gt;newQueryWithoutScopes() in Model.php line 1432
at Model-&gt;save() in ActivityController.php line 19
at ActivityController::logUserActivity(object(Request), 'visited', array('url' =&gt; 'http://localhost/busnet/Source/Main/Services/public/index.php/post', 'method' =&gt; 'POST', 'requested_on' =&gt; '1508130477.865', 'responded_on' =&gt; '1508130477.8878', 'ip_address' =&gt; '127.0.0.1', 'status' =&gt; '200')) in ActivityMiddleware.php line 52
at ActivityMiddleware-&gt;addToActivityLog(object(Request), object(JsonResponse)) in ActivityMiddleware.php line 34
at ActivityMiddleware-&gt;handle(object(Request), object(Closure))
at call_user_func_array(array(object(ActivityMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in AuthMiddleware.php line 74
at AuthMiddleware-&gt;handle(object(Request), object(Closure))
at call_user_func_array(array(object(AuthMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in CorsMiddleware.php line 26
at CorsMiddleware-&gt;handle(object(Request), object(Closure))
at call_user_func_array(array(object(CorsMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline-&gt;then(object(Closure)) in Application.php line 1451
at Application-&gt;sendThroughPipeline(array('App\Http\Middleware\CorsMiddleware', 'App\Http\Middleware\AuthMiddleware', 'App\Http\Middleware\ActivityMiddleware'), object(Closure)) in Application.php line 1221
at Application-&gt;dispatch(object(Request)) in Application.php line 1161
at Application-&gt;run(object(Request)) in index.php line 30
</code></pre>

<p>this is my .csv in notepad </p>

<pre><code>test1@gmail.com,test@123,DATE,DESC,null,1,2,test1@gmail.com
test2@gmail.com,test@124,DATE,DESC,null,3,3,test2@gmail.com
test3@gmail.com,test@125,DATE,DESC,null,4,4,test3@gmail.com
test4@gmail.com,test@126,DATE,DESC,null,5,5,test4@gmail.com
test5@gmail.com,test@127,DATE,DESC,null,6,6,test5@gmail.com
</code></pre>

<p>and the CSV dataset config is as follows<br>
<a href=""https://i.imgur.com/zZaIP9M.png"" rel=""nofollow noreferrer"">https://i.imgur.com/zZaIP9M.png</a></p>

<p>The error appears for different requests for each run ie sometimes the same request send by 4 out of 5 user passes but one fails.</p>

<p>Can anyone please help me out to resolve this?</p>
",https://stackoverflow.com/questions/46763866/error-performing-load-testing-using-jmeter,"['jmeter', 'performance-testing', 'load-testing']",201,FALSE,0,1
IdentityServer 3 failing under load testing,"<p>We are using IdentityServer 3 together with the Entity Framework package as the persistence layer. Using Serilog for trace/logging outputs</p>

<p>The current version we are using is 2.6.0</p>

<p>When put under some basic load tests, for example making requests with a valid token to our api host: <a href=""https://oauth-something.co.uk/connect/accesstokenvalidation"" rel=""nofollow noreferrer"">https://oauth-something.co.uk/connect/accesstokenvalidation</a> </p>

<p>We are finding load of failures in the logs. The token we are using is valid and we've configured the LoggingOption as follows</p>

<pre><code>options.LoggingOptions.EnableHttpLogging = true;
options.LoggingOptions.EnableWebApiDiagnostics = true;
options.LoggingOptions.EnableKatanaLogging = true;
options.LoggingOptions.WebApiDiagnosticsIsVerbose = true; 
</code></pre>

<p>Any guidance on what might be causing this or how to get to the logging to give more relevant details about the cuase would be much appreciated</p>

<p>An example entry in the log:</p>

<pre><code>2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Request received, Method=POST, Url=https://oauth-something.co.uk/connect/accesstokenvalidation, Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Message='https://oauth-something.co.uk/connect/accesstokenvalidation'

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.MessageHandlers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=DependencyScopeHandler.SendAsync

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.MessageHandlers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=PassiveAuthenticationMessageHandler.SendAsync

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Message='Route='controller:AccessTokenValidation'', Operation=DefaultHttpControllerSelector.SelectController

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=End, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Message='AccessTokenValidation', Operation=DefaultHttpControllerSelector.SelectController

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=HttpControllerDescriptor.CreateController

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=DefaultHttpControllerActivator.Create

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=End, Category='System.Web.Http.Controllers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='IdentityServer3.Core.Endpoints.AccessTokenValidationController', Operation=DefaultHttpControllerActivator.Create

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=End, Category='System.Web.Http.Controllers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='IdentityServer3.Core.Endpoints.AccessTokenValidationController', Operation=HttpControllerDescriptor.CreateController

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.Controllers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=AccessTokenValidationController.ExecuteAsync

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.Action', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=ApiControllerActionSelector.SelectAction

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=End, Category='System.Web.Http.Action', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='Selected action 'Post()'', Operation=ApiControllerActionSelector.SelectAction

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.ModelBinding', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=HttpActionBinding.ExecuteBindingAsync

2017-02-09 16:50:12.093 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=End, Category='System.Web.Http.ModelBinding', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=HttpActionBinding.ExecuteBindingAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.0934966Z] Level=Info, Kind=Begin, Category='System.Web.Http.Filters', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='Action filter for 'Post()'', Operation=NoCacheAttribute.OnActionExecutingAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=End, Category='System.Web.Http.Filters', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=NoCacheAttribute.OnActionExecutingAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Warn, Kind=End, Category='System.Web.Http.Controllers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='Cancelled', Operation=AccessTokenValidationController.ExecuteAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=End, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Message='IdentityServer3.Core.Endpoints.AccessTokenValidationController', Operation=DefaultHttpControllerActivator.Create

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Warn, Kind=End, Category='System.Web.Http.MessageHandlers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='Cancelled', Operation=PassiveAuthenticationMessageHandler.SendAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=End, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Message='IdentityServer3.Core.Endpoints.AccessTokenValidationController', Operation=HttpControllerDescriptor.CreateController

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=Begin, Category='System.Web.Http.Controllers', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=AccessTokenValidationController.ExecuteAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Warn, Kind=End, Category='System.Web.Http.MessageHandlers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='Cancelled', Operation=DependencyScopeHandler.SendAsync

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=Begin, Category='System.Web.Http.Action', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=ApiControllerActionSelector.SelectAction

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Sending response, Method=POST, Url=https://oauth-something.co.uk/connect/accesstokenvalidation, Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Message='Cancelled'

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=End, Category='System.Web.Http.Action', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Message='Selected action 'Post()'', Operation=ApiControllerActionSelector.SelectAction

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=Begin, Category='System.Web.Http.Controllers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=AccessTokenValidationController.Dispose

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=End, Category='System.Web.Http.Controllers', Id=41a2f1bd-a654-4d5f-9265-953acda437c3, Operation=AccessTokenValidationController.Dispose

2017-02-09 16:50:12.109 +00:00 [Debug] [2017-02-09T16:50:12.1092195Z] Level=Info, Kind=Begin, Category='System.Web.Http.ModelBinding', Id=7fb64bc6-0509-4661-ad21-ab7c7380d51c, Operation=HttpActionBinding.ExecuteBindingAsync

2017-02-09 16:50:12.109 +00:00 [Debug] HTTP Response Exception

System.OperationCanceledException: The operation was canceled.

   at System.Threading.CancellationToken.ThrowOperationCanceledException()

   at System.Web.Http.Filters.ActionFilterAttribute.&lt;CallOnActionExecutedAsync&gt;d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Filters.ActionFilterAttribute.&lt;ExecuteActionFilterAsyncCore&gt;d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Tracing.Tracers.HttpControllerTracer.&lt;ExecuteAsyncCore&gt;d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Dispatcher.HttpControllerDispatcher.&lt;SendAsync&gt;d__1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Owin.PassiveAuthenticationMessageHandler.&lt;SendAsync&gt;d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Tracing.ITraceWriterExtensions.&lt;TraceBeginEndAsyncCore&gt;d__18`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.HttpServer.&lt;SendAsync&gt;d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Owin.HttpMessageHandlerAdapter.&lt;InvokeCore&gt;d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Owin.ConfigureHttpLoggingExtension.&lt;&lt;ConfigureHttpLogging&gt;b__0&gt;d__2.MoveNext()
</code></pre>
",https://stackoverflow.com/questions/42158651/identityserver-3-failing-under-load-testing,"['asp.net', 'entity-framework', 'identityserver3', 'serilog']",275,FALSE,0,1
Load Testing Site with OWIN authentication,"<p>[ C#.Net, Visual Studio , Web Performance Test ]</p>

<p>Hi, I am a newbie to Load testing and OWIN Authentication.</p>

<p>Recently we converted our site to use OWIN authentication instead of Forms Authentication which broke our load test scripts.</p>

<ol>
<li>I ran load test scripts and sent the same request (which is failing in the load test script) through post man and it did not work.</li>
<li>When i checked the load test logs, for which i was making a web api call, i found that, the cookies are missing and hence I am getting a response message as ""Authorization has been denied for this request""</li>
<li>I downloaded postman interceptor and postman , to use the ""cookies""
I captured the network headers for a working request(from production) and added the ""Cookie"" header to the Post man request and it worked !!</li>
<li>I tried to capture last response from and save those cookie values to assign for the next request. </li>
</ol>

<p>But, the cookies are read only :(((</p>

<p>I want to know, if there is a way to persist those cookies between requests ? </p>

<p>I have gone through lot of sites but, nothing has helped to resolve the issue i am facing. Can any one help me?</p>

<p>Template of the Web Api Class (if it helps):</p>

<pre><code>[Authorize]
public class FabricomApiController : WebApiController
{
    public FabricomApiController()
    {
      // Constructor
    }    

    [HttpPost]
    public Response PostFabricom(Request request1)
    {
         try
            {
               // Builds a request and sends a request.
            }
            catch (Exception ex)
            {
               // Logs Exception
            }
        }
}
</code></pre>
",https://stackoverflow.com/questions/45826515/load-testing-site-with-owin-authentication,"['c#', '.net', 'owin', 'performance-testing']",132,FALSE,0,0
Simple Server Load Testing Response Times,"<p>I would like to create an application using Golang to load test a server app I have running. There are some preceeding activities to sending the request or else I would use something like ab etc. I am calling something similar to the below in X number of goroutines.</p>

<pre><code>func sendRequest() *time.Duration {

    xmlBody := ""SomeXmlHere""
    start := time.Now()
    resp, err := http.Post(""www.example.com"", ""text/xml"", strings.NewReader(xmlBody))
    requestTime := time.Since(start)
    defer resp.Body.Close()
    response, _ := ioutil.ReadAll(resp.Body)

    return &amp;requestTime
}
</code></pre>

<p>When the request is initiated, the runtime will switch to another goroutine while the request is ongoing. So my question is, will the response times be skewed if another goroutine is long running and blocks the call to <code>time.Since()</code>? Is there a way around this problem to obtain accurate response times?</p>
",https://stackoverflow.com/questions/41872743/simple-server-load-testing-response-times,"['go', 'concurrency', 'load-testing', 'goroutine']",220,FALSE,0,0
Using BotFramework-Emulator for load testing,"<p>currently BotFramework-Emulator can be used as 1 client to test the bot. I wonder can it be used/extended to emulate 10000 clients for load testing.</p>
",https://stackoverflow.com/questions/44689413/using-botframework-emulator-for-load-testing,"['c#', 'botframework']",211,TRUE,-2,1
Load testing logged in routes in phoenix,"<p>I'm trying to do load testing for routes that require logging in.</p>

<p>I was previously using <a href=""https://artillery.io/docs/index.html"" rel=""noreferrer"">https://artillery.io/docs/index.html</a> for logged out routes which worked fine. For logged in routes, I tried calling <code>beforeRequest</code> with a function to set the request headers &amp; body.</p>

<p><code>config:
  target: ""https://www.mywebsite.com/""
  phases:
    - duration: 60
      arrivalRate: 50
  processor: ""test.js""
scenarios:
  - flow:
    - post:
        url: ""/login""
        beforeRequest: ""setReqBody""
</code></p>

<p>and my beforeRequest looked like this:</p>

<p><code>function setReqBody(requestParams, context, ee, next) {
   requestParams.body = {'email': 'user@mail.com', 'password': 'password', '_csrf_token': window.csrfToken}
   return next();
}
</code></p>

<p>I am getting an error that <code>window</code> is undefined.</p>

<p>I had a look around to see if there was anything else I could use for load testing phoenix, but didn't have much luck. Is there any other way I can log in &amp; test those routes? Or other dependencies/libraries I can use in order to do this?</p>
",https://stackoverflow.com/questions/44438769/load-testing-logged-in-routes-in-phoenix,"['elixir', 'phoenix-framework', 'load-testing']",489,TRUE,5,2
Load testing with Jmeter on EC2 server,"<p>I'm a manual tester, now I learned Jmeter at the beginner level. I'm trying to load test with a post API on the AWS server. Jmeter is running good &amp; showing the result that I needed. But the problem I faced that the test result is not reflecting on the EC2 server.</p>

<p>So how do I reflect the test result of the Jmeter to the Amazon server?
It would be very helpful if anyone guides me.</p>
",https://stackoverflow.com/questions/47865635/load-testing-with-jmeter-on-ec2-server,"['amazon-web-services', 'testing', 'amazon-ec2', 'jmeter', 'load-testing']",2942,TRUE,4,1
"Load Testing RestFul Api , one time authorization","<p>I need to test wheather API is working or not and also to put load on each of them .</p>

<p>In post man I can do this but how to get it on jmeter.</p>

<p>I have an POST request from where i get access_tokken , then copy this token and put it in other API Header to get response from API .</p>

<p>Here is request json to get access :</p>

<pre><code>Response 201 (application/json)Body  {
      ""token_type"":  ""Bearer"",
      ""expires_in"" : 3600,
      ""access_token"" : ""generated_access_token""
  }
</code></pre>

<p>When run I am getting :</p>

<pre><code>{""token_type"":""Bearer"",""expires_in"":3599,""access_token"":""accesstoken value here""}
</code></pre>

<p>Need to get this access_token and pass it to other POST body to get reponse .</p>
",https://stackoverflow.com/questions/45671708/load-testing-restful-api-one-time-authorization,['jmeter'],353,TRUE,2,2
Flask get csrf_token for Locust load testing,"<p>I want to implement to load testing with locust with my remote server, but I don't want to disabled csrf feature, how can I get csrf_token or by pass it</p>

<pre><code>class UserBehavior(TaskSet):
    @task(1)
    def login(self):
        self.client.get(""/securities/login"") 
        token = ""how to get it"" 
        self.client.post(""/securities/login"",{""username"":""test"", 
                                              ""password"":""123"",
                                              ""csrf_token"":token})
</code></pre>
",https://stackoverflow.com/questions/42865338/flask-get-csrf-token-for-locust-load-testing,"['python', 'flask', 'locust']",1150,TRUE,1,3
Jmeter - load testing multiple thread groups consecutively,"<p>I have 1 thread group with 4 HTTP requests, each using separate csv to get input(json). </p>

<p>I want to run load testing with 100 users for 10 loops for all of them. </p>

<p><strong>Expected result</strong>: run HTTP request 1 for 100*10 times then move to HTTP request 2 and run 100*10 times and so on. </p>

<p>First HTTP request is provided with correct values and second with incorrect values, So first HTTP request gives 0% error and 2nd thread gives 100% error. </p>

<p><strong>Issue</strong>: While running thread, 2nd HTTP request is also giving 0% error instead of 100% as it is somehow picking values from same csv as the first HTTP request(they both have separate CSV data set config with separate csv files having different data), while they are working fine individually.</p>

<p><a href=""https://i.stack.imgur.com/OzYHs.jpg"" rel=""nofollow noreferrer"">My test plan</a></p>

<p><a href=""https://i.stack.imgur.com/v0HSQ.jpg"" rel=""nofollow noreferrer"">CSV Data Set configuration</a></p>
",https://stackoverflow.com/questions/45190633/jmeter-load-testing-multiple-thread-groups-consecutively,['jmeter'],1441,TRUE,0,1
Load testing bot with serviceUrl throws exception,"<p>System Information</p>

<pre><code>SDK Language: Node.js
SDK Version: 3.8.3
Development Environment: localhost
Issue Description
</code></pre>

<p>Following the blogpost <a href=""https://blog.botframework.com/2017/06/19/Load-Testing-A-Bot/"" rel=""nofollow noreferrer"">https://blog.botframework.com/2017/06/19/Load-Testing-A-Bot/</a> to load test the bot Im creating a ""sink"" service to send messages to the bot. Since it uses it as the serviceUrl in the message, the bot talks to the sink service for other purposes too.
I can post to the bot, but at one point when the bot is talking back it sends a message of type 'event' 'Debug' that has no conversation object in the address, resulting in an exception being thrown.</p>

<p>Expected Behavior</p>

<p>The bot sends activities back to the sink service</p>

<p>Actual Results</p>

<p>After activity type 'messge' and 'typing' have been sent, the debug event activity raises an exceptoin:</p>

<pre><code>TypeError: Cannot read property 'id' of undefined
at ChatConnector.postMessage (/Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:459:82)
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:165:27
at iterate (/Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:262:13)
at Object.async.forEachOfSeries.async.eachOfSeries (/Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:281:9)
at ChatConnector.send (/Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:159:15)
at RemoteSessionLogger.flush (/Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/RemoteSessionLogger.js:74:24)
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/Session.js:638:26
at /Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:52:16
at Object.async.forEachOf.async.eachOf (/Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:236:30)
at Object.async.forEach.async.each (/Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:209:22)
at Session.onFinishBatch (/Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/Session.js:616:15)
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/Session.js:430:27
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/Session.js:606:17
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/UniversalBot.js:523:17
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:178:36
at /Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:52:16
at /Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:269:32
at /Users/nico/workspace/ambitai/codereview/server/node_modules/async/lib/async.js:44:16
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:167:25
at /Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:474:21
at Request._callback (/Users/nico/workspace/ambitai/codereview/server/node_modules/botbuilder/lib/bots/ChatConnector.js:508:37)
at Request.self.callback (/Users/nico/workspace/ambitai/codereview/server/node_modules/request/request.js:188:22)
</code></pre>
",https://stackoverflow.com/questions/45445371/load-testing-bot-with-serviceurl-throws-exception,['botframework'],87,TRUE,0,1
WSO2 API Manager API Load Testing Failing,"<p>We are using WSO2 API Manager 1.10.0 and WSO2 Identity Server 5.2.0. We have created an inline script based API in API Manager and published it with Tier Availability as unlimited. We are able to invoke the API and consume the response.
As part of experimentation, we intend to see how many concurrent requests can be catered.Using Jmeter, 1000 concurrent request were successfully inovked, but when testing for 2000 request, we encountered following error:-</p>

<pre><code>&gt; [2017-03-12 15:58:30,117]  WARN - EndpointContext Endpoint :
&gt; AnonymousEndpoint will be marked SUSPENDED as it failed [2017-03-12
&gt; 15:58:30,118]  WARN - EndpointContext Suspending endpoint :
&gt; AnonymousEndpoint - last suspend duration was : 30000ms and current
&gt; suspend duration is : 30000ms - Next retry after : Sun Mar 12 15:59:00
&gt; UTC 2017 [2017-03-12 15:58:30,118]  INFO - LogMediator STATUS =
&gt; Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE =
&gt; Unexpected error during sending message out [2017-03-12 15:59:12,858]
&gt; ERROR - Axis2Sender Unexpected error during sending message out
&gt; java.lang.IllegalStateException: I/O reactor has been shut down
&gt;         at org.apache.http.util.Asserts.check(Asserts.java:34)
&gt;         at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.connect(DefaultConnectingIOReactor.java:225)
&gt;         at org.apache.synapse.transport.passthru.connections.TargetConnections.getConnection(TargetConnections.java:98)
&gt;         at org.apache.synapse.transport.passthru.DeliveryAgent.submit(DeliveryAgent.java:156)
&gt;         at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:258)
&gt;         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
&gt;         at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
&gt;         at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
&gt;         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
&gt;         at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:542)
&gt;         at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:79)
&gt;         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:510)
&gt;         at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:372)
&gt;         at org.apache.synapse.endpoints.HTTPEndpoint.send(HTTPEndpoint.java:85)
&gt;         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:111)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
&gt;         at org.apache.synapse.config.xml.AnonymousListMediator.mediate(AnonymousListMediator.java:30)
&gt;         at org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:203)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
&gt;         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:155)
&gt;         at org.apache.synapse.rest.Resource.process(Resource.java:297)
&gt;         at org.apache.synapse.rest.API.process(API.java:378)
&gt;         at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
&gt;         at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
&gt;         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
&gt;         at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
&gt;         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
&gt;         at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
&gt;         at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
&gt;         at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
&gt;         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
&gt;         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
&gt;         at java.lang.Thread.run(Thread.java:724) [2017-03-12 15:59:12,859]  WARN - EndpointContext Endpoint : AnonymousEndpoint
&gt; will be marked SUSPENDED as it failed [2017-03-12 15:59:12,859]  WARN
&gt; - EndpointContext Suspending endpoint : AnonymousEndpoint - last suspend duration was : 30000ms and current suspend duration is :
&gt; 30000ms - Next retry after : Sun Mar 12 15:59:42 UTC 2017 [2017-03-12
&gt; 15:59:12,859]  INFO - LogMediator STATUS = Executing default 'fault'
&gt; sequence, ERROR_CODE = 0, ERROR_MESSAGE = Unexpected error during
&gt; sending message out [2017-03-12 15:59:34,318]  INFO - LogMediator
&gt; STATUS = Executing default 'fault' sequence, ERROR_CODE = 101504,
&gt; ERROR_MESSAGE = Send timeout [2017-03-12 15:59:34,318] ERROR -
&gt; PassThroughHttpSSLSender Failed to submit the response
&gt; java.lang.NullPointerException
&gt;         at org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
&gt;         at org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
&gt;         at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
&gt;         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
&gt;         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
&gt;         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:493)
&gt;         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:108)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
&gt;         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:155)
&gt;         at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:86)
&gt;         at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54)
&gt;         at org.apache.synapse.core.axis2.TimeoutHandler.processCallbacks(TimeoutHandler.java:188)
&gt;         at org.apache.synapse.core.axis2.TimeoutHandler.run(TimeoutHandler.java:88)
&gt;         at java.util.TimerThread.mainLoop(Timer.java:555)
&gt;         at java.util.TimerThread.run(Timer.java:505) [2017-03-12 15:59:34,319] ERROR - Axis2Sender
&gt; WSO2_AM_API_DEFAULT_VERSION:true,&lt;?xml version='1.0'
&gt; encoding='utf-8'?&gt;&lt;soapenv:Envelope
&gt; xmlns:soapenv=""http://www.w3.org/2003/05/soap-envelope""&gt;&lt;soapenv:Body&gt;&lt;am:fault
&gt; xmlns:am=""http://wso2.org/apimanager""&gt;&lt;am:code&gt;101504&lt;/am:code&gt;&lt;am:type&gt;Status report&lt;/am:type&gt;&lt;am:message&gt;Runtime
&gt; Error&lt;/am:message&gt;&lt;am:description&gt;Send
&gt; timeout&lt;/am:description&gt;&lt;/am:fault&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
&gt; Unexpected error sending message back org.apache.axis2.AxisFault:
&gt; Failed to submit the response
&gt;         at org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
&gt;         at org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
&gt;         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
&gt;         at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
&gt;         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:493)
&gt;         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:108)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
&gt;         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
&gt;         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:155)
&gt;         at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:86)
&gt;         at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:54)
&gt;         at org.apache.synapse.core.axis2.TimeoutHandler.processCallbacks(TimeoutHandler.java:188)
&gt;         at org.apache.synapse.core.axis2.TimeoutHandler.run(TimeoutHandler.java:88)
&gt;         at java.util.TimerThread.mainLoop(Timer.java:555)
&gt;         at java.util.TimerThread.run(Timer.java:505)
</code></pre>

<p>How can we increase the concurrent request count and what could be the reason behind this error? Do we have to modify API Manager configuration to accommodate around 5000 requests? </p>
",https://stackoverflow.com/questions/42749927/wso2-api-manager-api-load-testing-failing,"['wso2-api-manager', 'wso2', 'wso2-identity-server']",1061,TRUE,0,1
Distributed Load Testing for Visual Studio 2015,"<p>I have a load test set up that hits a website which will be the SUT.  I'm able to run this as expected with single user loads and very small loads (i.e. about 5 or less).  The issues I run in to are when I try to do larger loads such as 250+.  I'm noticing some bottlenecks and have read about the causes which leads me to this question.  </p>

<p>To my understanding (which makes sense logically) I need to set up Controllers, Agents, Machines, etc in order to distribute the load and essentially spread this out to reduce the bottlenecking. </p>

<p>I have not found or figured out how to successfully accomplish this in order to throw large loads at the SUT and record the results accurately.  </p>

<p>Is this possible to do with Visual Studio 2015 as of the current date of writing this.  The resources I have found seem to be dated and simply state Controllers/Agents are deprecated/unsupported with VS15.  </p>

<p>Any insight is appreciated.</p>
",https://stackoverflow.com/questions/44372155/distributed-load-testing-for-visual-studio-2015,"['visual-studio-2015', 'automation', 'performance-testing', 'load-testing', 'agent']",87,FALSE,0,0
Desktop Application Load Testing with Visual Studio,"<p>We have a desktop application (Point Of Sale) which runs on stores which has more than 100+ cashier counters and connected to a local SQL server in the store. We would like to perform Load to determine application performance for various scenarios. I was looking for Visual Studio (2015/2017) based load testing and I don't any helpful documentation. It would be helpful if someone can share load testing procedure for desktop based application using Visual Studio.</p>

<p>JMeter is out of scope for us.</p>
",https://stackoverflow.com/questions/43036670/desktop-application-load-testing-with-visual-studio,"['visual-studio', 'performance-testing', 'load-testing']",371,FALSE,0,0
MQTT Load Testing via Jenkins using JMETER,"<p>I'm trying to run MQTT test using JMeter on Jenkins. I've integrated maven and used Github repository to run the script. The problem is when i try to run a simple API test, jenkins automatically creates a .jtl file(provided that i've added post build action) In case of MQTT test script, Jenkins Build is successful but the test fails showing this error "" no JMeter files matching '*.jtl' have been found."". Why is it so???</p>
",https://stackoverflow.com/questions/42920065/mqtt-load-testing-via-jenkins-using-jmeter,"['github', 'jenkins', 'jmeter', 'maven-3', 'mqtt']",608,FALSE,0,1
TLS handshake timeout when load testing using Gatling,"<p>I currently load testing my service using Gatling in AWS. I did several load tests using HTTP and my service works perfectly. No TLS handshake errors. When we moved to the HTTPS, the load test result showed <strong>TLS handshake timeout</strong> exception all over the place and finally thrown OOM because unprocessed request getting queued.</p>

<p>Additional information: </p>

<ul>
<li>The Gatling scenario will be like this:
Sends three requests and send one request with the <code>connection: close</code> header. I wanted to simulate sending three requests that is kept alive and close it at the end. </li>
<li>My service is managed by Kubernetes. </li>
</ul>

<p>What I have done:</p>

<ul>
<li>I ran the load test on other Gatling instance, but the error still persists </li>
<li>Restarted the AWS load balancer. Additional notes: There are no 4xx and 5xx errors, but we have client TLS negotiation errors.</li>
</ul>

<p>My questions:</p>

<ol>
<li>Is the error occurred because of the initial handshake required for the HTTPS? </li>
<li>Is the error occurred because of the AWS load balancer?</li>
</ol>

<p>Thank you. </p>
",https://stackoverflow.com/questions/47446837/tls-handshake-timeout-when-load-testing-using-gatling,"['amazon-web-services', 'ssl', 'kubernetes', 'gatling']",6972,TRUE,4,2
load testing with jmeter and latency in tomcat,"<p>I have a simple load testing scenario in our environment in AWS. The application is a 3 tier with apache(ec2), tomcat(ec2) and mysql (rds in aws) as database with load balancers in front of apache and tomcat. We are trying to load test with jmeter that has 500 threads at a ramp up time of 10 seconds. The http request is a simple call to our application that takes an input and returns the same as output.
apache is configured as a simple proxy pass and tomcat is configured as follows:</p>

<pre><code>&lt;Connector port=""8443"" protocol=""HTTP/1.1"" SSLEnabled=""true""       acceptCount=""100"" minSpareThreads=""250""  maxThreads=""400"" scheme=""https"" secure=""true"" clientAuth=""false"" sslProtocol=""TLS"" sslEnabledProtocols=""TLSv1,TLSv1.2,TLSv1.1""/&gt;
</code></pre>

<p>Here is jmeter response:</p>

<p>summary +      1 in 00:00:05 =    0.2/s Avg:  1565 Min:  1565 Max:  1565 Err:                                                                       0 (0.00%) Active: 98 Started: 211 Finished: 113</p>

<p>summary +    499 in 00:00:10 =   52.3/s Avg:  1319 Min:    51 Max:  3916 Err:                                                                       0 (0.00%) Active: 0 Started: 500 Finished: 500</p>

<p>summary =    500 in 00:00:14 =   35.5/s Avg:  1319 Min:    51 Max:  3916 Err:                                                                       0 (0.00%)</p>

<p>When you invoke the URL from a REST client, the time taken is 100-200ms. When we invoke 500 requests in 10 seconds, the performance drops significantly as above. I added one more tomcat server to the load balancer with no improvements. </p>

<p>I took thread dumps when executing the load test and i see that lot of threads are in RUNNABLE state as follows:</p>

<pre><code>""ajp-bio-8009-exec-120"" daemon prio=10 tid=0x00007f23680fe000 nid=0x4d1b runnable [0x00007f2341594000]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:152)
        at java.net.SocketInputStream.read(SocketInputStream.java:122)
        at org.apache.coyote.ajp.AjpProcessor.read(AjpProcessor.java:309)
        at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:364)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:128)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
</code></pre>

<p>tomcat is running with 2-4GB of heap and jmeter is running with 1GB heap. apache and tomcat is dual core, 7.5GB instance of AWS(m3.large).</p>

<p>Apache is configured in preform MPM as follows:</p>

<pre><code>&lt;IfModule prefork.c&gt;
StartServers       150
MinSpareServers    100
MaxSpareServers   150
ServerLimit      350
MaxClients       350
MaxRequestsPerChild  10000
&lt;/IfModule&gt;
</code></pre>

<p>I dont see any latency in cloudwatch of AWS in Load Balancers. 
I am at a dead end. Any pointers ?</p>
",https://stackoverflow.com/questions/43922993/load-testing-with-jmeter-and-latency-in-tomcat,"['java', 'amazon-web-services', 'tomcat', 'jmeter', 'load-testing']",702,FALSE,1,0
Gatling Performance and load testing with Camunda BPMN,"<p>I am working on an application using Camunda BPMN. This application calls restful 
services for fetching or saving or updating data in the backend. I want to write load performance tests for this application. I am able to test indivisual endpoints with scala scripts in gatling. But how to test one entire BPMN workflow ? Is there any headstart material that I can refer?</p>
",https://stackoverflow.com/questions/44880446/gatling-performance-and-load-testing-with-camunda-bpmn,"['scala', 'load-testing', 'bpmn', 'gatling', 'camunda']",500,TRUE,1,1
Connect MQTTBox with RabbitMQ Server for load testing,"<p>I was trying to connect mqttbox(Chrome extension) to rabbitmq server for load testing. The client created in mqqtbox is connecting properly but its not able to do load testing.</p>
",https://stackoverflow.com/questions/43547466/connect-mqttbox-with-rabbitmq-server-for-load-testing,"['testing', 'rabbitmq', 'load', 'mqtt']",326,TRUE,-1,1
Load testing html and objects embedded with yandex.tank,"<p>I have been using yandex.tank for a few days to perform load tests</p>

<p>I have set up the URL's list in different ways but I do not get my goal</p>

<p>I want to simulate a real visit (like a web navigator):</p>

<ol>
<li>request </li>
<li>html response</li>
<li>request of objects embedded in the code</li>
</ol>

<p>I can create a grouped list of the objects embedded in the code, but the results are oriented to each of the requests per individual. For example:</p>

<p>My ""home"" tag in ""Cumulative Cases Info"" shows me:</p>

<p>4554 28.21% / avg 171.2 ms</p>

<p>171.2 ms is the average time of each of the objects. I want the average time for the full request (html and embeded objects)</p>

<p>Is it possible to perform a load test by making requests like those indicated with yandex.tank? Or with another load testing tool?</p>
",https://stackoverflow.com/questions/41721548/load-testing-html-and-objects-embedded-with-yandex-tank,"['load-testing', 'yandex', 'yandex-tank']",286,FALSE,0,1
Approach to load testing a Geolocation iOS app,"<p>I created an iOS app in Swift, and utilized Firebase Auth and DB for the backend. I can't get super detailed on the specifics, but it involves Geolocation services, and is similar (although much simpler) to Uber/Lyft. Both drivers/riders share the same app. You have to click on a another button to get to the driver interface.</p>

<p>I need to create a simulation where multiple virtual users (both drivers/riders) are using the application at the same time (I would like to measure success/failure of each action, as well as response time). I don't need to randomize the simulation, but I do have to account for the fact that there is an interaction between two users. In other words, it's not the usual performance test where you log-in, view profile, update profile, log-out, etc. There is a dependence on one part of the test to complete before the other can start.</p>

<p>I'd like to see if I could get any ideas on the best approach to handle this. I can provide more details/context, if needed.</p>
",https://stackoverflow.com/questions/44402437/approach-to-load-testing-a-geolocation-ios-app,"['ios', 'xcode', 'performance', 'testing', 'load']",59,TRUE,0,1
JMeter- load testing on live and dynamic graph,"<p>I am doing load testing of my application through JMeter. It consist of some live graphs of temperature vs time. Is it possible to perform load test on it ?</p>
",https://stackoverflow.com/questions/47407809/jmeter-load-testing-on-live-and-dynamic-graph,"['jmeter', 'jmeter-3.2']",50,FALSE,0,0
selenium or loadtest for nodejs apis load testing,"<p>I am trying to do load test on server to know the approx maximum connection possible on VM.</p>

<p>Some one suggested selenium is one better options for load testing. I just wanted to do the load test not the functionality test.</p>

<p>This is nodejs load test library
<a href=""https://www.npmjs.com/package/loadtest"" rel=""nofollow noreferrer"">https://www.npmjs.com/package/loadtest</a></p>

<p>which is better <strong>Selenium</strong> or <strong>loadtest</strong>?</p>

<p>I am a newb in this.</p>
",https://stackoverflow.com/questions/46297064/selenium-or-loadtest-for-nodejs-apis-load-testing,"['node.js', 'selenium', 'load']",342,FALSE,0,2
How to record native mobile app for load testing?,"<p>The application I want to load test is a Shopping Cart application(Server performance). I have tried with Jmeter for a purchase scenario, But the problem is Jmeter not recording actions like logins, selection from dropdown etc. Because of that on playback the recorded scripts won't create any user sessions and no purchase is happening. But Jmeter shows all the scripts were run successfully. I want to record each and every action on mobile. Is any solution for this problem? Do i need to use any other tool other than Jmeter? Please help. 
Thanks in advance. </p>
",https://stackoverflow.com/questions/44045800/how-to-record-native-mobile-app-for-load-testing,"['jmeter', 'load-testing']",644,FALSE,1,2
Load testing tools Symfony2 powered website that executes Javascript?,"<p>Most of the tools out there do not seem to be interpreting jQuery / Javascript code that is loaded on the page that I want to test. This is however important because that code will, in turn initiate a number of calls to other endpoints in my webapp which adds up to load in a real life scenario. </p>

<p>I've looked at JMeter already and am a bit reluctant to give it a try as the landing page mentions explicitly that it does not do Javascript interpreting at all. </p>

<p>What would be some recommendation of tools that can provide a more accurate measurement of load testing by including Javascript code?</p>
",https://stackoverflow.com/questions/41747701/load-testing-tools-symfony2-powered-website-that-executes-javascript,"['performance', 'load-testing']",42,FALSE,-1,3
Load Testing for different users in Visual Studio 2015,"<p>I have created a Web and Load test project in Visual Studio 2015. It has a webtest which has recorded steps of a scenario. It contain a form with a username to login (in my case password is not required). I have also added a datasource with 25 user names for the form parameter.
I have added a load test with the above webtest to run it for 25 users in parallel with different usernames. But the load test is running with the same user name. Can any one suggest me, how to configure it for different users.</p>

<p>Thanks for the help.</p>
",https://stackoverflow.com/questions/46844056/load-testing-for-different-users-in-visual-studio-2015,"['visual-studio-2015', 'load-testing']",299,FALSE,0,0
HTTP Internal error 500 on Tomcat during load testing,"<p>Our team is performing load testing on our Tomcat based application (Spring Core + JSF + Oracle) which uses a Apache web server for forwarding requests. The load testing tool (WAPT) is trying to simulate 3 users accessing a single search page with the same parameters being searched. However it results in a failure with an HTTP Internal Error 500 for most runs. When the same test is done manually, this issue doesn't happen. 
So is there any  additional resources that the tool may be blocking? The server logs do not disclose much in terms of the specific issue there might be in the code, not even a stack trace. But is there some way to retrieve that?
Any help on this is appreciated.</p>
",https://stackoverflow.com/questions/42672427/http-internal-error-500-on-tomcat-during-load-testing,"['java', 'spring', 'tomcat', 'automated-tests']",592,TRUE,0,1
Load testing a Google App Engine Application using JMeter,"<p>I've created an application and I'd like to test how well it scales to large numbers of users.</p>
<p>To run my application a user has to go to the homepage, sign in to a Google account, click a button and then upload a video file.</p>
<p>First of all, is this possible to emulate using JMeter? I'm signed into my Google account locally but am not sure whether simulated users will have access to it?</p>
<p>Secondly, I've recorded a session in JMeter doing the actions above and have run the test with 10 simulated users, however, the App Engine dashboard doesn't detect any activity. I've followed the steps mentioned <a href=""http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf"" rel=""nofollow noreferrer"">here</a> but obviously with details of my application etc.</p>
<p>Here's a screenshot of the summary report.
<a href=""https://i.stack.imgur.com/Pn7RW.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/Pn7RW.png"" alt=""JMeter Screenshot"" /></a></p>
<p>Is there anything obvious I might be doing wrong? Am I using JMeter in the correct way to test the application as desired?</p>
<p>Apologies for my JMeter inexperience.</p>
",https://stackoverflow.com/questions/47906985/load-testing-a-google-app-engine-application-using-jmeter,"['google-app-engine', 'testing', 'jmeter']",900,TRUE,0,1
Chrome showing error while doing load testing with Jmeter,"<p>While I am trying to test an application with Jmeter on chrome as browser, the chrome browser is showing the following error:</p>

<blockquote>
  <p>""Your connection is not private""</p>
</blockquote>

<p>I have tried importing the security CA certificate but it does not work.</p>
",https://stackoverflow.com/questions/45186917/chrome-showing-error-while-doing-load-testing-with-jmeter,"['google-chrome', 'security', 'jmeter', 'performance-testing', 'jmeter-plugins']",613,FALSE,0,1
How to do load testing for JWT Secured Rest API,"<p>I am developing a REST API (HTTPS) with Spring and now need to load test to 1000 concurrent users.The problem is I used siege to load test but it cannot test over the jwt token header.Which is the best way to perform load test in my scenario?</p>
",https://stackoverflow.com/questions/43993422/how-to-do-load-testing-for-jwt-secured-rest-api,"['java', 'rest', 'performance-testing', 'load-testing', 'siege']",3975,TRUE,2,3
How to do a load testing for a dynamic url?,"<p>I am trying to do a load testing,but facing some issues.
The basic concept in the web app is that the users gives a request for which response links should be generated.(just like google search where we enter a request and click submit and on the next page we get response(website links ).</p>

<p>following are the steps</p>

<ol>
<li>Initial page of the the browser has a text area where users enter the request in a text area and clicks on submit </li>
<li>The response links will be given in the next page. it takes at least 30 sec to pick the respective links .</li>
</ol>

<p>The url in the second page is a dynamic url.</p>

<p>i have recorded the process using blazemter and obtained the jmx .
On using the jmx file in jmeter to test for 100 users,it is taking the same url(second page url) that was recorded by blazemeter
for all the 100 users hence we are getting the response  links on millisec for all the 100 users.</p>

<p>how can i ensure that for 100 users 100 dyanamic url will be used?</p>
",https://stackoverflow.com/questions/48034878/how-to-do-a-load-testing-for-a-dynamic-url,"['jmeter', 'jmx', 'blazemeter']",857,TRUE,2,2
"Wrk load testing, Post request with payload from json file","<p>Does wrk support specifying a json body with a path to a file like vegeta load testing?</p>

<p><a href=""https://github.com/tsenart/vegeta"" rel=""nofollow noreferrer"">https://github.com/tsenart/vegeta</a></p>

<p>Also is there a way to overwrite variables in the post request body payload?</p>

<p>For example if I have a payload like</p>

<pre><code>{
  ""id"": ""{{value}}""
}
</code></pre>

<p>Is there a way to inject and overwrite <code>{{value}}</code> during wrk run time with unique and different values?</p>
",https://stackoverflow.com/questions/43602260/wrk-load-testing-post-request-with-payload-from-json-file,"['load-testing', 'wrk']",1092,FALSE,1,0
Integration Testing and Load Testing : using the same scenarii (JVM),"<p>At the moment, I'm using two different frameworks for REST APIs integration testing, and load/stress testing. Respectively : <a href=""http://gebish.org"" rel=""nofollow noreferrer"">geb</a> (or cucumber) and <a href=""http://gatling.io"" rel=""nofollow noreferrer"">gatling</a>. But most of the time, I'm re-writing some  pieces of code in load / performance scenarii that I've been writing for integration testing.</p>

<p>So the question is : is there a framework (running on the JVM) or simply a way, to write integration tests (for a strict REST API use case), preferably programmatically, then assemble load testing scenarios using these integration tests.</p>

<p>I've read <a href=""http://blog.mattwynne.net/2012/03/13/using-cucumber-for-load-testing/"" rel=""nofollow noreferrer"">cucumber</a> maybe could do that, but I'm lacking a proper example.</p>

<p>The requirements : </p>

<ul>
<li><p>write integration tests programmatically</p></li>
<li><p>for any integration test, have the ability to ""extract"" values (the same way gatling can extract json paths for instance)</p></li>
<li><p>assemble the integration tests in a load test scenario</p></li>
</ul>

<p>If anyone has some experience to share, I'd be happy to read any blog article, GitHub repository, or whatever source dealing with such an approach.</p>

<p>Thanks in advance for your help.</p>
",https://stackoverflow.com/questions/44434546/integration-testing-and-load-testing-using-the-same-scenarii-jvm,"['cucumber', 'integration-testing', 'load-testing', 'geb', 'gatling']",476,TRUE,1,1
"Jmeter- Load testing EC2 instance, only 50% request are successful","<p>I am trying to load test Nginx installed on an EC2 instance via Jmeter, Everytime I try to load test, only 50% request are successful,</p>

<pre><code>For Eg:

If I try with 10 users, only 5 response are OK
If I try with 100 users, only 50 response are OK
If I try with 500, only 250 response are OK
</code></pre>

<p>Any Idea, regarding this strange behavior?</p>
",https://stackoverflow.com/questions/44901994/jmeter-load-testing-ec2-instance-only-50-request-are-successful,"['amazon-web-services', 'nginx', 'amazon-ec2', 'jmeter']",275,TRUE,0,1
How to perform load testing on website with https protocol,"<p>I need to perform a load Testing for scenario where certain number of user are hitting website at once , 
Think work fine but , I am getting error when it hit for 300 user thread with Handshake protocol , after that remaining thread works fine .</p>

<p>Is there some thing I am missing .</p>
",https://stackoverflow.com/questions/44774497/how-to-perform-load-testing-on-website-with-https-protocol,['jmeter'],105,FALSE,0,0
load testing socket.io chat with artillery.io and validating a JSON response,"<p>Folks, I am using the following code to load test my socket.io based chat application. The response I am sending from the chat is in JSON format. But I am unable to cross verify using artillery.io. I am receiving ""data is not valid:1"" in Errors. How can I verify JSON response in artillery.io socket.io testing?</p>

<pre><code>  target: ""http://127.0.0.1:9092""
  environments:
   debug:
    phases:
     -
     duration: 1
     arrivalRate: 1
  scenarios:
  -
  engine: ""socketio""
  flow:
   -
    emit:
      channel: ""chatevent""
      data: {""userName"": ""jj"", ""message"": ""hello"",""displayName"":""John""}
      response:
        channel: ""chatevent""
        data: {""userName"": ""jk"", ""message"": ""world"",""displayName"":""Jack""}
</code></pre>
",https://stackoverflow.com/questions/45583610/load-testing-socket-io-chat-with-artillery-io-and-validating-a-json-response,"['node.js', 'socket.io', 'performance-testing', 'load-testing']",1366,FALSE,3,0
JMeter - generate Dashboard report on specific times or steps (Load testing),"<p>I want to get a clear results when server is ""fully loaded"" with users operations and also a clear results when server start to get X login requests.</p>

<p>In JMeter I'm able to <a href=""https://sqa.stackexchange.com/questions/18816/how-to-generate-report-dashboard-in-jmeter"">generate Dashboard report</a> with given jtl or for all test.</p>

<p>In my load testing I have a test which doesn't stops (until shutdown manually)</p>

<p>In the first steps and minutes it ramp up all the users </p>

<p>In next steps it makes other actions on servers in a loop (while)</p>

<p>I want to generate 2 separated dashboard reports, one for ramping up/login users</p>

<p>and second for execution different actions on server (with full users)</p>

<p>Should I add 2 or more listeners in a controller for different steps and check its jtl after test is finish?</p>

<p>Can it be more flexible? I really wants to generate dashboard on demands or by time, for example, will include requests after 3 minutes the test start and until 15 minutes.</p>
",https://stackoverflow.com/questions/47647440/jmeter-generate-dashboard-report-on-specific-times-or-steps-load-testing,"['jmeter', 'load-testing']",1676,TRUE,2,2
Vegeta Load Testing: different body for each POST request in the attack,"<p>Is there a way to change the json body in vegeta Post request load tests in vegeta. </p>

<p>I want to send a request with a different parameter in the json body for each of the requests. for example if I have</p>

<pre><code>POST https://endpoint.com/createNew
@/targets/data.json
</code></pre>

<p>and data.json looks like</p>

<pre><code>{
   ""id"": 1234
}
</code></pre>

<p>What is the best way to make it so we have different request data for each of the requests in the attack?</p>
",https://stackoverflow.com/questions/43443586/vegeta-load-testing-different-body-for-each-post-request-in-the-attack,"['performance-testing', 'load-testing', 'vegeta']",7067,TRUE,8,3
Does Karate DSL Framework has the capability of performing load testing,"<p>Currently, we've automated all of our web services using the Karate framework and it is super cool.Is there any way we can do the load testing with this tool? 
Example: Given when I enroll a member 1000 times
         Then the average response time should be 2.7 milliseconds</p>
",https://stackoverflow.com/questions/46350533/does-karate-dsl-framework-has-the-capability-of-performing-load-testing,['karate'],2161,TRUE,2,2
Load Testing end to end data flow from JMS to HBase,"<p>The Architecture goes like:</p>

<blockquote>
  <p>JMS -> KAfka -> spark -> hbase</p>
</blockquote>

<p>Their is a data flow(XML) from JMS to Hbase.  </p>

<p>My Requirement:  </p>

<ol>
<li>Benchmarking for various sized data which i am able to achieve using timestamp.(done)  </li>
<li><p>Load testing the same scenario? How can achieve the whole transaction response time with the help of loadrunner.(Response time when the data reaches Hbase)?<br>
Below is the code to generate load on JMS queue:  </p>

<pre><code>Action() {
jms_publish_message_topic(""SendMessage"", 
    ""hello {NewParam_2}"", 
    ""sampletopic"");

jms_publish_message_topic(""sendXml"", 
    ""&lt;?xml version=\""1.0\"" encoding=\""UTF-8\""?&gt;\r\n&lt;ns0:NotificaCollezioneTessile ""
    ""xmlns:ns0=\""http://carrefour.it/mdg/schemas/xsd\""&gt;\r\n    &lt;ns0:Infolog&gt;\r\n     ""
    ""   &lt;ns0:TimeStamp&gt;{NewParam_7}&lt;/ns0:TimeStamp&gt;\r\n    ""
    ""&lt;/ns0:Infolog&gt;\r\n    &lt;ns0:Context&gt;\r\n        &lt;ns0:ContextId&gt;""
    ""ASTRA-ACCTB-VL-FIRST&lt;/ns0:ContextId&gt;\r\n    &lt;/ns0:Context&gt;\r\n    ""
    ""&lt;ns0:CollezioneTessile&gt;\r\n        &lt;ns0:Anagrafica&gt;\r\n            &lt;ns0:Anno&gt;""
    ""2017&lt;/ns0:Anno&gt;\r\n            &lt;ns0:CollezioneTessileDx&gt;""
    ""CONTINUATIVO&lt;/ns0:CollezioneTessileDx&gt;\r\n            ""
    ""&lt;ns0:CollezioneTessileTipoCod&gt;CO&lt;/ns0:CollezioneTessileTipoCod&gt;\r\n            ""
    ""&lt;ns0:DtImpianto&gt;2017-07-10&lt;/ns0:DtImpianto&gt;\r\n            &lt;ns0:FDeMarca&gt;""
    ""false&lt;/ns0:FDeMarca&gt;\r\n            &lt;ns0:DtDec&gt;2017-07-07+02:00&lt;/ns0:DtDec&gt;\r\n ""
    ""           &lt;ns0:DtCes&gt;2017-10-01&lt;/ns0:DtCes&gt;\r\n        &lt;/ns0:Anagrafica&gt;\r\n   ""
    ""     &lt;ns0:AlberoPrincipale&gt;\r\n            &lt;ns0:RepCod&gt;60&lt;/ns0:RepCod&gt;\r\n      ""
    ""  &lt;/ns0:AlberoPrincipale&gt;\r\n    &lt;/ns0:CollezioneTessile&gt;""
    ""\r\n&lt;/ns0:NotificaCollezioneTessile&gt;"", 
    ""fornitore"");


return 0;
</code></pre>

<p>}</p></li>
</ol>

<p>i will parameterize the xml data and also send the current timestamp for every run. </p>

<p>Please suggest any ideas to achieve end to end response time?</p>
",https://stackoverflow.com/questions/46462089/load-testing-end-to-end-data-flow-from-jms-to-hbase,"['jms', 'hbase', 'performance-testing', 'loadrunner']",65,FALSE,0,0
How to bypass email activation when performing load testing in jmeter,"<p>I am trying to perform load testing in JMeter and my application is having an email verification step prior to login.</p>

<p>I have captured test script using script recorder and there is registration request, activation request and login request in the same order as mentioned.An activation link will be sent to the registered email and this link is unique for each user.we can log in to the app only after visiting this link and activating.</p>

<p>So the problem I encounter over here is if I am running this test script using the data supplied from the csv then the activation link doesn't change dynamically and error ""invalid activation link"" appears.  How can I overcome this problem? unless the activation is completed I cannot login to the application.Please help me to resolve this issue.<br>
If this is not possible then is there any way by which we can bypass the activation process and log in directly after registration using JMeter.</p>
",https://stackoverflow.com/questions/46846890/how-to-bypass-email-activation-when-performing-load-testing-in-jmeter,"['email', 'jmeter', 'performance-testing', 'activation-codes']",922,TRUE,0,1
TestNg load testing with parameters passed along with invocationCount and threadPoolSize,"<p>As we know that in TestNG we can have a method running parallay being called by multiple threads,</p>

<pre><code>@Test(invocationCount=5,threadPoolSize=5)
public void testMethod()
{
///code to generate load
}
</code></pre>

<p>Now we want to do the same thing but with 5 sets pf parameters for each thread invocation in parlall.</p>
",https://stackoverflow.com/questions/46743310/testng-load-testing-with-parameters-passed-along-with-invocationcount-and-thread,"['selenium-webdriver', 'load', 'testng', 'load-testing']",601,FALSE,-1,1
How to add threads every second in load testing using JMeter?,"<p>Hi guys im newbee in JMeter. My load testing needs to test 200 users in 1hr only. But I want to start in 20 users only and add 20 users every 360 seconds until reach 200 users after 1 hr. How to do that in thread group?</p>
",https://stackoverflow.com/questions/46948775/how-to-add-threads-every-second-in-load-testing-using-jmeter,['jmeter'],357,TRUE,0,1
java.net.ConnectException: Connection refused: connect error occured while load testing on Jmeter,"<p>I used django web service post method.I want to load multiple number of threads users ex(100) at the same time load.Ramp up period is 1 sec.loop count is 1.</p>

<pre><code>java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket‌​(PlainSocketFactory.‌​java:120)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.op‌​enConnection(Default‌​ClientConnectionOper‌​ator.java:179)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(M‌​anagedClientConnecti‌​onImpl.java:328)
    at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionM‌​anager$MeasuredConne‌​ction.open(Measuring‌​ConnectionManager.ja‌​va:114)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnec‌​t(DefaultRequestDire‌​ctor.java:612)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(D‌​efaultRequestDirecto‌​r.java:447)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(Abs‌​tractHttpClient.java‌​:884)
    at org.apache.http.impl.client.CloseableHttpClient.execute(Clos‌​eableHttpClient.java‌​:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(Clos‌​eableHttpClient.java‌​:55)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeR‌​equest(HTTPHC4Impl.j‌​ava:654)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(H‌​TTPHC4Impl.java:413)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sam‌​ple(HTTPSamplerProxy‌​.java:74)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp‌​le(HTTPSamplerBase.j‌​ava:1166)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.samp‌​le(HTTPSamplerBase.j‌​ava:1155)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(‌​JMeterThread.java:47‌​5)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeter‌​Thread.java:418)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java‌​:249)
    at java.lang.Thread.run(Unknown Source)
</code></pre>
",https://stackoverflow.com/questions/42252952/java-net-connectexception-connection-refused-connect-error-occured-while-load,['jmeter'],2581,FALSE,0,1
Load testing using Jmeter of Elastic Search API Queries through CSV,"<p>Load testing using Jmeter of Elastic Search API Queries through CSV</p>

<p>I want to perform load testing using Jmeter of Elastic Search API queries which I will pass through CSV. </p>

<p>Please give me suggestions, what should be things I should Consider before doing that and what kinds of graphs that I should look in to, and what plugins should be installed in Jmeter </p>
",https://stackoverflow.com/questions/42996756/load-testing-using-jmeter-of-elastic-search-api-queries-through-csv,"['mongodb', 'elasticsearch', 'jmeter', 'jmeter-plugins']",703,TRUE,0,1
API load testing with 10k users and I am choosing jmeter,"<p>I have requirement of test api with 10k users. What I choose is :</p>

<ol>
<li>Jmeter</li>
<li>Linux server to install Jmeter and throw load with 10k users</li>
<li>One node for now</li>
</ol>

<p>Will perform API with operations like :</p>

<ul>
<li>Login</li>
<li>Book hotel with post parameters</li>
<li>Update Booking Details</li>
<li>Save Booking</li>
</ul>

<p>I am thinking to use above for API testing with 10k users, Above tools are enough or I should look for other options like loadimpact, loader or blazemeter?</p>
",https://stackoverflow.com/questions/45544792/api-load-testing-with-10k-users-and-i-am-choosing-jmeter,"['jmeter', 'jmeter-plugins']",401,TRUE,-2,2
How to stop downloading Resources for Web Application Load Testing using Loadrunner?,"<p>I'm performing Load testing of Web Applications using Loadrunner,while running the scripts it is downloading all the resources available for particular screen or pages because of this response time is taking more,Can anyone please help me how to control this type of problems in Web Application Load Testing using Loadrunner.</p>

<pre><code>web_url(""Search Customer"",
""url=http://ipaddress:portnumber/searchCustomer"",
""Url=Images/snapshot.jtl,
""Url=Images/file.css"",
""Url=Images/jscript.js""
);
</code></pre>
",https://stackoverflow.com/questions/47843593/how-to-stop-downloading-resources-for-web-application-load-testing-using-loadrun,"['performance-testing', 'load-testing', 'loadrunner']",1463,TRUE,1,1
Microservice throws RejectedExecutionException during load testing. What could be the issue here?,"<p>I have developed a Spring Boot microservice which will be used very heavily (close to 10k hits/second). I have used Feign as my REST Client and used CompletableFutures to hit other services to get data in an async way. 
In this one scenario, I am hitting another service for 4 different objects in one function using CompletableFutures.</p>

<p>My config is as follows :</p>

<p>Tomcat thread size : </p>

<pre><code>server.tomcat.max-threads=250
</code></pre>

<p>Executor thread pool size :</p>

<pre><code>private RejectedExecutionHandler rejectedExecutionHandler = new ThreadPoolExecutor.CallerRunsPolicy();

private ExecutorService executorService =  new ThreadPoolExecutor(1000, 1000, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue&lt;Runnable&gt;(), rejectedExecutionHandler);
</code></pre>

<p>My code that I'm using to hit the external service :</p>

<pre><code>CompletableFuture&lt;Integer&gt; future1 = CompletableFuture.supplyAsync(() -&gt;
                service1.function1(params) , executorService);

CompletableFuture&lt;List&lt;Object&gt;&gt; future2 = CompletableFuture.supplyAsync(() -&gt;
                service2.function2(params) , executorService);

CompletableFuture&lt;Object&gt; future3 = CompletableFuture.supplyAsync(() -&gt;
                service3.function3(params) , executorService);

CompletableFuture&lt;Object&gt; future4=CompletableFuture.supplyAsync(()-&gt;
                service4.function4 (params) , executorService);

List&lt;Object&gt; response =Stream.of(future1, future2, future3, future4)
                .parallel()
                .map(CompletableFuture::join)
                .collect(Collectors.toList());
</code></pre>

<p>These services are SpringBoot services which use Feign internally.</p>

<pre><code>@Autowired
Service1(AppConfig config)
{
    this.config=config;
    this.currentService=connect(config);
}
@Bean
private Service1 connect(AppConfig config) {
    Logger logger = new Logger.JavaLogger();
    return Feign.builder()
            .encoder(new GsonEncoder())
            .decoder(new GsonDecoder())
            .logger(logger)
            .logLevel(feign.Logger.Level.FULL)
            .target(Service1.class, config.getApiUrl());
}
</code></pre>

<p>On Load testing this Call using jMeter, which internally calls these 4 calls to the external service, I am able to achieve a rate of 200 hits/sec on 1 AWS instance. If I increase the load on 1 instance, I start getting RejectedExecutionException.
I tried the same with 10 AWS instances under a load balancer. Expectation was that it would scale linearly to 2000 hits/sec. However I could only achieve 1400 hits/sec. Any load increased after that caused the RejectedExecutionExceptions to come back.</p>

<p>What can be the solution here? Is there any tweak I can try here in the configurations?
Also, could Feign be the bottleneck over here? Should I try another client like Retrofit?</p>
",https://stackoverflow.com/questions/47692609/microservice-throws-rejectedexecutionexception-during-load-testing-what-could-b,"['spring-boot', 'retrofit', 'microservices', 'executorservice', 'netflix-feign']",193,FALSE,1,0
How to suppress producing ERRORS to stdout while load testing with Locust.io,"<p>While load testing with locust my site, like</p>

<pre><code>locust -f mysite_loadtest.py --host=https://beta.mysite.com
</code></pre>

<p>I use following code(excerpt):</p>

<pre><code>class Details(TaskSet):
    """"""IP details queries group""""""

    def on_start(self):
        self.client.verify = False  # Don't to check if certificate is valid 

    @task
    def details_ip(self):
        response = self.client.get(""/main"")

class TaskList(TaskSet):

    tasks = [Details]


class APIUser(HttpLocust):

    task_set = TaskList
    min_wait = 0
    max_wait = 3000
</code></pre>

<p>I get a huge amount of ERROR's to stout like:</p>

<pre><code>[2017-02-08 05:26:34,988] beta.mysite.com/ERROR/stderr: /usr/lib/python2.6/site-packages/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
[2017-02-08 05:26:34,988] beta.mysite.com/ERROR/stderr: /usr/lib/python2.6/site-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
[2017-02-08 05:26:35,008] beta.mysite.com/ERROR/stderr: /usr/lib/python2.6/site-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
</code></pre>

<p>Is it possible to suppress those ERROR's from writing to stdout in any way?</p>
",https://stackoverflow.com/questions/42116359/how-to-suppress-producing-errors-to-stdout-while-load-testing-with-locust-io,"['python', 'locust']",1123,TRUE,1,1
Performing load testing in a Node Application having nginx and load balancer,"<p>I am having a node application which is providing a portal for users to give online exams. Now I want to perform load testing on this server. For that I am using apache Jmeter. On the backend side I have created two node server instances(8gb ram, 4 core each ) and managing them with load balancer with Nginx. So when I am performing load testing with 500 users, I am getting gateway timeout (504) error. Also for some request I am not getting response in Jmeter. At the same time when I am checking my both node server, I see pretty normal usage of cpu and ram. 
so How can I solve this? What might be the cause for the issue ? Should I have to change anything in nginx configuration ?</p>

<p>Is there any issue with my load-testing environment ? Do I required to use anyother way or tool for Load testing ? </p>
",https://stackoverflow.com/questions/47181435/performing-load-testing-in-a-node-application-having-nginx-and-load-balancer,"['node.js', 'nginx', 'jmeter', 'load-testing']",411,FALSE,0,1
Visual Studio Load Testing - Which post web test event handler to use,"<p>I have a static object in my test class that gets populated through a load test plugin, and needs to be updated with data that comes back from each request. The only piece of information I need besides the response data is the WebTestUserId from the original webtest context that was used when the request was sent. </p>

<p>I can do this through a validation rule it seems:</p>

<pre><code>ValidationClass: ValidationRule
{
    public override void Validate(object sender, ValidationEventArgs e)
    {
        JObject responseBody = JObject.Parse(e.Response.BodyString);           
        int webTestUserId= ((TheTestClass)sender).Context.WebTestUserId;

        // update some static field in the test class
    }
}
</code></pre>

<p>However I do see other options that could potentially work, but am having trouble finding documentation on the differences or recommended approach. I see the event handlers:</p>

<blockquote>
  <p><a href=""https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.webtesting.webtest.postwebtest.aspx"" rel=""nofollow noreferrer"">WebTest.PostWebTest</a>, 
  WebTest.ValidateResponse,
  WebTest.ValidateResponseOnPageComplete, and 
  <a href=""https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.loadtesting.loadtest.testfinished.aspx"" rel=""nofollow noreferrer"">LoadTest.TestFinished</a> (would be used in the plugin)</p>
</blockquote>

<p>I cannot post more than 2 links but the two event handlers not hyperlinked can be found on the WebTest class. </p>

<p>In what situations should each of these be used?</p>
",https://stackoverflow.com/questions/45045053/visual-studio-load-testing-which-post-web-test-event-handler-to-use,"['c#', 'visual-studio', 'visual-studio-2015', 'event-handling', 'load-testing']",506,TRUE,0,1
Perform load testing and performance measurements of messaging queue system using java,"<p>Is there any Java program to perform load testing and performance measurements of various messaging queue systems like IBM WebSphere MQ, Active MQ, Rabbit MQ and Apache kafka</p>

<p>Thanks in advance..</p>
",https://stackoverflow.com/questions/45003235/perform-load-testing-and-performance-measurements-of-messaging-queue-system-usin,"['java', 'apache-kafka', 'ibm-mq', 'messaging', 'bigdata']",567,FALSE,-2,1
502 server error in Google App Engine Flexible when load testing with JMeter,"<p>I have deployed a simple Spring boot app in Google App Engine Flexible. The app. has two APIs, one to add the user data into the DB (xxx.appspot.com/add) the other to get all the user data from the DB (xxx.appspot.com/all).</p>

<p>I wanted to see how GAE scales for the load, hence used JMeter to create a load with 100 user concurrency ramped up in 10 seconds and calls these two APIs in half a second delay, forever. While it runs fine for sometime (with just one instance), it starts to fail after 30 seconds or so with a ""java.net.SocketException"" or ""The server responded with a status of 502"".</p>

<p>After this error, when I try to access the same API from the browser, it displays, </p>

<blockquote>
  <p>Error: Server Error</p>
  
  <p>The server encountered a temporary error and could not complete your
  request. Please try again in 30 seconds.</p>
</blockquote>

<p>The service is back to normal after 30 mins or so, and whenever the load test happens it repeats the same behavior as mentioned above. I expect GAE to auto-scale based on the load coming in to handle it without any down time (using multiple instances), instead it just crashes or blocks the service (without any information in the log). My app.yaml configuration is,</p>

<pre><code>runtime: java
env: flex
service: hello-service
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 10
</code></pre>

<p>I am a bit stuck with this one, Any help would be greatly appreciated. Thanks in advance.</p>
",https://stackoverflow.com/questions/45719144/502-server-error-in-google-app-engine-flexible-when-load-testing-with-jmeter,"['performance', 'google-app-engine', 'spring-boot', 'jmeter']",3670,TRUE,3,1
"Load testing with html pages having Web API calls in buttons(login, registration)","<p><a href=""https://i.stack.imgur.com/qr5Ut.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/qr5Ut.png"" alt=""enter image description here""></a></p>

<p>I recorded application. It record login get method page as the only html page. login post method pages not recorded instead it record as one authorization manager and some APIs. How can I load testing using only html pages. Now my record script seems full of APIs instead of .html pages. I asked to my developers. They told ""In submit buttons they call APIs related to those pages"". Help me to get out of this problem.</p>
",https://stackoverflow.com/questions/45940353/load-testing-with-html-pages-having-web-api-calls-in-buttonslogin-registration,"['jmeter', 'load-testing']",124,FALSE,-1,1
How to load testing env variables for Laravel guzzle call in unit test,"<p>Even though it may not be good practice for a unit/feature test, I like to have a test for ensuring that my Laravel app gives the expected result for:</p>

<p>calling a web route
.. that makes an async (Guzzle) call to the same application
and returns the modified result.</p>

<p>Unfortunately, for phpunit I can define that the configuration is loaded from .env.testing and it connects to the testing database. However when a new request is done it will call my application with my normal .env variables. Which makes sense as it is a new http request, however it is not desired in the scenario. </p>

<p>I was thinking of changing the Guzzle call based on the environment used and call my endpoint directly when I am testing. However it doesn't feel good to have env based switches in my code, especially when it results in a different method (what if it does work calling it directly but fails when using guzzle, e.g. guzzle got lost from the dependencies). </p>

<p>What would be your method of preference to test the request till response as a whole, without breaking it up to smaller pieces?</p>
",https://stackoverflow.com/questions/47557691/how-to-load-testing-env-variables-for-laravel-guzzle-call-in-unit-test,"['laravel', 'testing', 'phpunit', 'environment-variables', 'guzzle']",209,FALSE,0,0
How can I do performance and load testing for login authenticated web application?,"<p>Please someone help me. How can I do performance and load testing for login authenticated web application.?</p>
",https://stackoverflow.com/questions/45978862/how-can-i-do-performance-and-load-testing-for-login-authenticated-web-applicatio,['manual-testing'],64,TRUE,0,2
Save results of a call into a Context Parameter using VS Load Testing,"<p>I have a recorded Visual Studio Load Test (using Visual Studio 2015).  </p>

<p>It seems to have recorded fine, but if I just play it back as it is, I am going to get primary key violations.</p>

<p>I have logic like this in my application:</p>

<ol>
<li>Ask the web service for an ID.</li>
<li>Take that ID and pass it into a save call.</li>
</ol>

<p>I know that I can put in the value of a ""Context Parameter"" using <code>{{ variable }}</code> syntax.</p>

<p>But I have not been able to find a way save a value off at run time into a Context Parameter.</p>

<p><strong>Is there a way to take part of a result and then use it for future calls?</strong></p>
",https://stackoverflow.com/questions/43402931/save-results-of-a-call-into-a-context-parameter-using-vs-load-testing,"['visual-studio', 'visual-studio-2015', 'performance-testing', 'load-testing']",369,TRUE,0,1
Using Visual Studio Team Services (VSTS) to run web/load testing with SSL error,"<p>I have a contractor who created and uploaded test to VSTS but now when we run them we get:</p>

<pre><code>The request was aborted. Could not create SSL/TLS secure channel.
</code></pre>

<p><a href=""https://www.screencast.com/t/Z39fJIF0u"" rel=""nofollow noreferrer"">Screen cap of errors</a></p>

<p>How is this fixed? I am new to VSTS.</p>
",https://stackoverflow.com/questions/47822386/using-visual-studio-team-services-vsts-to-run-web-load-testing-with-ssl-error,"['c#', 'visual-studio', 'azure-devops', 'load-testing', 'webtest']",1188,TRUE,2,1
How can we get page load time in load testing in visual studio 2015?,"<p>When we perform load testing with concurrent users (like 5, 10 25 etc) in visual studio 2015, we will get the average response time.</p>

<p><strong>Is there any way to get page load time for an individual user in web load testing?</strong></p>

<p>If yes, what is the procedure to get this?</p>

<p>OR </p>

<p><strong>Is there any other tool by which we can get the Page Load Time in load testing for the multiple users?</strong></p>

<p>Although we can get the page load time in our web performance test in which we run our recorded scenarios.</p>

<p>Thanks in advance.</p>
",https://stackoverflow.com/questions/41874237/how-can-we-get-page-load-time-in-load-testing-in-visual-studio-2015,"['visual-studio', 'performance-testing', 'load-testing', 'page-load-time']",245,FALSE,0,0
what does the word virtual users mean in the context of vsts load testing,"<p>Here my question currently I'm running some load tests in vsts online. The case is that I run 12 agents with 2000 virtual users what does this mean actually? What I think is that I run a test with 2000 users. The reason is that I generate a massive amount of network traffic to my event hub and 1 request in one event hub message of 3kb. So I want to make sure that I running a max of 2000 users and not 2000 user per agent. The give you an idea I generate a 500MB /sec</p>

<p>thx</p>
",https://stackoverflow.com/questions/41955225/what-does-the-word-virtual-users-mean-in-the-context-of-vsts-load-testing,['azure-pipelines'],28,FALSE,0,1
how can we use gatling-mqtt plugin in a maven project for load testing,"<p>I have a java maven project and i want to be able to test the performance of our mqtt broker using gatling. I understand that gatling directly doesn't support mqtt protocol. </p>

<p>I came across <a href=""https://github.com/mnogu/gatling-mqtt"" rel=""nofollow noreferrer"">gatling-mqtt plugin</a> in github. I'm not sure how i can use this plugin in my maven project. I couldn't find an existing maven plugin or dependency for this. </p>

<p>I have added the following dependencies in pom.xml </p>

<pre><code>&lt;dependency&gt;  
    &lt;groupId&gt;io.gatling.highcharts&lt;/groupId&gt;  
    &lt;artifactId&gt;gatling-charts-highcharts&lt;/artifactId&gt;  
    &lt;version&gt;2.2.5&lt;/version&gt;  
&lt;/dependency&gt;  
&lt;dependency&gt;  
    &lt;groupId&gt;io.gatling&lt;/groupId&gt;  
    &lt;artifactId&gt;gatling-core&lt;/artifactId&gt;  
    &lt;version&gt;2.2.4&lt;/version&gt;  
&lt;/dependency&gt;  
&lt;dependency&gt;  
    &lt;groupId&gt;org.fusesource.mqtt-client&lt;/groupId&gt;  
    &lt;artifactId&gt;mqtt-client&lt;/artifactId&gt;  
    &lt;version&gt;1.12&lt;/version&gt;  
&lt;/dependency&gt;
</code></pre>

<p>and the following plugins:  </p>

<pre><code>&lt;plugin&gt;  
    &lt;groupId&gt;net.alchim31.maven&lt;/groupId&gt;  
    &lt;artifactId&gt;scala-maven-plugin&lt;/artifactId&gt;  
    &lt;version&gt;3.2.2&lt;/version&gt;  
&lt;/plugin&gt;  
&lt;plugin&gt;  
    &lt;groupId&gt;io.gatling&lt;/groupId&gt;  
    &lt;artifactId&gt;gatling-maven-plugin&lt;/artifactId&gt;  
    &lt;version&gt;2.2.4&lt;/version&gt;  
    &lt;executions&gt;  
        &lt;execution&gt;  
            &lt;id&gt;performanceTests&lt;/id&gt;  
            &lt;goals&gt;  
                &lt;goal&gt;execute&lt;/goal&gt;  
            &lt;/goals&gt;  
            &lt;configuration&gt;  
                &lt;simulationClass&gt;simulation.Publish&lt;/simulationClass&gt;  
            &lt;/configuration&gt;  
        &lt;/execution&gt;  
    &lt;/executions&gt;  
&lt;/plugin&gt;  
</code></pre>

<p>I'm trying to write a simulation very similar to this:</p>

<pre><code>import io.gatling.core.Predef._
import org.fusesource.mqtt.client.QoS
import scala.concurrent.duration._

import com.github.mnogu.gatling.mqtt.Predef._

class MqttSimulation extends Simulation {
    val mqttConf = mqtt
    // MQTT broker
    .host(""tcp://localhost:1883"")

    val scn = scenario(""MQTT Test"")
    .exec(mqtt(""request"")
    // topic: ""foo""
    // payload: ""Hello""
    // QoS: AT_LEAST_ONCE
    // retain: false
    .publish(""foo"", ""Hello"", QoS.AT_LEAST_ONCE, retain = false))

    setUp(
    scn
    .inject(constantUsersPerSec(10) during(90 seconds)))
    .protocols(mqttConf)
}
</code></pre>

<p>But for writing such a scenario, I'm unable to use the mqtt object.<br>
Error that i get is 'not found: value mqtt'</p>
",https://stackoverflow.com/questions/46319654/how-can-we-use-gatling-mqtt-plugin-in-a-maven-project-for-load-testing,"['performance-testing', 'mqtt', 'load-testing', 'gatling']",548,TRUE,0,1
One large machine or cluster of small machines for Jmeter load generator in load testing?,"<p>I want to simulate up to 100,000 requests per second and I know that tools like Jmeter and Locust can run in distributed mode to generate load. </p>

<ol>
<li><p>But since there are cloud VMs with up to 64 vCPUs and 240GB of RAM on a single VM, is it necessary to run in a cluster of smaller machines, or can I just use 1 large VM?</p></li>
<li><p>Will I be able to achieve more ""concurrency"" with more machines due to a network bottleneck coming from the 1 large machine?</p></li>
<li><p>If I just use one big machine, would I be limited by the number of ports there are? </p></li>
<li><p>In the load generator, does every simulated ""user"" that sends a request also require a port on the machine to receive a 200 response? (Sorry, my understanding of how TCP ports work is a bit weak.)</p></li>
<li><p>Also, we use Kubernetes pretty heavily, but with Jmeter or Locust, I feel like it'd be easier to run it on bare VM, without containerizing (even in distributed mode) while still maintaining reproducibility. Should I be trying to containerize Jmeter or Locust and running in Kubernetes instead? </p></li>
</ol>
",https://stackoverflow.com/questions/46739376/one-large-machine-or-cluster-of-small-machines-for-jmeter-load-generator-in-load,"['jmeter', 'kubernetes', 'port', 'load-testing', 'locust']",323,FALSE,1,1
concurently hit the wakama clients to leshan server with out load testing tools in python language,"<p>100k of wakama clients concurently hitting to leshan server with out jmeter  or any testing tools in python 
A python client in git is found which has wrote using asyncio coroutines i would like to modify the client code and achieve concurent hits of the clients how will be achieved?</p>
",https://stackoverflow.com/questions/45837030/concurently-hit-the-wakama-clients-to-leshan-server-with-out-load-testing-tools,"['iot', 'leshan']",100,FALSE,1,0
JMeter: How do I create Load testing script when it accepts OTP on Mobile during registration?,"<p>Scenarios is: During registration on Android App, OTP will be verified by App.</p>

<p>How do I create a script which allows to fetch OTP on mobile?</p>
",https://stackoverflow.com/questions/42622924/jmeter-how-do-i-create-load-testing-script-when-it-accepts-otp-on-mobile-during,"['web-services', 'mobile', 'jmeter', 'one-time-password']",1801,FALSE,1,1
Trigger web service requests with delay in the test case in SOAP UI for Load testing,"<p>I've a scenario where the requests in a test case should be triggered with a delay. I know how to maintain the delay between the threads but unable to get on how to trigger the requests in a test case with a delay.</p>

<p>For ex(taken from community.smartbear.com):
<a href=""https://i.stack.imgur.com/EWThs.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/EWThs.png"" alt=""enter image description here""></a>
Here we have three requests, Datasource, mediate-Request 1 &amp; Datasource Loop in a load test case. I need to have these three tests run with a particular delay(say 10 secs)</p>

<p>Any suggestions here please.</p>
",https://stackoverflow.com/questions/42990435/trigger-web-service-requests-with-delay-in-the-test-case-in-soap-ui-for-load-tes,"['load', 'soapui']",366,TRUE,0,1
spring Websockets with stomp in tomcat server and rabbit mq as message broker - Load testing connection failure,"<p>Using spring Websockets with stomp in tomcat server and rabbit mq as message broker.     </p>

<p>When tried running without RabbitMQ as relay broker, it allowed maximum around 10000 connection. (limited based on max connections allowed in tomcat)  </p>

<p>When tried using RabbitMQ as relay broker (hosted in AWS - single instance), It is failing after certain number of connections(4000) while doing load testing. (In RabbitMQ changed the config file for 
 - Filedescriptors 10000, socket descriptors 8908, memory 2.8 GB). 
Heart beat is set to zero for stompclient. Tried increasing Java client heap memory.</p>

<p>After more than 4000 connection it is failing. Is there any limitation to verify in RabbitMQ or is there any way to load test?</p>

<pre><code>java.lang.Exception: {message=[Connection to broker closed.], content-length=[0]}   
at org.springframework.messaging.simp.stomp.DefaultStompSession.invokeHandler(DefaultStompSession.java:435)
at org.springframework.messaging.simp.stomp.DefaultStompSession.handleMessage(DefaultStompSession.java:421)
</code></pre>
",https://stackoverflow.com/questions/45848104/spring-websockets-with-stomp-in-tomcat-server-and-rabbit-mq-as-message-broker,"['websocket', 'rabbitmq', 'spring-rabbit']",682,TRUE,1,1
Load Testing &quot;Excel could not be launched. Object reference not set to an instance of an object&quot;,"<p>After a Load Test Run I click the ""Create Excel Report"" button and get the error message:</p>

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

<blockquote>
  <p>Excel could not be launched. Object reference not set to an instance of an object</p>
</blockquote>

<p>How does this work?</p>

<p><sub>Note: Answering my own question to help others in future.</sub></p>
",https://stackoverflow.com/questions/44878868/load-testing-excel-could-not-be-launched-object-reference-not-set-to-an-instan,"['excel', 'report', 'visual-studio-2017', 'load-testing']",1426,TRUE,0,1
The Average response time differs largely while load testing the Same API Endpoint with same load using Jmeter,"<p>I am using JMeter to test performance of an API Endpoint.
The Number of Threads(users) applied is 100.
When I execute the test for the <strong>very first time</strong> the average response time is 35345 ms.
for all the following tests with the same number of threads on the same API Endpoint the average response time is somewhere around 4705 ms.</p>

<p>what is the reason for such a big difference in average response time ?
Does JMeter cache any files on the first test and use the same cached files on all following tests ?
If yes how do I avoid this ?</p>

<p>I am new to JMeter any help in this regards will be much appreciated.</p>
",https://stackoverflow.com/questions/42526045/the-average-response-time-differs-largely-while-load-testing-the-same-api-endpoi,['jmeter'],967,TRUE,0,1
How to do load testing for a web application built using JSON restful web service at server side?,"<p>this question is not about which tools to use to do load testing ...</p>

<p>It is a more general question about what should be tested.</p>

<p>background: <br></p>

<p>years ago, most enterprise web application used to be designed that front end and backend are messed together, and any kinds of business logic is done at server side. while front end's responsibility is only to show the UI.  </p>

<p>when load testing such application, whether it is Oracle EBS or SAP's things, or application built using framework like Struts. </p>

<p>What we do is to:<br>
 1. design a user test case. (like login, search , put sth to shopping car, then check log)<br>
 2. write testing script to archive such test case (underline, it's pure http call to server side )<br>
 3. using LT tool to generate lots of virtual user together to run such test. 
(it will just behave like that there are lots of  user do the same business logic together)</p>

<p>While now , the whole thing changed after  after front end and backend totally separated. </p>

<p>Lot of business logic can be put in front end, and server end only has separate restful web service...</p>

<p>What i found is that we can't do load testing like before. </p>

<p>Just because user's test case can't be mapped to http communication.  As some task is totally done in front end...</p>

<p>BUT in such new world, how to do performance testing?  Just performance test the JSON restful web service? How about the static resource transferred from service side to browser ?</p>

<p>I need suggestions from these who done lot of performance/load testing for such JSON restful web service application..</p>
",https://stackoverflow.com/questions/44771199/how-to-do-load-testing-for-a-web-application-built-using-json-restful-web-servic,"['web-services', 'rest', 'testing', 'performance-testing', 'load-testing']",166,TRUE,0,2
Using VS Enterprise to run load tests on a site behind a firewall,"<p>I have visual stuido enterprise 2015 and am using VSTS to load test staaging and production sites which are on the internet. I believe the only way to load test was using VSTS in the cloud. This prevents me for load testing a dev site behind a firewall. Is there a way to do this? I finally got my visual studio load testing based on another ticket here:
<a href=""https://stackoverflow.com/questions/47822386/using-visual-studio-team-services-vsts-to-run-web-load-testing-with-ssl-error/47822598?noredirect=1#comment82620006_47822598"">Stack Overflow Answer</a></p>
",https://stackoverflow.com/questions/47842613/using-vs-enterprise-to-run-load-tests-on-a-site-behind-a-firewall,"['c#', 'visual-studio', 'visual-studio-2015', 'azure-devops', 'load-testing']",75,TRUE,0,1
file then how to run jmeter script for load testingHow to run jmeter laod testing if add ip address in hosts?,"<p>Jmeter load testing if add ip address in hosts file.i have already tried in host file configuration</p>
",https://stackoverflow.com/questions/44725882/file-then-how-to-run-jmeter-script-for-load-testinghow-to-run-jmeter-laod-testin,"['apache', 'jmeter']",141,FALSE,0,1
How to test load on Set of different API&#39;s,"<p>I am doing load testing in Soap ui and working on cab booking application so set api like this for example</p>

<pre><code>userSingin ,GetlocationDetails,bookCab,getDriverDetails,acceptRide and completeRide so on.
</code></pre>

<p>It will become on loop(on completing of one ride successfully ) so this seniors may  happened like  1000 or 10000 times.</p>

<p>The question is  how to interlink api do it a single entity and perform load test using soap ui,  jmeter or any load testing tools,or by coding  please help me sort out problem with simple demo.</p>
",https://stackoverflow.com/questions/46128181/how-to-test-load-on-set-of-different-apis,"['rest', 'jmeter', 'soapui', 'load-testing', 'web-api-testing']",164,TRUE,-2,1
Load distribution of transaction in JMeter,"<p>During load testing can we achieve different transaction rate in same flow?  </p>

<p>For example: I have a e-commerce web based application to do the load testing and I have to design the test in order to achieve TPH as below.</p>

<p>a. Transaction A: Login (100 transaction/hour)
b. Transaction B: Search Product (500 transaction/hour)
c. Transaction C: Payment (300 transaction/hour)
d. Transaction D: Logout (100 transaction/hour)</p>

<p>Could you please help me with Jmeter element configuration also?</p>
",https://stackoverflow.com/questions/45991690/load-distribution-of-transaction-in-jmeter,"['jmeter', 'performance-testing', 'load-testing']",820,TRUE,1,2
Can I write assertions for Artillery Load Test results?,"<p>I am using <a href=""https://artillery.io/"" rel=""nofollow noreferrer"">Artillery</a> for load testing my rest APIs. I want to write assertion for the artillery results using mocha. Is it possible?</p>
",https://stackoverflow.com/questions/44343351/can-i-write-assertions-for-artillery-load-test-results,"['javascript', 'mocha.js']",651,TRUE,3,1
Need a way to record JDBC requests,"<p>I am new to JMeter and, I'm trying to perform load testing. I got many ideas about HTTP request recording. </p>

<p>But now I have to perform Load Testing on a MS SQL database. But I am not getting any recording tool or any way to extract all SQL queries that are performed in background for the JDBC request. I tried ""SQL Server Profiler"" but I did not get much from there. Is there any other ways or tools to extract queries for application?</p>
",https://stackoverflow.com/questions/42290793/need-a-way-to-record-jdbc-requests,"['sql-server', 'jdbc', 'jmeter']",88,FALSE,0,1
Can we access firebase during performance testing of mobile apps using Apache jMeter?,"<p>I was planning to perform a load testing on an ios application which uses firebase for data storage.I have successfully recorded the test plan using Apache jMeter. But when I run the test plan in jMeter, it fails to access the firebase. Is there any way to access firebase during the process of load testing?</p>

<p>I have one field in firebase ""last_logged_in_time"". When I login with the ios app in iphone, the time gets automatically updated in the firebase . But when i run the test script using jMeter it is not updating.</p>
",https://stackoverflow.com/questions/46598468/can-we-access-firebase-during-performance-testing-of-mobile-apps-using-apache-jm,"['firebase', 'jmeter', 'performance-testing']",899,TRUE,0,2
SYSTEM_ERROR: system encountered unexpected error. Function invocation was interrupted,"<p>I create project on firebase Blaze Plan and I load testing with J Meter with 300 Invocations/Second and I got error from Logs in Cloud Function. What does this error mean?</p>

<p>Very confused. Thanks.</p>

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

<p><a href=""https://i.stack.imgur.com/Den8y.png"" rel=""noreferrer""><img src=""https://i.stack.imgur.com/Den8y.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/47471065/system-error-system-encountered-unexpected-error-function-invocation-was-inter,['google-cloud-functions'],835,FALSE,8,1
Why on every play jmeter gives different results for same data?,"<p>Why on every play jmeter gives different results for same data? Its difficult to extract actual results for load testing because every time we have different result</p>
",https://stackoverflow.com/questions/43997527/why-on-every-play-jmeter-gives-different-results-for-same-data,['jmeter'],86,FALSE,0,0
"What causes a ECONNREFUSED, Connection refused at Error (native) in an AWS node Lambda?","<p>In load testing our AWS Lambda node function, we have got the following error message in our Cloudwatch logs:</p>

<pre><code>2017-10-16T03:13:15.606Z    e95f33aa-b21f-11e7-8f1a-89b123118211    Error: ECONNREFUSED, Connection refused at Error (native)
</code></pre>

<p>This is the only line that is output and it only happens during load testing. With 10,000 requests, there are 200 of these errors and they happen towards the beginning of the load test.</p>

<p>Eventually everything succeeds because of retries but it would be nice to know what causes this. We have a try-catch block wrapping all of our code but it's not catching this error.</p>

<p>What causes this error and how can it be avoided or caught?</p>
",https://stackoverflow.com/questions/46762906/what-causes-a-econnrefused-connection-refused-at-error-native-in-an-aws-node,"['node.js', 'amazon-web-services', 'aws-lambda', 'serverless-framework']",7550,FALSE,0,2
Web page performance testing,"<p>I'm not new in load testing. My job is to create a load testing with jmeter. I did not bother with tread number, clients, memory consumption ,etc. For jmeter load testing i used 3 client , each of them run 1000 threads (30% CPU was used), results were expected all the time. No problems were detected on SUT or clients.</p>

<p>I'm put before new challenge. Now i have to execute web performance testing on browsers.I don't know if i create a correct picture about performance testing.
I want to measure, first byte, load time on web page, java script, Ajax, etc,... </p>

<p>Web automation tests are written in selenium. Selenium is not mentioned for web load testing.</p>

<p>Lets say to simulate 1.000 users clicking ob browser, this means a lot of VM, collecting results from browsers(DOM counters), SUT is managed by PS script to take data from perf. counters. I see a problem a lot of VM means also financial budget which i do not have.</p>

<p>I'm in doubt if the upper approach is correct or should change my approach.
One of these tools is Visual Studio Ultimate edition. But i still need a lot of VM to simulate 1,000 users - browsers. </p>

<p>On the internet i read a documents, descriptions, top tools.</p>

<p>How do you do changeling web page performance testing on you company.</p>

<p>Any help about web page performance will be appreciated.</p>

<p>Thanks,</p>

<p>Dani</p>
",https://stackoverflow.com/questions/47415503/web-page-performance-testing,"['javascript', 'java', 'visual-studio', 'selenium', 'performance-testing']",370,TRUE,0,1
Jmeter master slave setup in AWS instances,"<p>I have a task of doing distributed load testing using jmeter . Can someone help me with setup process for aws instances and configuration of jmeter in slaves ? Also jmeter master slave configuration ?</p>
",https://stackoverflow.com/questions/47258978/jmeter-master-slave-setup-in-aws-instances,"['amazon-web-services', 'jmeter', 'load-testing']",272,FALSE,2,0
getting error response in jmeter while testing google site,"<p>while during load testing for one site through j meter getting below </p>

<blockquote>
  <p>error:Response code: Non HTTP response code:
  org.apache.http.conn.ConnectTimeoutException Response message: Non
  HTTP response message: Connect to 172.17.4.213:80 timed out</p>
</blockquote>
",https://stackoverflow.com/questions/45794251/getting-error-response-in-jmeter-while-testing-google-site,['jmeter'],268,FALSE,-1,2
Heap memory chart in Dynatrace,"<p>I did the load testing in staging environment and I need to check heap memory usages in dashlets. Currently I am using Dynatrace 7.0 client.</p>

<p>Could you please help me with this?</p>
",https://stackoverflow.com/questions/47566866/heap-memory-chart-in-dynatrace,"['heap-memory', 'dynatrace']",524,TRUE,0,1
"Can we use gatling or Jmeter to perform operations such as input text, click on element, select dropdown?","<p>Can we perform <strong>functional-load</strong> testing using gatling or jmeter?</p>

<p>By Functional load testing I mean to perform certain operations on web application. User performs operations such as </p>

<ul>
<li>Clicking on link</li>
<li>Entering text into a combo box (textbox + Dropdown)</li>
<li>Enter text into multiple textboxes</li>
<li>And many other operations</li>
</ul>

<p>I want to load web app with <strong>N</strong> number of users to identify the point where the application breaks.</p>

<p>I have tried using Selenium Webdriver with TestNG and its <a href=""http://testng.org/doc/documentation-main.html#annotations"" rel=""nofollow noreferrer"" title=""invocationCOunt"">invocationCount</a> and thread-pool-size. This opens 100's of browsers which degrades the performance of the systems on which I am running the tests.</p>

<p>Thank you for your help in advance.</p>
",https://stackoverflow.com/questions/43874813/can-we-use-gatling-or-jmeter-to-perform-operations-such-as-input-text-click-on,"['selenium-webdriver', 'jmeter', 'gatling']",317,TRUE,-1,2
How can I programmatically load cookies inside a Visual Studio Web Performance Test?,"<p>I work for a Canadian government department, and our group uses primarily tools from Microsoft, including Visual Studio. We need to carry out load-testing on one of our department's web applications. I have no prior experience with load-testing, but from what I understand, this would entail creating web performance tests recording various testing scenarios, and then creating load tests pointing to these web performance tests.</p>

<p>One complication is that our application relies on an external authentication service, a service used by other applications (and other departments). Our service agreement with this service provider explicitly stipulates that we not subject the service to load-testing.</p>

<p>So we'll need to find a way to bypass the authentication mechanism to carry-out our load-testing. Here's the outline of one strategy a colleague and I came up with:</p>

<ul>
<li>Log-in normally to the web site, going through the authentication
   service as normal.</li>
<li>Use developer tools installed in the browser to capture the cookie(s) created when authenticating</li>
<li>Create a web performance test, and add some code to the web performance test to use the cookie(s), and thereby use the session I
   had established when logging in manually.</li>
</ul>

<p>But I'm not entirely confident that this is the right approach. And even if it is - I have no prior experience with creating web performance tests or load tests, so I'm a bit lost as to go about programmatically loading a cookie inside a web performance test.</p>

<p>Does anyone have any suggestions?</p>
",https://stackoverflow.com/questions/43500551/how-can-i-programmatically-load-cookies-inside-a-visual-studio-web-performance-t,"['asp.net', 'visual-studio', 'performance-testing', 'load-testing']",686,FALSE,0,2
Should I make identical thread groups in JMeter to simulate simultaneous user activity?,"<p>When doing load testing in JMeter, should I make multiple identical thread groups to simulate multiple users simultaneously performing actions on my site? Or does one thread group with multiple threads/users in it suffice?</p>
",https://stackoverflow.com/questions/44798196/should-i-make-identical-thread-groups-in-jmeter-to-simulate-simultaneous-user-ac,"['performance', 'jmeter', 'load']",136,TRUE,-1,2
SQL Azure DTUs at 100% troubleshoot,"<p>I am performing load testing of my app using visual studio load tests</p>

<p>my tests get data from about 40 tables in sql azure database in seperate api request for each table.</p>

<p>The load testing is simulating around 200 users over 10 mins and about 80-100 requests per second.</p>

<p>During the tests, I have seen that my SQL Azure server DTUs are touching 100% which is clearly not a good sign for the production performance.</p>

<p>This also stays the same, even if I Scale Up my Database with more DTUs.</p>

<p>How do I troubleshoot or address the issue , if it's a specific query which I need to look at or just a scaling issue to address</p>
",https://stackoverflow.com/questions/46001406/sql-azure-dtus-at-100-troubleshoot,"['sql-server', 'azure', 'azure-sql-database', 'load-testing']",2805,TRUE,2,2
Stress testing of ParseServer app,"<p>I have an app with ParseServer back-end and Ionic2 front-end. I need to simulate multiple users to stress test the back-end. </p>

<p>What load testing tools would you recommend to use for such setup?</p>

<p>Thanks. </p>
",https://stackoverflow.com/questions/42682868/stress-testing-of-parseserver-app,"['ionic2', 'load-testing', 'parse-server', 'stress-testing']",331,TRUE,0,3
Jmeter returing &quot;Loading AppComponent content here &quot; as response data,"<p>I am trying to do load testing for a webpage(angular 2), the response data i am getting in tool is ""Loading Appcomponent content here .."".</p>

<p>I need the full html to be displayed in response data. Can anyone help?</p>
",https://stackoverflow.com/questions/45057479/jmeter-returing-loading-appcomponent-content-here-as-response-data,['jmeter'],57,FALSE,0,1
How to consolidate the response codes from jtl file,"<p>I am using the JMeter for doing load testing. How can I consolidate the response codes from a generated JTL files?</p>

<p>Are there any best practices to generate the JTL file? (Like To get failed sampler request and response)</p>
",https://stackoverflow.com/questions/46169036/how-to-consolidate-the-response-codes-from-jtl-file,"['jmeter', 'performance-testing', 'load-testing']",537,TRUE,0,1
Transfer file from one machine to other using jmeter,"<p>I'm new to jmeter and trying to upload file from one system(linux eg 10.20.30.108 is my source) to other(eg10.20.30.107 is my destination)  using jmeter to perform load testing.
So can anyone suggest me the way to do so? </p>
",https://stackoverflow.com/questions/46771814/transfer-file-from-one-machine-to-other-using-jmeter,"['jmeter', 'performance-testing', 'jmeter-plugins']",1059,FALSE,0,1
Is there a good way to capture AJAX traffic during a JMeter test?,"<p>We're looking to start doing some load testing and have experimented with JMeter before. The main complaint is that our current tests don't record any of the AJAX traffic in the web application. Is it possible to record traffic during the tests? </p>
",https://stackoverflow.com/questions/46916816/is-there-a-good-way-to-capture-ajax-traffic-during-a-jmeter-test,"['jquery', 'ajax', 'google-chrome', 'jmeter', 'jmeter-plugins']",159,TRUE,2,1
Scala Gatling POST after GET doesn&#39;t work,"<p>I learing garling framework for load testing and I have problem with send POST request with json body after GET redirect, second request return status 400. Part with sending POST without GET work properly. Anyone have idea why it doesn't work?</p>

<pre><code>var token: String = """"
var tokenJson: String = """"
val scn2 = scenario(""SCENARIO2"")
.exec(http(""open"")
  .get(""/core/auth"")
  .check(status.is(302))
  .check(header(""Location"").saveAs(""url"")))
.exec(session =&gt; {
  token = session.get(""url"").as[String].split(""/"").last
  tokenJson = """"""{""token"":"""""""" + token + """"""""}""""""
  print(tokenJson)
  session
}).pause(1 second)
.exec(http(""openPOST"")
  .post(""/core/init"").header(""Content-Type"", ""application/json"")
  .body(StringBody(tokenJson)).asJSON
  .check(status.is(200))
  .check(jsonPath(""$.basketToken"").saveAs(""basketToken"")))
.exec(session =&gt; {
  val basketToken = session.get(""basketToken"").as[String]
  println(""BasketToken "" + basketToken.orElse(""nothing""))
  session
})
</code></pre>
",https://stackoverflow.com/questions/46489775/scala-gatling-post-after-get-doesnt-work,"['scala', 'gatling']",727,TRUE,0,1
Searching Query in solr using Jmeter,"<p>I configured the solr Search server in Tomcat server. I started tomcat server with below extra parameters.</p>

<pre><code>Dcom.sun.management.jmxremote.port=9191
Dcom.sun.management.jmxremote.authenticate=false
Dcom.sun.management.jmxremote.ssl=false
</code></pre>

<p>Now I wants to test solr Searching request in my JMeter for load testing purpose. Will I be able to do it in Jmeter?</p>
",https://stackoverflow.com/questions/41442620/searching-query-in-solr-using-jmeter,"['jmeter', 'performance-testing', 'load-testing', 'solrcloud']",1382,TRUE,0,1
Unable to find free machine on self-provisioned load test rig,"<p>We have recently been performing load testing as part of a build(using the Cloud Load Test build task) using a self-provisioned load testing rig deployed using the following quick start template -</p>

<p><a href=""https://github.com/Azure/azure-quickstart-templates/tree/master/101-vsts-cloudloadtest-rig"" rel=""nofollow noreferrer"">https://github.com/Azure/azure-quickstart-templates/tree/master/101-vsts-cloudloadtest-rig</a></p>

<p>This has been working well for us, but something seems to have changed and this process no longer works. When the load test task starts we now get the following error:</p>

<pre><code>2017-04-24T14:32:07.4831251Z [Message]This load test was run using self-provisioned rig 'default'. No virtual-user minutes (VUMs) will be charged for this run.
2017-04-24T14:32:07.4881254Z ##[error]Microsoft.PowerShell.Commands.WriteErrorException: Test run could not be started using the self-provisioned rig 0ebc4aad-33b2-495e-a75a-213d4607976b. Number of free machines available in the rig are less than the required number. (Requested – 1, Available - 0, In-Use – 0, Offline – 3).
</code></pre>

<p>Using the ManageVSTSCloudLoadAgent.ps1 script</p>

<p><a href=""https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/23/testing-privateintranet-applications-using-cloud-based-load-testing/"" rel=""nofollow noreferrer"">https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/23/testing-privateintranet-applications-using-cloud-based-load-testing/</a></p>

<p>I can see that there is an agent group called ""LoadTesting"" with my two provisioned VM's in it, which shows them both as Free. However the GUID for this LoadTesting group does not match the one in the error message that the build task is attempting to use. According to the script there is only one rig available so I dont know where the cloud task is getting this other one from.</p>

<p>How can I change the task to use the correct group? Or change the 'LoadTesting"" group to be the default? </p>

<p>I can't find anywhere within the load test definitions or through the team services site where I can make changes to to which rig it uses.</p>
",https://stackoverflow.com/questions/43606096/unable-to-find-free-machine-on-self-provisioned-load-test-rig,"['visual-studio-2015', 'azure-devops', 'visual-studio-2017', 'msloadtest']",354,TRUE,1,1
Does Bamboo allows to SSH Jmeter master/slave public IPs or Bamboo always connects/SSH to Private IP only?,"<p>Automating the Jmeter distributed load testing using Bamboo agent (CI).
We have used Jmeter docker swarm for distributed load testing, used docker-machine to create Jmeter master and slave machines which will give public IPs of these instances (used dockerfiles for this). Able to run successfully from local machine (Linux/Windows), able to communicate master, slave and get results from local. However when wanted to use Bamboo agent to automate the process facing an issue. Bamboo is not able to SSH to these created master and slave machines (used .sh script task to run these docker files and create master/slave docker-machines). Does Bamboo allows to SSH Jmeter master/slave public IPs or Bamboo always connects/SSH to Private IP only?</p>
",https://stackoverflow.com/questions/43100045/does-bamboo-allows-to-ssh-jmeter-master-slave-public-ips-or-bamboo-always-connec,"['jmeter', 'bamboo', 'docker-machine']",139,FALSE,0,0
How to execute Redshift queries in parallel,"<p>I need to simulate some basic load testing against my Redshift cluster and I need to execute around 20 SELECT queries in parallel.</p>

<p>Since stored procedures are not supported by Redshift, I would love to get some ideas on how I can accomplish this.</p>
",https://stackoverflow.com/questions/47393004/how-to-execute-redshift-queries-in-parallel,"['amazon-redshift', 'aws-redshift']",3750,TRUE,1,2
JMeter for Clustered Scenarios,"<p>I have to perform load testing on a load balanced (clustered) system composed of three servers.</p>

<p>Is it a good practice to test via JMeter each server ? Or maybe it would be better testing the whole cluster calling the load balancer dedicated endpoint ?</p>

<p>Thanks !</p>
",https://stackoverflow.com/questions/47838319/jmeter-for-clustered-scenarios,"['performance', 'jmeter', 'load', 'stress-testing']",512,TRUE,1,3
While Controller not working properly,"<p>I am using JMeter for load testing. I am using <code>While Controller</code> to give a condition. The condition is:</p>

<pre><code>${__javaScript(""${__property(startingDocs)}"" != ""${__property(presentDocs)}"" || ""${__property(presentDocs)}"" &gt; 0,)}
</code></pre>

<p>Using this condition, the thread is running infinite time. But when I remove the statement after <code>OR</code>, it works fine i.e.</p>

<pre><code>${__javaScript(""${__property(startingDocs)}"" != ""${__property(presentDocs)}"")}
</code></pre>

<p>How can I add the condition after using <code>OR</code>?</p>
",https://stackoverflow.com/questions/45886468/while-controller-not-working-properly,"['while-loop', 'controller', 'jmeter']",36,FALSE,0,1
How to run load test for the REST SERVICE in soapui,"<p>I have list of testcases in my testuites for my application. Out of which I need to run load test for the app. </p>

<p>Example of my first testcase is </p>

<pre><code>Steps: 
1. Login as admin
1a. Extract session from response in step 1
2. Data source for list of users to be added
3. Add users (data will be taken from step 2)
4. Verify the response using groovy
5. Dataloop
6. Logout admin

Testcase 2:
1. Data source list of users added in testcase 1
2. Login new users
2a. Extract session
3. Change password
4. Login again with the updated password
5. Logout new user
6. Dataloop 
</code></pre>

<p>How to do load testing. Will it run sequentially without changing any step and maintain correct session when on parallel load test??</p>
",https://stackoverflow.com/questions/43291634/how-to-run-load-test-for-the-rest-service-in-soapui,['soapui'],350,FALSE,4,0
JMeter - Test all APIs in the deployed war file,"<p>I want to do load testing of all APIs in the deployed war file of my Spring-boot project. Is it possible to configure JMeter to test all APIs in the war ? Or is there a way to programatically get all API names (RequestMapping) in the war file ?</p>
",https://stackoverflow.com/questions/45592600/jmeter-test-all-apis-in-the-deployed-war-file,"['spring-boot', 'jmeter']",407,TRUE,0,1
Can we create bulk account with Jmeter?,"<p>In order to do load testing of ecommerce site, i have to create 40 different accounts. So tried to do this with Jmeter and CSV upload and script is working fine without any error. But when I'm trying to logging with those accounts getting an error,""Invalid Username/Password.""
<a href=""https://i.stack.imgur.com/SSOO1.png"" rel=""nofollow noreferrer"">Image</a></p>
",https://stackoverflow.com/questions/45953999/can-we-create-bulk-account-with-jmeter,"['jmeter', 'e-commerce', 'user-accounts']",61,FALSE,1,0
How to pass unique data from csv file into jmeter,"<p>I am using the jmeter for load testing a web application.I am using csv Data Set Config to pass email to test login scenario.While i am running with 100 concurrent users,it is picking same email from csv file.How can i make sure that it will use one email only once.</p>
",https://stackoverflow.com/questions/44059141/how-to-pass-unique-data-from-csv-file-into-jmeter,['jmeter'],990,FALSE,-1,2
Constant load (x new requests per second),"<p>Is there a way to to configure a performance test case with constant load (say, 3 new requests per second for 1 minute)?</p>

<p>Other load testing libraries have this feature to set the request rate (e.g. Artillery.io, Vegeta). <code>k6</code> has a way to set <code>VUs</code>, but VU does not make a new request until the previous iteration is finished.</p>
",https://stackoverflow.com/questions/47886414/constant-load-x-new-requests-per-second,"['javascript', 'performance-testing', 'load-testing', 'k6']",2899,TRUE,5,2
Jmeter Mocking the Respose (Stubs) from JMS Endpoint,"<p>I am planning to use Jmeter for performance and load testing .</p>

<p>we have JMS/Camel as endpoints for request and response.</p>

<p>I dont have actual server to respond to the request. i need to mock the response by creating stubs.</p>

<p>is it possible in Jmeter or suggest me any other tools if any?</p>
",https://stackoverflow.com/questions/44557999/jmeter-mocking-the-respose-stubs-from-jms-endpoint,"['java', 'performance', 'jmeter', 'performance-testing', 'jmeter-plugins']",635,FALSE,1,0
Jmeter 2.13 vs Jmeter 3.0 Which is the better to run load Test?,"<p>Currently, we are using the JMeter 2.13 version for load testing. I am planning to migrate to JMeter 3.0 version.</p>

<p>I have not started working on the JMeter 3.0 till now.I don't know pros and cons of it.</p>

<p>Please suggest me, Shall I upgrade scripts to 3.0 or shall I continue with Jmeter2.13.</p>
",https://stackoverflow.com/questions/44128183/jmeter-2-13-vs-jmeter-3-0-which-is-the-better-to-run-load-test,"['jmeter', 'performance-testing', 'load-testing']",279,TRUE,1,2
hp loadrunner using hand coding,"<p>I am new to HP Load Runner and I would like to ask you following questions.</p>

<ol>
<li>Can we perform load testing without using Recordings?</li>
<li>Can we perform keyword/data driven testing with HP load Runner using data in CSV/Excel or etc?</li>
</ol>

<p>I will appreciate if anyone can share examples or methodologies.</p>
",https://stackoverflow.com/questions/46849377/hp-loadrunner-using-hand-coding,"['performance', 'testing', 'performance-testing', 'loadrunner']",94,FALSE,0,1
Run http sample in Jmeter for 1 minute and generate only 200 requests,"<p>Please help me to achieve this type of load testing in Jmeter,i have configured Scheduler configuration but it is not running as per Duration as 60 minutes with in 10 seconds it is completing the requests and my Vusers -5 and Loop Count-50</p>

<p>Please help how to prepare this type of scenarios.</p>
",https://stackoverflow.com/questions/42482851/run-http-sample-in-jmeter-for-1-minute-and-generate-only-200-requests,"['jmeter', 'performance-testing']",822,TRUE,0,1
WSO2 Analytics database size too large,"<p>We are using api manager(2.1.0) and configured the analytics.</p>

<p>We have done the load testing and the event data created by analytics in the database crossed 2 GB.</p>

<p>Is there any way to control the size of the database. OR Is there any impact if we use the h2 database for the processed data.</p>

<p>We are using oracle DB</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/45272106/wso2-analytics-database-size-too-large,"['wso2', 'wso2-api-manager', 'wso2-das']",571,TRUE,4,3
Golang how can I stop an Http request from continuing to fire,"<p>I was doing some load testing earlier today and found something peculiar, sometimes an Http request doesn't not die and keeps on firing . How can I correct that in my Golang code for instance see the image below . I am load testing loading 1,000 HTTP request but if you notice on the 1,000th request below it takes 392,999 milliseconds or <strong>392 seconds</strong> while the rest of the request takes <strong>2.2 seconds</strong> on average . I have done the test multiple times and sometimes it hangs . This is my code</p>

<pre><code>func Home_streams(w http.ResponseWriter, r *http.Request) {
    var result string

    r.ParseForm()

    wg := sync.WaitGroup{}

    wg.Add(1)
    go func() {


    defer wg.Done()

    db.QueryRow(""select json_build_object('Locations', array_to_json(array_agg(t))) from (SELECT latitudes,county,longitudes,""+
        ""statelong,thirtylatmin,thirtylatmax,thirtylonmin,thirtylonmax,city""+
        "" FROM zips where city='Orlando' ORDER BY city limit 5) t"").Scan(&amp;result)

    }()
    wg.Wait()

    fmt.Fprintf(w,result)
}
</code></pre>

<p>and I connect to the database with this code</p>

<pre><code>func init() {
    var err error
    db, err = sql.Open(""postgres"",""Postgres Connection String"")

    if err != nil {
        log.Fatal(""Invalid DB config:"", err)
    }
    if err = db.Ping(); err != nil {
        log.Fatal(""DB unreachable:"", err)
    }
}
</code></pre>

<p>I would say that about 10 % of the time I load test this issue happens and the only way it stops is if I stop the requests manually otherwise it keeps on going indefinitely . I wonder if maybe this issue is addressed here <a href=""https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779#.83uzpsp24"" rel=""nofollow noreferrer"">https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779#.83uzpsp24</a>  I am still learning my way around Golang .
<a href=""https://i.stack.imgur.com/DiJND.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/DiJND.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/42080450/golang-how-can-i-stop-an-http-request-from-continuing-to-fire,['go'],676,TRUE,2,1
Having issue for load test scripting for application implemented using silverlight and CSLA,"<p>We are testing application which is implemented using Silverlight. The development team has used CSLA for encryption and decryption of request and response body. A message body is in an encrypted format, we are facing issues for co-relation and parameterization. 
Anyone having experience of load testing for such kind of application? We are using VSTS 2015</p>
",https://stackoverflow.com/questions/45952648/having-issue-for-load-test-scripting-for-application-implemented-using-silverlig,"['silverlight', 'azure-devops', 'load-testing', 'csla']",48,FALSE,0,1
using JMeter if controller with csv input,"<p>I'm load testing an API where I am taking my test data from a CSV</p>

<p>Here is how my csv looks like</p>

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

<p>and my if controller is like this</p>

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

<p>However, when I run the thread group, I get the following error:</p>

<pre><code>2017/08/04 09:52:14 ERROR - jmeter.control.IfController: Check Country: error while processing [USA==USA]  
org.mozilla.javascript.EcmaError: ReferenceError: ""USA"" is not defined. (&lt;cmd&gt;#1)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3951)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3929) 
at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:4019)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1851)   
at org.mozilla.javascript.gen._cmd__4._c_script_0(&lt;cmd&gt;:1)  
at org.mozilla.javascript.gen._cmd__4.call(&lt;cmd&gt;)   
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)     
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)  
at org.mozilla.javascript.gen._cmd__4.call(&lt;cmd&gt;)   
at org.mozilla.javascript.gen._cmd__4.exec(&lt;cmd&gt;)   
at org.mozilla.javascript.Context.evaluateString(Context.java:1219)     
at org.apache.jmeter.control.IfController$RhinoJsEngine.evaluate(IfController.java:105)     
at org.apache.jmeter.control.IfController.evaluateCondition(IfController.java:187) 
at org.apache.jmeter.control.IfController.next(IfController.java:240)   
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222)    
at org.apache.jmeter.control.GenericController.next(GenericController.java:176) 
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222)    
at org.apache.jmeter.control.GenericController.next(GenericController.java:176)
at org.apache.jmeter.control.LoopController.next(LoopController.java:123)   
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222)    
at org.apache.jmeter.control.GenericController.next(GenericController.java:176) 
at org.apache.jmeter.control.LoopController.next(LoopController.java:123)   
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:87) 
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)    
at java.lang.Thread.run(Thread.java:745)
</code></pre>

<p>I'm new to jmeter, so I'm guessing I'm missing something here. Any help would be appreciated.</p>
",https://stackoverflow.com/questions/45498422/using-jmeter-if-controller-with-csv-input,"['csv', 'jmeter', 'load-testing']",1338,TRUE,0,2
What is the need of uploading CSV file for performance testing in blazemeter?,"<p>I am new in Testing world and just started working on performance and load testing, I just want to know that while we record script in Blazemeter and upload a jmx file for test then why we upload a CSV file with it and What data we need to enter in that CSV file. pls help.
Thank you</p>
",https://stackoverflow.com/questions/45902968/what-is-the-need-of-uploading-csv-file-for-performance-testing-in-blazemeter,['testing'],28,FALSE,0,1
failed to deploy kubernetes controller on google container engine,"<p>my yaml file:</p>

<pre><code>kind: ReplicationController
apiVersion: v1
metadata:
  name: locust-master
  labels:
    name: locust
    role: master
spec:
  replicas: 1
  selector:
    name: locust
    role: master
  template:
    metadata:
      labels:
        name: locust
        role: master
    spec:
      containers:
        - name: locust
          image: gcr.io/MY_PROJECT/locust-tasks:latest
          env:
            - name: LOCUST_MODE
              key: LOCUST_MODE
              value: master
            - name: TARGET_HOST
              key: TARGET_HOST
              value: http://MY_WEBSITE.io
          ports:
            - name: loc-master-web
              containerPort: 8089
              protocol: TCP
            - name: loc-master-p1
              containerPort: 5557
              protocol: TCP
            - name: loc-master-p2
              containerPort: 5558
              protocol: TCP
</code></pre>

<p>running <code>kubectl create -f locust-master-controller.yaml</code>
gives:</p>

<p>error: error validating ""locust-master-controller.yaml"": error validating data: [found invalid field key for v1.EnvVar, found invalid field key for v1.EnvVar]; if you choose to ignore these errors, turn validation off with --validate=false</p>

<p>I am basically following the instructions word for word on:
<a href=""https://github.com/GoogleCloudPlatform/distributed-load-testing-using-kubernetes"" rel=""nofollow noreferrer"">https://github.com/GoogleCloudPlatform/distributed-load-testing-using-kubernetes</a></p>
",https://stackoverflow.com/questions/44789565/failed-to-deploy-kubernetes-controller-on-google-container-engine,"['google-cloud-platform', 'kubernetes', 'google-kubernetes-engine']",86,TRUE,0,1
Passing Cookie as a Request Header - SSO JMeter,"<p>I'm doing load testing for an application using JMeter for which I need to perform SSO authentication. I have to send a cookie as request header like I it is done below:</p>

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

<p>I have the value that I need to send, which I have extracted using Regular Expression Extractor on a previous Request. How can I achieve this?</p>

<p>I am using JMeter 3.1</p>
",https://stackoverflow.com/questions/45637220/passing-cookie-as-a-request-header-sso-jmeter,"['testing', 'cookies', 'jmeter', 'single-sign-on', 'performance-testing']",4330,TRUE,2,2
Request Failed with 400 | Gatling 2.2.5,"<p>I am using Gatling tool for my load testing of API. I thought of isolating process into Objects. But when i run my scenario i get the below error:</p>

<pre><code>Simulation testapi.AdvancedSimulationStep05 started...
14:12:50.981 [WARN ] i.g.h.a.ResponseProcessor - Request 'PostMultiline' failed: status.find.in(200,304,201,202,203,204,205,206,207,208,209), but actually found 400
14:12:50.981 [WARN ] i.g.h.a.ResponseProcessor - Request 'PostMultiline' failed: status.find.in(200,304,201,202,203,204,205,206,207,208,209), but actually found 400
</code></pre>

<p>Below is my Scala Simulation code:</p>

<pre><code>class AdvancedSimulationStep05 extends Simulation {

  object Search {

    val search = exec(
            http(""PostMultiline"")
            .post(""/t_rates/v1/quotations"")
            .header(""Content-Type"", ""application/json"")
            .body(RawFileBody(""test.json"")).asJSON
        )
  }

  val httpConf = http
    .baseURL(""https://central-us.rates"")
    .acceptHeader(""application/json, */*"")
    .acceptCharsetHeader(""UTF-8"")

  val users = scenario(""Users"").exec(Search.search)
  val admins = scenario(""Admins"").exec(Search.search)

  setUp(
    users.inject(rampUsers(10) over (10 seconds)),
    admins.inject(rampUsers(2) over (10 seconds))
  ).protocols(httpConf)
}
</code></pre>

<p>I tried several combination of running the simulation, but i still get the error. It would be great if i get some advice from the experts.</p>
",https://stackoverflow.com/questions/44881301/request-failed-with-400-gatling-2-2-5,"['scala', 'gatling', 'scala-gatling']",774,FALSE,1,0
JMeter reponse headers values before redirection on status code 302,"<p>I am performing load testing on an API using JMeter. For that, I call an oauth link, which returns a code in the headers which I use for further testing. But the link redirects to another link and I am unable to capture the value of the response headers when a response with status code 302 is returned. How can I do that.</p>
",https://stackoverflow.com/questions/45521072/jmeter-reponse-headers-values-before-redirection-on-status-code-302,"['jmeter', 'performance-testing', 'load-testing']",1991,TRUE,0,2
"jmeter run in headless with 5000 user, which is better option to save results in CSV or XML or JTL","<p>Is it good to save the data, when jmeter running in high load and distributed load testing.
we are running the jmeter with 5000 users in AWS server. need to report the results of below.</p>

<ol>
<li>throughput over time and over active users. </li>
<li>response time over TPS.</li>
<li>aggregate report.</li>
</ol>

<p>So which is better option to save CSV or XML or JTL.</p>
",https://stackoverflow.com/questions/44255490/jmeter-run-in-headless-with-5000-user-which-is-better-option-to-save-results-in,"['testing', 'load', 'performance-testing']",187,TRUE,0,1
webtest file opens as xml in visual studio,"<p>I am using Visual Studio 2015 Community. I am doing GettingStartedWithLoadTesting. I am trying to open the SampleWebTest.webtest file but it opens as xml. It does not open how it did on the school computer. I think the school computer has Visual Studio Enterprise.  I tried ""open with"" but there was no option available for Load Testing Editor.</p>

<p>Any help appreciated.</p>
",https://stackoverflow.com/questions/42833470/webtest-file-opens-as-xml-in-visual-studio,['visual-studio'],1032,TRUE,0,2
How to test TCP protocol services?,"<p>I have a client and his need is to do Load testing for his TCP protocol services. We have some feasibility in JMeter and I have gone through the link; <a href=""https://www.blazemeter.com/blog/how-load-test-tcp-protocol-services-jmeter"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/how-load-test-tcp-protocol-services-jmeter</a>. </p>

<p>What are the best open source tool available in the Market to test manually?
What are the best practices of it?</p>
",https://stackoverflow.com/questions/43917138/how-to-test-tcp-protocol-services,"['testing', 'network-programming', 'performance-testing', 'load-testing']",3151,TRUE,0,1
Run Junit test in several threads. Can Gatling execute JUnit tests?,"<p>I need to run existing functional autotests in several threads same time (number of threads will be set in param ) with the aim of load testing.
Functional autotest is written in Java with JUnit and is launching from Jenkins.
Is there any way to implement this task without recording the scenario in the Jmeter?
I heard about the possibility of running tests written in Java in the Gatling framework.</p>

<p>Any ideas?</p>
",https://stackoverflow.com/questions/45981636/run-junit-test-in-several-threads-can-gatling-execute-junit-tests,"['java', 'junit', 'performance-testing', 'load-testing', 'gatling']",790,TRUE,4,1
How to send authentication parameters in PUT request - Jmeter,"<p>Trying to perform a load testing using Jmeter tool however can not pass authentication. 
The following curl works well</p>

<pre><code>curl -u &lt;USERNAME&gt;:&lt;PASSWORD&gt; -X PUT ""http://server-url/artifactory/my-repository/my/new/artifact/directory/file.txt"" -T Desktop/myNewFile.txt
</code></pre>

<p>I need to upload file via PUT method based on the curl sample above and can not do it because do not understand where username and password values should be placed in the HTTP Request sampler, in the parameters part, Post Body or somewhere else.</p>

<p>Thanks you</p>
",https://stackoverflow.com/questions/47723809/how-to-send-authentication-parameters-in-put-request-jmeter,"['jmeter', 'put']",1189,TRUE,1,2
Azure Application Insights Scalability,"<p>When azure is hammered with several thousand records (for load testing), app insights does not show all traces and exception. The requests are certainly sent because there is corresponding data in the azure table. The querying was done using both Search and Analytics tab on Azure portal. Is this a known issue? What is the way/tool to view all traces, requests and exceptions?</p>
",https://stackoverflow.com/questions/41900338/azure-application-insights-scalability,['azure-application-insights'],616,TRUE,1,1
Unable to record activities in JMeter for an Application (Xamarin-Android),"<p>I am working on Xamarin-Android project and I am trying to perform load testing with JMeter but its not working. I am unable to see API requests and other details.
When i use native Android application it works fine. 
I am not enabling ProGaurd in any application.
I don't know what is causing the app to not showing API request, please suggest.</p>

<p>Thank You! </p>
",https://stackoverflow.com/questions/45915698/unable-to-record-activities-in-jmeter-for-an-application-xamarin-android,"['android', 'xamarin.android', 'jmeter']",304,FALSE,0,1
Exceptions with Jmeter Perfmon Metrics Collector,"<p>I am facing the below exception when I try to run the Jmeter Load testing.
I need to monitor the CPU and memory of Web and App servers so I have added the Perfmon Metrics Collectors and configured the Server agents on the Web and App Servers</p>

<p>Jmeter Version-3.1 is being installed</p>

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

<p>When I execute the Jmeter Application I face the below exception:</p>

<pre><code>ERROR - jmeter.JMeter: Uncaught exception:  java.lang.NoClassDefFoundError: kg/apc/perfmon/metrics/MetricParams
    at kg.apc.jmeter.perfmon.PerfMonCollector.initiateConnector(PerfMonCollector.java:200)
    at kg.apc.jmeter.perfmon.PerfMonCollector.initiateConnectors(PerfMonCollector.java:175)
    at kg.apc.jmeter.perfmon.PerfMonCollector.testStarted(PerfMonCollector.java:126)
    at org.apache.jmeter.reporters.ResultCollector.testStarted(ResultCollector.java:348)
    at kg.apc.jmeter.vizualizers.CorrectedResultCollector.testStarted(CorrectedResultCollector.java:28)
    at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:204)
    at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:325)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: kg.apc.perfmon.metrics.MetricParams
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
</code></pre>
",https://stackoverflow.com/questions/42954049/exceptions-with-jmeter-perfmon-metrics-collector,"['java', 'performance', 'jmeter', 'jmeter-plugins']",2056,TRUE,0,1
Finding bottleneck of nodejs webserver,"<p>I am using tileserver-gl-light to serve vector tiles. Currently I'm load testing the server, at specific values there is a drastic increase in request latency. However the CPU performance of the Virtual Machine - which I am using as server - stays below 20%. Does this mean I could decrease the latency by allocating more memory to the tileserver-gl-light proces, or does that have nothing to do with it? </p>
",https://stackoverflow.com/questions/47135318/finding-bottleneck-of-nodejs-webserver,"['node.js', 'mapbox', 'vector-tiles']",432,FALSE,3,0
how to run JMeter load test and JMeter Webdriver test in paralle,"<p>I want to do browser based load testing with JMeter.This I can achieve by using web diver sampler and a thread group with multiple concurrent users. This limits me to test only with about 10 users as opening more browser instances eats away my system resources.My objective is to see how the GUI behaves when the server is under heavy load (say 1000) users.</p>
",https://stackoverflow.com/questions/46734471/how-to-run-jmeter-load-test-and-jmeter-webdriver-test-in-paralle,"['jmeter', 'webdriver']",424,TRUE,0,2
Jmeter handling image uploads,"<p>I am doing a load testing of website,I have used jmeter recorder to record my script but there is a functionality in which image is being uploaded and that is a third party tool which is being used for uploading images, this event is not recorded by Jmeter also 
How to handle this situation( the third party tool's keys are not exposed to me)</p>
",https://stackoverflow.com/questions/43613396/jmeter-handling-image-uploads,['jmeter'],78,FALSE,0,1
Jmeter: Wait for threads to complete previous steps,"<p>I have created a JMeter script for load testing and has following steps,</p>

<pre><code>Login
Step 1
Step 2
Step 3
Logout
</code></pre>

<p>I want to perform load test for ""Step 3"" with 5 users. If i start the scripts with 5 users, the previous steps i.e. login, Step 1 and Step 2  may have different response time and Step 3 will not be triggered at same time.</p>

<p>Is there a way to configure JMeter like below,</p>

<pre><code>Login
Step 1
Step 2
&lt;Wait for all threads/user to complete Step 2&gt;
Step 3
Logout
</code></pre>
",https://stackoverflow.com/questions/47646661/jmeter-wait-for-threads-to-complete-previous-steps,['jmeter'],1256,TRUE,0,1
How can JMeter identify what to optimize in a website?,"<p>I'm new with website performance testing field and will be using JMeter. After playing with it, I am still having troubles with identifying what to optimize in a website load time?</p>

<p>I'm currently still learning about the load testing - who should I give the performance report to? Developers/Programmers? or Network department? Example of an error I usually get is 502 error or timeouts.</p>

<p>Thanks in advance.</p>
",https://stackoverflow.com/questions/42103735/how-can-jmeter-identify-what-to-optimize-in-a-website,"['testing', 'jmeter', 'automated-tests', 'performance-testing', 'load-testing']",186,TRUE,0,2
VS Cloud Based Load Test is failing when sourcing data files,"<p>I use selenium(c# with Nunit) for Testing. 
I source some xml files(which contains credential and other Inputs) for my website. While using Visual studio Cloud based Load testing, it throws File Not Fine Exception when it sources those xml file in [TestInitialize] Method</p>

<p>This is how i source Inside Test Initialize</p>

<p>InputTestData =
            new TestData(System.IO.Path.Combine(TestContext.CurrentContext.TestDirectory + @""\TestData""));
 PagesInformation = new Pages(System.IO.Path.Combine(TestContext.CurrentContext.TestDirectory + @""\PageDictionaries\SUT_Pages""));</p>
",https://stackoverflow.com/questions/42835511/vs-cloud-based-load-test-is-failing-when-sourcing-data-files,"['visual-studio', 'load-testing']",65,TRUE,0,1
ideal load time for a webpage with fields,"<p>I am currently doing load testing of a webpage, which has many fields i.e form.io fields. I was successfully able to get the results using Jmeter. 
Now, can anyone help me with what should be the best/ideal time for a webpage to load? Many articles says it should be between 2-5 seconds, is that true? Do we have any article/blog telling this?</p>

<p>Kindly help.</p>
",https://stackoverflow.com/questions/47130666/ideal-load-time-for-a-webpage-with-fields,"['load-testing', 'page-load-time']",26,TRUE,-2,1
How to clear jmeter.log file during long run execution?,"<p>I have <strong>JMeter</strong> <code>3.0</code> node which has make load testing for 24 hours.<br>
However, after 3 hours disk usage is overwhelmed by <code>jmeter.log</code>. </p>

<p>I tried to clean it on my own during a test execution but without any success.
I have tried:</p>

<pre><code>truncate jmeter.log --size 0
cat /dev/null &gt; jmeter.log 
</code></pre>

<p>It always fails:</p>

<pre><code>-rw-rw-r-- 1 tester tester 27591745 Sep 14 06:55 jmeter.log
-rw-rw-r-- 1 tester tester        0 Sep 14 06:55 load_execution.log
-rw-r--r-- 1 tester tester    48320 Sep 14 06:41 minion_load.jmx
-rw-rw-r-- 1 tester tester        0 Sep 14 06:42 report_res_20170914-064202.xml
[root@ec2-54-172-27-231.compute-1.amazonaws.com dev-us1]# ll
total 1064
-rw-rw-r-- 1 tester tester 28311748 Sep 14 06:55 jmeter.log
-rw-rw-r-- 1 tester tester      219 Sep 14 06:55 load_execution.log
-rw-r--r-- 1 tester tester    48320 Sep 14 06:41 minion_load.jmx
-rw-rw-r-- 1 tester tester        0 Sep 14 06:42 report_res_20170914-064202.xml
[root@ec2-54-172-27-231.compute-1.amazonaws.com dev-us1]# ll
total 104
-rw-rw-r-- 1 tester tester 29422392 Sep 14 06:56 jmeter.log
-rw-rw-r-- 1 tester tester        0 Sep 14 06:56 load_execution.log
-rw-r--r-- 1 tester tester    48320 Sep 14 06:41 minion_load.jmx
-rw-rw-r-- 1 tester tester        0 Sep 14 06:42 report_res_20170914-064202.xml
[root@ec2-54-172-27-231.compute-1.amazonaws.com dev-us1]# ll
</code></pre>

<p>Another file is cleared periodically. I used <code>crontab</code> for it.</p>

<p>I am starting JMeter in not GUI mode.</p>

<p>How to clear default <code>jmeter.log</code> or set any threshold when file reach .. size?</p>
",https://stackoverflow.com/questions/46221499/how-to-clear-jmeter-log-file-during-long-run-execution,"['logging', 'process', 'jmeter']",7444,TRUE,4,3
an image response contains http status code 200 means it fetched to client browser?,"<p>I am conducting a load testing using Jmeter to ensure massive of concurrent users able to request the image file from the server.</p>

<p>I have few question on the response code of the image(.png). </p>

<ol>
<li><p>If the http status code is 200, does it mean the image fully fetched to the client from the server?</p></li>
<li><p>The response code is 200, image will still loading on the browser? or fully loaded?</p></li>
</ol>
",https://stackoverflow.com/questions/41657780/an-image-response-contains-http-status-code-200-means-it-fetched-to-client-brows,"['image', 'http', 'web', 'jmeter']",1471,TRUE,1,2
VS1550059: Test run has been aborted because all the test agents failed during the test execution,"<p>Hi when we are testing for load test using visual studio online, we are getting below error,</p>

<blockquote>
  <p>VS1550059: Test run has been aborted because all the test agents
  failed during the test execution
  somebody, please help me to resolve this issue?</p>
</blockquote>

<p>we are getting above error when a number of the test case. so is there any limitation for a test case on cloud load testing (visual studio online)</p>
",https://stackoverflow.com/questions/45027164/vs1550059-test-run-has-been-aborted-because-all-the-test-agents-failed-during-t,"['azure-devops', 'performance-testing', 'load-testing']",510,TRUE,0,2
How to control no. of requests per user in Jmeter,"<p>I am doing load testing for one ecommerce website. I am using <code>Ultimate thread group</code>.</p>

<p>Now I want to send per user only 1 request. So for ex: If 500 users then only 500 request should send. How can I achieve it using <code>Ultimate thread group</code>?</p>

<p>Why I want above because I am doing whole process like login, select product, add to cart and checkout. So it should do everything only once per user.</p>
",https://stackoverflow.com/questions/43053946/how-to-control-no-of-requests-per-user-in-jmeter,"['jmeter', 'jmeter-plugins']",1785,TRUE,0,3
Mstest.exe can&#39;t run load tests,"<p>I'm looking for a way to automate load testing, but for some reason, when I'm trying to run through command line (mstest.exe /testroncatiner:) I receive the following message:</p>

<blockquote>
  <p>File extension specified '.loadtest' is not a valid test extension.</p>
</blockquote>

<p>If I'm trying to run .dll file then another message appears:</p>

<blockquote>
  <p>No tests to execute.</p>
</blockquote>

<p>Canyou please tell me what am I doing wrong? I have installed Visual Studio 2017 Enterpise</p>
",https://stackoverflow.com/questions/45565722/mstest-exe-cant-run-load-tests,"['mstest', 'load-testing']",302,TRUE,0,1
Can you add a 99.9% column to the load test analyzer?,"<p>In Visual Studio 2015 Web Performance and Load Test Projects you can run a load test and view the results in Load Test Analyzer. In Table View there are percentile columns for response time (90%, 95% and 99%). Is there any way to modify the load test to add configurable columns e.g. 99.9% (which is a requirement for my project and a common metric in load testing response times)?</p>
",https://stackoverflow.com/questions/41460963/can-you-add-a-99-9-column-to-the-load-test-analyzer,"['visual-studio-2015', 'load-testing']",112,TRUE,0,1
"My AKS Cluster was brought down, how can I recover?","<p>I have been playing around with load-testing my application on a single agent cluster in AKS. During the testing, the connection to the dashboard stalled and never resumed. My application seems down as well, so I am assuming the cluster is in a bad state.</p>

<p>The API server is restate-f4cbd3d9.hcp.centralus.azmk8s.io</p>

<p>kubectl cluster-info dump shows the following error:</p>

<pre><code>{
    ""name"": ""kube-dns-v20-6c8f7f988b-9wpx9.14fbbbd6bf60f0cf"",
    ""namespace"": ""kube-system"",
    ""selfLink"": ""/api/v1/namespaces/kube-system/events/kube-dns-v20-6c8f7f988b-9wpx9.14fbbbd6bf60f0cf"",
    ""uid"": ""47f57d3c-d577-11e7-88d4-0a58ac1f0249"",
    ""resourceVersion"": ""185572"",
    ""creationTimestamp"": ""2017-11-30T02:36:34Z"",
    ""InvolvedObject"": {
        ""Kind"": ""Pod"",
        ""Namespace"": ""kube-system"",
        ""Name"": ""kube-dns-v20-6c8f7f988b-9wpx9"",
        ""UID"": ""9d2b20f2-d3f5-11e7-88d4-0a58ac1f0249"",
        ""APIVersion"": ""v1"",
        ""ResourceVersion"": ""299"",
        ""FieldPath"": ""spec.containers{kubedns}""
    },
    ""Reason"": ""Unhealthy"",
    ""Message"": ""Liveness probe failed: Get http://10.244.0.4:8080/healthz-kubedns: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"",
    ""Source"": {
        ""Component"": ""kubelet"",
        ""Host"": ""aks-agentpool-34912234-0""
    },
    ""FirstTimestamp"": ""2017-11-30T02:23:50Z"",
    ""LastTimestamp"": ""2017-11-30T02:59:00Z"",
    ""Count"": 6,
    ""Type"": ""Warning""
}
</code></pre>

<p>As well as some Pod Sync errors in Kube-System.</p>

<p>Example of issue:</p>

<pre><code>az aks browse -g REstate.Server -n REstate

Merged ""REstate"" as current context in C:\Users\User\AppData\Local\Temp\tmp29d0conq

Proxy running on http://127.0.0.1:8001/
Press CTRL+C to close the tunnel...
error: error upgrading connection: error dialing backend: dial tcp 10.240.0.4:10250: getsockopt: connection timed out
</code></pre>
",https://stackoverflow.com/questions/47565663/my-aks-cluster-was-brought-down-how-can-i-recover,['azure-container-service'],324,TRUE,2,1
Locust tasks that follow redirects,"<p>I'm load testing a local API that will redirect a user based on a few conditions. Locust is not redirecting the simulated users hitting the end points and I know this because the app logs all redirects. If I manually hit the end points using <code>curl</code>, I can see the status is <code>302</code> and the <code>Location</code> header is set.</p>

<p>According to the embedded <a href=""https://docs.locust.io/en/latest/api.html#locust.clients.HttpSession.request"" rel=""nofollow noreferrer"">clients.HttpSession.request</a> object, the <code>allow_redirects</code> option is set to True by default.</p>

<p>Any ideas?</p>
",https://stackoverflow.com/questions/46587103/locust-tasks-that-follow-redirects,"['redirect', 'locust']",3949,TRUE,2,2
Async API giving worse performance,"<p>Interesting, I would think have 255 concurrent users, an async API would have better performance. Here are 2 of my endpoints in my Spring server:</p>

<pre><code>@RequestMapping(""/async"")
public CompletableFuture&lt;String&gt; g(){
    CompletableFuture&lt;String&gt; f = new CompletableFuture&lt;&gt;();
    f.runAsync(() -&gt; {
        try {
            Thread.sleep(500);
            f.complete(""Finished"");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    });

    return f;
}

@RequestMapping(""/sync"")
public String h() throws InterruptedException {
    Thread.sleep(500);
    return ""Finished"";
}
</code></pre>

<p>In the <code>/async</code> it runs it on a different thread. I am using <code>Siege</code> for load testing as follows:</p>

<p><code>siege http://localhost:8080/sync --concurrent=255 --time=10S &gt; /dev/null</code></p>

<p>For the <code>async</code> endpoint, I got a transaction number of <code>27 hits</code></p>

<p>For the <code>sync</code> endpoint, I got a transaction number of <code>1531 hits</code></p>

<p>So why is this? Why isnt the async endpoint able to handle more transactions?</p>
",https://stackoverflow.com/questions/45741513/async-api-giving-worse-performance,"['java', 'spring', 'api', 'testing', 'asynchronous']",1480,TRUE,1,1
Difference between response time in jmeter and Dynatrace,"<p>We are load testing our application through jmeter.</p>

<p>The architecture is : web server (Apache), app server (jboss), database(MySQL).</p>

<p>Dynatrace agent is configured in app server.</p>

<p>For any particular request, the response time shown in app server is less than 1 sec, but in jmeter report it shows more than 5 sec.</p>

<p>What could be possible reasons for above behaviour.</p>

<p>What should be next steps which I should perform to find bottleneck.</p>
",https://stackoverflow.com/questions/43360991/difference-between-response-time-in-jmeter-and-dynatrace,"['apache', 'jboss', 'jmeter', 'performance-testing', 'dynatrace']",1245,TRUE,1,2
Load test using Maven-jmeter plugin on Jenkins gives &quot;Non HTTP response code: javax.net.ssl.SSLHandshakeException&quot;,"<p>I am using Jmeter 3.0 for load testing API's. I am using Maven-Jmeter plugin to run my load tests. Currently using com.lazerycode.jmeter  plugin version 2.0.3. Test's run fine on my local machine but when I run it via Jenkins, I get ""Non HTTP response code: javax.net.ssl.SSLHandshakeException"". I have googled and tried pretty much everything which is suggested in various forums but error doesn't go way. What am I missing?  Any help is appreciated. </p>

<p>See error stack below. </p>

<pre><code>httpSample t=""1069"" it=""0"" lt=""0"" ts=""1485212600015"" s=""false"" lb=""ServiceProxy:TC#1: GET-  Health Check For Proxy Service"" **rc=""Non HTTP response code: javax.net.ssl.SSLHandshakeException"" rm=""Non HTTP response message: Received fatal alert: handshake_failure""** tn=""Service Proxy Regression Test Plan 1-1"" dt=""text"" by=""2566"" ng=""1"" na=""1""&gt;

****** received  : [[[Non HTTP response code: javax.net.ssl.SSLHandshakeException]]]

****** comparison: [[[200                                                        ]]]

class=""java.lang.String""&gt;javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
    at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
    at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
    at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:447)
    at org.apache.jmeter.protocol.http.sampler.LazySchemeSocketFactory.createLayeredSocket(LazySchemeSocketFactory.java:121)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:219)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:421)
    at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.layerProtocol(MeasuringConnectionManager.java:152)
    at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:815)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:616)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:619)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:379)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:465)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:410)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:241)
    at java.lang.Thread.run(Thread.java:745)
</code></pre>

<p>...</p>
",https://stackoverflow.com/questions/41817928/load-test-using-maven-jmeter-plugin-on-jenkins-gives-non-http-response-code-ja,"['performance', 'jmeter', 'load-testing', 'jmeter-plugins', 'jmeter-maven-plugin']",705,TRUE,1,2
Jmeter email notification configuration,"<p>For notification mail in jmeter I was following the steps from <a href=""https://www.blazemeter.com/blog/load-testing-your-email-server-how-send-and-receive-e-mails-jmeter"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/load-testing-your-email-server-how-send-and-receive-e-mails-jmeter</a>.</p>

<p>But I was not able to get the result after executing the test. Please find the screen shot I have attached to know what all configuration I have done in the SMTP sampler.<a href=""https://i.stack.imgur.com/TbtoZ.png"" rel=""nofollow noreferrer"">enter image description here</a></p>

<p>Please let me know what all I need to add here to make it run successfully.</p>
",https://stackoverflow.com/questions/42778342/jmeter-email-notification-configuration,['jmeter'],608,FALSE,1,1
How does load and performance testing tools work behind the scenes?,"<p>I recently used gatling.io for load testing my api server. During testing there were options to set for example, number of concurrent users per second. </p>

<p>What I do not understand is how these tools are able to generate that load. How are they able to create lets say 200 concurrent connection to my server and hit it?</p>

<p>I am looking for an answer describing how it is implemented, whether they use thread, socket programming etc.
Thanks.</p>
",https://stackoverflow.com/questions/44541719/how-does-load-and-performance-testing-tools-work-behind-the-scenes,"['performance', 'load', 'gatling']",47,TRUE,0,1
Will there be any sudden shooting of memory after killing the process and starting it,"<p>I request help to clarify my doubt on the following case.</p>

<p>i am currently performing performance test for my application using jmeter and one thing i noticed was when i killed the service of the appliction from the task manager and do load testing with 1000 users the memory usage is getting boosted from 200 MB to 900 MB and then returning to  200-300 mb range.Just would like to know whether this is a performance issue with application</p>
",https://stackoverflow.com/questions/47790085/will-there-be-any-sudden-shooting-of-memory-after-killing-the-process-and-starti,"['memory', 'memory-leaks', 'jmeter']",29,FALSE,0,0
play 2.5.10 application post request is hanging after some time in load test,"<p>Recently we upgraded our java based play application from play 2.4.2 to 2.5.10. After the upgrade we encountered a very strange problem where in load testing scenario our play application stops responding to POST request however application does response to GET request without any problem. POST requests do not reach to our Controller classes.</p>

<p>Later we revert back to play 2.4.2 and its running without any issue.</p>

<p>Does anybody has any clue why this can happen with play 2.5.10?</p>
",https://stackoverflow.com/questions/43062146/play-2-5-10-application-post-request-is-hanging-after-some-time-in-load-test,['playframework'],38,FALSE,0,0
Jdbctemplate connection pooling issue DynamicRoutingDataSourceResolver,"<p>I am using DynamicRoutingDataSourceResolver in my spring boot application to connect to 6 different datasources along with JDBCTemplate.
However , while load testing with 100 or more threads I get an Pool is empty error.
As JDBCTemplate manages its own pool is there any other way to solve the error
Note : Each DB query takes around 3 minutes to execute fully
Below is the stack trace and DAO &amp; other referenced classes.</p>

<pre><code>application.properties
oms.db.datasource1.url=jdbc:oracle:thin:@xxx.xxx.xxx
oms.db.datasource1.username=xxxx
oms.db.datasource1.password=xxxx
oms.db.datasource1.driver-class-name=oracle.jdbc.driver.OracleDriver
oms.db.datasource1.schema=xxx 
(Muliple sources configured)

package com.att.first.oms.dataaccesslayer.config;

import java.util.HashMap;
import java.util.Map;

import org.apache.tomcat.jdbc.pool.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;

@Configuration
 public class DataSourceConfig {

@Autowired
private OMSSegmentProperties omsSegmentProperties;

@Bean
public PlatformTransactionManager transactionManager() {
    return new DataSourceTransactionManager(dataSource());
}

@Bean(name = ""dataSource1"")
@ConfigurationProperties(prefix = ""oms.db.datasource1"")
public DataSource dataSource1() {
    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource1().getSchema().get(0);
    DataSource ds = new DataSource();
    ds.setDriverClassName(this.omsSegmentProperties.getDatasource1()
            .getDriverClassName());
    ds.setPassword(this.omsSegmentProperties.getDatasource1().getPassword());
    ds.setUsername(this.omsSegmentProperties.getDatasource1().getUsername());
    ds.setUrl(this.omsSegmentProperties.getDatasource1().getUrl());

    ds.setInitSQL(SET_DEFAULT_SCHEMA);
    return ds;
}

@Bean(name = ""dataSource11"")
@ConfigurationProperties(prefix = ""oms.db.datasource1"")
public DataSource dataSource11() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource1().getSchema().get(1);
    DataSource ds = new DataSource();
    ds.setDriverClassName(this.omsSegmentProperties.getDatasource1()
            .getDriverClassName());
    ds.setPassword(this.omsSegmentProperties.getDatasource1().getPassword());
    ds.setUsername(this.omsSegmentProperties.getDatasource1().getUsername());
    ds.setUrl(this.omsSegmentProperties.getDatasource1().getUrl());

    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource2"")
@ConfigurationProperties(prefix = ""oms.db.datasource2"")
public DataSource dataSource2() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource2().getSchema().get(0);

    DataSource ds = new DataSource();
    ds.setDriverClassName(this.omsSegmentProperties.getDatasource2()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource2().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource2().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource2().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource21"")
@ConfigurationProperties(prefix = ""oms.db.datasource2"")
public DataSource dataSource21() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource2().getSchema().get(1);

    DataSource ds = new DataSource();
    ds.setDriverClassName(this.omsSegmentProperties.getDatasource2()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource2().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource2().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource2().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource3"")
@ConfigurationProperties(prefix = ""oms.db.datasource3"")
public DataSource dataSource3() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource3().getSchema().get(0);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource3()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource3().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource3().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource3().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource31"")
@ConfigurationProperties(prefix = ""oms.db.datasource3"")
public DataSource dataSource31() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource3().getSchema().get(1);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource3()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource3().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource3().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource3().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource4"")
@ConfigurationProperties(prefix = ""oms.db.datasource4"")
public DataSource dataSource4() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource4().getSchema().get(0);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource4()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource4().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource4().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource4().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource41"")
@ConfigurationProperties(prefix = ""oms.db.datasource4"")
public DataSource dataSource41() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource4().getSchema().get(1);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource4()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource4().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource4().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource4().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource5"")
@ConfigurationProperties(prefix = ""oms.db.datasource5"")
public DataSource dataSource5() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource5().getSchema().get(0);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource5()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource5().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource5().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource5().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource51"")
@ConfigurationProperties(prefix = ""oms.db.datasource5"")
public DataSource dataSource51() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource5().getSchema().get(1);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource5()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource5().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource5().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource5().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource6"")
@ConfigurationProperties(prefix = ""oms.db.datasource6"")
public DataSource dataSource6() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource6().getSchema().get(0);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource6()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource6().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource6().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource6().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean(name = ""dataSource61"")
@ConfigurationProperties(prefix = ""oms.db.datasource6"")
public DataSource dataSource61() {

    String SET_DEFAULT_SCHEMA = ""ALTER SESSION SET CURRENT_SCHEMA=""
            + this.omsSegmentProperties.getDatasource6().getSchema().get(1);

    DataSource ds = new DataSource();

    ds.setDriverClassName(this.omsSegmentProperties.getDatasource6()
            .getDriverClassName());
    ds.setUsername(this.omsSegmentProperties.getDatasource6().getUsername());
    ds.setPassword(this.omsSegmentProperties.getDatasource6().getPassword());
    ds.setUrl(this.omsSegmentProperties.getDatasource6().getUrl());
    ds.setInitSQL(SET_DEFAULT_SCHEMA);

    return ds;
}

@Bean
public DynamicRoutingDataSourceResolver dataSource() {
    DynamicRoutingDataSourceResolver resolver = new DynamicRoutingDataSourceResolver();

    Map&lt;Object, Object&gt; dataSources = new HashMap&lt;&gt;();
    dataSources.put(OMSSegmentEnum.KC1A, dataSource1());
    dataSources.put(OMSSegmentEnum.KC2, dataSource11());

    dataSources.put(OMSSegmentEnum.KC5, dataSource2());
    dataSources.put(OMSSegmentEnum.KC6, dataSource21());

    dataSources.put(OMSSegmentEnum.KM3, dataSource3());
    dataSources.put(OMSSegmentEnum.KM4, dataSource31());

    dataSources.put(OMSSegmentEnum.KM5, dataSource4());
    dataSources.put(OMSSegmentEnum.KM6, dataSource41());

    dataSources.put(OMSSegmentEnum.STL1A, dataSource5());
    dataSources.put(OMSSegmentEnum.STL2, dataSource51());

    dataSources.put(OMSSegmentEnum.STL3, dataSource6());
    dataSources.put(OMSSegmentEnum.STL4, dataSource61());

    resolver.setDefaultTargetDataSource(dataSource1());
    resolver.setTargetDataSources(dataSources);

    return resolver;
}

@Bean
public JdbcTemplate jdbcTemplate() {
    return new JdbcTemplate(dataSource());
}
}
</code></pre>

<p>And the calling class</p>

<pre><code>@Repository
public class OMSGenericDAO {

private static final Logger log = Logger
        .getLogger(OMSGenericDAO.class);

@Autowired
private JdbcTemplate jdbcTemplate;

public List&lt;Object&gt; fetch(String sql, Class clazz) {

    List&lt;Object&gt; result = new ArrayList&lt;&gt;();

    log.info(""Executing the query : "" + sql);
    long start = System.currentTimeMillis();

    result = jdbcTemplate.query(sql, new BeanPropertyRowMapper(clazz));

    long end = System.currentTimeMillis();
    log.info(""List finished.Total no of records fetched ::"" + result.size());
    log.info(""Time to fetch"" + (end - start) / 1000 + ""seconds"");

    return result;
}

public Object fetch(String sql, Class clazz, String... args) {
    return jdbcTemplate.queryForObject(sql, args, clazz);
}
}
</code></pre>

<p>Stack Trace:</p>

<pre><code>: Got more than one input Future failure. Logging failures after the first
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.tomcat.jdbc.pool.PoolExhaustedException: [pool-177-thread-3] Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available[size:100; busy:100; idle:0; lastwait:30000].
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:289)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:447)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:277)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656)
at com.att.first.oms.dataaccesslayer.service.OMSGenericQueryServiceImpl$$EnhancerBySpringCGLIB$$ae14cb26.fetch(&lt;generated&gt;)
at com.att.first.oms.dataaccesslayer.web.FirstJavaOMSDataAccessController.fetchFromSegment(FirstJavaOMSDataAccessController.java:64)
at com.att.first.oms.dataaccesslayer.web.FirstJavaOMSDataAccessController.access$000(FirstJavaOMSDataAccessController.java:28)
at com.att.first.oms.dataaccesslayer.web.FirstJavaOMSDataAccessController$1.call(FirstJavaOMSDataAccessController.java:81)
at com.att.first.oms.dataaccesslayer.web.FirstJavaOMSDataAccessController$1.call(FirstJavaOMSDataAccessController.java:79)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.tomcat.jdbc.pool.PoolExhaustedException: [pool-177-thread-3] Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available[size:100; busy:100; idle:0; lastwait:30000].
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:703)
at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:198)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:132)
at org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource.getConnection(AbstractRoutingDataSource.java:164)
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:246)
... 17 more 
</code></pre>
",https://stackoverflow.com/questions/44064335/jdbctemplate-connection-pooling-issue-dynamicroutingdatasourceresolver,"['java', 'spring', 'spring-boot', 'jdbctemplate']",1506,FALSE,0,0
How to capture login through JMeter into a Web application which has third party auth app integrated such as OKTA?,"<p>My web application is using OKTA as a third-party authentication tool while login. I want to do load testing of this app through JMeter. </p>

<p>I captured a scenario which does following:</p>

<ol>
<li>Access URL</li>
<li>Login into app</li>
<li>Go to Required page.</li>
<li>Update the data and Save it.</li>
</ol>

<p>Script is capturing session token and I handled correlation. The script is showing all request pass while playing back but the data is not getting updated. </p>

<p>What am I missing here? </p>
",https://stackoverflow.com/questions/46419663/how-to-capture-login-through-jmeter-into-a-web-application-which-has-third-party,['jmeter'],597,FALSE,-1,1
LoadRunner should be with in AWS or OutSide of AWS?,"<p>I was trying to setup test environment for Performance testing using Load Runner, of a Multi tenant application hosted on AWS.</p>

<p>My question is, Can I run the LR tests from AWS and test an application which is also hosted on AWS. (Same data center but different servers?).</p>

<p>Or, should I run the LR tests from outside of the AWS environment with Application under test on AWS?</p>

<p>The goal is to perform Load testing and create the sizing document.</p>
",https://stackoverflow.com/questions/45982247/loadrunner-should-be-with-in-aws-or-outside-of-aws,"['testing', 'load', 'runner']",60,FALSE,0,1
How many simultaneous threads can be used to load test a web application?,"<p>I need to find my web application's performance and load test it. The application currently has a Tomcat configuration of 25 threads maximum and there are two such servers.</p>

<p>Does it mean that I should do load testing for 50 concurrent requests?
And what happens where there are more requests; does it go to the thread waiting queue in Tomcat?
In case it goes for a thread wait queue, can I test the application with more than 50 requests?</p>
",https://stackoverflow.com/questions/46243868/how-many-simultaneous-threads-can-be-used-to-load-test-a-web-application,"['java', 'tomcat', 'junit', 'jmeter']",110,TRUE,0,1
Heroku postgres is very slow under load,"<p>I'm deploying an app to the Heroku that uses php and heroku-postgres. App performs about 70-80 queries to the small postgres database (about 10Mb).</p>

<p>I did some load testing using apache bench with 50 concurrent requests. And I found that queries execution time is about 5-8 times slower than without any load. Of course, I checked that tables have correct indexes and queries use them.</p>

<p>I also tried different heroku-postgres plans, but the problem still exists.</p>
",https://stackoverflow.com/questions/44804534/heroku-postgres-is-very-slow-under-load,"['php', 'heroku', 'heroku-postgres']",2311,TRUE,2,1
How to trigger REST request in SOAPUI with Groovy script test step,"<p>With the below script I'm able to send the data/payload to my POST request. However, notable to run the post request from the script.  Need post request in loop.</p>

<pre><code>def POSTForgivness = testRunner
   .testCase
   .getTestStepByName(""postforgivness"")
   .getT‌​estRequest() 
POSTForgivness.setRequestContent(ForgivnessPayload)
</code></pre>

<p>Other info from comments:</p>

<ul>
<li>each time in loop I have different data for post request</li>
<li>not load testing, but post request with different input data</li>
<li>have got some 900+ records, able to read and send the data to post request but the post request in not triggering/running after that in the loop.</li>
</ul>
",https://stackoverflow.com/questions/46567126/how-to-trigger-rest-request-in-soapui-with-groovy-script-test-step,"['rest', 'groovy', 'soapui']",4936,TRUE,1,2
The operation has timed out ~ System.Net.WebException: The operation has timed out,"<p>The operation has timed out ~ System.Net.WebException: The operation has timed out    at System.Net.HttpWebRequest.GetRequestStream(TransportContext&amp; context)    at System.Net.HttpWebRequest.GetRequestStream()</p>

<p>doing a load testing of http server with multiple requests per second. after few hundred successful requests and responses, new request get stuck and after the timeout value is achieved(timeout = 30 second) request timeout exception is thrown.
all the solutions i found was regarding closing the stream properly which I hope I am doing.
Any help on resolving the timeout problem would be appreciated. thanks.</p>

<pre><code>  using (System.IO.Stream requestStream = client.GetRequestStream())
  {
                    requestStream.Write(content, 0, content.Length);

                    requestStream.Close();

                }
</code></pre>
",https://stackoverflow.com/questions/44829776/the-operation-has-timed-out-system-net-webexception-the-operation-has-timed-o,"['c#', 'http', 'web']",925,FALSE,1,0
How can we validate json based on key value pair in Jmeter,"<p>I haved worked around with Jmeter for load Testing. But now i am focusing on api automation.</p>

<p>Reading file from CSV for the endpoints and Response expected, only challenge i am facing whether how to validate the json based on key value pair, so that i can validate only those data in which i am interested and not whole JSON body.</p>

<p>In java using eclipse we can do this using below Method:</p>

<pre><code>JSONObject obj1=null,obj2=null;

        obj1=new JSONObject(actual);
        obj2=new JSONObject(required);
    Iterator&lt;?&gt; keys = obj2.keys();
    while( keys.hasNext() ) {
         String key = (String)keys.next();
        if(obj2.get(key) instanceof JSONArray)
        {
            if(!compareJSONArray(obj2.getString(key),obj1.getString(key)))
            {return false;}
            status=true;
        }else if(obj2.get(key) instanceof JSONObject)
        {
            if(!compareJSON(obj2.getString(key),obj1.getString(key)))
            {return false;}
            status=true;    
        }else{
            if(obj2.getString(key).equalsIgnoreCase(obj1.getString(key)))
                    {

                status=true;
                    }
            else{
                return false;
            }

        }
</code></pre>

<p>How can i do this following in Jmeter. Please Help</p>
",https://stackoverflow.com/questions/45365055/how-can-we-validate-json-based-on-key-value-pair-in-jmeter,"['java', 'jmeter', 'read-write', 'web-api-testing']",965,TRUE,0,2
BotFramework Emulator Refresh access token failed with status code: 500,"<p>Following the article <a href=""https://blog.botframework.com/2017/06/19/Load-Testing-A-Bot/"" rel=""nofollow noreferrer"">https://blog.botframework.com/2017/06/19/Load-Testing-A-Bot/</a> to test a bot.
Im trying to get an accessToken, but Im getting a 500. The same is happening if I run the Emulator from code. The downloaded emulator works fine.</p>

<pre><code>{
  ""error"": ""server_error"",
  ""error_description"": ""AADSTS70002: Error validating credentials.\r\nTrace ID: 06f655dd-dc88-49ec-a429-1c86fc1a1b00\r\nCorrelation ID: 070d67cc-361f-45ad-a0bb-d07d5d1e73f4\r\nTimestamp: 2017-07-31 00:54:46Z"",
  ""error_codes"": [
    70002
  ],
  ""timestamp"": ""2017-07-31 00:54:46Z"",
  ""trace_id"": ""06f655dd-dc88-49ec-a429-1c86fc1a1b00"",
  ""correlation_id"": ""070d67cc-361f-45ad-a0bb-d07d5d1e73f4""
}
</code></pre>

<p>The process to get the access token is to post to <a href=""https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token"" rel=""nofollow noreferrer"">https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token</a> with  </p>

<pre><code>x-www-form-urlencoded values:
grant_type=client_credentials
client_id= &lt;YOUR MSA APP ID&gt;
client_secret = &lt;YOUR MSA APP SECRET&gt;
scope = &lt;YOUR MSA APP ID&gt;/.default
</code></pre>

<p>Note: a locally built version of the Emulator, with a fresh clone, also has the same issue, while the downloaded version connects correctly</p>
",https://stackoverflow.com/questions/45406252/botframework-emulator-refresh-access-token-failed-with-status-code-500,['botframework'],506,TRUE,3,1
create a TCP socket server which is able to handle thousands of requests per second,"<p>At the fist try, I created a basic TCP server as flowing:</p>

<pre><code>public class Tcp
{
    private  TcpListener listener { get; set; }
    private  bool accept { get; set; } = false;

    public  void StartServer(string ip, int port)
    {
        IPAddress address = IPAddress.Parse(ip);
        listener = new TcpListener(address, port);

        listener.Start();
        accept = true;
        StartListener();
        Console.WriteLine($""Server started. Listening to TCP clients at {ip}:{port}"");
    }
    public async void StartListener() //non blocking listener
    {

        listener.Start();
        while (true)
        {
            try
            {
                TcpClient client = await listener.AcceptTcpClientAsync().ConfigureAwait(false);
                HandleClient(client);
            }
            finally { }
        }
    }
    private void HandleClient(TcpClient client)
    {
        try
        {

            NetworkStream networkStream = client.GetStream();
            byte[] bytesFrom = new byte[20];
            networkStream.Read(bytesFrom, 0, 20);
            string dataFromClient = System.Text.Encoding.ASCII.GetString(bytesFrom);
            string serverResponse = ""Received!"";
            Byte[] sendBytes = Encoding.ASCII.GetBytes(serverResponse);
            networkStream.Write(sendBytes, 0, sendBytes.Length);
            networkStream.Flush();
        }
        catch(Exception ex)
        {
        }
    }
}
</code></pre>

<p>I wrote a client test code that is sending and recording number of requests per second</p>

<pre><code>public class Program
{
    private volatile static Dictionary&lt;int, int&gt; connections = new Dictionary&lt;int, int&gt;();
    private volatile static int fail = 0;
    private static string message = """";
    public static void Main(string[] args)
    {
        ServicePointManager.DefaultConnectionLimit = 1000000;
        ServicePointManager.Expect100Continue = false;
        for (int i = 0; i &lt; 512; i++)
        {
            message += ""T"";
        }

        int taskCount = 10;
        int requestsCount = 1000;
        var taskList = new List&lt;Task&gt;();
        int seconds = 0;
        Console.WriteLine($""start : {DateTime.Now.ToString(""mm:ss"")} "");

        for (int i = 0; i &lt; taskCount; i++)
        {

            taskList.Add(Task.Factory.StartNew(() =&gt;
            {
                for (int j = 0; j &lt; requestsCount; j++)
                {
                    Send();
                }
            }));
        }
        Console.WriteLine($""threads stablished : {DateTime.Now.ToString(""mm: ss"")}"");
        while (taskList.Any(t =&gt; !t.IsCompleted)) { Thread.Sleep(5000); }
        Console.WriteLine($""Compelete : {DateTime.Now.ToString(""mm: ss"")}"");
        int total = 0;
        foreach (KeyValuePair&lt;int, int&gt; keyValuePair in connections)
        {
            Console.WriteLine($""{keyValuePair.Key}:{keyValuePair.Value}"");
            total += keyValuePair.Value;
            seconds++;
        }
        Console.WriteLine($""succeded:{total}\tfail:{fail}\tseconds:{seconds}"");
        Console.WriteLine($""End : {DateTime.Now.ToString(""mm: ss"")}"");
        Console.ReadKey();
    }

    private static void Send()
    {
        try
        {
            TcpClient tcpclnt = new TcpClient();
            tcpclnt.ConnectAsync(""192.168.1.21"", 5678).Wait();
            String str = message;
            Stream stm = tcpclnt.GetStream();

            ASCIIEncoding asen = new ASCIIEncoding();
            byte[] ba = asen.GetBytes(str);

            stm.Write(ba, 0, ba.Length);

            byte[] bb = new byte[100];
            int k = stm.Read(bb, 0, 100);
            tcpclnt.Close();
            lock (connections)
            {
                int key = int.Parse(DateTime.Now.ToString(""hhmmss""));
                if (!connections.ContainsKey(key))
                {
                    connections.Add(key, 0);
                }
                connections[key] = connections[key] + 1;
            }
        }
        catch (Exception e)
        {
            lock (connections)
            {
                fail += 1;
            }
        }
    }
}
</code></pre>

<p>when I test it on a local machine, I get the maximum number of 4000 requests per second and when I upload it to local Lan it decreases to 200 requests per second.</p>

<p>The question is:
how can I improve the server performance?
what is the correct way of load testing socket servers?</p>
",https://stackoverflow.com/questions/44536677/create-a-tcp-socket-server-which-is-able-to-handle-thousands-of-requests-per-sec,"['c#', 'sockets', 'load-testing', 'tcpclient', 'tcpserver']",2772,TRUE,0,1
Load Test with PhantomJS on Azure throws error when runs with too many users,"<p>I try to run Load Test with PhantomJS on Azure by guide from Microsoft.</p>

<p><a href=""https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/16/using-selenium-with-cloud-based-load-testing/"" rel=""nofollow noreferrer"">https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/16/using-selenium-with-cloud-based-load-testing/</a></p>

<p>Test opens page, makes login and stays on the site. </p>

<p>With ~20 users it works well. When I try with 30 and more users, it throws error:</p>

<p><strong>Initialization method SeleniumWebLoadPoc.SelenumLoadWeb.SetupTest threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: Cannot start the driver service on <a href=""http://localhost:1341/"" rel=""nofollow noreferrer"">http://localhost:1341/</a>.</strong></p>

<p>Code of my test:</p>

<pre><code>[TestClass]
public class SelenumLoadWeb
{
    private IWebDriver _driver;
    public TestContext TestContext { get; set; }
    private StringBuilder verificationErrors;
    private string baseURL;
    private bool acceptNextAlert = true;

    [TestInitialize]
    public void SetupTest()
    {
        _driver = new PhantomJSDriver();
        baseURL = ""https://***.com/"";
        verificationErrors = new StringBuilder();
    }

    [TestMethod]

    [DeploymentItem(""SeleniumWebLoadPoc\\OnlyLogin.csv"", ""SeleniumWebLoadPoc"")]
    [DataSource(""Microsoft.VisualStudio.TestTools.DataSource.CSV"", ""|DataDirectory|\\SeleniumWebLoadPoc\\OnlyLogin.csv"", ""OnlyLogin#csv"", DataAccessMethod.Sequential)]

    public void TheSelenumLoadWebTest()
    {
        var UserName = TestContext.DataRow[""UserName""].ToString();
        var PassWord = TestContext.DataRow[""Pass""].ToString();

        // OPEN LOGIN PAGE  
        TestContext.BeginTimer(""SelenumLoadWeb_Navigate"");
        _driver.Navigate().GoToUrl(baseURL);
        TestContext.EndTimer(""SelenumLoadWeb_Navigate"");

        // LOGIN WITH USERNAME AND PASSWORD
        _driver.FindElement(By.Id(""txtUName"")).Click();
        _driver.FindElement(By.Id(""txtUName"")).Clear();
        _driver.FindElement(By.Id(""txtUName"")).SendKeys(UserName);
        _driver.FindElement(By.Id(""txtPass"")).Click();
        _driver.FindElement(By.Id(""txtPass"")).Clear();
        _driver.FindElement(By.Id(""txtPass"")).SendKeys(PassWord);
        TestContext.BeginTimer(""SelenumLoadWeb_Login"");
        _driver.FindElement(By.Id(""btnOkLogin"")).Click();
        TestContext.EndTimer(""SelenumLoadWeb_Login"");
        Thread.Sleep(60000);
    }

    [TestCleanup]
    public void TeardownTest()
    {
        try
        {
            _driver.Quit();
        }
        catch (Exception)
        {
            // Ignore errors if unable to close the browser
        }
        Assert.AreEqual("""", verificationErrors.ToString());
    }
    private bool IsElementPresent(By by)
    {
        try
        {
            _driver.FindElement(by);
            return true;
        }
        catch (NoSuchElementException)
        {
            return false;
        }
    }

    private bool IsAlertPresent()
    {
        try
        {
            _driver.SwitchTo().Alert();
            return true;
        }
        catch (NoAlertPresentException)
        {
            return false;
        }
    }

    private string CloseAlertAndGetItsText()
    {
        try
        {
            IAlert alert = _driver.SwitchTo().Alert();
            string alertText = alert.Text;
            if (acceptNextAlert)
            {
                alert.Accept();
            }
            else
            {
                alert.Dismiss();
            }
            return alertText;
        }
        finally
        {
            acceptNextAlert = true;
        }
    }
}
</code></pre>

<p>Some one tried to run Load tests with PhantomJS with many users?</p>
",https://stackoverflow.com/questions/42747841/load-test-with-phantomjs-on-azure-throws-error-when-runs-with-too-many-users,"['azure', 'selenium', 'phantomjs', 'cloud', 'load-testing']",125,FALSE,1,0
Specify separate data to each user in Tsung,"<p>I am using Tsung for load testing. Here is the config file for Tsung.</p>

<pre><code>&lt;?xml version=""1.0"" encoding=""utf-8""?&gt;
&lt;!DOCTYPE tsung SYSTEM ""/usr/share/tsung/tsung-1.0.dtd"" []&gt;
&lt;tsung loglevel=""warning""&gt;

  &lt;clients&gt;
    &lt;client host=""t1"" cpu=""2"" maxusers=""30000000""/&gt;
    &lt;client host=""t2"" cpu=""2"" maxusers=""30000000""/&gt;
  &lt;/clients&gt;

  &lt;servers&gt;
    &lt;server host=""localhost"" port=""9200"" type=""tcp""/&gt;
  &lt;/servers&gt;

  &lt;load&gt;
    &lt;arrivalphase phase=""1"" duration=""1"" unit=""minute""&gt;
      &lt;users arrivalrate=""5"" unit=""second""/&gt;
    &lt;/arrivalphase&gt;
  &lt;/load&gt;
&lt;/tsung&gt;
</code></pre>

<p>But, I want the following:</p>

<ol>
<li>Only one user per client everytime</li>
<li>Specific data to be read from file for each user. As in, I want to read data from a user1.json for user1 (on client 1) and from user2.json for user2 (on client2).</li>
</ol>

<p>Is this possible in Tsung? I went through the docs, but didn't find any option to do so. Can someone help me out with this?</p>
",https://stackoverflow.com/questions/41691134/specify-separate-data-to-each-user-in-tsung,"['erlang', 'performance-testing', 'load-testing', 'tsung']",231,FALSE,1,1
Verify application for Loader.Io testing,"<p>I am trying to do some load testing with </p>

<p><a href=""https://loader.io/"" rel=""nofollow noreferrer"">https://loader.io/</a></p>

<p>I am currently stuck at the stage of ""verifying"" my localHost application to make sure I am the one controlling it.</p>

<p>I have added this end point:</p>

<pre><code>[HttpGet(""/loaderio-a65421134i3ia3d110vcv0120d1ac14b/"")]
[Authorize()]
public StreamReader GetLoaderIO()
{
    var file = System.IO.File.OpenText(@""C:\Users\User\Downloads\loaderio-a65421134i3ia3d110vcv0120d1ac14b.txt"");
    return file;
}
</code></pre>

<p>When I run a GET request to this URL </p>

<p><a href=""http://localhost:5012/loaderio-a65421134i3ia3d110vcv0120d1ac14b/"" rel=""nofollow noreferrer"">http://localhost:5012/loaderio-a65421134i3ia3d110vcv0120d1ac14b/</a></p>

<p>I successfully step in my end point, what do I need to return in order for the LoaderIO to be happy? Do I have to return the stream so it can be downloaded?  </p>

<p><a href=""https://i.stack.imgur.com/uoyYG.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/uoyYG.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/45332265/verify-application-for-loader-io-testing,['c#'],2317,TRUE,1,1
JUnit test cases not displayed in JMtere when create a tests in simple class file but are displayed when create for JUnit class,"<p>i wanted to perform load testing on my test cases using JMeter before i was creating a class <strong>(NOT JUNIT CLASS)</strong> and for this class i was adding the JUnit annotations, this project was not displayed under J-Unit sampler (the jar was added in lib/junit folder in J Meter), but when i created a new project and this time i create a JUnit class and loaded this class it worked, my project was displayed in JMeter.</p>

<p>can anyone explain me why this happened?</p>
",https://stackoverflow.com/questions/45944717/junit-test-cases-not-displayed-in-jmtere-when-create-a-tests-in-simple-class-fil,"['eclipse', 'junit', 'jmeter']",74,FALSE,0,1
Error while trying integration between JMeter and Kibana,"<p>I am trying to connect Jmeter to Kibana using this manual:
<a href=""https://blogs.sap.com/2016/04/06/load-testing-with-jmeter-test-results-visualization-using-kibana-dashboards/comment-page-1/#comment-398399"" rel=""nofollow noreferrer"">https://blogs.sap.com/2016/04/06/load-testing-with-jmeter-test-results-visualization-using-kibana-dashboards/comment-page-1/#comment-398399</a></p>

<ul>
<li><p>I am using JMeter 3.2, and downloaded elasticsearch-5.6.4.zip.</p></li>
<li><p>I extract the zip and put the folder elasticsearch-5.6.4 in C:\Jmeter\apache-jmeter-3.2\lib</p></li>
<li><p>I downloaded the jar JMeter_ElasticsearchListener.jar and put it in C:\Jmeter\apache-jmeter-3.2\lib\ext</p></li>
<li><p>I restart JMeter and pressed add -> listener -> backend listener and get these errors:</p></li>
</ul>

<p><code>
    017-11-11 09:39:12,429 ERROR o.a.j.g.GuiPackage: Problem retrieving gui for org.apache.jmeter.visualizers.backend.BackendListenerGui
    java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
        at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
        at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
        at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
        at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
        at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
        at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_141]
    Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.RestClientBuilder$HttpClientConfigCallback
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
        ... 25 more
    2017-11-11 09:39:40,782 ERROR o.a.j.g.a.AddToTree: Exception while adding a component to tree.
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
        at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:359) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:74) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:59) ~[ApacheJMeter_core.jar:3.2 r1790748]
        at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_141]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_141]
        at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_141]
        at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_141]
    Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClientBuilder$HttpClientConfigCallback
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
        at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
        at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
        at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
        at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
        at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
        at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
        ... 17 more
    Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.RestClientBuilder$HttpClientConfigCallback
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_141]
        at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_141]
        at org.apache.jmeter.visualizers.backend.BackendListenerGui.actionPerformed(BackendListenerGui.java:166) ~[ApacheJMeter_components.jar:3.2 r1790748]
        at javax.swing.JComboBox.fireActionEvent(Unknown Source) ~[?:1.8.0_141]
        at javax.swing.JComboBox.setSelectedItem(Unknown Source) ~[?:1.8.0_141]
        at javax.swing.JComboBox.setSelectedIndex(Unknown Source) ~[?:1.8.0_141]
        at org.apache.jmeter.visualizers.backend.BackendListenerGui.clearGui(BackendListenerGui.java:281) ~[ApacheJMeter_components.jar:3.2 r1790748]
        at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:348) ~[ApacheJMeter_core.jar:3.2 r1790748]
        ... 17 more
</code></p>

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

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

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

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

<p><a href=""https://i.stack.imgur.com/fusm4.jpg"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/fusm4.jpg"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/47235903/error-while-trying-integration-between-jmeter-and-kibana,"['elasticsearch', 'jmeter', 'kibana', 'jmeter-plugins', 'jmeter-3.2']",394,TRUE,0,2
IIS Express Request Times Increasing Exponentially as SQL Query Takes Longer,"<p>I have a very strange problem occurred during load testing of my web services. With just single calls it completes very quickly within milliseconds and the SQL call takes about 20 milliseconds. But when I load test with about 290 requests a second the SQL call goes up to about 40 milliseconds but the page return now takes over 8 seconds. What kind of strange relationship is this? CPU doesn't seem to be maxed out. </p>

<p>Has anyone seen this behavior before? What could be causing this?</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/42734063/iis-express-request-times-increasing-exponentially-as-sql-query-takes-longer,"['sql', 'web-services', 'iis']",16,FALSE,0,1
"response.status_code is 200, but response.content is empty","<p>I'm working with Locust for load testing a few APIs, below is what the locust file (locustfile.py) looks like:</p>

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

def on_start(self):
    print(""Starting tests"")

def get_something(self):
    with self.client.get(""some_baseuri"" + ""some_basepath"", catch_response=True) as response:
        print(""Response code: {}"".format(response.status_code))
        print(""Response body: {}"".format(response.content))

@task(1)
def my_task(self):
    self.get_something()


class WebsiteUser(HttpLocust):
    task_set = MyTests
</code></pre>

<p>Here's how I trigger my tests:</p>

<pre><code>locust -f locustfile.py --no-web --clients=1 --hatch-rate=10 --host=http://127.0.0.1 --num-request=2 --print-stats --only-summary
</code></pre>

<p>The problem is, in logs, <code>response.status_code</code> is printed as 200, but <code>response.content</code> happens to be empty. When I hit the same API using Postman, I see a proper response body in the response as expected. This looks like a strange issue which blocks me from calling another API which is dependent on the <code>get_something()</code> method since the other API takes some data from <code>get_something()</code> method as an input.</p>
",https://stackoverflow.com/questions/47862948/response-status-code-is-200-but-response-content-is-empty,"['python', 'locust']",9994,TRUE,1,1
Not able to publish a message to ActiveMQ using JMeter,"<p>I would like publish some messages and perform load testing of my docker-based <code>ActiveMQ</code> server using <code>JMeter</code>. I have the configuration in place but for some reason I am not able to see the message getting published in <code>ActiveMQ</code>. </p>

<p>I have the admin console up and running and see that the queues is not getting created either. I also tried to manually create the queue and see if the Jmeter script works, but no luck</p>

<p>I have already added <code>activemq-all-5.15.0</code> jar in my <code>jmeter/lib/ext</code> folder of JMeter 3.2.</p>

<p>I am also seeing following error in JMeter Results Tree.</p>

<pre><code>javax.naming.NameNotFoundException: jmeter-q
    at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:235)
    at javax.naming.InitialContext.lookup(InitialContext.java:417)
    at org.apache.jmeter.protocol.jms.Utils.lookupDestination(Utils.java:148)
    at org.apache.jmeter.protocol.jms.client.Publisher.&lt;init&gt;(Publisher.java:134)
    at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.initClient(PublisherSampler.java:181)
    at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:206)
    at org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:98)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:491)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:425)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)
    at java.lang.Thread.run(Thread.java:748)
</code></pre>

<p><a href=""https://i.stack.imgur.com/E5bjN.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/E5bjN.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/45825188/not-able-to-publish-a-message-to-activemq-using-jmeter,"['jmeter', 'jms', 'activemq', 'load-testing', 'jmeter-plugins']",2281,TRUE,1,1
JMeter - Benefits of master-slaves configuration over all masters when doing a load test,"<p>About JMeter Distributed configuration for load testing (not in cloud),</p>

<p>I can setup X JMeter masters in different machines and execute them with shared files using shared folder(s).</p>

<p>The benefits are:</p>

<ul>
<li><p>Each master is oblivious to other and can be shutdown and start when needed with dynamic/different properties. </p></li>
<li><p>Each master have its own logs and results that can be explored separately. </p></li>
<li><p>I don't need network connection between JMeter masters' machines.</p></li>
</ul>

<p>What are the benefits for using master-slave configuration in such case? It seems like an unnecessary overhead when focusing on load test.</p>
",https://stackoverflow.com/questions/47627504/jmeter-benefits-of-master-slaves-configuration-over-all-masters-when-doing-a-l,"['jmeter', 'load-testing']",552,TRUE,1,1
How to decide the number of threads or Virtual users for my scenario in JMeter,"<p>My application under test is a WCF web service whose performance I need to test. there are more than 50000 hardware devices that communicate with the web service on daily basis.</p>

<p>The communication of all the 50000 devices is completed within 5 hours.</p>

<p>Can someone help in derive a scenario for load testing and how many Virtual users should I create because ultimately each device is actually querying the web service. So I can keep 1 virtual user and run it 50000 times or should I create 50000 virtual users or something between both...?</p>
",https://stackoverflow.com/questions/46314569/how-to-decide-the-number-of-threads-or-virtual-users-for-my-scenario-in-jmeter,"['performance', 'wcf', 'testing', 'jmeter']",1032,TRUE,1,2
Jmeter File Upload. Faster in Chrome - Slower in Jmeter,"<p>Im testing a File upload scenario in a Web application. The response times for uploading a 500MB file in Chrome is 21secs and in Jmeter it is 30secs. For a 5GB file the difference is more than a minute. Chrome is able to achieve higher upload/transfer speeds compared to Jmeter.
I have also tried with concurrent pool size as 6. But the behaviour is same.
Screenshot of the HTTP request is attached.The Jmeter version is 2.13. Can anyone please suggest as when load testing the difference can become much bigger.</p>

<p><img src=""https://i.stack.imgur.com/eFfPT.png"" alt=""Request Screenshot""></p>
",https://stackoverflow.com/questions/41698045/jmeter-file-upload-faster-in-chrome-slower-in-jmeter,"['file-upload', 'jmeter', 'performance-testing']",130,FALSE,1,0
"Performance, load and stress testing in Django","<p>I am studying the different types of testing for a Django application. I know how to do functional and unit testing in Django and how to apply different methodologies, but now I am facing a new challenge, I need to know how to do:</p>

<ul>
<li>Performance testing</li>
<li>Load testing</li>
<li>Stress testing</li>
</ul>

<p>I <strong>know the difference between them</strong> but I dont know which is the best methodology to follow,which are the best packages for do it or simply where I can get some <strong>documentation</strong> about it. </p>

<p>So my question is, how can I start to do these types of tests in a Django app or where can I get some good documentation about it?</p>

<p>Thanks </p>
",https://stackoverflow.com/questions/46893226/performance-load-and-stress-testing-in-django,"['python', 'django', 'testing', 'performance-testing']",12373,TRUE,16,1
Is it possible to attach a debugger to k6 scripts?,"<p>I'm hoping to adopt k6 for load testing, but I'm having trouble developing scripts for it. My primary use case is to check at each request to see if I'm receiving the correct headers and content and would like to inspect the response with a debugger.</p>

<p>I tried to run the script on its own by attaching the node inspect debugger (<a href=""https://nodejs.org/api/debugger.html"" rel=""noreferrer"">https://nodejs.org/api/debugger.html</a>) but the file doesn't get executed because the import and export module keywords are unrecognized by this current version of node (8.7.0)</p>

<p>I'm also unable to find any documentation on how to debug these scripts. </p>
",https://stackoverflow.com/questions/46738446/is-it-possible-to-attach-a-debugger-to-k6-scripts,"['javascript', 'node.js', 'load-testing', 'k6']",1942,TRUE,6,2
JVM / code tuning to reduce JVM suspension time,"<p>We are load testing our Web Services application and one of the suggestions was to try and reduce suspension times in order to improve response time. </p>

<p>From my research, the best way to reduce suspension time is to minimize object lifetime, but information is pretty scarce on the topic. So I'd like to know two things:</p>

<ol>
<li>Is that correct to assume that reducing suspension time will reduce response time?</li>
<li>Is there another way to reduce suspension time other than disposing of objects properly and quickly.</li>
</ol>

<p>Our current relevant JVM options are:</p>

<p><code>-XX:+UseParNewGC</code>
<code>-XX:+UseConcMarkSweepGC</code> 
<code>-XX:NewRatio=2</code> 
<code>-XX:+UseTLAB</code> 
<code>-XX:SurvivorRatio=2</code> 
<code>-Dsun.reflect.noInflation=false</code> 
<code>-Dsun.reflect.inflationThreshold=21474836</code> 
<code>-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true</code>
<code>-XX:MaxMetaspaceSize=256m</code> 
<code>-Xms3072m</code> 
<code>-Xmx3072m</code> 
<code>-XX:+CMSClassUnloadingEnabled</code></p>

<p>Thanks</p>
",https://stackoverflow.com/questions/41883146/jvm-code-tuning-to-reduce-jvm-suspension-time,"['java', 'java-8', 'jvm', 'performance-testing', 'jersey-1.0']",1343,TRUE,0,2
Couchbase threads are in BLOCKED state,"<p>We are doing the load testing of our application , which uses the Couchbase DB.
We are taking the thread dumps at regular intervals. In all the thread dumps after making call to couchbase threads are in BLOCKED state.
We are not understating this behaviour</p>

<p>Below is the configuration of couchbase environment</p>

<pre><code>  DefaultCouchbaseEnvironment.builder().kvTimeout(5000).connectTimeout(7500)
                .viewTimeout(7500).queryTimeout(7500).disconnectTimeout(10000)
                .retryStrategy(BestEffortRetryStrategy.INSTANCE).build();
</code></pre>

<p>And we are doing simple CRUD oerations over like</p>

<pre><code>                JsonDocument doc =
                        JsonDocument.create(""1236"",
                                JsonObject.create().put(""name"", ""test""));
bucket.insert(doc);
</code></pre>

<p>Below is the stackstrace what we obtained from Jstack</p>

<pre><code>Thread 4257: (state = BLOCKED)
 - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
 - java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
 - java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(int, long) @bci=139, line=1037 (Compiled frame)
 - java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(int, long) @bci=25, line=1328 (Compiled frame)
 - java.util.concurrent.CountDownLatch.await(long, java.util.concurrent.TimeUnit) @bci=10, line=277 (Compiled frame)
 - com.couchbase.client.java.util.Blocking.blockForSingle(rx.Observable, long, java.util.concurrent.TimeUnit) @bci=32, line=72 (Compiled frame)
 - com.couchbase.client.java.CouchbaseBucket.get(java.lang.String, long, java.util.concurrent.TimeUnit) @bci=17, line=118 (Compiled frame)
 - com.couchbase.client.java.CouchbaseBucket.get(java.lang.String) @bci=9, line=113 (Compiled frame)
</code></pre>

<p>All our documents are in KBs.
We have a cluster with 3 nodes.
Java sdk version- 2.3.4</p>

<p>Please guide us in understanding the behaviour.</p>

<p>Thanks</p>
",https://stackoverflow.com/questions/41843400/couchbase-threads-are-in-blocked-state,"['java', 'couchbase']",289,FALSE,0,1
Trying to run VS load test in Azure with Selenium Chrome driver and receive error,"<p>When I run Load test locally - it works. It opens Chrome and makes actions, clicks and whatever.
But when I run test Online in Azure, it returns error:</p>

<p><em>Initialization method SeleniumWebLoadPoc.SelenumLoadWeb.SetupTest threw exception. System.InvalidOperationException: System.InvalidOperationException: unknown error: cannot find Chrome binary
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.3.9600 x86_64).</em></p>

<p>I added Chrome driver to deploy in test settings:
<a href=""https://i.stack.imgur.com/5b74I.png"" rel=""nofollow noreferrer"">Test settings deploy</a></p>

<p>Did exactly how it's written in Microsoft guide:</p>

<p><a href=""https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/16/using-selenium-with-cloud-based-load-testing/"" rel=""nofollow noreferrer"">https://blogs.msdn.microsoft.com/visualstudioalm/2014/11/16/using-selenium-with-cloud-based-load-testing/</a></p>

<p>How can I resolve that issue? Someone already did load tests in Azure with Selenium Web Driver?</p>
",https://stackoverflow.com/questions/42414313/trying-to-run-vs-load-test-in-azure-with-selenium-chrome-driver-and-receive-erro,"['azure', 'selenium', 'webdriver', 'selenium-chromedriver', 'load-testing']",562,FALSE,4,1
OperationCanceledException when sending to Service Bus,"<p>I am getting OperationCanceledException when I am sending a message to a topic queue (I am running my code from within an Azure function).
The version I am using is:  ""WindowsAzure.ServiceBus"": ""4.1.1"" (latest)
and I am getting this exception when I am doing load testing which means many messages are being sent in this service bus (which contains several topics).
I was told to use a retry mechanism as:</p>

<pre><code>client.RetryPolicy = new RetryExponential(minBackoff: TimeSpan.FromSeconds(0.1),
                                            maxBackoff: TimeSpan.FromSeconds(30),
                                            maxRetryCount: 3);
</code></pre>

<p>But I thought this is already done by default, doesn't it?</p>

<p>Would appropriate your help here - Why am I getting this exception and what can I do to resolve this?</p>

<p>Here is the exception:</p>

<pre><code>Exception System.OperationCanceledException: The operation cannot be performed because the entity has been closed or aborted. ---&gt; System.ServiceModel.CommunicationObjectAbortedException: Internal Server Error: The server did not provide a meaningful reply; this might be caused by a premature session shutdown. TrackingId:88386cb1-a4e6-42e2-a8e1-bad3a2403329, Timestamp:6/6/2017 7:55:23 AM
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.&lt;&gt;c.&lt;GetAsyncSteps&gt;b__9_3(RequestAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.&lt;&gt;c__DisplayClass8_1.&lt;GetAsyncSteps&gt;b__4(RequestAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.&lt;&gt;c.&lt;GetAsyncSteps&gt;b__9_3(RequestAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.&lt;&gt;c.&lt;GetAsyncSteps&gt;b__18_3(TIteratorAsyncResult thisPtr, IAsyncResult a)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
   --- End of inner exception stack trace ---
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.MessageSender.OnSend(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout)
   at Microsoft.ServiceBus.Messaging.MessageSender.Send(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout)
</code></pre>
",https://stackoverflow.com/questions/44385210/operationcanceledexception-when-sending-to-service-bus,"['azure', 'azureservicebus', 'azure-servicebus-topics']",2407,TRUE,3,1
JMeter: How can i group sample requests as one test case so that the report looks neat,"<p>I am using JMeter and Blazemeter to do some load testing. After i record a testcase say Login, I have 5 API calls recorded as part of the same testcase.
On the generating the report, My report is looks untidy and has all API calls displayed.</p>

<p>I tried using simple controller that did not help.</p>

<p>Is there a way i can display under Jmeter HTML report Login as the testcase and on expanding this section i can see the API calls?</p>

<p>This is how my report looks now.</p>

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

<p>Thanks!!</p>

<p><a href=""https://i.stack.imgur.com/gxNpg.png"" rel=""nofollow noreferrer"">Current report Image</a><a href=""https://i.stack.imgur.com/7lOr7.png"" rel=""nofollow noreferrer"">current report statistics section</a></p>
",https://stackoverflow.com/questions/47132015/jmeter-how-can-i-group-sample-requests-as-one-test-case-so-that-the-report-look,"['ant', 'jmeter', 'jmeter-plugins', 'blazemeter']",1143,TRUE,2,1
Jmeter - Retrieve all embedded resources made CPU busy,"<p>I am doing Web load testing by using Jmeter. Maximum 100 users simulate load on the server. Load is not distributed. Recently i chose download embedded resources and parallel numbers to 6 and a cache manager added to clear the cache at each iteration.</p>

<p>When user cross 20, CPU usage reach 95% and Jmeter gets hanged. Memory is below 60%. I have increased the heap memory to 2GB and deselected Clear cache each iteration but still CPU gets down. Non GUI also not working.</p>

<p>Are there any ways available to solve this issue except distributed load?</p>
",https://stackoverflow.com/questions/46904917/jmeter-retrieve-all-embedded-resources-made-cpu-busy,['jmeter'],328,TRUE,1,1
How to manually connect to resultsRepositoryConnectString from a load test .TRX file?,"<p>In attempts to automate load testing in Visual Studio, I have run into problems with extrating the result data from the load test. I have a .TRX file which contains XML for the test, but no data. I am pretty sure that it connects to some database through the resultsRepositoryConnectString attribute in the XML. It looks like this:</p>

<pre><code>resultsRepositoryConnectString=""LAs4ogoKlDd+VpAl2ugknpVnps2Q+yFLesmD6LbUL+Km/JX8cBHGI53gZ4BH8pTCcqKm6fIrGHKGBGJ3QBDSWVtG/R9gmVK41LpMFWa4ySQbzsbWeWhaOim1CQqNS57+"" 
</code></pre>

<p>How should I go about interpreting this connection string? I am trying to open up a database connection in C# but I still need to specify attributes like the datasource and initial catalog.</p>

<p>Am I going down the right path? Thanks!</p>
",https://stackoverflow.com/questions/44467046/how-to-manually-connect-to-resultsrepositoryconnectstring-from-a-load-test-trx,"['c#', 'database', 'load-testing', 'trx']",100,FALSE,0,0
API performance testing connection time out,"<p>Currently working on the performance of my RESTFul api implemented using node js and mysql. For load testing of my APIs I'm using jmeter. So When I call my one of url for testing load with configuration</p>

<p>Virtual Users : 100,
Total Duration : 60s,
Time delay : 0s,
Ramup-Period : 1s</p>

<p>Jmeter show status OK for around 300-400 results and after that It timeouts for rest of request. Then after this I'm not able to ssh login or ping my server from my system till restart my system. Why this is happening?. Is it problem of my APIs design or server load problems.</p>
",https://stackoverflow.com/questions/43558493/api-performance-testing-connection-time-out,"['mysql', 'node.js', 'jmeter', 'performance-testing', 'restful-architecture']",574,FALSE,0,1
What tool can be used to load test Website and Mobile Apps on Cloud (Azure)?,"<p>I'm new to running load test. I have a question regarding load testing for Mobile Apps hosting on Azure. </p>

<ul>
<li>Can I use load runner to run load &amp; performance test using HP LoadRunner for the mobile app on cloud? Any license required? </li>
<li>Can I generate load from physical machine or does it have to be cloud load generator?</li>
<li>How do I simulate different network condition such as slow 3G, fast 3G and 4G etc.? </li>
<li>If HP LoadRunner is not suitable for this, what tool is being used to load test Websites and Mobile Apps on cloud? Please give a recommendation.</li>
</ul>

<p>Thanks!</p>
",https://stackoverflow.com/questions/46773621/what-tool-can-be-used-to-load-test-website-and-mobile-apps-on-cloud-azure,"['azure-web-app-service', 'performance-testing', 'azure-mobile-services', 'load-testing', 'loadrunner']",265,TRUE,0,2
Facing issue in Load Runner,"<p>I am new to load runner tool.I have to perform load testing for payment gateways. When I record the script using HP Load Runner the script is recorded successfully. When i replay the same script to check whether script is passed or not. Then, script does not show any error.So,i started giving load on the same script then for the payment the entry which i am getting in transaction list in ""Awaiting"" and when i do manually payment the entry i get is ""Completed"".So, according to the ""Awaiting"" status payment is not done successfully.</p>
",https://stackoverflow.com/questions/43464141/facing-issue-in-load-runner,"['performance-testing', 'load-testing', 'loadrunner']",235,FALSE,0,1
Dir=&quot;rtl&quot; messes up viewport functionality on mobile pages,"<p><br>
We are creating a RTL version of our site pages for Arabic, and have found that using  solves many layout problems, but with the side effect that on mobile devices, our viewport code  no longer results in correct scaling on initial load (testing on iphone). If we remove the rtl tag, the scaling returns to being perfect. Here's an sample page:</p>

<p><a href=""http://www.tribeofheart.org/sr/pkj_arabic_m.htm"" rel=""nofollow noreferrer"">http://www.tribeofheart.org/sr/pkj_arabic_m.htm</a></p>

<p>We've tried several commonly suggested variants of viewport code for mobile devices, but so far no luck. For example, these did not resolve the issue:</p>

<p>
</p>

<p>Any suggestions would be so greatly appreciated. </p>

<p>cayugaman</p>
",https://stackoverflow.com/questions/44378152/dir-rtl-messes-up-viewport-functionality-on-mobile-pages,"['mobile', 'viewport', 'arabic', 'right-to-left']",66,FALSE,0,0
Fastest Inter-service communication stack in Service Fabric?,"<p>Our application consists of a stateless web API making concurrent call to a stateful service using service remoting. Through load-testing, we noticed that there is delay caused during inter-service communication (between calling the service and the service itself starting to process the request). This occurs when we increase the load to approximately 1000 concurrent calls per second.</p>

<p>We tried <a href=""https://stackoverflow.com/questions/42004928/service-fabric-calls-between-services-are-delayed"">this solution</a> but our timing didnt improve. We then tried to replace our communication stack by WCF with tcp binding but that didnt improve it either.</p>

<p><strong>For inter-service communication in Service Fabric, which communication stack is the most efficient</strong>? and any idea on what's causing the bottleneck?</p>
",https://stackoverflow.com/questions/45275082/fastest-inter-service-communication-stack-in-service-fabric,"['communication', 'azure-service-fabric']",367,FALSE,4,1
"I am getting a 503 HTTP error when using JMeter, but web page loads on browser just fine","<p>I am using JMeter version 3.2 to perform load testing on a page with HTTPS protocol and I am getting 503 HTTP response code. 
On the other hand, when I type the URL on Browser the page is loaded.
Using Chrome Browser I can see the result of the request:</p>

<p><a href=""https://i.stack.imgur.com/6G3DM.jpg"" rel=""nofollow noreferrer"">result of the request</a></p>

<p>The page has been shown. My problem is that I am using HTTP response code on JMeter script to evaluate the response code.</p>

<p>Fistly, does anyone know why I am getting 503 response code even I can see the page?
Secondly, how can I overcome this issue to get Jmeter script rightly done ?</p>

<p>Thanks.
Marcos</p>
",https://stackoverflow.com/questions/45152252/i-am-getting-a-503-http-error-when-using-jmeter-but-web-page-loads-on-browser-j,"['jmeter', 'http-status-code-503']",5923,TRUE,3,3
Get aggregate summary values after running JMeter load test from java code,"<p>I'm running a JMeter load test from a java application with following code.</p>

<pre><code>StandardJMeterEngine jmeter = new StandardJMeterEngine();

JMeterUtils.setJMeterHome(jmeterHome);
JMeterUtils.loadJMeterProperties(jmeterProperties);
JMeterUtils.initLogging();
JMeterUtils.initLocale();

HTTPSampler httpSampler = new HTTPSampler();
httpSampler.setDomain(host);
httpSampler.setPort(port);
httpSampler.setPath(path);
httpSampler.setMethod(""GET"");
httpSampler.setName(""load test"");

LoopController loopController = new LoopController();
loopController.setLoops(1);
loopController.setFirst(true);
loopController.initialize();

ThreadGroup threadGroup = new ThreadGroup();
threadGroup.setName(""Sample Thread Group"");
threadGroup.setNumThreads(userCount);
threadGroup.setRampUp(1);
threadGroup.setSamplerController(loopController);

HashTree testPlanTree = new HashTree();
TestPlan testPlan = new TestPlan(""load test"");
testPlanTree.add(testPlan);
HashTree threadGroupHashTree = testPlanTree.add(testPlan, threadGroup);
threadGroupHashTree.add(httpSampler);

jmeter.configure(testPlanTree);
jmeter.run();
</code></pre>

<p>After running this script I want to get the aggregate summary values like average latency. I know the summary report can be logged in to a csv file and then I can calculate average latency by reading that file again. But I just want to know is there any way to get that aggregate values without writing and reading a csv file?</p>

<p>I have already referred following articles and several related questions here.</p>

<p><a href=""https://www.blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui"" rel=""nofollow noreferrer"">https://www.blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui</a>
<a href=""http://uttesh.blogspot.com/2015/04/jmeter-load-testing-by-code-jmeter-api.html"" rel=""nofollow noreferrer"">http://uttesh.blogspot.com/2015/04/jmeter-load-testing-by-code-jmeter-api.html</a></p>
",https://stackoverflow.com/questions/42469777/get-aggregate-summary-values-after-running-jmeter-load-test-from-java-code,"['java', 'jmeter']",940,TRUE,3,1
An Error message occurs on command prompt while generating Dashboard from Jmeter,"<p>I have started using JMeter 3.1 recently for load testing, all I wanted to do was generate a report dashboard from a csv file.</p>

<p>When I run the following command from Command Prompt:</p>

<pre><code>jmeter -g (csv file location) -o (Destination folder to save HTML Dashboard)
</code></pre>

<p>I get the error shown below:</p>

<pre><code>Could not parse timestamp&lt;1.487+12&gt; using format defined by property.saveservice.timestamp+format=ms on sample 1.487+12 .........
</code></pre>

<p>I have also attached the screenshot of the error message kindly refer below:</p>

<p><img src=""https://i.stack.imgur.com/TUsnk.png"" alt=""Error on Command Prompt""></p>

<p>Below is my saveservice properties that I copied into user properties file:</p>

<pre><code>jmeter.save.saveservice.bytes = true
jmeter.save.saveservice.label = true
jmeter.save.saveservice.latency = true
jmeter.save.saveservice.response_code = true
jmeter.save.saveservice.response_message = true
jmeter.save.saveservice.successful = true
jmeter.save.saveservice.thread_counts = true
jmeter.save.saveservice.thread_name = true
jmeter.save.saveservice.time = true
jmeter.save.saveservice.print_field_names=true
# the timestamp format must include the time and should include the date.
# For example the default, which is milliseconds since the epoch: 
jmeter.save.saveservice.timestamp_format = ms
# Or the following would also be suitable
#jmeter.save.saveservice.timestamp_format = dd/MM/yyyy HH:mm
#save service assertion
jmeter.save.saveservice.assertion_results_failure_message = true
</code></pre>

<p>I am not able to figure out the resaon, any help in this regard will be much appreciated.
please help, also please let me know if any addition information is required.</p>

<p>I have followed the below link to generate Dashboard:
<a href=""http://jmeter.apache.org/usermanual/generating-dashboard.html"" rel=""nofollow noreferrer"">http://jmeter.apache.org/usermanual/generating-dashboard.html</a></p>
",https://stackoverflow.com/questions/42217254/an-error-message-occurs-on-command-prompt-while-generating-dashboard-from-jmeter,['jmeter'],5346,TRUE,2,2
Setting up HTTP Request Sampler for POST Method in JMeter Test Plan,"<p>I have a web application where all the pages/services are secured using Central Authentication Service (CAS) based security. I need to perform a load testing on a page using HTTP POST request but have no idea how to configure HTTP Request Sampler for this POST method having access through security of CAS.
I can get the Ticket to get access to the page manually from the browser which is as follows:</p>

<pre><code>https://&lt;server&gt;:&lt;portX&gt;/testweb-cas/oauth2.0/callbackAuthorize?ticket=ST-17-J5jknSbPrU1pQ5vFK0bL-testweb.au 
</code></pre>

<p>Now I want to set up HTTP POST Request Sampler for :</p>

<p><code>http://&lt;server&gt;:&lt;portY&gt;/Xyz/pages/details.xhtml</code> using <code>authorization</code> from above link.</p>

<p>I haven't used HTTP Request POST sampler before in JMeter, and not really getting the desired output using the available solution.</p>
",https://stackoverflow.com/questions/41818798/setting-up-http-request-sampler-for-post-method-in-jmeter-test-plan,"['jmeter', 'load-testing', 'cas']",6049,TRUE,2,1
Using jmeter how to login as a user,"<p>I am using jmeter for load testing purposes.</p>

<p>I need to check by logging in as a user in my testing server.</p>

<p>I have two HTTP Requests - one is having GET method and the other is having POST method with parameters - username and password.</p>

<p>When I execute the script the first HTTP Request is accessing the page but in the second request it is not logging in with the parameters added.</p>

<p>I tried by adding 'HTTP Cookie Manager' both inside and outside the Thread Group but it didn't work.</p>

<p>I use View Results Tree to check the Response Data. </p>

<p>Any help is greatly appreciated. Thanks in advance.</p>
",https://stackoverflow.com/questions/45500837/using-jmeter-how-to-login-as-a-user,['jmeter'],96,TRUE,1,1
Why HTTP keep alive switched off by default in Node.js?,"<p>This is first time I'm implementing back-end in Node.js and I found that by default <strong>HTTP Agent</strong> has <strong>keep alive</strong> option switched off. For me it impacts a performance as I'm working with <strong>AWS SDK</strong> making tons of requests to its services. Actually my load testing helped to find that this option is switched off - so I enabled it and got much more better performance. I wonder if anybody knows why it's switched off by default? Is it <strong>not to break a compatibility</strong> (AFAIK this option was added few years ago) or for some other reason? Maybe I'm missing something? 
Found commit where it was added - <a href=""https://github.com/nodejs/node/commit/9fc9b87472806147b83c24d85b303c4f75d3021c"" rel=""noreferrer"">https://github.com/nodejs/node/commit/9fc9b87472806147b83c24d85b303c4f75d3021c</a></p>

<p>Nazar</p>
",https://stackoverflow.com/questions/43818479/why-http-keep-alive-switched-off-by-default-in-node-js,"['javascript', 'node.js', 'http']",416,FALSE,6,0
Extracting Value In Between Quotes - Regular Expressions,"<p>I'm trying to extract a request ID for running load testing on J Meter that I need to use for the subsequent HTTP requests. I'm using the regular expression extractor to do this.</p>

<p>I've been trying for hours and hours to extract the value inside single quotations and have not had any success. The response looks similar to this.</p>

<p>RequestDateTime='2/12/2017 7:19:49 AM' RequestID='1234567' Client=""14232"" etc...</p>

<p>I want the exact numbers with no quotations around it. The value should be 1234567</p>

<p>I've tried using RequestID='(.*?)' but it gives the entire string whereas I just want the value inside. </p>
",https://stackoverflow.com/questions/45147275/extracting-value-in-between-quotes-regular-expressions,"['regex', 'xml', 'jmeter']",884,FALSE,1,3
Non blocking spring controller giving 503 error when 500 request sent at once,"<p>I have been trying to do load testing(500 request in 1 second) with gatling for following three request handlers created with spring boot. Inspired by <a href=""http://callistaenterprise.se/blogg/teknik/2014/04/22/c10k-developing-non-blocking-rest-services-with-spring-mvc/"" rel=""nofollow noreferrer"">http://callistaenterprise.se/blogg/teknik/2014/04/22/c10k-developing-non-blocking-rest-services-with-spring-mvc/</a>
but i received reverse output. ""getUser"" -BLOCKING request handler was able to handle 500 request in 1 second(but launched more then 200 threads).
""getUser2"" and ""getUser3"" which are NONBLOCKING resulted in 503 error after handling around 10 request out of 500 request.
screen shot of gatling output: <a href=""https://ibb.co/ePEEBk"" rel=""nofollow noreferrer"">https://ibb.co/ePEEBk</a>
Can somebody please explain me the reason or what I am doing wrong. </p>

<pre><code>@RequestMapping(""/getUser2"")
public CompletionStage&lt;Object&gt; getUser2() {
    return CompletableFuture.supplyAsync(()-&gt; {
        try {
            logger.info("""");
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return ""result"";
    });
}

@RequestMapping(""getUser3"")
public DeferredResult&lt;String&gt; getUser3() {
    DeferredResult&lt;String&gt; def = new DeferredResult&lt;String&gt;();
    CompletableFuture.runAsync(()-&gt; {
        logger.info("""");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }).whenCompleteAsync((res,err)-&gt; {
        def.setResult(""result"");
    });
    return def;
}

@RequestMapping(""getUser"")
public String getUser() {
    try {
        logger.info("""");
        Thread.sleep(1000);
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
    return ""result"";
}
</code></pre>
",https://stackoverflow.com/questions/45890355/non-blocking-spring-controller-giving-503-error-when-500-request-sent-at-once,['spring-boot'],1696,FALSE,0,1
Graphicsmagick is taking more processing time on server,"<p>I am using GraphicsMagick to colorize multiple layers of images and composing it to form single image and returning it.</p>

<p>On local it was taking around <strong>30ms</strong> to process single layer (1000 x 1000).</p>

<p>Following is the image.</p>

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

<p>Following is my colorization code:</p>

<pre><code>var colorizeImage = function(imageName, hex, callback) {
  //Setting image path.
  var sourceImgSrc = getSourceImgSrc(imageName); //Source image path
  var convertedImgSrc = getConvertedImgSrc(imageName); // New image path
  var hslObj = getConvertedHSLFromHex(hex);
  var hue = hslObj.h;
  var saturation = hslObj.s; 
  var lightness = hslObj.l; 
  try{
      //Query  
        var modulateImg = ""gm convert -resize 500 ""+sourceImgSrc+"" -modulate ""+lightness+"",""+saturation+"",""+hue+"" -limit memory 100KB ""+convertedImgSrc; 

        exec(modulateImg, function(err) {
          if (err) {
            callback('', err);
          } 
          else{
            callback(convertedImgSrc);
          }

        });
  }
  catch(err){
    callback('', err);
  }
}
</code></pre>

<p>But, When I have hosted this to my server and performed load testing with only 50 concurrent users load. Performance for single layer gets degraded to around <strong>250ms</strong> for single layer.</p>

<p><strong>Following is my Server Config:</strong></p>

<p><strong>GraphicsMagick:</strong> 1.3.26</p>

<p><strong>OS:</strong> Window server 2012</p>

<p><strong>Processor:</strong> Intel(R) Xeon(R) 2.40 GHz (2 Processors)</p>

<p><strong>RAM:</strong> 128GB</p>

<p>Please help me to improve performance so that it can handle huge load easily.</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/46643123/graphicsmagick-is-taking-more-processing-time-on-server,"['imagemagick', 'imagemagick-convert', 'graphicsmagick', 'gm']",247,FALSE,0,0
Jmeter: lots of Connection: close in response header,"<p>I am using Jmeter to do load testing against index page(static page) of my websit.
There are lots of errors in the test reulst because of connection closed.
Any tips why server(apache 2.2) decide to close the connection?</p>

<p>=============http headers===============<br>
Load time:1055
Connect Time: 845
Latency: 1055
Size in bytes:98
Body size in bytes: 0</p>

<p>GET <a href=""https://mysite/index.html"" rel=""nofollow noreferrer"">https://mysite/index.html</a>
GET data:
[no cookies]</p>

<p>Request Headers:
Connection: keep-alive
Content-Length: 0
Content-Type: text/plain; charset=ISO-8859-1
Host: mysite
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_121)</p>

<p>Response headers:
HTTP/1.0 302 Found
Location: <a href=""http://mysite/splash.html"" rel=""nofollow noreferrer"">http://mysite/splash.html</a>
<strong>Connection: close</strong></p>
",https://stackoverflow.com/questions/43205384/jmeter-lots-of-connection-close-in-response-header,['jmeter'],1678,FALSE,0,2
Increasing req/sec on Nginx CE,"<p>I have a simple location block in nginx conf which echo's back the Server's ip. Its deployed on a 2 core 4gb ram EC2. i am able to get 400 req per second on load testing it. </p>

<p>Made optimizations like logs buffering, opening more FD, followed guidelines in <a href=""http://www.freshblurbs.com/blog/2015/11/28/high-load-nginx-config.html"" rel=""nofollow noreferrer"">http://www.freshblurbs.com/blog/2015/11/28/high-load-nginx-config.html</a>. </p>

<p>The peak cpu load on the node is 4-5% and same for memory. I am wondering how can i blow it up even further. Will using Docker help or the cpu load &amp; memory is irrelevant here as it might be running into network congestion. Will increasing EC2 Node size help ?</p>

<p>OS: CentOS. Any help appreciated. Thanks !</p>
",https://stackoverflow.com/questions/45136274/increasing-req-sec-on-nginx-ce,"['nginx', 'amazon-ec2', 'nginx-location']",40,FALSE,0,0
Which type of project testing we can do with JMeter,"<p>In my java application there are multiple maven project use and they are dependent on each other. In that 10 thread are run at one time to create a 10 tour plan (one day trip to visit shopkeeper) and other threads are in queue after complete one of the thread execution the waited threads get change.
I want to test the load testing of my application whether all thread are working fine or not. I don't know whether it is possible with JMeter or not.
If possible then how to execute my application through JMeter.</p>

<p>Please some one suggest me whether my application testing is possible with JMeter, if no then is there any alternative</p>
",https://stackoverflow.com/questions/41504776/which-type-of-project-testing-we-can-do-with-jmeter,"['java', 'multithreading', 'maven', 'testing', 'jmeter']",745,TRUE,0,2
How to call tearDown() with Throughput Shaping Timer,"<p>I have JMeter test plan which tests REST API. During execution, it posts items to DB (POST), and next steps are other operations, like GET, UPDATE, DELETE.</p>

<p>When the load is high, and service can't process all requests some items are presented at DB after test execution.</p>

<p>I tried to collect all successfully created to <a href=""https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html"" rel=""nofollow noreferrer"">ConcurrentLinkedQueue</a>. And delete all after the load is done at <code>tearDown()</code> method.</p>

<p>For load testing <a href=""https://jmeter-plugins.org/wiki/ThroughputShapingTimer/"" rel=""nofollow noreferrer"">Throughput Shaping Timer</a> is used. The test plan is executed in not GUI mode, and the load is specified with <code>load_profile</code> property.</p>

<p>The main problem is Shaping timer stops execution after set time. Thus <code>tearDown()</code> has never been executed:</p>

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

<p><strong><em>How to execute <code>tearDown()</code> after main load part with Shaping timer?</em></strong></p>
",https://stackoverflow.com/questions/46501870/how-to-call-teardown-with-throughput-shaping-timer,"['java', 'jmeter', 'junit4', 'jmeter-plugins', 'teardown']",84,TRUE,0,1
The Cucumber CLI stops without any error,"<p>I'm trying to find a way to Integrate JUNIT test methods with Cucumber to use in JMeter Load testing. </p>

<p>I'm clueless on why it's not executing the complete @Test method. Why it's stopping without any exceptions. </p>

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

<pre><code>@Test
public void runTest() throws Throwable {

    try {
        String[] getRequest = GetRequest.testValuesReturn();
        Main.main(new String[]{""-g"", ""com.sanity.step.definition"",""-t"", ""@"" +getRequest[1], ""C:/Users/IBM_ADMIN/Documents/Automation/Performance Testing/PerformanceTesting/MyFeature.feature""});
        System.out.println(""Print"");
    } catch (Exception e) {
        e.printStackTrace();
    }
}    
</code></pre>

<p>The test runs until the last step defined in the feature file.  Below is the feature file and last method. </p>

<pre><code>When Start the performance Test
When Open the Inventory Page
When Click on Seamless Switch
</code></pre>

<p>And the last method, </p>

<pre><code> @When(""^Click on Seamless Switch$"")
public void Seamless_Switch() throws Throwable {    
    driver.baseDriver.findElement(By.id(""seamlessSwitchButton"")).click();
    log.info(""Seamless switch is clicked"");
    System.out.println(""Click on Seamless Switch"");
}
</code></pre>

<p>It's printing until ""Click on Seamless Switch"". But the syso in @Test annotated method (""Print"") is not printed in the console. </p>

<p>Why is it stopping without any exception? Because of this issue, in JMeter, I'm getting the following errors before even completion of the thread,  </p>

<pre><code> 2017/06/01 13:40:31 INFO  - jmeter.reporters.ResultCollector: Shutdown hook started 
 2017/06/01 13:40:31 INFO  - jmeter.reporters.ResultCollector: Shutdown hook ended  
</code></pre>

<p>Thanks in advance for your answers!</p>
",https://stackoverflow.com/questions/44307006/the-cucumber-cli-stops-without-any-error,"['java', 'junit', 'jmeter', 'cucumber', 'cucumber-jvm']",190,TRUE,0,1
WCF / wsHttpBinding / Message Security - BadTokenRequest,"<p>So got an older WCF service / client I'm working on. Added a new (static) logging system to it, actually and now doing some load testing.</p>

<p>Getting some really annoying sporadic issues now - claiming ""Secure channel cannot be opened because security negotiation with the remote endpoint has failed"".  I noticed I get a CommunicationException with a fault name of Sender and subcode of BadContextToken.</p>

<p>Weird thing is, I'll get 2-4 correct responses, then a flurry of these exceptions, then start getting good responses again.</p>

<p>This is my first real foray into WCF, and not loving it so far :)</p>

<p>Service web.config:</p>

<pre><code>&lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;wsHttpBinding&gt;
      &lt;security mode=""Message""&gt;
        &lt;message clientCredentialType=""UserName"" /&gt;
      &lt;/security&gt;
    &lt;/wsHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;services&gt;
    &lt;service behaviorConfiguration=""ServiceBehavior"" name=""MyNamespace.MyService""&gt;
      &lt;endpoint address="""" binding=""wsHttpBinding"" contract=""MyNamespace.IMyService"" bindingConfiguration=""wsMessage""&gt;
        &lt;identity&gt;
          &lt;dns value=""localhost"" /&gt;
        &lt;/identity&gt;
      &lt;/endpoint&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name=""ServiceBehavior""&gt;
        &lt;serviceMetadata httpGetEnabled=""false"" /&gt;
        &lt;serviceCredentials&gt;
          &lt;serviceCertificate findValue=""MyValue"" storeLocation=""LocalMachine"" storeName=""My"" x509FindType=""FindBySubjectName"" /&gt;
          &lt;userNameAuthentication userNamePasswordValidationMode=""Custom"" customUserNamePasswordValidatorType=""MyNamespace.UserNamePassValidator, MyNamespace"" /&gt;
        &lt;/serviceCredentials&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
&lt;/system.serviceModel&gt;
</code></pre>

<p>And on the client side, the client is instantiated as such:</p>

<pre><code>var binding = new WSHttpBinding();
binding.Name = ""WSHttpBinding_IMyService"";
binding.Security.Mode = SecurityMode.Message;
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;

var client = new MyService(binding, ""http://myserver:8080/myapp/service.svc"");

var endpointIdentity = new DnsEndpointIdentity(""MyValue""); // Match the certificate name used by the server

client.Endpoint.Address = new EndpointAddress(new Uri(""http://myserver:8080/myapp/service.svc""), endpointIdentity, client.Endpoint.Address.Headers);

var creds = client.ClientCredentials;

creds.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;
creds.UserName.UserName = ""myuser"";
creds.UserName.Password = ""mypassword"";

string retVal = client.SendRequest(); // SendRequest == one of the methods on my IMyService, returns a string.  This is also where I sporadically see my error when load testing.
</code></pre>

<p>I would appreciate any pointers to help me out with this WCF setup!</p>
",https://stackoverflow.com/questions/46944942/wcf-wshttpbinding-message-security-badtokenrequest,"['c#', 'wcf', 'security', 'message']",372,FALSE,2,1
asp.net core how can I stop http request from locking,"<p>I am new to asp.net Core and so far I like it . I have a very simple action that just returns a string ""Hello World"" . My problem is that I think that http request are locking which is really slowing things down essentially just like this <a href=""https://stackoverflow.com/questions/10912995/asp-net-application-to-serve-multiple-requests-from-a-single-process/36753202#36753202"">ASP.NET application to serve multiple requests from a single process</a> . I am doing load testing my first request is 967 milliseconds however my 100th request takes 10927 milliseconds or 10 seconds  which is incredibly long to return a simple string . This is being done in release mode .</p>

<pre><code>  public string HomeStream()
    {

        return ""Hello World"";
    }
</code></pre>

<p>I am thinking that something is locking http requests because the 100th request should return much sooner . Any suggestions would be great. This is my launch settings</p>

<pre><code>{
  ""iisSettings"": {
    ""windowsAuthentication"": false,
    ""anonymousAuthentication"": true,
    ""iisExpress"": {
      ""applicationUrl"": ""http://localhost:55556/"",
      ""sslPort"": 0
    }
  },
  ""profiles"": {
    ""IIS Express"": {
      ""commandName"": ""IISExpress"",
      ""launchBrowser"": true,
      ""environmentVariables"": {
        ""ASPNETCORE_ENVIRONMENT"": ""Development""
      }
    },
    ""MyApp"": {
      ""commandName"": ""Project"",
      ""launchBrowser"": true,
      ""environmentVariables"": {
        ""ASPNETCORE_ENVIRONMENT"": ""Development""
      },
      ""applicationUrl"": ""http://localhost:5002/""
    }
  }
}
</code></pre>

<p>I am using the <strong>5002</strong> url .
<a href=""https://i.stack.imgur.com/vXiSS.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/vXiSS.png"" alt=""enter image description here""></a></p>
",https://stackoverflow.com/questions/46627679/asp-net-core-how-can-i-stop-http-request-from-locking,"['c#', 'asp.net-core', 'asp.net-core-2.0']",1804,TRUE,2,1
Oracle Database Performnace,"<p>I am using Oracle SQL Developer to connect to Oracle Database instance running on a shared server. I want to perform load testing on the database with following load:</p>

<ol>
<li>100000 records per minute insert on table#1</li>
<li>10000 records per minute insert on table#2</li>
<li>1000 records per minute read on table#2</li>
</ol>

<p>I have already generated above load but do not know how can I measure the performance of the Oracle database before and after the load. I do not have DBA privileges on the database.</p>

<p>I want to measure following parameters (Before and After load):</p>

<ol>
<li>I/O Throughput</li>
<li>Network Latency</li>
<li>Memory utilization</li>
<li>Query execution time</li>
</ol>

<p>I have tried using DBA functionality of SQL Developer but couldn't make any inference out of it.</p>

<p>Thanks!</p>
",https://stackoverflow.com/questions/46636202/oracle-database-performnace,"['oracle11g', 'load-testing', 'database-performance']",32,FALSE,0,1
Wildfly crashes when SpringBoot load test is near the end,"<p>I have this scenario: a 4GB RAM centos machine, running two tomcats, one with 3 apps in it, another one running 2 apps, and one wildfly with one app runnning on it.</p>

<p>Also, I have a SpringBoot app (tomcat embedded) exposing a rest api, listening on some port.</p>

<p>Wildfly is running with xmx of 3072 and xms 2048.
Tomcats are running with xmx of 1024 and xms 512 each.</p>

<p>I'm load testing the springBoot app and when is almost done, wildfly process crashes.</p>

<p>I see the memory usage is, as expected, almost maximum and CPU also, specially on the springBoot process.</p>

<p>My question is, is this a linux-centos condition that prioritizes some process over another and kill it? Or a JVM condition?</p>

<p>Thanks.</p>
",https://stackoverflow.com/questions/45494422/wildfly-crashes-when-springboot-load-test-is-near-the-end,"['performance', 'spring-boot', 'resources', 'wildfly', 'centos6']",85,TRUE,0,1
Golang http connection is persisting indefinitely,"<p>I have a simple code that retrieves data from the database and I am using Jmeter to perform load testing on it . What I am doing is simulating 1,000 requests sometimes I get all 1,000 successful requests and other times I get 999 requests and I have to stop it because it seems like the thread or last results keeps on going indefinitely this is how it looks, notice on how the last request takes more than 10 times the normal time . If i don't stop it then that request would keep going on and on .
<a href=""https://i.stack.imgur.com/GOLWv.png"" rel=""nofollow noreferrer""><img src=""https://i.stack.imgur.com/GOLWv.png"" alt=""enter image description here""></a></p>

<p>This is my code</p>

<pre><code>func get_data(w http.ResponseWriter, r *http.Request) {
    var result string
    r.ParseForm()

    wg := sync.WaitGroup{}

    wg.Add(1)
    go func() {

        defer wg.Done()

        db.QueryRow(""select json_build_object('Locations', array_to_json(array_agg(t))) from (SELECT latitudes,county,longitudes,""+
            ""statelong,thirtylatmin,thirtylatmax,thirtylonmin,thirtylonmax,city""+
            "" FROM zips where city='Orlando' ORDER BY city limit 5) t"").Scan(&amp;result)

    }()
    wg.Wait()

    fmt.Fprintf(w,result)
}
</code></pre>

<p>Then I have my database connection</p>

<pre><code>var db *sql.DB

func init() {
    var err error
    db, err = sql.Open(""postgres"", Postgres_Connect)
    if err != nil {
        log.Fatal(""Invalid DB config:"", err)
        println(""Invalid DB config:"")
        //log_errors(""HomePage-Postgres: error opening database"",err)
    }
    if err = db.Ping(); err != nil {
        log.Fatal(""DB unreachable:"", err)
        println()
    }



}
</code></pre>

<p>and here is my HTTP server</p>

<pre><code>func main() {

    runtime.GOMAXPROCS(runtime.NumCPU())
    r := mux.NewRouter()

    r.HandleFunc(""/mydata"",Controllers.Get_Data)
    http.Handle(""/"",r)


    srv := &amp;http.Server{
        ReadTimeout: 20 * time.Second,
        WriteTimeout: 20 * time.Second,
        IdleTimeout:  120 * time.Second,
        Addr: "":8000"",
    }
    log.Println(srv.ListenAndServe())
}
</code></pre>

<p>I was hoping that the ReadTimeOut would kill the connection but it seems like it doesn't</p>
",https://stackoverflow.com/questions/44059263/golang-http-connection-is-persisting-indefinitely,['go'],208,TRUE,2,1
How do I simulate 20000 user logins in a load test of an azure hosted webapp?,"<p>I have a client who wants me to do a load test of their azure hosted webapp.  They want to test the login mechanism for 1000, 5000, 10,000, and finally 20,000 concurrent users.  They want to use ADFS logins for the webapp.</p>

<p>They're a touch reluctant to create 20,000 AD users on their side and to let me use the login details for my test.  They say they'll supply me with 10 users.</p>

<p>I'm going to be using the visual studio online load testing utility for my actual load test.</p>

<p>Is there any value in just spawning the same 10 users in 100(and eventually 2000) different threads and logging in that way? </p>

<p>Do I need them to give me a new OU with 20,000 users in it?</p>
",https://stackoverflow.com/questions/43539920/how-do-i-simulate-20000-user-logins-in-a-load-test-of-an-azure-hosted-webapp,"['visual-studio', 'azure', 'load-testing', 'adfs']",188,FALSE,1,0
RabbitMQ on .net core performance,"<p>I am evaluating RabbitMQ with .Net Core Web Api for performance. I creating a web api that will only publish message to a rabbitmq queue and a worker process will pick the message and process it. </p>

<p>We wanted to send about 1000+ messages per second using a web api, i create a new .Net Core Web Application and a class for rabbitmq to sendmessage and hosted the application on local iis.</p>

<p>For load testing i am using a different machine and create a simple jmeter file to post to web api e.g. api/rabbit. This will sendMessage to a queue. I have used Taurus to execute jmeter test for about 60 seconds.</p>

<p>Here is the results </p>

<ul>
<li>concurrency @ 50 = 453 hits/s (29ms avg response time) </li>
<li>concurrency @ 100 = 563 hits/s (174ms avg response time)</li>
</ul>

<p>Please advise?</p>

<p>QueueAccessLayer</p>

<pre><code>public class RMQAccessLayer : IRMQAccessLayer
{
    private ConnectionFactory _factory;
    private IConnection _connection;
    private IModel _model;
    private IBasicProperties _basicProperties;

    public RMQAccessLayer()
    {
        _factory = new ConnectionFactory() { HostName = ""localhost"", UserName = ""guest"", Password = ""guest"" };
        _connection = _factory.CreateConnection();
        _model = _connection.CreateModel();
        _model.QueueDeclare(""hello"", true, false, false, null);

        _basicProperties = _model.CreateBasicProperties();
        _basicProperties.Persistent = true;
    }

    public bool SendMessage(string msg)
    {

        var body = Encoding.UTF8.GetBytes(msg);
        _model.BasicPublish("""", ""hello"", _basicProperties, body);

        return true;
    }
}

public interface IRMQAccessLayer
{
    bool SendMessage(string msg);
}
</code></pre>

<p>Startup.cs</p>

<pre><code>    public void ConfigureServices(IServiceCollection services)
    {
        // Add framework services.
        services.AddMvc();

        // Add RabbitMQ 
        services.AddSingleton&lt;IRMQAccessLayer, RMQAccessLayer&gt;();

    }
</code></pre>

<p>RabbitController.cs</p>

<pre><code>[Route(""api/[controller]"")]
public class RabbitController : Controller
{
    private IRMQAccessLayer _queue;
    public RabbitController(IRMQAccessLayer queue)
    {
        _queue = queue;
    }
    // POST api/values
    [HttpPost]
    public void Post([FromBody]string value)
    {
        var emailMessage = ""Message Id - "" + Guid.NewGuid();
        _queue.SendMessage(emailMessage);
    }
}
</code></pre>
",https://stackoverflow.com/questions/42004846/rabbitmq-on-net-core-performance,"['asp.net', 'rabbitmq', '.net-core']",953,FALSE,5,0
Remove JMeter Assertion failed error,"<p>I am trying to do load test on one of our web server. I recorded a web browsing session with the chromium extension of BlazeMeter ""BlazeMeter | The Load Testing Cloud 2.3.1"".
After that when I run load test, I get the response code:200 for some css style sheets. But that HTTP request to retrieve the css style sheet in ""view results tree"" of JMeter gets RED, also the Dashboard report (<a href=""http://jmeter.apache.org/usermanual/generating-dashboard.html"" rel=""nofollow noreferrer"">http://jmeter.apache.org/usermanual/generating-dashboard.html</a>) of JMeter says, that was an assertion failed error. The response message tells about some error message as stated below:</p>

<pre><code>Response message: Embedded resource download error:http://f...content-available-to-author-only...s.com/css?family=Lato:100,300,400,700 code:Non HTTP response code: java.net.UnknownHostException message:Non HTTP response message: f...content-available-to-author-only...s.com: Name or service not known,
</code></pre>

<p>How can I remove this error by editing css style sheet or how to skip this error and make it pass?
The full sample result is added below:</p>

<pre><code>Thread Name: Thread Group 1-1
Sample Start: 2017-01-09 11:59:45 BDT
Load time: 1031
Connect Time: 508
Latency: 764
Size in bytes: 24175
Sent bytes:1094
Headers size in bytes: 331
Body size in bytes: 23844
Sample Count: 1
Error Count: 1
Data type (""text""|""bin""|""""): text
Response code: 200
Response message: Embedded resource download error:http://f...content-available-to-author-only...s.com/css?family=Lato:100,300,400,700 code:Non HTTP response code: java.net.UnknownHostException message:Non HTTP response message: f...content-available-to-author-only...s.com: Name or service not known, 

Response headers:
HTTP/1.1 200 OK
Server: nginx/1.10.1
Date: Mon, 09 Jan 2017 05:59:46 GMT
Content-Type: text/css
Content-Length: 21431
Last-Modified: Mon, 09 Jan 2017 05:51:50 GMT
Connection: close
ETag: ""587324f6-53b7""
Accept-Ranges: bytes
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Frame-Options: DENY


HTTPSampleResult fields:
ContentType: text/css
DataEncoding: null
</code></pre>

<p>Sorry, for poor language.</p>
",https://stackoverflow.com/questions/41542580/remove-jmeter-assertion-failed-error,['jmeter'],2870,TRUE,0,1
Getting SocketTimeOutException : read time out on rest calls to internal other micro spring boot service,"<pre><code>Encountered Internal Server Exception
org.springframework.web.client.ResourceAccessException: I/O error on GET request for ""localhost:8034/v1/users/81ebc4ca-2496-4cc3-b533-311f237b6fe9/crop_details/10/summary"": Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:666)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621)
    at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:321)
    at ...
    at java.lang.Thread.run(Thread.java:745)

Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:170)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1535)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:84)
    at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
    at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:652)
    ... 91 common frames omitted
</code></pre>

<p><strong>Scenario</strong> - When I am trying to load testing using JMeter for Rest API from one service(running on 8033 port). It internally calls using RestTemplate to other service rest API(above one on 8034). For few request it works fine but as I go beyond just 10 concurrent requests it start giving above error. </p>

<p><strong>What I tried till now</strong></p>

<ul>
<li>I already tried using Different ClientManagers to set both connection and read time out values.</li>
<li>Also tried using PoolConnectionMangers. </li>
<li>Custom Keep Alive Strategy.</li>
<li>Setting JDK's values for above time out properties.</li>
</ul>

<p>But Still getting same problem.</p>

<p><strong>Links referred</strong></p>

<ul>
<li><a href=""http://www.baeldung.com/httpclient-connection-management"" rel=""nofollow noreferrer"">http://www.baeldung.com/httpclient-connection-management</a></li>
<li><a href=""http://www.baeldung.com/rest-template"" rel=""nofollow noreferrer"">http://www.baeldung.com/rest-template</a></li>
<li>http:/blog.technogemsinc.com/2010/08/java-url-connection-timeout-default.html</li>
</ul>

<p>Same thing works on my local machine for 10000 request without any problem.</p>

<p>Box/Server details - 3.7 GB/50GB single core CPU</p>
",https://stackoverflow.com/questions/43918119/getting-sockettimeoutexception-read-time-out-on-rest-calls-to-internal-other-m,"['java', 'spring', 'rest']",3379,FALSE,3,0
Using Parameterized JUNIT integrating with Cucumber,"<p>Long story short, I have a JUNIT test which I want to integrate it with JMeter. The scripts are written by Selenium WebDriver integrated with Cucumber. </p>

<p>This is my main method,    </p>

<pre><code>public class SanityStart extends ClassUtility {
    private ClassUtility driver;
    private ClassUtility environment;
    private ClassUtility path;
    private ClassUtility userName;

    public static Logger log = Logger.getLogger(SanityStart.class.getName());

    public SanityStart(ClassUtility driver, ClassUtility environment, ClassUtility path, ClassUtility userName) {

        this.driver = driver;
        this.environment = environment;
        this.path=path;
        this.userName=userName;
    }

    @Test
    public void main(String[] args) throws Throwable {

        environment.environmentValue = args[0];
        path.pathValue = ""@"" +args[1];
        userName.superUser = args[2];
        System.setProperty(""userName"",userName.superUser);
        Main.main(new String[]{""-g"", ""bell.canada.step.definition"", ""-t"", pathValue,  ""C:/Users/IBM_ADMIN/Documents/Automation/Cr Automation/CR Automation/src/NewFeature.feature""});   
    }
}
</code></pre>

<p>Since I want to re-use the variable I have create a ClassUtility which contains the dependency Injector variables.</p>

<pre><code>public class ClassUtility {

    public WebDriver baseDriver;
    public String orderNo;
    public String pageIn;
    public String environmentValue;
    public String pathValue;
    public String superUser;
    public String profile1;
    public String profile2;

}
</code></pre>

<p>I need to get the values such as environment, path and userName in runtime from JMeter. So that based on the request it will invoke multiple threads and do load testing. </p>

<p>When I try to run as JUNIT test, I'm getting the following error, </p>

<blockquote>
  <p>java.lang.Exception: Test class should have exactly one public zero-argument constructor
  java.lang.Exception: Method main should have no parameters</p>
</blockquote>

<p>Need your suggestions/feedback on how I can achieve this! Is it even possible to have a main method in JUNIT test? Thanks in advance!</p>
",https://stackoverflow.com/questions/44241638/using-parameterized-junit-integrating-with-cucumber,"['java', 'spring', 'junit', 'dependency-injection', 'jmeter']",576,FALSE,0,1
Ajax calls and 403s,"<p>I have added a few (4-5) ajax calls to a site that previously did not have that many (maybe 1-2).</p>

<p>When I'm load testing this site with about 45 concurrent users I'm seeing a lot of 403 errors being reported and these occur quite often on the pages requested by ajax although not exclusively.</p>

<p>This is .net MVC site on a Windows 2012 server running IIS 8 with 10gb RAM and a decent CPU.</p>

<p>If I visit those pages or run test POSTs to them I never get a 403, it seems to be related to traffic levels. </p>

<p>Does anyone know if this is some automatic throttling in IIS or is there something I should be doing in my ajax calls to make sure they do not get marked as 403 for whatever reason.</p>
",https://stackoverflow.com/questions/42280455/ajax-calls-and-403s,"['asp.net-mvc-4', 'iis', 'http-status-code-403']",78,FALSE,0,0
visual studio team services load test is not using new machines in load balancer,"<p>we have an azure web application, configured with auto-scaling. and we are load-testing it using Visual Studio Team Services. autoscaling is working fine and it kicks in at one moment, however our load test users remain on original (first two maschines in load-balancer-cluster) which are chocking under load and cpu usage of 100%  and the new machines  do not get any request. </p>

<p>We assume that TCP connections from load-agents are sticking to this first two  machines and new machines are simply ignored by our tests. Is there a way to tell load tests in cloud to re-establish TCP connection so that new servers can also be utilised ?</p>

<p>this are the config settings we were using:
<a href=""https://drive.google.com/file/d/0B8CmpwlrdSs0cjdUMkdWbGV2QjQ/view?usp=sharing"" rel=""nofollow noreferrer"">https://drive.google.com/file/d/0B8CmpwlrdSs0cjdUMkdWbGV2QjQ/view?usp=sharing</a>
<a href=""https://drive.google.com/file/d/0B8CmpwlrdSs0QlQ4R3JpNnJ3Mkk/view?usp=sharing"" rel=""nofollow noreferrer"">https://drive.google.com/file/d/0B8CmpwlrdSs0QlQ4R3JpNnJ3Mkk/view?usp=sharing</a></p>

<p>almir</p>
",https://stackoverflow.com/questions/43412226/visual-studio-team-services-load-test-is-not-using-new-machines-in-load-balancer,"['azure-devops', 'azure-web-app-service', 'load-testing']",148,FALSE,0,1
JMETER - Getting SSL Handshake Fatal Error while recording script,"<p>i just need to consult u if u have any idea. I am load testing a Banks application using JMETER. They have hosted that app. on LAN. We cannot open anything on LAN except the banks app, not even Google bcoz of tight security. Everything is Blocked except Banks App. Now when i try record the script using jmeter, Bank App doesnt open for recording and throws an error ""SSL HANDSHAKE FAILURE - Fatal Error""... Have u any idea how to resolve this issue? I am asking this issue from all of my LinkedIn contacts so is you :) Error screenshot have been attached with this email... Keep in mind we dont have internet access on machine where Jmeter &amp; Bank app running, LAN runs Bank App only. Thankful if u can gimme idea. Pls see attached screenshot of SSL error</p>

<p><a href=""https://i.stack.imgur.com/1rH0G.png"" rel=""nofollow noreferrer"">enter image description here</a></p>
",https://stackoverflow.com/questions/47008283/jmeter-getting-ssl-handshake-fatal-error-while-recording-script,"['ssl', 'jmeter']",1244,FALSE,-1,1
Understanding metrics within SOAP UI Load Test,"<p>I am doing some load testing within SOAP UI and want some help in understanding some of the metrics and how it works. Below is a screenshot of a load test I've completed:</p>

<p>Looking at the above, am I correct/incorrect on what I believe the above metrics is saying?</p>

<p>Limit: 100 Seconds - Does that mean the load test will last for 1 minute 40 seconds? So lets say I want the load test to last for 10 minutes, I can set that within there by setting 1000 seconds?</p>

<p>Min: - Is this the quickest the test step has run for? Also is it in milliseconds?</p>

<p>Max - Is this the longest the test step has run for? Also is it in milliseconds?</p>

<p>avg - Is this the average test step run? Also is it in milliseconds?</p>

<p>bytes - Is this how much memory taken altogether or for the latest test run?</p>

<p>Thanks,  </p>
",https://stackoverflow.com/questions/45632630/understanding-metrics-within-soap-ui-load-test,['soapui'],673,TRUE,1,1
Google Cloud dataflow dropping messages,"<p>I have the following application that runs a data pipeline and listens to Google pubsub:</p>

<p>Config:</p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.apache.beam&lt;/groupId&gt;
    &lt;artifactId&gt;beam-sdks-java-core&lt;/artifactId&gt;
    &lt;version&gt;2.0.0&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.apache.beam&lt;/groupId&gt;
    &lt;artifactId&gt;beam-runners-google-cloud-dataflow-java&lt;/artifactId&gt;
    &lt;version&gt;2.0.0&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>Code:</p>

<pre><code>Pipeline p = //Initialise pipeline
p.apply(""read messages"", readMessage())
    .apply(""log message"", logMessage())

private static PubsubIO.Read&lt;String&gt; readMessage() {
    return PubsubIO.readStrings()
        .fromSubscription(""my_subscription"");
}

//Log message just logs the message
</code></pre>

<p>I faced an issue where messages were getting dropped intermittently (i.e. they were not making it to dataflow pipeline from pubsub). In order to debug, I wrote another application and made it listen to the same pubsub. Below is the config:</p>

<p>Config:</p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
    &lt;artifactId&gt;google-cloud-pubsub&lt;/artifactId&gt;
    &lt;version&gt;0.22.0-beta&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;com.google.apis&lt;/groupId&gt;
    &lt;artifactId&gt;google-api-services-pubsub&lt;/artifactId&gt;
    &lt;version&gt;v1-rev358-1.22.0&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>Code:</p>

<pre><code>@Component
public class PubsubMessageReceiver implements MessageReceiver{

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

    @Override
    public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) {
        logger.info(message.getData().toStringUtf8());
        consumer.ack();
    }
}
</code></pre>

<p>I made it run for a couple of hours (by creating a new subscription to listen to the same topic as the original application), checked the log files and found some messages that did not make it to the dataflow pipeline.</p>

<p>Now, this is intermittent and I am not able to reproduce it (even with load testing). Does this have anything to do with google's beam libraries (looks like a race condition or similar)? If yes, does anyone know if this can be fixed by changing the configuration/updating the version?</p>
",https://stackoverflow.com/questions/45955826/google-cloud-dataflow-dropping-messages,"['java', 'google-cloud-platform', 'google-cloud-dataflow', 'google-cloud-pubsub']",355,FALSE,0,0
How to know the time spent for each unit-test case assert statement ONLY,"<p>I know there is a <a href=""https://stackoverflow.com/questions/9502516/how-to-know-time-spent-on-each-test-when-using-unittest"">question</a> already in SO. But my question is different than that.</p>

<p>I am load-testing my script with unit-test. I want to know the time spent for each test-cases <em>but</em> which is only running within the <code>assert</code> function. Before running the assert my unit-test is doing some work, like generating test-data, loading DB table and other things. I don't want to time those activities. To keep in mind those data-loading is not common for every test-cases, So I can't put that in <code>setUp</code> function.</p>

<p>Now let's get into the code -</p>

<pre><code>def setUp(self):
    #set up the env

def tearDown(self):
    #tear down everything

def test_fast_case(self):
    #filing up the directories with test data
    self.assertEqual(myscript(param), 1, ""Fast!"") # I only want the time taken to execute this step

def test_slow_case(self):
    #filing up the directories with test data
    #calling some other function
    self.assertEqual(myscript(param), 100, ""Slow!"") # I only want the time taken to execute this step
</code></pre>

<p>Yes! I know there is an easy solution, just to keep a timer before and after the <code>assert</code> statement and then print that. But then I have to copy paste 3 lines of code in each of my test function. I am looking for a general and robust solution.</p>
",https://stackoverflow.com/questions/47485261/how-to-know-the-time-spent-for-each-unit-test-case-assert-statement-only,"['python', 'unit-testing', 'benchmarking']",144,FALSE,0,0
GWT - RPC SerializationException with class object,"<p>I am currently trying to use the SyncProxy library to test services of my app, in order to do load testing with JMeter. The app works fine, I am running it on localhost.</p>

<p>I already managed to make some calls, but only when the parameters where </p>

<p>this is the error : </p>

<blockquote>
  <p>Type 'net.gicm.ector.shared.beans.Utilisateur' was not included in the
  set of types which can be serialized by this SerializationPolicy or
  its Class object could not be loaded. For security purposes, this type
  will not be serialized.</p>
</blockquote>

<p>Here is the piece of code where I make the call :</p>

<pre><code> final Utilisateur user = new Utilisateur();
 user.setUser(""C2984"");

 TableauDeBordServiceAsync tableauDeBordServiceAsync = (TableauDeBordServiceAsync) SyncProxy
          .newProxyInstance(TableauDeBordServiceAsync.class, MODULE_BASE_URL, GET_SERVICE_NAME_2);
 tableauDeBordServiceAsync.ongletRealisationListeControle(plan, user, codeSI, numStructure, synthese, colonneAtrier, ordre, numeroPagination, filtre, new AsyncCallback&lt;List&lt;List&lt;String&gt;&gt;&gt;() {

    @Override
    public void onFailure(Throwable caught) {
        // TODO Auto-generated method stub
        System.out.println(caught);

    }

    @Override
    public void onSuccess(List&lt;List&lt;String&gt;&gt; result) {
        // TODO Auto-generated method stub
        System.out.println(result);

    }

 });
</code></pre>

<p>I looked at this thread, and tried to find where could I do something wrong : <a href=""https://stackoverflow.com/a/9534704/4628136"">https://stackoverflow.com/a/9534704/4628136</a></p>

<p>My class implements the <code>Serializable</code> interface, has a default empty constructor, and is in the client package. </p>

<pre><code>public class Utilisateur implements Serializable {
   ...
   public Utilisateur() {
   }
   ...
}
</code></pre>

<p>But actually, I don't see anything about that <code>Utilisateur</code> class in the gwt.rpc files. </p>
",https://stackoverflow.com/questions/44267098/gwt-rpc-serializationexception-with-class-object,"['java', 'gwt', 'gwt-rpc', 'gwt-syncproxy']",655,FALSE,0,2
HP True Client replacement,"<p>Dear HP Load Runner gurus!</p>

<p>We find the HP Load Runner True Client not very stable and forces us to using old version of Firefox. We need to test against the latest version Firefox due to application requirements. We have tested a few versions including 12.53. It is also quite heavy on the CPU% . we get about 1:1 relation between [user]:[cpu]  when True Client is used.</p>

<p>We want to drive the GUI in these load tests. We do not want to drive/navigate the load test by sending HTTP requests, i.e. not driving the browser.</p>

<p>Could you recommend  alternatives; </p>

<ol>
<li>Plugins to HP True Client  (driver) ,maybe someone else have
developed a similar plugin that HP LoadRunner can hook into? </li>
<li>A good alternative to HP Load Runner that also opens the end-users browser GUI for load testing, that scales well? Preferably Opensource.</li>
</ol>

<p>Thanks,</p>
",https://stackoverflow.com/questions/46092000/hp-true-client-replacement,['loadrunner'],1055,FALSE,-1,2
HttpClient throws HttpRequestException under load,"<p>We are load testing a .NET web application (hosted in IIS) that communicates with various 
services. <br />
However, some time after test is started and the load increased, the <code>HttpClient</code> starts throwing errors at us:</p>

<pre><code>System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&gt; System.Net.WebException: Unable to connect to the remote server ---&gt; System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond &lt;ip_address_here&gt;:443
</code></pre>

<p>The investigation with Wireshark showed these requests didn't even reach the load balancer - it shows TCP resets when that situation occur. The approximate timeframe is 90-100 seconds, and I'm thinking it has to do with the fact that default HttpClient timeout is 100 seconds (and we haven't modified it). <br />
We use one <code>HttpClient</code> instance for all the communication with this particular service, so it gets accessed in a concurrent manner. <br />
We construct it in <code>BackendClient</code> class:</p>

<pre><code>private readonly HttpClient _httpClient = new HttpClient();
</code></pre>

<p>use it in <code>BackendClient</code> methods:</p>

<pre><code>var response = await _httpClient.SendAsync(requestMessage);
</code></pre>

<p>and then dispose of it in <code>BackendClient.Dispose</code> code. <br />
This problem only shows under load, we can't reproduce it anywhere else. <br />
Anyone familiar with this? I'm sure there's some setting that we missed. <br />
The only option I'm seeing is to attach a traceListener and see what it shows</p>
",https://stackoverflow.com/questions/47890324/httpclient-throws-httprequestexception-under-load,"['.net', 'http', 'dotnet-httpclient']",427,FALSE,2,0
Jmeter: How to customize/scripted in Jmeter to handle leave approvals scenario,"<p>Pleas guide how can below scenario be customized/scripted in Jmeter for load testing.</p>

<p>Scenario: Approve leaves</p>

<ol>
<li>Login as Manager> Go to leaves list (would display all the requested leaves for approval)> Select all and click Approve</li>
</ol>

<p>I am able to extract the dynamic values from responses however not able to understand how can i be able to dynamically handle leave requests.</p>

<p>Leaves list request: shows all requests's employee codes with other data (like code, leave from and to, reason and all)</p>

<p>I am using CSV file to login with different manager ids. However since each manager will have different number of leave requests (recorded the script with one manager login who has 8 requests) and if i run with different manager ids, how to handle different leave requests with different employee codes.</p>

<p>Subsequent requests have below kind of POST data which can be extracted from leaves list request:</p>

<pre><code>{ Code:'12345', name: 'xxx', iLeaveId:2345,Type:9, stype: 'Casual',  dNoofDays: 3, sFromdate: '01 Aug 2013', sTodate: '04 Aug 2013', sFromopt: 'Full Day', sToopt: 'Full Day', Reason: 'test',}
</code></pre>

<p>Please pardon if the question is not clear/framing is not communicative.</p>
",https://stackoverflow.com/questions/47922473/jmeter-how-to-customize-scripted-in-jmeter-to-handle-leave-approvals-scenario,['jmeter'],86,TRUE,1,1
GCP kubernetes HPA not working as described,"<p>We have been running our workload on kubernetes on GCP for around a year now, however, last week, one of our websites was hit hard by a promo campaign launched by the site owner but without us prescaling the cluster.</p>

<p>Since then we've been load testing the stack on a test cluster, the issue we're having is that using a Google node, the HPA doesn't scale up as written in the documentation, rather it always scales</p>

<p>2 --> 4 -->8 -->16 -->32 --64--128</p>

<p>Regardless of CPU load. </p>

<p>For instance in our test we had 251%/60% cpu with 8 pods running. My math would suggest  (251/60)*8= 33 pods are needed, however, it will always go to 16 next, then wait 3 mins before going to 32.</p>

<p>The scale out required for the test to function is around 64 pods, which it arrives at after about 25 mins, instead of 8, is there a way to get the GCP version operating more like the manual?</p>

<pre><code>    apiVersion: autoscaling/v1
    kind: HorizontalPodAutoscaler
    metadata:
      annotations:
        autoscaling.alpha.kubernetes.io/conditions: '[{""type"":""AbleToScale"",""status"":""False"",""lastTransitionTime"":""2017-11-        22T14:17:35Z"",""reason"":""BackoffBoth"",""message"":""the
          time since the previous scale is still within both the downscale and upscale
          forbidden windows""},{""type"":""ScalingActive"",""status"":""True"",""lastTransitionTime"":""2017-11-21T19:09:34Z"",""reason"":""ValidMetricFound"",""message"":""the
          HPA was able to succesfully calculate a replica count from cpu resource utilization
          (percentage of request)""},{""type"":""ScalingLimited"",""status"":""False"",""lastTransitionTime"":""2017-11-22T14:11:05Z"",""reason"":""DesiredWithinRange"",""message"":""the
          desired replica count is within the acceptible range""}]'
        autoscaling.alpha.kubernetes.io/current-metrics: '[{""type"":""Resource"",""resource"":{""name"":""cpu"",""currentAverageUtilization"":64,""currentAverageValue"":""193m""}}]'
      creationTimestamp: 2017-11-20T15:44:48Z
      name: varnish-7
      namespace: default
      resourceVersion: ""373498""
      selfLink: /apis/autoscaling/v1/namespaces/default/horizontalpodautoscalers/varnish-7
      uid: bd60211b-ce09-11e7-af0d-42010a8e0099
    spec:
      maxReplicas: 60
      minReplicas: 2
      scaleTargetRef:
        apiVersion: extensions/v1beta1
        kind: Deployment
        name: varnish-7
      targetCPUUtilizationPercentage: 50
    status:
      currentCPUUtilizationPercentage: 64
      currentReplicas: 8
      desiredReplicas: 8
      lastScaleTime: 2017-11-22T14:16:05Z
</code></pre>
",https://stackoverflow.com/questions/47423193/gcp-kubernetes-hpa-not-working-as-described,"['kubernetes', 'google-kubernetes-engine', 'google-cloud-platform']",290,FALSE,1,0
AWS Beanstalk and RDS Scaling,"<p>I have use case query regarding scaling that I have a PHP Magento application running inside a Docker container on AWS Elastic Beanstalk backed by a AWS RDS (t2.micro) instance.</p>

<p>Now when I use Apache JMeter for load testing, I throw just 100 users in 10 seconds and my RDS instance goes down but Beanstalk instance remains fine. My question is how do I scale the RDS when an huge number of traffic comes?</p>

<p>Some said to me that you should use a at least medium instance for your RDS but how can we use the autoscale feature? Whether it exists in the case of RDS or not?</p>

<p>Some also said to use AWS RDS Read Replicas! I did not work with Read Replicas before but how do I load balance the traffic between different RDS read replicas, what are different ways and what if we need some low database operations? Will it scale in?</p>

<p>Any appropriate guidance will be appreciable. :)</p>
",https://stackoverflow.com/questions/42878985/aws-beanstalk-and-rds-scaling,"['amazon-web-services', 'amazon-ec2', 'amazon-elastic-beanstalk', 'amazon-rds']",147,FALSE,1,0
How to detect when iframe starts loading another page?,"<p>I'm trying to hide an element in same-origin iframe. However, this son of a bi*ch blinks for a few ms before getting hidden. So what I did was added <code>display: none</code> and remove it after iframe is loaded - great. But now, when user clicks inner page link of iframe, which also contains element to be hidden, it still blinks (because <code>display:none</code> is now removed). I need to detect when to add it again, i. e. just before another page starts to load.</p>

<p><strong>Testing here: <a href=""https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_script"" rel=""nofollow noreferrer"">https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_script</a></strong></p>

<p>Here is what I tried:</p>

<pre><code>&lt;html class=""js""&gt;
&lt;head&gt;
&lt;script src=""https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js""&gt;&lt;/script&gt;

&lt;style&gt;
html.js #iframeID
{
    display: none;
}
&lt;/style&gt;

&lt;script&gt;
$(document).ready(function()
{
    $('#iframeID').on('load', function()
    {
        $('#iframeID').contents().find('a').on('click', function()
        {
            $('html').addClass('js');
            console.log('click');
        });
        console.log('loaded');
        $('#iframeID').contents().find('#mySidenav').remove();
        $('html').removeClass('js');


    });

});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;iframe id=""iframeID"" height=""800px"" width=""800px""  src=""https://www.w3schools.com/"" &gt;&lt;/iframe&gt;
&lt;script&gt;

&lt;/script&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>However, there are some <code>a</code> elements that don't load another page. In this example, try clicking on ""TUTORIALS"" at the top of that iframed webpage - it just opens up dropdown, not loads another page.</p>

<p>What should I do?</p>

<p>I noticed that ""TUTORIALS"" link has <code>href=""javascript:void(0)""</code>. Maybe I should be somehow selecting all <code>a</code> links without such href? But not sure if it's fool proof.</p>
",https://stackoverflow.com/questions/43822030/how-to-detect-when-iframe-starts-loading-another-page,"['javascript', 'jquery', 'html', 'iframe']",2439,FALSE,0,3
Bouncy Castle takes long to generate RSA keypair,"<p>I have a Web API project where in one of the endpoints I am using Bouncy Castle library to generate RSA keypairs. While doing some load testing I started getting 504 (timeout error) after say 1500 parallel requests to my Web API. After some investigation I realized that it was Bouncy Castle which was causing it. So now I am thinking of preloading a table with say 1 million RSA keypairs and get them from that table when I need them. Below is my code where I am generating keypair using BC:</p>

<pre><code>var r = new RsaKeyPairGenerator();
r.Init(new KeyGenerationParameters(new SecureRandom(), 1024));
var keyPair = r.GenerateKeyPair();
var publicKey = string.Empty;
using (var stream = new MemoryStream())
{
    var textWriter = new StreamWriter(stream);
    var pemWriter = new PemWriter(textWriter);
    pemWriter.WriteObject(keyPair.Public);
    pemWriter.Writer.Flush();
    stream.Position = 0;
    var sr = new StreamReader(stream);
    publicKey = sr.ReadToEnd();
    textWriter.Close();
}

var privateKey = string.Empty;
using (var stream = new MemoryStream())
{
    var textWriter = new StreamWriter(stream);
    var pemWriter = new PemWriter(textWriter);
    pemWriter.WriteObject(keyPair.Private);
    pemWriter.Writer.Flush();

    stream.Position = 0;
    var sr = new StreamReader(stream);
    privateKey = sr.ReadToEnd();
    textWriter.Close();
}
</code></pre>

<p>So couple of questions, is there anything I am doing wrong in the code above (it works fine but if there is anything I am doing which is possibly causing the delay and can be avoided)? Also, if I go with the other approach (preloading the SQL table with 1 million keypairs), what would be the best way to populate the table with 1 million records? (preferably using ADO .net)</p>
",https://stackoverflow.com/questions/44365754/bouncy-castle-takes-long-to-generate-rsa-keypair,"['c#', 'sql', '.net', 'rsa', 'bouncycastle']",1209,TRUE,0,1
What are the design patterns for Rest API automation using java,"<p>I am a new to REST API automation project, as part of that I have learned using jayway rest assured instead of jersy client. Now, the problem is I am able to use protocol methods and getting response to parse and checking required data is not.</p>
<p>Now,</p>
<blockquote>
<p>I want to explore more to implement project setup like a pro, by using structured java classes or by using any class designs.</p>
<p>I want to use this project for load testing
I want to learn parameterization, i.e., First request's response may be input to 4th request (ex: login token id used for subsequent requests)
I also want to know how to feed data as input from external files</p>
</blockquote>
<p>Note: I have searched for sample projects on other channels but they are not as per my requirement and I spent time to understand those project but going over my head, couldn't able to understand their style of implementation  :(</p>
",https://stackoverflow.com/questions/44907192/what-are-the-design-patterns-for-rest-api-automation-using-java,"['automation', 'rest-assured']",1200,TRUE,-2,1
Azure Functions http trigger all traffic is being routed to one instance,"<p>There is only one instance for my Function that is handling all requests.</p>

<p>I have an Azure Function (Consumption Plan) to apply a watermark to a PDF from an HTTP trigger. The PDF is retrieved via an HTTP call in the Function,  watermarked and then returned in the response.</p>

<p>Application Insights is hooked up to monitor the performance and do some load testing. In the portal, I configure a basic load test with a static URL (100 users over 5 minutes) and run it against my function. When I inspect the live metrics, I see that one instance is processing some number of requests, and every other instance sits at 0 requests/second and with the committed memory not changing. If I increase the user count in the load test and it eventually starts to timeout processing requests instead of routing them to the additional instances.</p>

<p>Why is only one instance handling all the requests?</p>

<p>Example code simplified.</p>

<pre><code>#r ""D:\home\site\wwwroot\watermark\bin\itextsharp.dll""

using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using iTextSharp.text;
using iTextSharp.text.pdf;

static HttpClient client = new HttpClient();
static BaseFont font = BaseFont.CreateFont(BaseFont.TIMES_ROMAN,     BaseFont.WINANSI, BaseFont.EMBEDDED);

public static async Task&lt;HttpResponseMessage&gt; Run(HttpRequestMessage req, TraceWriter log)
{
    var fetch = ""http://url.to.pdf"";
    log.Info(fetch);
    log.Info(""C# HTTP trigger function processed a request."");
    var pdf = await client.GetAsync(fetch);
    var stream = await pdf.Content.ReadAsStreamAsync();
    var resp = req.CreateResponse();

    var ms = new MemoryStream();
    var reader = new PdfReader(stream);
    var stamper = new PdfStamper(reader, ms);
    stamper.Writer.CloseStream = false;

    var pages = reader.NumberOfPages;

    for (int i = 1; i &lt;= pages; i++)
    {
        var content = stamper.GetOverContent(i);
        AddWatermark(content, ""Here is some watermark text."", font, 10, Color.BLACK, reader.GetPageSize(i));
    }

    stamper.Close();

    ms.Seek(0, SeekOrigin.Begin);

    resp.Content = new StreamContent(ms);
    resp.Content.Headers.ContentType = new MediaTypeHeaderValue(""application/pdf"");  

    return resp;
}

private static void AddWatermark(PdfContentByte dc, string text, BaseFont font, float fontSize, Color color, Rectangle realPageSize, Rectangle rect = null)
{
    dc.SaveState();
    dc.SetColorFill(color);
    dc.BeginText();
    dc.SetFontAndSize(font, fontSize);
    var ps = rect ?? realPageSize; /*dc.PdfDocument.PageSize is not always correct*/
    var x = (ps.Right + ps.Left) / 2;
    var y = (ps.Bottom + ps.Top) * (1.0f / 100.0f);
    dc.ShowTextAligned(Element.ALIGN_LEFT, text, x, y, 0);
    dc.EndText();
    dc.RestoreState();
}
</code></pre>
",https://stackoverflow.com/questions/45016892/azure-functions-http-trigger-all-traffic-is-being-routed-to-one-instance,"['azure', 'azure-functions']",359,FALSE,0,0
Java newFixedThreadPool explanation,"<p>I am trying to diagnose a problem I am having using WSO2 identity management.</p>

<pre><code>package org.wso2.carbon.identity.mgt;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * email sender this creates a new task in thread pool for each email sending request
 */
public class NotificationSender {

    private static ExecutorService threadPool = Executors.newFixedThreadPool(5);
    NotificationSendingModule module;

    /**
     * creates and submits a task to the thread pool
     *
     * @param module email sending module as task
     */
    public void sendNotification(NotificationSendingModule module) {

        threadPool.submit(module);
    }

    public NotificationSendingModule getModule() {
        return module;
    }
}
</code></pre>

<p>I am load testing the user creation process, and at the point where WSO2 sends a User credentials configuration mail it is sending multiple to the same email address even though they are unique. </p>

<p>I have never used Java but am familiar with C#, so have been able to read through the code without issue, and my questions is:</p>

<p>In the Java docs it mentions ""If a thread terminates due to failure during execution and prior to shutdown, a new thread is created to take its place.""</p>

<p>Does this mean that if the email send encounters an error then a new thread will begin the process again?</p>

<p>I'm thinking perhaps the send email is erroring so a new thread is created, but the logging with isn't tied into a result is performed anyway.</p>

<p>Also, is it ok to never call </p>

<pre><code>threadPool.shutdown()
</code></pre>
",https://stackoverflow.com/questions/43536984/java-newfixedthreadpool-explanation,"['java', 'multithreading', 'wso2']",148,TRUE,0,2
Running test script recorder error in JMeter,"<p>I have to perform load testing of a particular application and am using JMeter for that.</p>

<p>In my application, I have a unique access token which will be obtained on successful login and this token has to be passed to the consecutive requests to obtain the response.</p>

<p>Now I have added a recorder for my test plan and ran the HTTP test script recorder.all the browser action is recorded in the recorder of the test plan.
the structure of my test plan and workbench is as mentioned below.</p>

<pre><code>**Testplan-**  
     *Threadgroup*  
         Recorder-  
//inside the recorder   
            [Request1-login  
            Request2-To load the uploaded images by the corresponding user]  
//Outside the recorder inside the thread group,  
         View Results Tree  
HTTP Cache Manager  
HTTP Coockie Manager  
**WorkBench**  
HTTP(s) Test Script Recorder
</code></pre>

<p>By default, there is a header manager for each request when recorded what I did was to add the extracted token obtained using json extracter of the request1 to the header manager of the request2 in the recorded script.</p>

<p>The token is getting passed along with the request header as shown below but the response obtained is unauthorised.</p>

<pre><code>Request Headers:

Connection: keep-alive  
Referer: http://localhost/  
Accept-Language: en-US,en;q=0.5  
Origin: http://localhost  
Content-Type: application/json;charset=utf-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: application/json, text/plain, */*
Authorisation:91kLM68tdMBoDFRURArvdmwYgWV9Nr2sHYDwivTM.91kLM68tdMBoDFRURArvdmwYgWV9Nr2sHYDwivTM.Arvdm_M68-BoDFRURArvdmwYgWV9Nr2sHYDwivTM  
Content-Length: 0  
Host: http://localhost/phpmyadmin/index.php  
</code></pre>

<p>I have checked the same token in postman and am obtaining the correct response.</p>

<p>am I missing out something?Is there anything else I have to take care of before running the recorded test script?Please help</p>
",https://stackoverflow.com/questions/46726250/running-test-script-recorder-error-in-jmeter,['jmeter'],187,TRUE,2,1
Using SyncProxy to test services : &quot;IOException while receiving RPC response&quot;,"<p>I am currently trying to use the <code>SyncProxy</code> library to test services of my app, in order to do load testing with JMeter. The app works fine, I am running it on localhost.</p>

<p>The problem comes when I try to use SyncProxy in my JUnit tests, they fail.</p>

<p>Here is a piece of code used in a JUnit test :</p>

<pre><code> ThemeServiceAsync themeServiceAsync = (ThemeServiceAsync) SyncProxy
          .newProxyInstance(ThemeServiceAsync.class, MODULE_BASE_URL, GET_THEMES_SERVICE_NAME);

 themeServiceAsync.getListTheme(codeEfs, codeSI, noStr, statut, new AsyncCallback&lt;List&lt;Theme&gt;&gt; (){

    @Override
    public void onFailure(Throwable arg0) {
        // TODO Auto-generated method stub
        System.out.println(arg0);
    }


    @Override
    public void onSuccess(List&lt;Theme&gt; result) {
        // TODO Auto-generated method stub
        System.out.println(result);

    }

 });
</code></pre>

<p>I am getting the following error : <code>IOException while receiving RPC response</code></p>

<p>I used the debug mode to find where was the problem coming from. On the server side, everything goes fine until the result is sent back to the client. The result is found in the database, but I have a mysterious 500 error.</p>

<p>After digging, I found that this exception is thrown (in the <code>AbstractRemoteServiceServlet</code>) :</p>

<pre><code>com.google.gwt.user.client.rpc.SerializationException: Type 'net.gicm.ector.shared.beans.Theme' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.
For security purposes, this type will not be serialized.: instance = net.gicm.ector.shared.beans.Theme@1b7cb71
</code></pre>

<p>I found a lot of threads talking about the fact that your class needs to implement ""isSerializable"", but what I don't understand, is that I am actually running my app on localhost, and everything is working fine, including the different services.</p>

<p>But when it comes to run my JUnit(s), I have those errors. </p>
",https://stackoverflow.com/questions/44244647/using-syncproxy-to-test-services-ioexception-while-receiving-rpc-response,"['java', 'serialization', 'gwt', 'gwt-syncproxy']",96,FALSE,1,1
