LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2014, 03:29 PM   #1
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Rep: Reputation: Disabled
apache benchmark through put help


Hi experts

I am not sure where to put this, but we have a webserver we are trying to stress test with apache benchmark on ubuntu 14.04 server edition. Our output traffic is only 900KBps, which is tiny and our webserver passes with flying colors. But part of our goal is to find out the breaking point of the server.

I know it's not our CPU or RAM because by monitoring htop and I can see that everything is fine. Via bmon I can see our output fluctuates around 900 ~1000 KBps.

Via ethtool I can see that I can support a speed of 1000Mbps or 125MBps. So I am not sure why this is happening.

I am also trying to adjust the kernel of tcp port reuse (the troubleshooting section)
http://redmine.lighttpd.net/projects/weighttp/wiki
but still get the same result.
 
Old 12-05-2014, 10:25 PM   #2
ttk
Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware
Posts: 576
Blog Entries: 23

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
What are you using for your benchmark? Is it perhaps not able to issue http requests quickly enough to fill your network connection? Is your client machine or process running the benchmark running into performance limits before your server does?

There's an apache-http benchmarking utility that comes with apache called "ab" (apache-blast). It can be told via commandline options to make connections concurrently, and thus stress the server more heavily than a benchmark that only makes one connection at a time.

It also gives you statistics on how well your server performed in handling http requests.

You might also want to try running it from both a remote machine and the server, to see if there are network effects limiting your connection throughput (which can be independent of available bandwidth).

https://httpd.apache.org/docs/2.2/programs/ab.html
 
Old 12-05-2014, 10:36 PM   #3
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
our client machine is a dell r610 with a broadcom nic, we are using ab. we tried several concurency from 100 to 500 and it always peaks out at that. the client is not being limited, we monitored its cpu and mem, and we get the same result. the data rate is measured from the client side, i have a 1G fiber link going to the server so I know that's not a problem. Its just that our client can't seem to keep up.
 
Old 12-05-2014, 10:59 PM   #4
ttk
Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware
Posts: 576
Blog Entries: 23

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
What are the parameters you are passing to ab?

What does top(1) or htop(1) show you on the dell r610 while ab is running?

Have you tried running ab on the apache server, instead of on the dell?

Editing to add: Concurrency above a certain point hits diminishing returns, and can slow down overall connection rate. Do you get better throughput with fewer concurrent connections? (10, 20, 40)

Last edited by ttk; 12-05-2014 at 11:01 PM.
 
Old 12-06-2014, 12:22 AM   #5
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
interesting, our lowest concurrent was 100, i will have to try that later. why should i try to run the ab on the server? test the throughput in reverse?
 
Old 12-06-2014, 02:23 PM   #6
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
I tried it again just now at home. I setup two ubuntu server VMs but used a various concurrencies from 10 to 100, even at home I get at most 16Mbps. My iperf test shows I can go 5Gbps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - turn off benchmark possibility dlugasx Linux - Security 3 02-16-2009 05:55 PM
any way to benchmark the through-put of samba ? jkzfixme Linux - Server 1 10-31-2008 05:03 PM
Apache Benchmark tool (ab)? carbohydrate Linux - Server 5 08-12-2008 12:55 AM
Apache benchmark test VERY SLOW from clean install! wepeel Linux - Enterprise 0 10-04-2004 06:35 PM
simple benchmark for apache question. megaspaz Linux - General 2 11-05-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration