Increase IIS/WinXP connection limit (or how to avoid HTTP 403.9 error)

 I wish I new this before. 40 simultaneous connections!! Couple that with no HTTP Keep-Alives and it may actually work for you...
From that post (for my own reference, as it was down some days ago):

Alot of people were pinging me today about getting 403.9's when trying to access my website (Access Forbidden: Too many users are connected Internet Information Services). 

It turns out that the IIS on Windows XP comes configured out of the box for a maximum of 10 HTTP connections.  What's worse, IE (actually URLMON) seems to use up 2 connections when hitting a website.  I tried figuring out how to raise the connection limit, but there didn't seem to be a documented way of doing this on a non-server version of Windows.  Fortunately, my good friend Geoff is the Architect of IIS and was able to help me out.  Here's his tip:

This can be bumped up to 40 but not higher (40 is the hardcoded limit).

To do this, find the adsutil.vbs script (should be in c:\inetpub\AdminScripts or similar) and run the following command:

adsutil set w3svc/MaxConnections 40

You can also try to prevent individuals from hogging a bunch of connections and thereby blocking out other users.  (IE will normally use 2 connections to a web site.)  To do this, launch the IIS admin tool (under control panel / administrative tools), right click on your ‘default web site’ (under ‘web sites’ in the outline control), and mess with the settings in the “connections” part of the “web site” tab.  Lowering the timeout (default is 5 min) will cause idle connections to get dropped quicker.  Disabling keep alives will cause connections to disconnect immediately after the request is handled instead of waiting for new requests on the same connection.  This is a little extreme but you probably don’t care that much about responsiveness, so you might want to just try that and see if it solves the problem.

Thanks Geoff!  I hope I didn't cost the company too many W2K3 licenses by posting this :-)


原文地址: http://weblogs.asp.net/cazzu/archive/2003/10/10/31476.aspx
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值