<?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>WinBlogs.... &#187; Servers</title>
	<atom:link href="http://www.winblogs.net/index.php/category/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.winblogs.net</link>
	<description>Just another Windows geek blog...</description>
	<lastBuildDate>Thu, 27 Oct 2011 21:56:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SystemCenter Solutions 2012 Beta avaiable for download!</title>
		<link>http://www.winblogs.net/index.php/2011/10/27/systemcenter-solutions-2012-beta-avaiable-for-download/</link>
		<comments>http://www.winblogs.net/index.php/2011/10/27/systemcenter-solutions-2012-beta-avaiable-for-download/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 21:56:01 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[System Center Data Protection Manager]]></category>
		<category><![CDATA[system center download]]></category>
		<category><![CDATA[System Center Orchestrator]]></category>
		<category><![CDATA[system center virtual machine manager]]></category>
		<category><![CDATA[technet evaluation]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=520</guid>
		<description><![CDATA[System Center solutions help you manage your physical and virtual IT environments across datacenters, desktops, and devices. Using these integrated and automated management solutions, you can be a more productive service provider for your business. As a result of feedback we have gathered from all around the IT Pro universe, some great changes have been [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2011/10/sccm.png"><img class="alignleft size-full wp-image-521" title="sccm" src="http://www.winblogs.net/wp-content/uploads/2011/10/sccm.png" alt="" width="210" height="102" /></a>System Center solutions help you manage your physical and virtual IT environments across datacenters, desktops, and devices. Using these integrated and automated management solutions, you can be a more productive service provider for your business. As a result of feedback we have gathered from all around the IT Pro universe, some great changes have been made to the System Center Evaluation experience.</p>
<p>With the release of the <a href="http://technet.microsoft.com/en-gb/evalcenter/hh505660.aspx">System Center 2012 beta</a> evaluation in the <a href="http://technet.microsoft.com/en-gb/evalcenter/default.aspx">TechNet Evaluation Center</a>, you can now download and evaluate the most current versions of System Center 2012 products with a single registration.  This includes all of the following pre-release products:</p>
<ul>
<li>System Center Virtual Machine Manager RC</li>
<li>System Center Configuration Manager Beta</li>
<li>System Center Operations Manager Beta</li>
<li>System Center Orchestrator Beta</li>
<li>System Center Data Protection Manager Beta</li>
</ul>
<p>However, if you aren’t ready to evaluate all the System Center products you can select the specific products you want to evaluate, again with only one simple registration as opposed to the multiple registrations previously required.</p>
<p>Head over to the <a href="http://technet.microsoft.com/en-gb/evalcenter/hh505660.aspx">System Center 2012 Evaluation Center</a> and check it out</p>
<h6>Source: http://blogs.technet.com/b/uktechnet/archive/2011/10/25/download-microsoft-system-center-2012-pre-release-products.aspx</h6>
<div class="shr-publisher-520"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/10/27/systemcenter-solutions-2012-beta-avaiable-for-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypt your web.config file</title>
		<link>http://www.winblogs.net/index.php/2011/10/21/encrypt-your-web-config-file/</link>
		<comments>http://www.winblogs.net/index.php/2011/10/21/encrypt-your-web-config-file/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 18:59:13 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[IIS server]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[aspnet_regiis -pe]]></category>
		<category><![CDATA[aspnet_regiis -pfe]]></category>
		<category><![CDATA[encrypt application]]></category>
		<category><![CDATA[encrypt virtual folder]]></category>
		<category><![CDATA[web.config encrypt]]></category>
		<category><![CDATA[windows 2003]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<category><![CDATA[windows administration]]></category>
		<category><![CDATA[windowws 2008]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=508</guid>
		<description><![CDATA[Recently, I had a request from a customer, where he wanted to encrypt his web.config file ( wee, a part of it ). Since he didnt know how to do it by himself, he asked us to do it. Basically, the procedure is very simple. First, open IIS manager and find the web site you [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2011/10/3303763084_04d7330197.jpg"><img class="alignleft size-medium wp-image-510" title="jnbuj5vjhtrz" src="http://www.winblogs.net/wp-content/uploads/2011/10/3303763084_04d7330197-300x225.jpg" alt="" width="300" height="225" /></a>Recently, I had a request from a customer, where he wanted to encrypt his web.config file ( wee, a part of it ). Since he didnt know how to do it by himself, he asked us to do it.</p>
<p>Basically, the procedure is very simple.</p>
<p>First, open IIS manager and find the web site you want to encrypt. Got it? Great, when you&#8217;re there, look at the site ID, write it somewhere.</p>
<p>&nbsp;</p>
<p>Then, run command prompt ( as administrator ) and position yourself in the :</p>
<p><strong>C:\Windows\Framework\v4.0.30319\</strong></p>
<p>In case your application is running in .NET 2, position yourself in the V2.0.xxxx folder.</p>
<p>Type in the following command:</p>
<p><strong>aspnet_regiis -pe &#8220;connectionStrings&#8221; &#8221; -site &#8220;IDnumber&#8221;</strong></p>
<p><em>What will this command do?</em></p>
<p>It will encrypt the connection string part of the web.config file, so it cannot be read in some text editor; ofcourse, your web server will still be able to read the connection string from the file, dont worry <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>BUT WHAT IF I HAVE A VIRTUAL DIRECTOY, AND I WANT TO ENCRYPT THAT web.config FILE?</strong></p>
<p>No problem at all, just use this command:</p>
<p><strong>aspnet_regiis -pe &#8220;connectionStrings&#8221; -app &#8220;/YOURVIRTUALFOLDER&#8221; -site &#8220;IDnumber&#8221;</strong></p>
<p>Notice that I added a <strong>&#8220;-app &#8220;/YOURVIRTUALFOLDER&#8221;</strong> part to the command.</p>
<p>&nbsp;</p>
<p>Thats all for today <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Stay smart and bright! <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Bye bye!</p>
<div class="shr-publisher-508"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/10/21/encrypt-your-web-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote MSSQL&#8230;oh, you imbecil! :)</title>
		<link>http://www.winblogs.net/index.php/2011/09/09/remote-mssql-oh-you-imbecil/</link>
		<comments>http://www.winblogs.net/index.php/2011/09/09/remote-mssql-oh-you-imbecil/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 08:00:09 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[access database]]></category>
		<category><![CDATA[error 916]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[mssql 2005]]></category>
		<category><![CDATA[mssql 2008]]></category>
		<category><![CDATA[mssql 2008r2]]></category>
		<category><![CDATA[mssql error]]></category>
		<category><![CDATA[remote mssql]]></category>
		<category><![CDATA[server principal]]></category>
		<category><![CDATA[The server principal “” is not able to access the database "” under the current security context.]]></category>
		<category><![CDATA[windows 2008]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=500</guid>
		<description><![CDATA[Not very often, you will get the following error: Error: The server principal “” is not able to access the database &#8220;” under the current security context. This is because the MS SQL Server is attempting to execute a SQL query to retrieve a list of databases along with  some other formation about those databases. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: center;"><a href="http://www.winblogs.net/wp-content/uploads/2011/09/mssqlprincipal.png"><img class="aligncenter size-full wp-image-501" title="mssqlprincipal" src="http://www.winblogs.net/wp-content/uploads/2011/09/mssqlprincipal.png" alt="" width="567" height="189" /></a><a href="http://www.winblogs.net/wp-content/uploads/2011/09/mssqlprincipal.png"><br />
</a></p>
<p>Not very often, you will get the following error:</p>
<blockquote><p>Error:<br />
The server principal “” is not able to access the database &#8220;” under the current security context.</p></blockquote>
<p>This is because the MS SQL Server is attempting to execute a SQL query to retrieve a list of databases along with  some other formation about those databases. Some of  that information is “Collation”, which, ofcourse you don&#8217;t have permission to view for all databases, since  you’re in a shared hosting environment and you can only have access to your database..</p>
<p>Solution is pretty straight forward :<br />
1. In Object Explorer, click on Databases<br />
2. Display Object Explorer Details (F7) or View &gt; Object Explorer Details<br />
3. Right click the column headers and de-select “Collation”</p>
<p>4. Refresh Databases or reconnect to ste machine.</p>
<p>Thats it <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>Bye bye  <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-500"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/09/09/remote-mssql-oh-you-imbecil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic time update in Windows (sync with internet time a.k.a  NTP server )</title>
		<link>http://www.winblogs.net/index.php/2011/09/02/automatic-time-update-in-windows-sync-with-internet-time-a-k-a-ntp-server/</link>
		<comments>http://www.winblogs.net/index.php/2011/09/02/automatic-time-update-in-windows-sync-with-internet-time-a-k-a-ntp-server/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 08:05:01 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[IIS server]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[WebSitePanel Fixes]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[auto internet time]]></category>
		<category><![CDATA[automatic time sync]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[awstats issue]]></category>
		<category><![CDATA[custom ntp server]]></category>
		<category><![CDATA[websitepanel]]></category>
		<category><![CDATA[websitepanel awstats]]></category>
		<category><![CDATA[windows 2008 ntp server]]></category>
		<category><![CDATA[windows 7 custom ntp server]]></category>
		<category><![CDATA[windows ntp server]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=479</guid>
		<description><![CDATA[Few days ago, I had a strange issue where all of a sudden, the statistics on some of my web servers stopped working. First thought was, nah, its some PEBKAC issue. Statistics was working great, and nothing in the configuration wasnt changed for months. The customer must have some outdated link, wrong password or something [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2011/09/9716492.jpg"><img class="alignleft size-medium wp-image-485" style="margin: 2px;" title="9716492" src="http://www.winblogs.net/wp-content/uploads/2011/09/9716492-300x225.jpg" alt="" width="200" height="150" /></a>Few days ago, I had a strange issue where all of a sudden, the statistics on some of my web servers stopped working.</p>
<p>First thought was, nah, its some PEBKAC issue. Statistics was working great, and nothing in the configuration wasnt changed for months. The customer must have some outdated link, wrong password or something else.</p>
<p>&nbsp;</p>
<p>The error my customers were getting is :</p>
<p>&nbsp;</p>
<h6><code>Microsoft.Web.Services3.ResponseProcessingException: WSE910: An error happened<br />
during the processing of a response message, and you can find the error in the<br />
inner exception. You can also find the response message in the Response<br />
property. ---&gt; Microsoft.Web.Services3.Security.SecurityFault: An error was<br />
discovered processing the header ---&gt; System.Exception: WSE065: Creation time of<br />
the timestamp is in the future. This typically indicates lack of synchronization<br />
between sender and receiver clocks. Make sure the clocks are synchronized or use<br />
the timeToleranceInSeconds element in the microsoft.web.services3 configuration<br />
section to adjust tolerance for lack of clock synchronization. --- End of inner</code></h6>
<p>&nbsp;</p>
<h6><span style="text-decoration: underline;">The part of the error that gave me a hint is:</span></h6>
<h6><code>Creation time of the timestamp is in the future. This typically indicates lack of synchronization between sender and receiver clocks. </code></h6>
<p>&nbsp;</p>
<p>Soooo&#8230;I login to my WebSitePanel server and check the time&#8230;it was 9:24 AM. I login to the web server that is giving the above mentioned error , also 9.24 AM.</p>
<p>First reaction&#8230;WTH!!?!?!?!?</p>
<p>I thought to myself: &#8220;Nah..I&#8217;ll try it anyway. Left click on the Clock, change time and date settings, Internet time, Change settings, and then click the &#8220;Update now&#8221;. All of a sudden, my statistics started to work. GREAT, that part is solved.</p>
<p>Now, lets try to find the reason for this behaviour, ofcourse, there are hundreds of articles on the web, and every single one of them is pretty much useless in my case <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>My search was pointless, and quoting James May from Top Gear, I thought to myself:</p>
<p>&#8220;Oh cock!&#8221; <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well, atleast let me try to patch the thing up. My idea was to use our own ntp servers on all our windows machines ( instead of time.windows.com, or some other ntp server listed ). In order to achieve this, you must replicate these steps:</p>
<ol>
<li>Stop the W32Time service with : <strong><em>C:\&gt;net stop w32time</em></strong></li>
<li>Configure the external NTP server by  typing : <strong><em>C:\&gt; w32tm /config /syncfromflags:manual /manualpeerlist:”1stNTP.domain.com, 2ndNTPserver.domain.com”</em></strong></li>
<li>Then make your  PDC a reliable NTP server with <strong><em> C:\&gt;w32tm /config /reliable:yes</em></strong></li>
<li>Start the w32time service with : <strong><em>C:\&gt;net start w32time</em></strong></li>
<li>You can check the NTP servers configuration by typing: <strong><em>C:\&gt;w32tm /query /configuration</em></strong></li>
</ol>
<p>Next thing I decided to do was to autmate the time sync, since I didnt want to rely on Windows to do it.</p>
<p>Command for that is pretty simple : <strong>c:\w32tm /resync</strong></p>
<p>In order to achieve that, I created a batch file with the above mentioned command, set it to run every day at 12:00 AM, and thats it. Never heard of time sync issues EVER again!</p>
<p>Bye, Alesandro</p>
<div class="shr-publisher-479"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/09/02/automatic-time-update-in-windows-sync-with-internet-time-a-k-a-ntp-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SCVMM? errr&#8230;System Center Virtual Machine Manager and HyperV whining :)</title>
		<link>http://www.winblogs.net/index.php/2011/06/10/scvmm-errr-system-center-virtual-machine-manager-and-hyperv-whining/</link>
		<comments>http://www.winblogs.net/index.php/2011/06/10/scvmm-errr-system-center-virtual-machine-manager-and-hyperv-whining/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 00:06:40 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[hyper v]]></category>
		<category><![CDATA[HyperV]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=471</guid>
		<description><![CDATA[Couple of days ago I installed SCVMM  in order to test it out, since we are developing our IAAS solution. Everything seemed great until I found out that SVCMM doesnt have any API which can be used to create/turn on/off  new machines.  Yes, I know everything can be scripted thru Powershell, but it sucks that [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2011/06/frustrated.jpg"><img class="alignleft size-medium wp-image-472" title="frustrated" src="http://www.winblogs.net/wp-content/uploads/2011/06/frustrated-300x300.jpg" alt="" width="232" height="232" /></a></p>
<p>Couple of days ago I installed SCVMM  in order to test it out, since we are developing our IAAS solution. Everything seemed great until I found out that SVCMM doesnt have any API which can be used to create/turn on/off  new machines.  Yes, I know everything can be scripted thru Powershell, but it sucks that we need to create separate applicatons that will give us that feature. Imagine a solution where PRTG, Nagios or any other tools monitors your server&#8230; sees that the CPU load went up ( or any other condition) and starts up a new virtual machine  using API?</p>
<p>Its funny how the guys at MS fails to see the basic requirements for a modern cloud solution; do I have to mention that after years of HyperV being RTM-ed, we still dont have an option to limit a machines uplink speed!? Come on guys&#8230;SERIOUSLY!?!?</p>
<p>&nbsp;</p>
<p>I know that you already have this  little piece of software created, release it&#8230;pretty please!? I know that Microsoft sees HyperV in some giant corporation where they  dont have a need to limit the uplink of a virtual machine, but IMHO,  hosters are having a bigger &#8220;market&#8221; share  than big corporations, think  about us, pretty please with sugar on top <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>Oh, what about promiscous mode for network cards? You  have no idea how much would I like to use SNORT on my HyperV virtual switch, but&#8230;I cant <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>What about the limit on only 4 cores per virtual machine? This is a VERY limiting factor. I&#8217;m in a situation where i have a 2x six core, 48 GB ram server which I want to turn into ONE virtual machine ( live migrations, scaling, etc&#8230;), but I cant&#8230;I can only turn it into a 4 core, 44 GB machine, effectively, wasting other 8 cores!?</p>
<p>I would really love to get in touch with someone from Microsoft Virtualization team and send them a list of must-have changes <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Someone knows some insiders? <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Let me make one thing clear, I love Microsoft, but lets face it, there is lots of work that needs to be done. Admit it or not, the guys at the &#8220;Linux Camp&#8221; have much more options and features regarding virtualization. I really, really love HyperV, but some limitations are just plain unlogical/stupid.</p>
<p>Sorry for a bitter post, but I had to throw out my frustrations <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<div class="shr-publisher-471"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/06/10/scvmm-errr-system-center-virtual-machine-manager-and-hyperv-whining/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tune up my server, Mr. Admin aka &#8211; improve IIS 7/7.5 performance &#8211; part 1</title>
		<link>http://www.winblogs.net/index.php/2011/04/04/tune-up-my-server-mr-admin-aka-improve-iis-77-5-performance-part-1/</link>
		<comments>http://www.winblogs.net/index.php/2011/04/04/tune-up-my-server-mr-admin-aka-improve-iis-77-5-performance-part-1/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 20:17:54 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[IIS server]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[iis 7.5]]></category>
		<category><![CDATA[optimize performance]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[tweaking]]></category>
		<category><![CDATA[windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=431</guid>
		<description><![CDATA[Couple days ago, I had to setup a machine for a customer of ours who will host a web site for some Microsoft conference in Croatia. Since, this is the biggest IT conference in Croatia, I really tried to take everything to the next level and tweak the hell out of that machine For stress [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2011/04/optimize.jpg"><img class="alignleft size-medium wp-image-445" style="margin: 3px;" title="optimize" src="http://www.winblogs.net/wp-content/uploads/2011/04/optimize-300x225.jpg" alt="" width="252" height="191" /></a>Couple days ago, I had to setup a machine for a customer of ours who will host a web site for some Microsoft conference in Croatia. Since, this is the biggest IT conference in Croatia, I really tried to take everything to the next level and tweak the hell out of that machine <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For stress testing, I used Siege with  url.txt file where I saved about 20 links from the web site I was testing, in order to emulate the real world scenario as much as possible.</p>
<p>So, for starters, lets throw out some numbers, to see how the machines copes when the IIS install is out of the box :</p>
<p><code><br />
The test has been run with 150 concurrent users.<br />
Lifting the server siege...      done.                                         Transactions:                    5215 hits<br />
Availability:                 100.00 %<br />
Elapsed time:                  59.83 secs<br />
Data transferred:             472.64 MB<br />
Response time:                  1.69 secs<br />
Transaction rate:              87.16 trans/sec<br />
Throughput:                     7.90 MB/sec<br />
Concurrency:                  147.32<br />
Successful transactions:        5215<br />
Failed transactions:               0<br />
Longest transaction:            5.99<br />
Shortest transaction:           0.25<br />
</code></p>
<p>So, lets take look on the <strong>Longest and Shortest transaction</strong> value &#8211; pretty jumpy, right?</p>
<p>It took the machine to serve the page, in a range of 0.25 to almost 6 seconds? SLOW!</p>
<p><strong>STOP!  Tweaking time <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<p>One note &#8211; do not run 32 bit apps in 64 application pool &#8211; waste of resources!</p>
<p>Since this is a website which has around 120 requests to the IIS server for loading one page  I have<strong> TURNED OFF</strong> the compression! <strong> </strong></p>
<p><strong>Why?</strong> Simple tradeoff, more bandwidht for less CPU usage. With compression turned on, site had around 1.2 MB ( a lot, I know ), but with compression turned off, site loading time went down for almost 50%, and the site size went for for only 100 KB <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   -  a good trade off in my opinion!</p>
<p>Next -  lets cache this sucker out, I turned on caching for both dynamic and static content, pretty simple setting for a huge improvement!</p>
<p><span style="text-decoration: underline;">Now, lets dive into some more complex tweaking -  .Net and registry tweak.</span></p>
<p>Does the &#8220;word&#8221;  <strong>MaxConcurrentThreadsPerCPU</strong> sound familiar?</p>
<p>Basically, with standard out-of-the-box setting, number of requests per CPU is limited to 12.</p>
<p>By default, this entry doesnt exist in the registry, so we need to add it.</p>
<p><strong>MaxConcurrentRequestsPerCPU</strong> within HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0 determines the number of concurrent <strong>requests</strong> per CPU.</p>
<p>Since that value in .NET 4 is already set to 5000, there&#8217;s no need to change that is you run a .NET 4 application, but in my case, I had applications with .NET 2, .NET 3.5 and .NET 4 running on the machine, so I have set the value  <strong>MaxConcurrentRequestsPerCPU</strong> to 0 &#8211; which means unlimited.</p>
<p><strong>Lets do some load stress with the new IIS and .NET setting. Again, we will run Siege with 150 concurrent users.</strong><br />
<code>Lifting the server siege...      done.                                         Transactions:                    8171 hits<br />
Availability:                 100.00 %<br />
Elapsed time:                  59.58 secs<br />
Data transferred:             643,80 MB<br />
Response time:                  0.96 secs<br />
Transaction rate:             137.14 trans/sec<br />
Throughput:                     10.73 MB/sec<br />
Concurrency:                  131.67<br />
Successful transactions:        8171<br />
Failed transactions:               0<br />
Longest transaction:            1.99<br />
Shortest transaction:           0.15<br />
</code></p>
<p>So, as we can see, we had almost<strong> 3000 more transactions</strong>, better transaction rate and load time improved over 3 times (<strong> 0.15 to 1.99 sec </strong>).</p>
<p>But wait, there&#8217;s more, in the next post, we will do some network level tweaking, and see if we can get even more juice from the machine.</p>
<p>&nbsp;</p>
<p><strong>NOTE:  Since I didnt write the applications  and didnt have access to them to review them, I had to optimize the server as much as possible.</strong></p>
<div class="shr-publisher-431"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2011/04/04/tune-up-my-server-mr-admin-aka-improve-iis-77-5-performance-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SpamBots+bad application+SQL server = PROBLEMS!</title>
		<link>http://www.winblogs.net/index.php/2010/10/25/spambotsbad-applicationsql-server-problems/</link>
		<comments>http://www.winblogs.net/index.php/2010/10/25/spambotsbad-applicationsql-server-problems/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 18:45:19 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=413</guid>
		<description><![CDATA[So&#8230;today I had a very interesting issue. All of a sudden Nagios went red with the message: CRITICAL : &#8211; total: 232.82 Gb &#8211; used: 212.67 Gb (91%) &#8211; free 20.15 Gb (9%) on one of our SQL server. I was like..&#8221;NO! It cannot be. I clearly remember that this machine had over 150 Gb [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>So&#8230;today I had a very interesting issue. All of a sudden Nagios went red with the message: <strong>CRITICAL : &#8211; total: 232.82 Gb &#8211; used: 212.67 Gb (91%) &#8211; free 20.15 Gb (9%)</strong> on one of our SQL server. I was like..&#8221;NO! It cannot be. I clearly remember that this machine had over 150 Gb of free space yesterday!&#8221;</p>
<p>I log in to the machine, and automatically go to the data folder of SQL server thinking that some customer has a HUGE! log file on his database; so, right click &#8211; Select All -&gt; Properties&#8230; only 50 Gbs of data&#8230;hmm&#8230;not here!</p>
<p>At that moment I notice that the server isnt &#8220;jumpy&#8221; as usual, so I start Performance monitor and see that the Avg. Disk Queue is off the chart! <strong> That definatelly isnt right&#8230;</strong></p>
<p>Since that machine is using Windows 2003, theres no too good way to see what application is using so much disk I/O ( beside FileMon ) , I start the FileMon and se that the SQL service is writing HUGE amount of data to its ERRORLOG file.</p>
<p>By navigating to the folder, I see that the ERRORLOG file is over 120 Gb big so opening it in Notepad, Context or some other file was out of the question, since it would kill the machine completely.</p>
<p>So, lets turn to powershell once more. In order to be sure to not kill the machine, since its in production , I have moved the file to an empty machine to opened it there.</p>
<p>Powershell : cat errorlog +ENTER <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  after that powershell started to list the entire content of the file, and it took about 15 mins until it reached the end. AMAZING</p>
<p>By examining the log, I notice ( it was hard to NOT notice it ) litterally millions of these entries:</p>
<p><strong>Could not allocate space for object &#8216;dbo.tblComments&#8217;.'tblComments&#8217; in database &#8216;DATABASEname&#8217; because the &#8216;PRIMARY&#8217; filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.</strong></p>
<p><strong>What happened here? </strong></p>
<p>The site that was using that database is poorly written and was allowing everyone to post comments on the articles without any security check, so it soon reached the size limit set on the database.  By further digging on the issue, I saw that the bots are posting about 4-5 comments each second which comes to about 18000 comments/hour&#8230;multiply that by 15-16 hours it took to fill the error log to that size, we roughly come to 280000 comments&#8230;that&#8217;s A LOT of comments! <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After disabling the site and sending the email to the customer, situation on the machine looks like this :</p>
<p><a href="http://www.winblogs.net/wp-content/uploads/2010/10/mssql.jpg"><img class="alignleft size-medium wp-image-414" title="mssql" src="http://www.winblogs.net/wp-content/uploads/2010/10/mssql-300x213.jpg" alt="" width="300" height="213" /></a></p>
<p><strong>The big drop on the green line is the moment where I disabled the problematic web site.</strong></p>
<div class="shr-publisher-413"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2010/10/25/spambotsbad-applicationsql-server-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bit Rate Throttling? &#8211; HELL YEAH!</title>
		<link>http://www.winblogs.net/index.php/2010/10/15/bit-rate-throttling-hell-yeah/</link>
		<comments>http://www.winblogs.net/index.php/2010/10/15/bit-rate-throttling-hell-yeah/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 15:15:28 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[IIS server]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bit rate throttling]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[iis bit rate throttling]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server setup]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[web platform installer]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=396</guid>
		<description><![CDATA[Fact number one: If you have a streaming server, you must install this extension! Great, now that we&#8217;ve got this fact covered, we can move on. IIS site says: Bit Rate Throttling, an IIS Media Services extension, saves money on network costs by metering the download speed of media and data files. For media, Bit [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2010/10/iis-bit-rate-throttling.jpg"><img class="alignleft size-medium wp-image-398" style="margin: 3px;" title="iis bit rate throttling" src="http://www.winblogs.net/wp-content/uploads/2010/10/iis-bit-rate-throttling-300x225.jpg" alt="" width="194" height="145" /></a></p>
<p><strong>Fact number one: If you have a streaming server, you must install this extension! </strong></p>
<p>Great, now that we&#8217;ve got this fact covered, we can move on.</p>
<p>IIS site says:</p>
<p>Bit Rate Throttling, an IIS Media Services  extension, saves money on network costs by metering the download speed of media and data files. For media, Bit Rate Throttling accomplishes this by automatically detecting the encoded bit rates of 11 common media formats, such as Windows Media Video (WMV), Flash Video (FLV), and MPEG 4 (MP4), and then throttling the response to the client. For any other file or MIME type, Bit Rate Throttling allows administrators to configure custom throttling rules.</p>
<p><strong>Now, lets explain the same thing in a bit simpler way.</strong></p>
<p>If you have a server which streams any kind of media files, Im sure you have noticed extremely high bandwidht usage on that machine. In my experience, over 40% of the bandwidth is wasted! WAIT! WHY, HOW?</p>
<p><span id="more-396"></span></p>
<p><strong>Answer is simple!</strong></p>
<p>Scenario 1 ( server without Bit Rate Throttling extension ):</p>
<p>Lets say that you have a 100 Mbit link on your machine. A visitor with a 20 Mbit link will come to your site and click &#8220;play&#8221; on the newest promo movie you have uploaded.  What will happen, the server will send the ENTIRE video to the visitor in couple of seconds ( buffering ) and on the half of the movie, the visitor will see that he doesnt like your movie and go away.</p>
<p>What happened here? Half of the downloaded movie is wasted. The visitor downloaded the entire movie, but only looked at half of it. Efectively, you&#8217;ve wasted 50% of that movies bandwidth ( in a 100 Mb file, thats 50 Mb of bandwidth wasted )</p>
<p><strong>This is where Bit Rate Throttling jumps in and saves the day!</strong></p>
<p>Scenario2 ( Server with Bit Rate Throttling Extension installed ) :</p>
<p>Lets say that you have a 100 Mbit link on your machine. A visitor with a  20 Mbit link will come to your site and click &#8220;play&#8221; on the newest  promo movie you have uploaded.  What will happen, the server will see that the movie is encoded at 700 kbps ( example ) and reduce the speed its sending you the movie ( buffering )  to 800 kbps or 850 kbps ( depening on what setting you choose ) so that you still have a smooth playback and some buffer in reserve ).   In this case, amount of bandwidht that could potentially be wasted is a lot smaller than the amount of bandwidth that would be wasted without this extension.</p>
<p><strong>As I said before, improvements in bandwidth costs can be improved up to 40%! Thats not a small amount!</strong></p>
<p>Features of Bit Rate Throttling:</p>
<ul>
<li>Seamless integration into IIS 7.x Manager</li>
<li>Out-of-the box compatibility for the following media types: .asf, .avi, .flv, .m4v, .mov, .mp3, .mp4, .rm, .rmvb, .wma and .wmv</li>
<li>Dynamic throttling adjustment based on:
<ul>
<li>The file types and their encoded bit rate</li>
<li>The available bandwidth of the connection</li>
<li>Default and maximum throttling rates</li>
<li>Concurrent connection limits</li>
<li>Target throughput rate for the site</li>
</ul>
</li>
<li>Throttling rules configurable at various levels including server, site  	and virtual directory</li>
<li>Fast Start experience for optimal user experience</li>
<li>Extensibility to enable other media formats and file types</li>
<li>Better-together solution when combined with <a href="http://www.iis.net/WebPlaylists">Web Playlists</a></li>
</ul>
<p>Have a nice day! Alesandro</p>
<div class="shr-publisher-396"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2010/10/15/bit-rate-throttling-hell-yeah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cook!? Can you warm up my application? NO! I cannot!:D</title>
		<link>http://www.winblogs.net/index.php/2010/10/13/cook-can-you-warm-up-my-application/</link>
		<comments>http://www.winblogs.net/index.php/2010/10/13/cook-can-you-warm-up-my-application/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 17:28:37 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[IIS server]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Application Warm-Up]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[installing iis]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[web platform installer]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=378</guid>
		<description><![CDATA[In the beginning, some c/p from IIS site: IIS Application Warm-Up for IIS 7.5 enables IT Professionals to improve the responsiveness of their Web sites by loading the Web applications before the first request arrives. By proactively loading and initializing all the dependencies such as database connections, compilation of ASP.NET code, and loading of modules, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2010/10/IIS7Logo.jpg"><img class="alignleft size-medium wp-image-379" style="border: 1px solid black; margin: 2px;" title="IIS7Logo" src="http://www.winblogs.net/wp-content/uploads/2010/10/IIS7Logo-300x88.jpg" alt="" width="300" height="88" /></a><strong>In the beginning, some c/p from IIS site:</strong></p>
<p>IIS Application Warm-Up for IIS 7.5 enables IT Professionals to improve the  responsiveness of their Web sites by loading the Web applications before the  first request arrives. By proactively loading and initializing all the  dependencies such as database connections, compilation of ASP.NET code, and  loading of modules, IT Professionals can ensure their Web sites are responsive  at all times even if their Web sites use a custom request pipeline or if the  Application Pool is recycled.</p>
<p>Now, ME!</p>
<p>At first glimse you can say : &#8220;<strong>WOW&#8221; this extension rocks</strong>!!! I dont have to wait for my application to compile! My site will load much much faster!</p>
<p>And, imagine, you would be completely RIGHT! This is a great extension, but ( yeah, there&#8217;s a but ), I would NEVER install this extension on a shared hosting server! Why you ask?</p>
<p><strong>Biggest reason is the WASTE of resources! </strong></p>
<p>By preloading some site that has 5-10 unique visitors/day ( yes there are sites like that ), you are efectively wasting resources on the server. Imagine what would happen if you had around 500-600 applications on the server, all preloaded? How much RAM would the machine need to have to keep all those applications preloaded? I guess the answer is : A LOT!</p>
<p><strong>So, conclusion, when to use IIS Application Warm-Up?</strong></p>
<p>Use it on your own machine! When you have a dedicated machine just for 1-2 websites.  You, and your users will benefit from preloaded applications. Everything will open more faster!</p>
<p>If you have a shared hosting machine, MY reccomendation is to NOT use the IIS Application Warm-Up extension!</p>
<div class="shr-publisher-378"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2010/10/13/cook-can-you-warm-up-my-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using compression on IIS servers?  Yes or no?</title>
		<link>http://www.winblogs.net/index.php/2010/10/08/using-compression-on-iis-servers-yes-or-no/</link>
		<comments>http://www.winblogs.net/index.php/2010/10/08/using-compression-on-iis-servers-yes-or-no/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 13:29:56 +0000</pubDate>
		<dc:creator>Alesandro Slepčević</dc:creator>
				<category><![CDATA[IIS server]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows and Powershell]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[iis 6 compression]]></category>
		<category><![CDATA[iis 7 compression]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server setup]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>
		<guid isPermaLink="false">http://www.winblogs.net/?p=349</guid>
		<description><![CDATA[Well&#8230;in the very beginning, my answer is pretty much simple : yes AND no!  Why you ask?  Just keep reading&#8230; Compression, regardless if its the compression of static or dynamic content is using CPU &#8211; that is a fact we can all agree upon. Lets say compression is a tradeoff &#8211; CPU for bandwidth..use more [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.winblogs.net/wp-content/uploads/2010/10/compression.jpg"><img class="alignleft size-thumbnail wp-image-356" style="margin: 3px; border: 0pt none;" title="compression" src="http://www.winblogs.net/wp-content/uploads/2010/10/compression-150x150.jpg" alt="" width="100" height="100" /></a><strong></strong></p>
<p><strong>Well&#8230;in the very beginning, my answer is pretty much simple : yes AND no!  Why you ask?  Just keep reading&#8230;</strong></p>
<p>Compression, regardless if its the compression of static or dynamic content is using CPU &#8211; that is a fact we can all agree upon. <strong></strong></p>
<p><strong>Lets say compression is a tradeoff &#8211; CPU for bandwidth..use more cpu to &#8220;burn&#8221; less bandwidth.</strong></p>
<p><strong>The big question here is how to decide if you will benefit from turning on compression or not.</strong></p>
<p>Most of us have &#8220;multi-purpose&#8221; servers which run various roles at the same time ( database server ( MYSQL , MSSQL, etc&#8230;) , mail server, web server, etc.. and all of those services are spending a certain amount of CPU time.</p>
<p>By turning on the compression, you will automatically &#8220;lose&#8221; some CPU time which could have been used for faster execution of some database queries i.e&#8230;<span id="more-349"></span></p>
<p>This is the key problem in our case. Is your machine powerfull enough to handle all the services it is already running + compression? Because in the end, you could end up with an even slower server!!!</p>
<p>If you have a small server ( 1 x quad core cpu, 4-8 gb ram ) which is under heavy or moderate load and you want your applications to be &#8220;jumpy&#8221; ( i.e : fast editing of some articles in your favourite CMS system ),  or you have lots of queries on your database service: DONT use compression, save your CPU time.  If you have some CPU time to spare,  turn on compression of static content which doesn&#8217;t change a lot or only needs to be downloaded every once in a while ( browser cache expires )</p>
<p>In case you have a big machine ( 2x quad core nehalems, 24 gb ram, 4x enterprise level hdd&#8217;s with hw raid controller, etc&#8230;)  and you have CPU time to spare, by all means, turn on the compression of both static and dynamic content. You will notice great improvements on your bandwidth costs <img src='http://www.winblogs.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In my experience, the biggest bottleneck on 99% of the server is the disk system. Ofcourse, in my case we are talking about some small RAIDs with 4-8 disks.</p>
<p><strong>Great example of that case are these two pictures:</strong></p>
<p>CPU usage on a 2xQUAD core server with 16 gb of RAM.</p>
<p style="text-align: center;"><a href="http://www.winblogs.net/wp-content/uploads/2010/10/cpu-day.png"><img class="size-medium wp-image-350 aligncenter" title="cpu-day" src="http://www.winblogs.net/wp-content/uploads/2010/10/cpu-day-300x81.png" alt="" width="300" height="81" /></a></p>
<p>As we can see, the server peaks out at 28% of cpu usage, which means it has lots of CPU time to spare for compression.</p>
<p>However, lets have a look at its disk system:</p>
<p style="text-align: center;"><a href="http://www.winblogs.net/wp-content/uploads/2010/10/hdd.png"><img class="size-medium wp-image-351 aligncenter" title="hdd" src="http://www.winblogs.net/wp-content/uploads/2010/10/hdd-300x124.png" alt="" width="300" height="124" /></a></p>
<p>As we can see on the graph, average DISK FREE TIME is 64%, which is a bit low for my personal taste. I would be much more comfortable that this number is around 70 -75% .</p>
<p>This machine would definatelly benefit from turning on compression, since it has lots of CPU time to spare.</p>
<p><strong>But I own a small server&#8230;is there any hope for me???</strong></p>
<p><strong>NEVER FEAR IIS 7 IS HERE!!!</strong></p>
<p>One great feature in IIS 7 and IIS 7.5 is that it  offers CPU roll-off function.  When CPU usage goes   above certain level you set,  IIS server will stop compression and when usage  drops below the level you have set up, it will start compressing content again.  This function is  controlled by the staticCompressionEnableCpuUsage and  dynamicCompressionDisableCpuUsage attributes.</p>
<p>For the owners of smaller machines, this function is just AWESOME! It will save you from unpleasant suprises like getting a call at 2-3 AM with a complaint that the SQL server is very sloooow.</p>
<p>In the end; you be the judge. Will you turn on compression on your server or not? Let me know&#8230;</p>
<div class="shr-publisher-349"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.winblogs.net/index.php/2010/10/08/using-compression-on-iis-servers-yes-or-no/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

