apachebench

POSTing multipart/form-data with Apache Bench (ab)

一曲冷凌霜 提交于 2019-12-03 01:39:38
I'm trying to benchmark our upload server by simulating several concurrent requests using Apache Bench ( ab ). I've read this post that details the necessary steps and also this Stackoverflow question but I'm still unable to create a valid benchmark. This is the command I'm using with Apache Bench ab -n 10 -c 6 -p post_data.txt -T "multipart/form-data; boundary=1234567890" http://myuploadserver.com/upload These are the contents of my post_data.txt file. I apologize for the length. --1234567890 Content-Disposition: form-data; name="upload"; filename="Octocat.png" Content-type: image/png

support multipart POST for apachebench?

白昼怎懂夜的黑 提交于 2019-12-03 01:28:22
I want to use apachebench (ab) to test file upload performance. I have read the manual and can't find a way to achieve my goal. My goal is try to upload a file by a HTTP Request with POST method and multipart/form-data format. The ab support "-p POST-FILE", but I only can find the format key=value&key2=value2 What the post data I want to send is Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryuUlX4554LPBjInc5 ------WebKitFormBoundaryuUlX4554LPBjInc5 Content-Disposition: form-data; name="file"; filename="411c40d9.jpg" Content-Type: image/jpeg XXXXXXXXXXXXXXX (IMAGE DATA)

Which gets the measurements right, JMeter or Apache ab?

…衆ロ難τιáo~ 提交于 2019-12-03 01:20:07
问题 I started writing some basic tests in JMeter and was surprised that the measurements are so different from those from Apache ab. I have a gigabit LAN connecting an Intel i7 server running Nginx and an i5 test machine running JMeter or ab. Initially, I am simply testing the out-of-the box Nginx home page response rate. ab -c 1 -n 100 http://testserver.local/ gives Document Path: / Document Length: 151 bytes Concurrency Level: 1 Time taken for tests: 0.078 seconds Complete requests: 100 Failed

investigating apache benchmark failed request

笑着哭i 提交于 2019-12-03 00:58:13
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.zeustech.net/ Copyright 2006 The Apache Software Foundation, http://www.apache.org/ Benchmarking www

Which gets the measurements right, JMeter or Apache ab?

依然范特西╮ 提交于 2019-12-02 16:37:01
I started writing some basic tests in JMeter and was surprised that the measurements are so different from those from Apache ab. I have a gigabit LAN connecting an Intel i7 server running Nginx and an i5 test machine running JMeter or ab. Initially, I am simply testing the out-of-the box Nginx home page response rate. ab -c 1 -n 100 http://testserver.local/ gives Document Path: / Document Length: 151 bytes Concurrency Level: 1 Time taken for tests: 0.078 seconds Complete requests: 100 Failed requests: 0 Write errors: 0 Total transferred: 38400 bytes HTML transferred: 15100 bytes Requests per

Why does a simple Thin server stop responding at 16500 requests when benchmarking? [duplicate]

ぃ、小莉子 提交于 2019-11-30 14:14:18
Possible Duplicate: 'ab' program freezes after lots of requests, why? Here's a simple test server: require 'rubygems' require 'rack' require 'thin' class HelloWorld def call(env) [200, {"Content-Type" => "text/plain"}, "OK"] end end Rack::Handler::Thin.run HelloWorld.new, :Port => 9294 #I've tried with these added too, 'rack.multithread' => true, 'rack.multiprocess' => true Here's a test run: $ ab -n 20000 http://0.0.0.0:9294/sdf This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software

Java秒杀系统优化的工程要点

让人想犯罪 __ 提交于 2019-11-30 12:48:21
这篇博客是笔者学习慕课网若鱼老师的《Java秒杀系统方案优化 高性能高并发实战》课程的学习笔记。若鱼老师授课循循善诱,讲解由浅入深,欢迎大家支持。 本文记录课程中的注意点,方便以后code review。此外,本文将注意点相关的优质讲解链接在了一起,方便初学者系统学习。 > 本文并非单纯介绍秒杀系统特有的技术点,不适合高手。进阶学习的话,极客时间有个不错的小专栏——如何设计一个秒杀系统,阿里高级技术专家讲解秒杀系统的设计要点,那个课程挺干货的。 设计秒杀系统的技术要点 1. 登录的密码传输: 用户的数据库表设计,需要增加一字段保存密码的Salt值 两次MD5操作( 敏感数据一定要使用https协议传输 ): 客户端:将明文password和客户端硬编码的Salt值进行拼接,然后进行MD5操作。 > 不用盐的话,MD5字符串有可能会被彩虹表或者社工库破解 服务端:将客户端传过来的MD5字符串和数据库用户对应的Salt字段进行拼接。然后进行MD5操作。 > 这次加盐MD5,可以有效防止内部员工泄露或者数据库被拖库后,明文密码泄露 2. 自定义JSR303的校验器 可以参照javax.validation.constraints.NotNull注解,自定义自己的校验器,将校验代码与业务代码分离。不过由于校验失败会输出BindException异常,所以最好配合全局捕获异常进行友好的输出。

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.

Can someone please explain what these ApacheBench results mean?

只愿长相守 提交于 2019-11-29 22:30:13
i'm trying to figure out how to use ApacheBench and benchmark my website. I installed the default site project (it's ASP.NET MVC but please don't put stop reading if u're not a .NET person). I didn't change anything. Add new project. Set confuration to RELEASE. Run without Debug. (so it's in LIVE mode). Yes, this is with the built in webserver, not the production grade IIS or Apache or whatever. So here's the results :- C:\Temp>ab -n 1000 -c 1 http://localhost:50035/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/

ab is erroring out with apr_socket_recv: Connection refused (61)

徘徊边缘 提交于 2019-11-29 21:10:51
I am testing eventlet out, and I am getting this error: ~>ab -n 10 -c 1 http://localhost:8090/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient)...apr_socket_recv: Connection reset by peer (54) Total of 2 requests completed The website works at localhost:8090/ and returns 200 OK. I had the same issue with tomcat, again the website worked fine. What could the issue be? I found using 127.0.0.1 rather than localhost