Web Design Forums

Server Administration Help

Need help installing or configuring your Linux, Apache, PHP & MySQL server? Perhaps your Windows IIS Server too? Post your problems here!

iis compression-how to



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old October 15 '03, 07:46 PM (#1)
TestShootCom is offline
New Member!
 
TestShootCom's Avatar
 
Join Date: October 2003
Location: Beverly Hills CA
Posts: 6
TestShootCom
Send a message via ICQ to TestShootCom Send a message via AIM to TestShootCom Send a message via MSN to TestShootCom Send a message via Yahoo to TestShootCom
iis compression-how to

Hi all, Just the other day I was working at a client's site, and well, the site was not going so fast. So I decided to look into the following concepts to speed up MWP, running Access as the db.

Stats: 1ghz p3, 256mb ram, ide hdd's
  • IIS Compression[/*]
  • Caching the images and avatars[/*]

Step 1: Compressed data save bandwidth and gets to you faster.
This increased my speed on my intranet app by 30%
I went into IIS, and set the compression, and the temp space I was to allow the server to use at 32mb, roughly 1/8th the total ram on the box. I also reg edit'd HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Services \Inetinfo \Parameters\ MemCacheSize (REG_DWORD) because it is usually set too high. You will probably see 19 or 25, this is ram consumption as I am told, for idle processes. I set it to 8.

To turn on compression for static files go to IIS, right click on your server, go to Properties, click Edit next to the dropdown saying wwwservice, from there select the service tab. Select compress static and apps, and set the radio button to allow 32mb for the max temp folder size.

Now this will compress static items, not the asp, now should you have other content or are foolhearty enough to compress ASP (I am) get a command prompt and do the following:

CD into c:\inetpub\adminscripts
Type:cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html adding "asp" "asa" "gif" "jpg" "swf" "css" "js" or whatever you want to compress. You will probably see some cryptic error, but ignore it. DO NOT TYPE IN MDB, you will have long! lag times, leave the db alone.
Type in next: cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions followed by the extensions you chose to compress. If not, you will get weird garbled text.

Finally type: iissreset.exe /restart that will stop and start IIS with the new policy in effect.

The overall savings in bandwidth is about 15-30% on a default install of MWP and about 30% on Comersus.
Uncompressed 530k and 5 seconds, after 70k and 2 seconds

Step 2, CACHING:

I went to Port80 Software and dropped $150 for a simple caching software, ignore Xcache and Spidercache, they are too expensive ($1500) and caused troubles in demo mode. I set it to cache all the images in the site, and set it's ram allocation to 4mb, which is pretty generous for the total size of all the gifs, jpgs, and static content in MWP. You can run a free demo for 30 days to test it yourself, along with Xcompress courtesy xcache, but that is $400 per server, so the first step in this topic iis compression is free and somewhat effective.


The site has roughly as much info as MWP, and is an intranet app, so a public demo is not available at this time. I did do all my other tests on fillmsupplies.com, but no traffic, so who knows if it worked? besides that box was whacked by spidercache, so it has issues.

Hope this helps somebody out, and I am not talking out of my behind, because it did infact work for me.


Tim Hunold
Test Shoot
Film Supplies
ItsSoBig.com (my web stuff)
Group Buy city

Last edited by TestShootCom; July 25 '08 at 05:12 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 15 '03, 08:19 PM (#2)
Wired is offline
WDF Alien Overlord
 
Wired's Avatar
 
Join Date: April 2003
Posts: 6,369
Wired is just really niceWired is just really niceWired is just really niceWired is just really nice
Send a message via AIM to Wired
Gotta like the TS.com site, very nice! Great post as well. Welcome to WDF! FYI, I edited your post to fix the red parts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 16 '03, 10:18 AM (#3)
TheGAME1264 is offline
Mod-son Canadian
 
TheGAME1264's Avatar
 
Join Date: December 2002
Location: Toronto, Ontario
Posts: 3,032
TheGAME1264 has disabled reputation
That's not your girlfriend, that's my future ex-wife!

That's one heck of a post. But I do have a very stupid question: what about caching your ASP output itself? Like adding the appropriate Response headers when a page is first executed, etc., and so on? Did you try that and/or does it apply?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 16 '03, 02:57 PM (#4)
TestShootCom is offline
New Member!
 
TestShootCom's Avatar
 
Join Date: October 2003
Location: Beverly Hills CA
Posts: 6
TestShootCom
Send a message via ICQ to TestShootCom Send a message via AIM to TestShootCom Send a message via MSN to TestShootCom Send a message via Yahoo to TestShootCom
Thanks guys, it is poorly documented, and has big gains, because if you transfer loads of data, you are saving $ on bandwidth. Nobody told me about it, and it is not in any manuals, so I figured when I got it right, I would share.

As far as caching, well, I have looked at caching solutions, some uncompress the data.

Netzero, AOL, and my own Surfside.net use Turbosquid (apache based) with gzip to cache and compress data, some of you may know this as reverse proxy compression. Since cache=proxy in that case.

You can do both, but it is expensive for most users. In the $3k range.

I strongly suggest you take a look at www.xcache.com they make great products, if you can afford them.

As far as iis5.1 compliance it is just fine to run these scripts. If you take care of your server, you will be fine, sometimes, poor iis configuration with botched hack attempts can corrupt iis compression, so just switch it off at that point.

Kalani is mine she is 20, I am 30! woo-hoo!!! Nice when your first bride is a trophy bride. You can have my left overs if we break up.

Last edited by TestShootCom; October 16 '03 at 03:00 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 15 '03, 06:22 PM (#5)
TestShootCom is offline
New Member!
 
TestShootCom's Avatar
 
Join Date: October 2003
Location: Beverly Hills CA
Posts: 6
TestShootCom
Send a message via ICQ to TestShootCom Send a message via AIM to TestShootCom Send a message via MSN to TestShootCom Send a message via Yahoo to TestShootCom
bump-a-bump-bump-bump
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 25 '08, 05:11 AM (#6)
TestShootCom is offline
New Member!
 
TestShootCom's Avatar
 
Join Date: October 2003
Location: Beverly Hills CA
Posts: 6
TestShootCom
Send a message via ICQ to TestShootCom Send a message via AIM to TestShootCom Send a message via MSN to TestShootCom Send a message via Yahoo to TestShootCom
Hey gang, it has been a loooong time since this was posted, but I am curious how the new compression system is working for you guys/gals.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Hosting and Server Setup » Server Administration Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 01:56 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164