li26598296 发表于 2015-8-15 13:55:14

.net性能测试和优化3 负载均衡、IIS、HTTP优化

Load Balancing
  在高负载的系统上,单服务器一般满足不了要求,此时多机分布负载均衡就需要解决Session状态的问题
  以下是一些参考
  SessionState的配置http://blog.iyunv.com/nihongyuan/archive/2009/04/30/4139928.aspx
  ASP.NET应用下基于SessionState的“状态编程框架”解决方案http://www.iyunv.com/artech/archive/2010/10/31/State_Management.html
IIS相关
  IIS的版本,6,7版本有很大的变化
  HTTP压缩
  静态内容的设置:静态内容实用其他的专用web服务器更好
  HTTP头设置:
  Cache-Control, Expires ETag
  Reverse proxy
  开源的Squid作为反向代理

  IIS7 www.iis.net/expand/ApplicationRequestRouting
  CDN
  Microsoft provides a CDN to serve the standard AJAX JavaScript libraries including www.asp.net/ajaxlibrary/cdn.ashx
HTTP 优化
  Web客户端的优化和性能问题,如下工具是非常有用的
  Firebug http://getfirebug.com/
  Fiddler http://www.fiddlertool.com
  YSlow http://developer.yahoo.com/yslow/
  Internet Explorer Dev toolbar IE8内建
  Tips:
  · Make all of your static files as small as possible on the wire.
  · Reduce your page sizes and compress whatever you can.
  · Optimize your JavaScript and CSS and use HTTP efficiently.
  · Analyze your site with YSlow.
  · Use Firebug's Net Analysis to discover your page processing profile.
  · Look at content expiration and compression.
  · Profile your JavaScript-rich pages first.
  · Compress your images as much as possible.
  · Use CSS Sprites.
  · Look for 404 errors.
  · Remove white space and comments.
页: [1]
查看完整版本: .net性能测试和优化3 负载均衡、IIS、HTTP优化