ASP.NET网站生产服务器上的性能下降 [英] ASP.NET Website Slow Performance on production server

查看:119
本文介绍了ASP.NET网站生产服务器上的性能下降的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我的ASP.NET网站运行我的生产服务器上比较慢我的开发服务器上。

My problem is that my ASP.NET website is running slower on my production server comparatively on my development server.

这在我的开发环境中执行一个120毫秒页面需要400毫秒,以在服务器上执行。我监视的探查和查询的SQL服务器正在服用400ms的服务器上的网页上运行只需要50毫秒左右完成 - 所以我相信自己,我的问题不在于与SQL Server

A page that executes in 120ms in my development environment takes 400ms to execute on the server. I've monitored the SQL server with the profiler and the query being run on the page taking 400ms on the server only takes around 50ms to finish - so I've convinced myself that my problem does not lie with the SQL server.

我的机器是Intel I7与6GB RAM,生产服务器是2倍AMD四核搭配16GB内存。

My development machine is an Intel I7 with 6GB RAM, the production server is a 2x AMD Quad Core with 16GB ram.

推荐答案

有一些时候,你可以考虑为您的网站的性能改良效果。

There are some point you can consider for performance improvment of your website.


  1. 设置调试=假

  2. 关闭跟踪,除非直到需要

  3. 关闭会话状态,如果不是必需的。
    ASP.NET自动管理会话状态。然而,如果你不要求会话,禁用它会在提高性能的帮助

  4. 禁用ViewState中的时候不是必须的。

  5. 避免频繁往返数据库

  6. 避免引发异常。
    例外的是处理发生在你的应用程序逻辑错误一马丽娟方式。然而,抛出异常是昂贵的资源,必须避免。使用特定的异常,并使用尽可能短,以避免资源开销

  7. 使用缓存来提高应用程序的性能。

  8. 使用方法。最后杀资源

编辑:
使用本网站衡量你的网站的性能
<一href=\"http://www.websiteoptimization.com/services/analyze/\">http://www.websiteoptimization.com/services/analyze/



http://www.websitepulse.com/

这篇关于ASP.NET网站生产服务器上的性能下降的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆