load-testing

Using CSV file to read test data from

妖精的绣舞 提交于 2019-11-30 08:50:00
I need to test a various links of a site (no need to login) with 100's of users and loop it for some number of times using JMeter. I want to put those links in a "CSV file", so that all the links to be tested are read from file. How do I accomplish this task? Aliaksandr Belik Prepare kind of csv-file with list of your test-params and use it to parametrize your test-samplers, using at least the following: CSV Data Set Config Look into the following links for details: How to get Jmeter to use CSV data for GET parameters? Use jmeter to test multiple Websites use csv parameters in jmeter

Failed requests by length in my ApacheBench load test result

爱⌒轻易说出口 提交于 2019-11-30 01:35:24
I have a website in PHP, Lighttpd. It uses also MySQL on Centos 5. I've tested my PHP with code below with Apache Bench (ab). It resulted in some errors (Failed Requests) indicating other length than normal. I'm absolutely sure that my PHP result should always have the same exact length. I've reviewed my Lighttpd and MySQL logs and error logs and don't have any errors there. Is there any way to check exactly what ab gets when result has other length or is there any other way to find out what is the cause or what is the "bad" result? I need to know that because I need to have 100% good results.

mysql load testing tools

怎甘沉沦 提交于 2019-11-29 22:16:15
问题 I want to calculate the each row size of a table. are there any tools available for this. Also Does anyone aware of any load testing tools. Thanks in advance. Regards, Manasi 回答1: Calculate average row size with: SHOW TABLE STATUS [FROM databasename] [LIKE 'pattern'] Super Smack is a benchmarking, stress testing, and load generation tool for MySQL (and PostgreSQL). 来源: https://stackoverflow.com/questions/1593498/mysql-load-testing-tools

Load vs. Stress testing [closed]

谁说我不能喝 提交于 2019-11-29 20:14:10
What is the difference between load and stress testing? Wikipedia on load testing (bold is mine): [...]A load test is usually conducted to understand the behaviour of the system under a specific expected load . This load can be the expected concurrent number of users on the application performing a specific number of transactions within the set duration. This test will give out the response times of all the important business critical transactions.[...] and on stress testing : understand the upper limits of capacity within the system. This kind of test is done to determine the system's

Testing with JMeter: how to run N requests per second

随声附和 提交于 2019-11-29 19:59:09
I need to test if our system can perform N requests per second. Technically, it's 2 requests to one API, 2 requests to another, and 6 requests to third one. But the important thing that they should happen simultaneously - so 10 requests per second. So, in JMeter I've created three Thread Groups, first defines number of threads 1, and ramp-up time 0. Second thread group is the same, and third thread group defines number of threads 6 and ramp-up time 0. But that doesn't really guarantee it's going to run them per second How do I emulate that? And how do I see the results -- if it was able to

How to analyse JMeter result?

我是研究僧i 提交于 2019-11-29 19:43:37
I am new in JMeter tool. Can anyone help me for the best way to analyse JMeter reports? Simply list of related links you can possibly find useful: Native graphs: JMeter Report Dashboard Real-time plotting with 3rd party real-time series database like influxdb Free Open source solutions for automated graphs: JMeter Plugins - look onto custom graphs in this package; some of them provide better results reporting out-of-box than jmeter's original ones; JMeter Result Analysis Plugin JWeter tool for logs analyzing & visualization Recipes with custom development: JMeter Wiki: Suggestions and Recipes

Load Testing with AB … fake failed requests (length)

自古美人都是妖i 提交于 2019-11-29 18:43:59
To do some load testing, for my own curiosity, on my server I ran: ab -kc 50 -t 200 http://localhost/index.php This opens up 50 keep-alive connections for 200 seconds and just slams my server with requests for index.php In my results, I get: Concurrency Level: 50 Time taken for tests: 200.007 seconds Complete requests: 33106 Failed requests: 32951 (Connect: 0, Receive: 0, Length: 32951, Exceptions: 0) Write errors: 0 Keep-Alive requests: 0 Total transferred: 1948268960 bytes HTML transferred: 1938001392 bytes Requests per second: 165.52 [#/sec] (mean) Time per request: 302.071 [ms] (mean) Time

Data driven load testing with Visual Studio - where are web tests generated?

与世无争的帅哥 提交于 2019-11-29 18:14:18
I have set up a Web Performance Test and Load Test project in Visual Studio 2013 that uses data driven web tests based on a local SQL Server data source. Eventually I would like to set up a test controller and test agents in order to distribute the load from multiple clients. My question is about the architecture of the controller and agents. Does each test agent also need access to the data source that generates content for the web tests or is the web test (and its dynamic parameters) generated at the controller and then distributed to the test agents? Below is a diagram I found of the

Jmeter - testing multiple urls

岁酱吖の 提交于 2019-11-29 14:09:28
问题 I'm new to Jmeter; I would like to know how to test multiple urls (stored in a txt/csv file) of different sections of a website in a load test ie. is there any way to import that file and run a load test or any alternative solution? Thanks! LP 回答1: Use CSV DataSet element which will on every iteration of main loop extract one line and put in the variable you will name. Then put the var in path field of httpsampler. If your var is named url, then you will put ${url} 回答2: This is how I did it.

Thrift API load test

◇◆丶佛笑我妖孽 提交于 2019-11-29 13:06:25
I am new into Apache Jmeter. Basically I want to load test our couple of thrift APIs but have no clue where to start with. It is in java where api takes 2 parameter and then send java object as response. Any pointer would be very helpful. You can use JSR223 Sampler + Groovy (add groovy-all.jar in jmeter/lib) and look at this client example, see NonblockingClient code for an example: http://www.javacodegeeks.com/2012/03/apache-thrift-quickstart-tutorial.html Make your groovy code call a least the following at end: SampleResult.setSuccessful(true/false) SampleResult.setResponseCode("code")