apachebench

Changing POST data used by Apache Bench per iteration

岁酱吖の 提交于 2019-12-09 08:49:27
问题 I'm using ab to do some load testing, and it's important that the supplied querystring (or POST) parameters change between requests. I.e. I need to make requests to URLs like: http://127.0.0.1:9080/meth?param=0 http://127.0.0.1:9080/meth?param=1 http://127.0.0.1:9080/meth?param=2 ... to properly exercise the application. ab seems to only read the supplied POST data file once, at startup, so changing its content during the test run is not an option. Any suggestions? 回答1: You're going to need

investigating apache benchmark failed request

≡放荡痞女 提交于 2019-12-09 04:28:02
问题 I am just start using AB just today. Read couple of AB tutorial on new and thought give it a try for load testing my site. After using it couple of time I got huge number of failed request. Can you explain what is mean by a failed request? How can I investigate more for this issue? Sample AB result: -jailshell-3.2$ ab -n500 -c10 http://www.tweeting.tv/index.php This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www

Can someone interpret these apache bench results, is there something that stands out?

会有一股神秘感。 提交于 2019-12-08 02:54:09
问题 Below is a apache bench run for 10K requests with 50 concurrent threads. I need help understanding the results, does anything stand out in the results that might be pointing to something blocking and restricting more requests per second? I'm looking at the connection time section, and see 'waiting' and 'processing'. It shows the mean time for waiting is 208, and the mean time to connect is 0 and processing is 208..yet the total is 208. Can someone explain this to me as it doesn't make much

Does Node.js perform badly on Windows, surely it can't be slower than apache for basic I/O

 ̄綄美尐妖づ 提交于 2019-12-07 03:50:34
问题 Question: Are the result that i'm getting reasonable? Is there anything which could have such an impact in reducing the number of requests per second? Edit: A friend of mine has just benchmarked the same application on Linux and the average r/s was approx 7000. Edit #2: I've checked the CPU usage of Node.exe, and it's only using 5-6% of the cpu. Surely this figure should be 12% on a quad core machine, 8 thread CPU when running on a single thread if truly under load? I've written a Node.js

“Connection reset by peer” when benchmarking a simple Rust HTTP server with ab

核能气质少年 提交于 2019-12-07 01:58:55
问题 I'm trying to write an extremely simple concurrent server in Rust to play with the language's concurrency primitives and its threading model. Here's my code: use std::io::prelude::*; use std::io::Result; use std::net::{TcpListener, TcpStream, Shutdown}; use std::sync::{Arc, Mutex}; use std::thread; fn handle_client(mut stream: TcpStream) -> Result<()> { try!(stream.write(b"HTTP/1.0 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 5\r\n\r\nPong!\r\n")); // try!(stream.shutdown(Shutdown:

(总结)Web性能压力测试工具之ApacheBench(ab)详解

不羁岁月 提交于 2019-12-06 22:33:45
(总结)Web性能压力测试工具之ApacheBench(ab)详解 发表于: Linux , Web , Web Server , 个人日记 , 原创总结 | 作者: 博客教主 标签: ab , ApacheBench , Web , 压力测试 , 工具 , 性能 , 总结 , 详解 PS:网站性能压力测试是性能调优过程中必不可少的一环。只有让服务器处在高压情况下才能真正体现出各种设置所暴露的问题。Apache中有个自带的,名为ab的程序,可以对Apache或其它类型的服务器进行网站访问压力测试。 ApacheBench命令原理: ab命令会创建很多的并发访问线程,模拟多个访问者同时对某一URL地址进行访问。它的测试目标是基于URL的,因此,既可以用来测试Apache的负载压力,也可以测试 nginx 、lighthttp、tomcat、IIS等其它Web服务器的压力。 ab命令对发出负载的计算机要求很低,既不会占用很高CPU,也不会占用很多内存,但却会给目标服务器造成巨大的负载,其原理类似CC攻击。自己测试使用也须注意,否则一次上太多的负载,可能造成目标服务器因资源耗完,严重时甚至导致死机。 ApacheBench参数说明 格式:ab [options] [http://]hostname[:port]/path 参数说明: -n requests Number of

Apache Bench and POST data

北城余情 提交于 2019-12-06 20:06:07
问题 i am trying to use apache bench to load test a create action in my rails application but ab doesn't appear to be sending the POST data - though it does correctly submit a POST and not a GET request. this is the command i run: ab -n 1 -p post -v 4 "http://oz01.zappos.net/registrations" and this is the contents of the post file: authenticity_token=M18KXwSOuIVbDPZOVQy5h8aSGoU159V9S5uV2lpsAI0 the rails logs show a POST request coming through but don't show any parameters being posted: Started

Can someone interpret these apache bench results, is there something that stands out?

隐身守侯 提交于 2019-12-06 14:27:49
Below is a apache bench run for 10K requests with 50 concurrent threads. I need help understanding the results, does anything stand out in the results that might be pointing to something blocking and restricting more requests per second? I'm looking at the connection time section, and see 'waiting' and 'processing'. It shows the mean time for waiting is 208, and the mean time to connect is 0 and processing is 208..yet the total is 208. Can someone explain this to me as it doesn't make much sense to me. Connect time is time it took ab to establish connection with your server. you are probably

Poor performance

眉间皱痕 提交于 2019-12-06 06:37:53
问题 I am doing performance tests for my master thesis and I'm getting very poor performance of Symfony2 simple application. It's simple app, one query and some math. Test results for command: ab -c10 -t60 http://sf2.cities.localhost/app.php Server Software: Apache/2.2.20 Server Hostname: sf2.cities.localhost Server Port: 80 Document Path: /app.php Document Length: 2035 bytes Concurrency Level: 10 Time taken for tests: 60.162 seconds Complete requests: 217 Failed requests: 68 (Connect: 0, Receive:

How to add http proxy for apachebench(ab)

泪湿孤枕 提交于 2019-12-06 00:21:45
I want to grab http packets which ab sends or receives. So I add a http_proxy in shell command: $ export http_proxy=127.0.0.1:8888 Then I execute ab command: $ ab -c 1 -n 1 http://localhost/ Finally, my proxy(127.0.0.1:8888) failed to get http packets from ab. Is there any way to let ab access http via http_proxy? Here is my environment: Mac OSX 10.10.3 ahuigo If you read about ab's help ab -h , you'll find that it supports an proxy option -X : -X proxy:port Proxyserver and port number to use This option is equivalent of curl 's -x : -x, --proxy [PROTOCOL://]HOST[:PORT] Use proxy on given port