Asp.net性能问题 [英] Asp.net performence Issue

查看:94
本文介绍了Asp.net性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友

我们使用asp.net3.5和sqlserver2008

我们使用IIS 6.0运行2003 Server SP2.我们的盒子有(2)个CPU和8 GB的RAM.


在正常负载下,我们大约有100个用户访问我们的网站.
在高峰"负载下,我们大约有300个用户,而我们的服务器阻止了我们.


在高峰负载期间,站点变得无响应且非常缓慢,或者站点没有得到适当的响应并抛出诸如
的错误
``未找到列''
未找到表"

应用程序不返回任何记录,有时会返回记录,但不符合我们的搜索条件.

问候
Arvind

Dear Friends

we r using asp.net3.5 and sqlserver2008

We run 2003 Server SP2 with IIS 6.0. Our box has (2)CPU''s, and 8 GB of RAM.


Under normal load we have about 100 users accessing our web site.
Under ''peak'' load we have about 300 users, and our server is holding us back.


During peak load, the site becomes unresponsive and very slow or Not given proper response and throwing errors like

''Column not found'' Or
''Table not found'' Or

Application does''t returns any Records and some time returns records but not according to our searching criteria.

Regards
Arvind

推荐答案


我们也面临着同样的问题.

以下是有助于解决问题的命令.
在我们的例子中,第一个命令解决了这个问题.

ALTER DATABASE<数据库名称>
SET READ_COMMITTED_SNAPSHOT ON;


ALTER DATABASE<数据库名称>
设置ALLOW_SNAPSHOT_ISOLATION ON;


注意:
1.在执行之前,请先阅读/研究MSDN中的两个命令
2.确保在触发命令时不使用数据库.
Hi
we also faced the same problem.

Below are the commands that helped to solve the problem.
In our case the first command solved the problem.

ALTER DATABASE <Database Name>
SET READ_COMMITTED_SNAPSHOT ON;


ALTER DATABASE <Database Name>
SET ALLOW_SNAPSHOT_ISOLATION ON;


Note:
1. Do read/study the both commands in MSDN before execution
2. Make sure, your database should not be in use when you fire the commands.


这篇关于Asp.net性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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