简体   繁体   English

ASP.NET Web窗体的网站性能

[英]ASP.NET web forms website performance

I acquired an ASP.NET web forms website built by some contract developers. 我获得了一些合同开发商开发的ASP.NET Web表单网站。 The site was pretty bad at first and ran pretty slow, but has been tweaked and in an isolated environment runs okay. 该网站起初非常糟糕,运行缓慢,但是已经过调整,并且在隔离的环境中也可以运行。

The site sits on a single (beefy) web server and connects to an Oracle database. 该站点位于单个(免费)Web服务器上,并连接到Oracle数据库。 The site is within a very large organizations data center but is not load balanced. 该站点位于非常大型的组织数据中心内,但负载不平衡。 Lately the site has received about 3-4x the traffic it typically sees and the site is crawling with about 4k unique users a day. 最近,该网站收到的流量是通常看到的3-4倍,并且每天有大约4k的唯一身份用户在爬网。 IIS6 by the way. IIS6。 The IT dept. IT部门。 has examined the CPU and memory levels and they appear fine. 已经检查了CPU和内存级别,它们看起来不错。 I know there are some other tweaks I can make to IIS to cache static files and I am adding OutputCache to controls where it makes sense. 我知道我可以对IIS进行其他一些调整以缓存静态文件,并且我将OutputCache添加到有意义的控件中。 However, what else could be the cause of a slowdown that appears to be caused by load? 但是,造成负载下降的原因还有哪些呢? I'm unsure if the application pool needs more memory allocated or if the site is simply a piece of junk. 我不确定应用程序池是否需要分配更多的内存,或者该站点是否只是一块垃圾。 I know the latter is true, but it surprises me that significant load would be a code-only issue. 我知道后者是正确的,但令我惊讶的是,大量的负载将是仅代码问题。

Any ideas? 有任何想法吗?

Look to see if indexes are applied to the queries/store procedures being run. 查看是否将索引应用于正在运行的查询/存储过程。 Also, see if the page is doing selects or update/deletes. 另外,请查看页面是否正在进行选择或更新/删除。 When you apply indexes it can slow down the deletes/update and spreeds up the selects. 当您应用索引时,它可能会减慢删除/更新的速度并加快选择的速度。

Usually there are profilers in the database that can be ran on the queries and they will indicate what indexes should be applied to what table. 通常,数据库中有可以在查询上运行的探查器,它们将指示应将什么索引应用于什么表。 See you Database admin to see if that can be ran on the store procedures you use. 请与数据库管理员联系,以查看是否可以在您使用的存储过程中运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM