性能问题ASP.NET [英] performance problems ASP.NET

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

问题描述




(如果我在错误的新闻组中,请告诉我。)

用户声称我们的申请很慢。

我们使用ASP.NET与VB.NET(Visual Studio 2005)和SQL-Server

2000(在不同的服务器上)。

主页我们有一个标准的Intersoft WebGrid和另一个

控件的菜单(我认为是ComponentArt)。当在该页面上进行搜索

时,整个过程大约需要6.5秒,即使搜索

也没有返回任何内容。我们已经优化了数据库(存储了

程序),单独的数据库调用只需不到300ms。所有

我的方法似乎也很快。


查看跟踪我可以看到以下问题:

ProcessPostData :330ms

提高PostBackEvent 4246ms

PreRender:900ms

渲染:917ms


当我放Page_PreRender方法中的精确计时代码,我得到了
1ms的持续时间。其余的都在框架的某个地方之外

左右。 ViewState在任何地方都没有启用。

如何优化此页面或我应该在下一步看什么?


Eric

解决方案

" webdeveloper" < M8 ******** @ mailinator.com写信息

新闻:fb ********************** ************ @ w7g2000h sa.googlegroups.com ...





(请告诉我,如果我在错误的新闻组中。)

用户声称我们的应用程序很慢。

我们在VB.NET中使用ASP.NET (Visual Studio 2005)和SQL-Server

2000(在不同的服务器上)。

在主页面上我们有一个标准的Intersoft WebGrid和另一个

菜单控件(我认为是ComponentArt)。当在该页面上进行搜索

时,整个过程大约需要6.5秒,即使搜索

也没有返回任何内容。我们已经优化了数据库(存储了

程序),单独的数据库调用只需不到300ms。所有

我的方法似乎也很快。


查看跟踪我可以看到以下问题:

ProcessPostData :330ms

提高PostBackEvent 4246ms

PreRender:900ms

渲染:917ms


当我放Page_PreRender方法中的精确计时代码,我得到了
1ms的持续时间。其余的都在框架的某个地方之外

左右。 ViewState在任何地方都没有启用。

如何优化此页面或我应该在下一步看什么?


Eric


很难说...

一切看起来都不错......但你没有提供完整的跟踪方法

渲染被调用917毫秒,这是好的...看看Page_Unload甚至是什么时候叫
。这将是数据通过网络发送的最后时间....


George


check页面加载大小。如果您使用firefox和firebug,它将列出所有内容的所有

加载时间和大小(您也可以获取缓存大小)。


尝试转换关闭javascript在浏览器中,并加载页面,看看是否很差

写的javascript正在耗费时间。


- bruce(sqlwork.com)

" webdeveloper"写道:





(如果我在错误的新闻组,请告诉我。)

用户声称我们的应用程序很慢。

我们使用ASP.NET与VB.NET(Visual Studio 2005)和SQL-Server

2000(在一个不同的服务器)。

在主页面上我们有一个标准的Intersoft WebGrid和另一个

控件的菜单(我认为是ComponentArt)。当在该页面上进行搜索

时,整个过程大约需要6.5秒,即使搜索

也没有返回任何内容。我们已经优化了数据库(存储了

程序),单独的数据库调用只需不到300ms。所有

我的方法似乎也很快。


查看跟踪我可以看到以下问题:

ProcessPostData :330ms

提高PostBackEvent 4246ms

PreRender:900ms

渲染:917ms


当我放Page_PreRender方法中的精确计时代码,我得到了
1ms的持续时间。其余的都在框架的某个地方之外

左右。 ViewState在任何地方都没有启用。

如何优化此页面或我应该在下一步看什么?


Eric


您好Bruce

只有IE在我们公司获得批准,我无法安装未经批准的

软件。更改像JS这样的Internet选项也被禁用。

页面大小为115''496字节,但很难用AJAX告诉总动态加载数据大小(即使是Firefox我假设)。

但无论如何:数据传输到客户端和脚本执行时间是

可能不包括在我的时间计算中,因为它们是

在服务器上计算。这六秒钟已经太多了空白页面。$ / b $ b $


Hi

(Please advise me if I''m in the wrong newsgroup.)
Users claim that our application is slow.
We are using ASP.NET with VB.NET (Visual Studio 2005) and SQL-Server
2000 (on a different server).
On the main page we have a standard Intersoft WebGrid and another
control for the menu (from ComponentArt I think). When doing a search
on that page, it takes overall about 6.5 seconds, even if the search
didn''t return anything. We have optimized the database (stored
procedure) already, the database call alone takes less than 300ms. All
of my methods seem to be fast too.

Looking at the trace I can see the following problems:
ProcessPostData: 330ms
Raise PostBackEvent 4246ms
PreRender: 900ms
Render: 917ms

When I put precision timing code in the Page_PreRender method, I get
1ms duration. And all the rest is outside somewhere in the framework
or so. ViewState isn''t enabled anywhere.
How can I optimize this page or on what should I look next?

Eric

解决方案

"webdeveloper" <M8********@mailinator.comwrote in message
news:fb**********************************@w7g2000h sa.googlegroups.com...

Hi

(Please advise me if I''m in the wrong newsgroup.)
Users claim that our application is slow.
We are using ASP.NET with VB.NET (Visual Studio 2005) and SQL-Server
2000 (on a different server).
On the main page we have a standard Intersoft WebGrid and another
control for the menu (from ComponentArt I think). When doing a search
on that page, it takes overall about 6.5 seconds, even if the search
didn''t return anything. We have optimized the database (stored
procedure) already, the database call alone takes less than 300ms. All
of my methods seem to be fast too.

Looking at the trace I can see the following problems:
ProcessPostData: 330ms
Raise PostBackEvent 4246ms
PreRender: 900ms
Render: 917ms

When I put precision timing code in the Page_PreRender method, I get
1ms duration. And all the rest is outside somewhere in the framework
or so. ViewState isn''t enabled anywhere.
How can I optimize this page or on what should I look next?

Eric


Hard to say...
Everything looks OK... But you did not provide complete trace the method
Render was called on 917 ms wich is ok... See when Page_Unload even was
called. the would be a final time when data is sent across the network....

George


check the page load size. if you use firefox and firebug, it will list all
load times and sizes for all content (you can also get the cache sizes).

try turnning off javascript in the browser, and load page to see if poorly
written javascript is using up the time.

-- bruce (sqlwork.com)
"webdeveloper" wrote:

Hi

(Please advise me if I''m in the wrong newsgroup.)
Users claim that our application is slow.
We are using ASP.NET with VB.NET (Visual Studio 2005) and SQL-Server
2000 (on a different server).
On the main page we have a standard Intersoft WebGrid and another
control for the menu (from ComponentArt I think). When doing a search
on that page, it takes overall about 6.5 seconds, even if the search
didn''t return anything. We have optimized the database (stored
procedure) already, the database call alone takes less than 300ms. All
of my methods seem to be fast too.

Looking at the trace I can see the following problems:
ProcessPostData: 330ms
Raise PostBackEvent 4246ms
PreRender: 900ms
Render: 917ms

When I put precision timing code in the Page_PreRender method, I get
1ms duration. And all the rest is outside somewhere in the framework
or so. ViewState isn''t enabled anywhere.
How can I optimize this page or on what should I look next?

Eric


Hi Bruce
Only IE is approved in our company and I cannot install non-approved
software. Changing Internet options like JS is also disabled.
The page size is 115''496 bytes, but difficult to tell the total
dynamically loaded data size with AJAX (even with Firefox I assume).
But anyway: data transfer to the client and script execution times are
probably not included in my time calculcations, because they are
calculated on the server. And these six seconds are already too much
for an empty page.
Eric


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

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