<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Website Monitoring Blog &#187; server performance</title>
	<atom:link href="http://www.fastmonitoring.com/tag/server-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fastmonitoring.com</link>
	<description>web site monitoring :: web server performance :: website uptime</description>
	<lastBuildDate>Wed, 30 Jun 2010 13:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Apache Server Performance</title>
		<link>http://www.fastmonitoring.com/2009-03-17/apache-server-performance/</link>
		<comments>http://www.fastmonitoring.com/2009-03-17/apache-server-performance/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 19:50:47 +0000</pubDate>
		<dc:creator>Alex Ivanoff</dc:creator>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[server performance]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[website performance]]></category>

		<guid isPermaLink="false">http://www.fastmonitoring.com/?p=103</guid>
		<description><![CDATA[Often we need to measure web server performance. There are various reasons for this, but the most frequent one is modification of configuration files. Quite often we look for ways of improving web server speed and performance: tuning up nginx, apache or lighttpd we can get a significant performance boost. But finally we come to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fastmonitoring.com/wp-content/uploads/apache-server-performance.jpg"><img class="alignnone size-medium wp-image-104" style="padding-right: 7px;" title="Apache Server Performance" src="http://www.fastmonitoring.com/wp-content/uploads/apache-server-performance.jpg" alt="" width="200" height="120" align="left" /></a>Often we need to measure web server performance. There are various reasons for this, but the most frequent one is modification of configuration files. Quite often we look for ways of improving web server speed and performance: tuning up nginx, apache or lighttpd we can get a significant performance boost. But finally we come to the question: how can we measure web server performance?</p>
<p><span id="more-103"></span></p>
<p>The first method is external load/stress testing &#8211; great solution for commercial projects. But there is also another good way for Apache &#8211; it&#8217;s open-source and free, called ApacheBench. It&#8217;s incredibly easy to use:</p>
<pre class="php" style="font-family: monospace;"><span style="font-style: italic; color: #666666;">#ab -c10 -n3000 http://www.fastmonitoring.com/
</span><span style="color: #666666;">
</span></pre>
<ul>
<li>ab the name of the program</li>
<li>C10 means the number of threads</li>
<li>n3000 is the number of requests.</li>
</ul>
<p>The program has a great variety of additional parameters &#8212; just check the <a rel="nofollow" href="http://httpd.apache.org/docs/2.0/programs/ab.html">official documentation</a>. You can use cookies, POST requests, modified headers &#8212; everything that will help to simulate server users activity.</p>
<p>The program output is quite comprehensive:</p>
<pre class="bash" style="font-family: monospace;"><em>Document Path:          <span style="font-weight: bold; color: #000000;">/</span>
Document Length:        <span style="color: #000000;">121779</span> bytes
Concurrency Level:      <span style="color: #000000;">10</span>
Time taken <span style="font-weight: bold; color: #000000;">for</span> tests:   <span style="color: #000000;">211.255212</span> seconds
Complete requests:      <span style="color: #000000;">3000</span>
Failed requests:        <span style="color: #000000;">0</span>
Write errors:           <span style="color: #000000;">0</span>
Total transferred:      <span style="color: #000000;">63177000</span> bytes
HTML transferred:       <span style="color: #000000;">63171000</span> bytes
Requests per second:    <span style="color: #000000;">10.41</span> <span style="font-weight: bold; color: #7a0874;">[</span><span style="font-style: italic; color: #666666;">#/sec] (mean)</span>
Time per request:       <span style="color: #000000;">480.425</span> <span style="font-weight: bold; color: #7a0874;">[</span>ms<span style="font-weight: bold; color: #7a0874;">]</span> <span style="font-weight: bold; color: #7a0874;">(</span>mean<span style="font-weight: bold; color: #7a0874;">)</span>
Time per request:       <span style="color: #000000;">96.085</span> <span style="font-weight: bold; color: #7a0874;">[</span>ms<span style="font-weight: bold; color: #7a0874;">]</span> <span style="font-weight: bold; color: #7a0874;">(</span>mean, across all concurrent requests<span style="font-weight: bold; color: #7a0874;">)</span>
Transfer rate:          <span style="color: #000000;">226.23</span> <span style="font-weight: bold; color: #7a0874;">[</span>Kbytes<span style="font-weight: bold; color: #000000;">/</span>sec<span style="font-weight: bold; color: #7a0874;">]</span> received
Connection Times <span style="font-weight: bold; color: #7a0874;">(</span>ms<span style="font-weight: bold; color: #7a0874;">)</span>
min  mean<span style="font-weight: bold; color: #7a0874;">[</span>+<span style="font-weight: bold; color: #000000;">/</span>-sd<span style="font-weight: bold; color: #7a0874;">]</span> median   max</em>
Connect:        <span style="color: #000000;">0</span>    <span style="color: #000000;">0</span>   <span style="color: #000000;">0.5</span>      <span style="color: #000000;">0</span>      <span style="color: #000000;">19</span>
Processing:   <span style="color: #000000;">181</span>  <span style="color: #000000;">479</span> <span style="color: #000000;">186.0</span>    <span style="color: #000000;">444</span>    <span style="color: #000000;">1822</span>
Waiting:      <span style="color: #000000;">166</span>  <span style="color: #000000;">461</span> <span style="color: #000000;">184.7</span>    <span style="color: #000000;">427</span>    <span style="color: #000000;">1708</span>
Total:        <span style="color: #000000;">181</span>  <span style="color: #000000;">479</span> <span style="color: #000000;">186.0</span>    <span style="color: #000000;">444</span>    <span style="color: #000000;">1822</span>
Percentage of the requests served within a certain <span style="font-weight: bold; color: #000000;">time</span> <span style="font-weight: bold; color: #7a0874;">(</span>ms<span style="font-weight: bold; color: #7a0874;">)</span>
<span style="color: #000000;">50</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">444</span>
<span style="color: #000000;">66</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">525</span>
<span style="color: #000000;">75</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">577</span>
<span style="color: #000000;">80</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">619</span>
<span style="color: #000000;">90</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">732</span>
<span style="color: #000000;">95</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">819</span>
<span style="color: #000000;">98</span><span style="font-weight: bold; color: #000000;">%</span>    <span style="color: #000000;">946</span>
<span style="color: #000000;">99</span><span style="font-weight: bold; color: #000000;">%</span>   <span style="color: #000000;">1012</span>
<span style="color: #000000;">100</span><span style="font-weight: bold; color: #000000;">%</span>   <span style="color: #000000;">1822</span> <span style="font-weight: bold; color: #7a0874;">(</span>longest request<span style="font-weight: bold; color: #7a0874;">)

Highly recommended.
</span></pre>
<img src="http://www.fastmonitoring.com/?ak_action=api_record_view&id=103&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.fastmonitoring.com/2009-03-17/apache-server-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
