<?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>Setup a Linux Server or VPS &#187; Lighttpd</title>
	<atom:link href="http://setupalinuxserver.com/category/lighttpd/feed" rel="self" type="application/rss+xml" />
	<link>http://setupalinuxserver.com</link>
	<description>Tips, Tricks, and Howto&#039;s</description>
	<lastBuildDate>Thu, 27 Jan 2011 18:36:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Switching from Apache to Lighttpd</title>
		<link>http://setupalinuxserver.com/switching-from-apache-to-lighttpd</link>
		<comments>http://setupalinuxserver.com/switching-from-apache-to-lighttpd#comments</comments>
		<pubDate>Sat, 24 Jul 2010 00:26:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://setupalinuxserver.com/?p=13</guid>
		<description><![CDATA[One of my side projects is running a free image hosting site.  FreeImageHostingOn.US with this site I have been pushing out millions of hits a day and as you can imagine it puts a load on many shared hosting providers.  &#8230; <a href="http://setupalinuxserver.com/switching-from-apache-to-lighttpd">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of my side projects is running a free image hosting site.  <a href="http://freeimagehostingon.us">FreeImageHostingOn.US</a> with this site I have been pushing out millions of hits a day and as you can imagine it puts a load on many shared hosting providers.  So the other day I grabbed a VPS from <a href="http://rubyringtech.com">Ruby Ring Technologies</a> and I installed the CentOS/LXAdmin image.  Out of the box this VPS screamed.  However I know I could get more performance out of it.  The following six lines of code did more then double the thruput and halved the ram usage.</p>
<p>Add the following lines to the lighttpd.conf file.</p>
<p>server.max-keep-alive-requests = 4<br />
server.max-keep-alive-idle = 4<br />
server.event-handler = “linux-sysepoll”<br />
server.network-backend = “linux-sendfile”<br />
server.max-fds = 8192<br />
server.stat-cache-engine = “simple”</p>
<p>As you can see from the following image, things are moving along nicely.</p>
<p><img class="alignnone" title="Traffic" src="http://freeimagehostingon.us/files/uwfp5oll9g7kyr35l6ea.png" alt="Bandwidth Traffic" width="697" height="282" /></p>
<p>The current load on the server is 0.0 and the ram used it 66MB&#8217;s for live stats check out this link.  <a href="http://freeimagehostingon.us/traffic.php">System Usage.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://setupalinuxserver.com/switching-from-apache-to-lighttpd/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

