如何分析一个传统的ASP网站? [英] How to profile a classic ASP web site?

查看:103
本文介绍了如何分析一个传统的ASP网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个传统的ASP(JScript中)运行缓慢的网站,并没有任何分析器,可以帮助我确定哪些是需要时间?

I have a classic ASP (JScript) web-site that is running slow and are there any profilers that can help me identify what is taking time?

如何优化或调试ASP性能问题将是有益的。其他的提示

Other hints on how to optimize or debug ASP performance issues would be helpful.

推荐答案

假设你正在寻找解决方案的自由,这里有过去我的(很老)项目中使用的一些建议:

Assuming you're looking for free solutions, here are some suggestions used in past (very old) project of mine:

ASP探查组件。这是活动服务器页面(使用VBScript)code线级别的性能分析器。它显示了你的ASP网页运行,这行被执行了多少次,多少毫秒每次服用。特别是对于大量的数据驱动的页面,你可以清楚地看到哪条线路减慢页面,优化必要。

ASP Profiler component. This is a line-level performance profiler for Active Server Pages (with VBScript) code. It shows how your ASP page runs, which lines are executed how many times, and how many milliseconds each take. Especially for heavy data-driven pages, you can see exactly which lines slow down the page, and optimize where necessary.

周围的Googling我也/发现一对夫妇很老的文章对时序分析ASP执行code:看看的这里这里

Googling around I have also found a couple of very old articles on timing/profiling ASP execution code: have a look here and here.

如果您有服务器端code是慢,我发现一个问题,它几乎总是导致问题的数据库。您需要检查SQL是缓慢的返回结果;如果你发现任何你需要看看在申请新的索引到你的表。如果您的应用程序是你需要考虑减少调用数据库的数量数据库过于健谈。为了找到这些问题,你可以随时使用SQL Server Profiler;这个捆绑的SQL Server 2005/2008开发版。

If you have an issue with server side code being slow I have found it is almost always the database causing the issue. You need to check for SQL which is slow to return a result; if you find any you need to look at applying new indexes to your tables. If your app is too chatty with the database you need to look at reducing the number of calls to the database. To find these problems you can always use SQL Server Profiler; this comes bundled with SQL Server 2005/2008 Developer edition.

您也可以在 xsqlsoftware.com

这篇关于如何分析一个传统的ASP网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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