开发者

Is it possible to slow down IIS?

开发者 https://www.devze.com 2023-01-05 11:14 出处:网络
I have a local development webserver set up using Win7 and IIS7. I often have to test the applications and websites I develop on all browsers using \"very slow\" internet connections to determine ho

I have a local development webserver set up using Win7 and IIS7.

I often have to test the applications and websites I develop on all browsers using "very slow" internet connections to determine how all the clients scripts execute and if the images and all linked resources load properly and in order on all browsers.

Now, this involves deploying the project to a remote server and then testing over a slow internet or network connection. In my case this is usually only possible at the end of the project. Its a pain to deploy the project every now and then only for speed testing ...

Is it possible to slow down IIS so it behaves like you're connected over a very slow internet connection and test the applications that way. This will also help me test the applications on a standalone PC (without a network of PCs) like on a home desktop that doesn't have a network connection only an internet connection.

Sorry开发者_开发知识库 for sounding newbie-ish ! ... couldn't help because I am one :)

Thanks, Norman.

UPDATE: Almost all answers to this question were great and work in different situations .... for me (IIS7 on Win7) the selected answer is the most appropriate ... I'm sure you'll find an answer here that works for you :). So thanks to everyone ... oh ... and don't be surprised if the next version of IIS or VS ships with magnets ! :D


Fiddler has an option to throttle speeds locally as well which might be a bit more convenient.


Enabling Bandwidth Throttling (IIS 6.0)

IIS 7.0 Bit Rate Throttling Module Released


You can also change the network adapter settings on your PC. For example, changing the MTU size can greatly affect network performance. Increasing MTU size to a large amount can increase lag/latency, whereas decreasing it will usually decrease your bandwidth.

Alternately, you could just set a large magnet on top of your Ethernet cable. The interference should cause a lot of packets to have to be resent, thus decreasing your effective bandwidth.

Edit: Apparently a strategically placed microwave can also reduce network throughput by a whopping 85%. So there's another alternative for the WiFi folks.


You can always use a Firefox add-on (e.g. Firefox Throttle) for throttling your browser instead of throttling the server.


This is just a stab in the dark. I use NetLimiter on my machine to throttle my download manager (a separate application). That may prove useful. Note, it's a trialware application. Mitch Wheat's answer may be more appropriate.

0

精彩评论

暂无评论...
验证码 换一张
取 消