简体   繁体   English

从ASP.NET 1.1转换后,为什么我们的ASP.NET 2.0 Intranet应用程序非常慢?

[英]Why is our ASP.NET 2.0 intranet app very slow after changeover from ASP.NET 1.1?

We thought our ASP.NET 1.1 intranet app was slow, so we upgraded from 1.1 to 2.0 and the app died: 我们以为我们的ASP.NET 1.1 Intranet应用程序运行缓慢,因此我们从1.1升级到2.0,该应用程序却死了:

a) moved all reports onto a seperate database a)将所有报告移至单独的数据库中

b) we upgraded SQL server 2005 to a brand new server and SQL 2008 R2 b)我们将SQL Server 2005升级为全新的服务器和SQL 2008 R2

c) we can see the database load is very light and it idles, so the bottleneck is not on SQL Server. c)我们可以看到数据库负载很轻并且处于空闲状态,因此瓶颈不在SQL Server上。

d) Deployed the application in Release mode (not in Debugging mode). d)在发布模式下部署应用程序(不在调试模式下)。

e) Network is running at 2% e)网络正在以2%的速度运行

f) 2 Servers are physical, not a VM. f)2台服务器是物理服务器,而不是VM。

g) Fast ping, same as it was for 1.1 version < 1ms response time. g)快速ping,与1.1版<1ms响应时间相同。

To sum up - our database is lightling fast and the app is painfully slow. 综上所述-我们的数据库运行迅速,而应用程序运行缓慢。

I have checked the previous questions, none of them seem to apply here. 我已经检查了先前的问题,似乎没有一个适用于此。 I've googled it & cannot find anything useful. 我已经用谷歌搜索了,找不到有用的东西。 Does anybody have any ideas what are we doing wrong? 有人知道我们在做什么错吗?

You have to find the routines which takes the time. 您必须找到花费时间的例程。

Maybe enabling ASP.NET Tracing is a good point to start. 也许启用ASP.NET跟踪是一个很好的起点。

Another possibility is to use a .NET profiler. 另一种可能性是使用.NET分析器。 Or you can simple add some logging into a textfile with timestamps to your app to find the slowly running code. 或者,您可以简单地将一些带有时间戳的日志记录添加到应用程序中,以查找运行缓慢的代码。

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

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