I've been having performance issues with a high traffic ASP.NET 2.0 site running on Windows 2000. While editing the web.config file I noticed that the authentication mode was set to 'Windows'. I changed it to 'None'. The only users this site has are anonymous and it gets 25,000+ page views at day. Could this have been a caused performance issues?
我在Windows 2000上运行的高流量ASP.NET 2.0站点遇到了性能问题。在编辑web.config文件时,我注意到身份验证模式设置为“Windows”。我把它改成'无'。该网站唯一的用户是匿名用户,白天可以获得25,000多个网页浏览量。这可能是导致性能问题吗?
2 个解决方案
#1
0
There is a small potential, but if you are not securing any folders, it shouldn't be an issue.
有一个小的潜力,但如果你没有保护任何文件夹,它应该不是一个问题。
In reality it would mostly be an issue if you needed to secure a folder path.
实际上,如果您需要保护文件夹路径,则主要是一个问题。
There might be a SMALL performance hit but I can't imagine it would be that bad.
可能会有一个小的性能打击,但我无法想象它会那么糟糕。
#2
0
It's very unlikely. Windows authentication is performed within IIS, and then a token is sent on to ASP.NET, so if you're using Anonymous Authentication, then it'll be effectively instantaneous, as this token will be created when the security context is created and that'll be it.
这不太可能。 Windows身份验证在IIS中执行,然后将令牌发送到ASP.NET,因此如果您使用匿名身份验证,那么它将是有效的即时,因为在创建安全上下文时将创建此令牌,并且不管怎样。
The 'None' authentication is intended for custom authentication, rather than for anonymous authentication- anonymous is one of the Windows authentication choices (i.e. IIS auth).
“无”身份验证用于自定义身份验证,而不是匿名身份验证 - 匿名是Windows身份验证选择之一(即IIS身份验证)。
Perhaps you should setup tracing on the app and get methods to log event periods, to see where it's slow. It's likely to be a slow-running query, a timeout issue, lack of disk-space/swap-space, something like that.
也许您应该在应用程序上设置跟踪并获取记录事件周期的方法,以查看它的缓慢位置。它可能是一个运行缓慢的查询,超时问题,磁盘空间/交换空间不足等等。
Check out: http://msdn.microsoft.com/en-us/library/aa291347(VS.71).aspx for more detail on the authentication methods.
有关身份验证方法的更多详细信息,请访问:http://msdn.microsoft.com/en-us/library/aa291347(VS.71).aspx。
#1
0
There is a small potential, but if you are not securing any folders, it shouldn't be an issue.
有一个小的潜力,但如果你没有保护任何文件夹,它应该不是一个问题。
In reality it would mostly be an issue if you needed to secure a folder path.
实际上,如果您需要保护文件夹路径,则主要是一个问题。
There might be a SMALL performance hit but I can't imagine it would be that bad.
可能会有一个小的性能打击,但我无法想象它会那么糟糕。
#2
0
It's very unlikely. Windows authentication is performed within IIS, and then a token is sent on to ASP.NET, so if you're using Anonymous Authentication, then it'll be effectively instantaneous, as this token will be created when the security context is created and that'll be it.
这不太可能。 Windows身份验证在IIS中执行,然后将令牌发送到ASP.NET,因此如果您使用匿名身份验证,那么它将是有效的即时,因为在创建安全上下文时将创建此令牌,并且不管怎样。
The 'None' authentication is intended for custom authentication, rather than for anonymous authentication- anonymous is one of the Windows authentication choices (i.e. IIS auth).
“无”身份验证用于自定义身份验证,而不是匿名身份验证 - 匿名是Windows身份验证选择之一(即IIS身份验证)。
Perhaps you should setup tracing on the app and get methods to log event periods, to see where it's slow. It's likely to be a slow-running query, a timeout issue, lack of disk-space/swap-space, something like that.
也许您应该在应用程序上设置跟踪并获取记录事件周期的方法,以查看它的缓慢位置。它可能是一个运行缓慢的查询,超时问题,磁盘空间/交换空间不足等等。
Check out: http://msdn.microsoft.com/en-us/library/aa291347(VS.71).aspx for more detail on the authentication methods.
有关身份验证方法的更多详细信息,请访问:http://msdn.microsoft.com/en-us/library/aa291347(VS.71).aspx。