【问题标题】:How to track IIS server performance如何跟踪 IIS 服务器性能
【发布时间】:2009-03-19 00:10:36
【问题描述】:

我有一个反复出现的问题,客户打电话抱怨网站太慢。具体来说,如果他们在短时间内处于非活动状态,然后返回站点,则在用户看到响应之前会有一两分钟的延迟。 (本例中的标准浏览器是 Firefox)

我已经启动并运行了 Perfmon,cpu 利用率通常低于 20%(单进程...不要问)。数据库正在嗡嗡作响。我正在拔头发。

那么,在评估 IIS 性能时,您认为哪些指标/工具有用?

【问题讨论】:

  • 这可能更适合服务器故障。
  • 可能是,但是我问这个问题的时候不存在服务器故障。

标签: asp.net performance iis


【解决方案1】:

希望这有帮助:
Best Practices for Speeding Up Your Web Site
Scaling Strategies for ASP.NET Applications
IIS Tuning
14 Rules for Faster-Loading Web Sites
Best practices for creating websites in IIS 6.0
Stanford Computer Cience - High Performance Web Sites
10 Tips for Writing High-Performance Web ApplicationsWriting High-Performance Managed Applications : A Primer
Nine tips for a healthy "in production" ASP.NET application
Speedy C#, Part 2: Optimizing Memory Allocations - Pooling and Reusing Objects
Memory Usage Auditing For .NET Applications
Troubleshooting HTTP Compression in IIS 6.0
Maximizing IIS Performance - 25 tips
Optimizing IIS 6.0 Performance
Page Speed - an open-source Firefox/Firebug Add-on
Performance Testing Guidance for Web Applications
Top 10 Performance Improvements in IIS 7.0
CHAPTER 6 Optimizing IIS 6.0 Performance
Performance Tuning Guidelines for Windows Server 2003 - Performance Tuning for IIS 6.0
ASP.NET Performance Tips
IIS 6.0 Tuning for Performance - by Peter A. Bromberg, Ph.D.
Improving .NET Application Performance and Scalability - by MS
Optimizing and Performance Tuning IIS 6.0
@987654344 @
Thread: IIS 6 performance tweak guide (draft)
CPU Settings for an Application Pool IIS6 e IIS7

重大改进提示:
Running ASMX Web Services on STA Threads
Scale Net

测量,测量,测量:
对您的网站进行负载测试
Show Slow
Performance Monitor Wizard
Two Minute Drill: Introduction to XPerf
Suggested Performance Counters to Watch (IIS 6.0)

看看最好的网站做了什么:
Benchmarks
TOP 100

更多资源:
Learn papers

我的经验是:
- 在 IIS 中为静态数据启用压缩 (GZIP/Deflate)。实施简单,效果极佳。
- 如果 cpu 不是您的问题,请尝试为动态数据启用压缩。

【讨论】:

  • 好的很多链接是好的,但是基于你的经验的一些建议呢?
  • 我的经验是:评估每个案例并应用会带来结果。我正在提供选项。
【解决方案2】:

对于您的特定情况,您需要增加 IIS 中的空闲超时选项,因为该延迟是由于 ASP.NET 加载二进制文件并启动您的应用程序造成的。默认是 20 分钟,所以如果在 20 分钟内没有人访问该站点,IIS 将关闭该进程,并且下一个请求需要很长时间才能启动。

【讨论】:

  • 您对设置值有什么建议吗?我把我的开始改成 60 分钟。
  • 这取决于您的网站收到的流量。我会说如果您每天收到
  • @Chris 如果您正在运行自己的服务器并且盒子上没有太多其他东西,您通常根本不希望它超时。您总是希望您的网站活泼,对吗?
  • 我建议将超时设置为 1440(一整天)
【解决方案3】:

也许应用程序池在一段时间不活动时正在关闭?应用程序池需要一些时间才能启动备份。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多