ASP .NET的性能问题 [英] Performance issue of ASP .NET

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

问题描述

我正在为其中一个客户建立一个网站。这里和那里几乎没有什么错误,但最近问题变得越来越严重。


基本上症状是当用户试图访问页面,它

需要很长时间才能加载。然而,在长达1小时后,网站

将正常运行正常。


这个问题与网站有关。我通常只是要求系统

admin重启IIS服务。然而,最近经常发生问题

(每天最多3次和工作时间)。


因此,我正在做在

不同的框中使用相同的应用程序进行负载测试,可以在内部访问。我尝试使用这些工具点击页面,因为我可以使用工具(1000个用户同时访问页面

),但我仍然不能遇到同样的问题发生在

测试盒上。


然而,我发现的一件事是,在测试盒上,当

请求当前计数器(ASP .NET计数器)可以高达1000,

而请求执行(ASP .NET应用程序计数器)最多只能达到1.

这个不是生产箱上发生的情况。我打电话给

系统管理员看看性能计数器,他说

请求当前计数器大约250,请求执行是

大约相同的数字(250)。


我试图搜索网络,没有运气找到问题的原因。如果

这里有人可以提供帮助,我会非常感激,因为问题非常紧急,需要尽快修复。

干杯。

I''m currently building a website for one of the client. There has been
few errors here and there, but just recently the problem is getting worse.

Basically the symptoms is that when the user try to access the page, it
takes really long time to load. However, after up to 1 hour, the website
will run fine again as normal.

This issue has been there with the site. I usually just ask the system
admin to restart the IIS Service. However, the problem starts to occur
quite frequently recently (up to 3 times a day and during business hour).

Therefore, I''m doing a load testing using the same application on a
different box which can be accessed internally. I try to hit the page as
hard as I can with the tools (1000 user accessing the pages
simultaneously), but I still can''t have the same problem occuring on the
testing box.

However, 1 thing that I found is that, on the testing box, when the
Requests Current counter (ASP .NET Counter) can go up as high as 1000,
while Requests Executing (ASP .NET Application Counter) only up to 1.
This is not the case that happen on the production box. I called the
system admin to have a look at the performance counter, and he said that
the Requests Current counter is around 250 with Requests Executing is
about the same number (250).

I try to search the net and no luck to find the cause of the problem. If
anyone here could help, I''d be very grateful, since the problem is very
urgent and need to be fixed ASAP.

Cheers.

推荐答案

嗨先生,


欢迎来到ASPNET新闻组。 />
从您的描述中,您在生产环境(即应用程序)中的asp.net应用程序上遇到了一些低性能问题。

症状最近每天最多发生3次,是吗?


根据我的经验,这种低性能问题转为正常
$一段时间之后的b $ b可能是由asp.net进程循环和

重新启动引起的,这将导致ASP.NET运行时正在初始化(也是

页面重新编译.. 。)

您是否检查过服务器的应用程序事件日志以查看是否存在某些ASP.NET工作进程根据时间回收日志条目

发生了这个问题?


另外,对于一般性能问题,我们可以查看

以下内容:

1.低性能时CPU利用率是否很高(例如
吞吐量下降......)。如果不高,必须有一些长期任务

阻止线程....


2.我们还可以检查缓慢响应是否是警告通过asp.net

处理或响应的输出...有时我们的响应

页面的大小太大也会导致响应缓慢...


BTW,对于你在测试环境中获得的不同结果,我想也许

与您使用的测试工具有关,这不太准确对于

产品环境。


谢谢,


Steven Cheng

Microsoft在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)


------------ --------

|日期:星期四,2005年11月10日16:07:01 +1100

|来自:57R4N63R< un ***** @ unknown.com>

|用户代理:Mozilla Thunderbird 1.0.7(Windows / 20050923)

| X-Accept-Language:en-us,en

| MIME版本:1.0

|主题:ASP .NET的性能问题

|内容类型:text / plain;字符集= ISO-8859-1; format = flowed

|内容传输编码:7位

|消息ID:< ui ************** @ TK2MSFTNGP09.phx.gbl>

|新闻组:microsoft.public.dotnet.framework.aspnet

| NNTP-Posting-Host:ppp157-241.static.internode.on.net 150.101.157.241

|行数:1

|路径:TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl

|外翻:TK2MSFTNGXA02.phx.gbl

microsoft.public.dotnet.framework.aspnet:356917

| X-Tomcat-NG:microsoft.public.dotnet.framework.aspnet

|

|我正在为其中一个客户建立一个网站。已经有了

|这里和那里几乎没有错误,但最近问题变得越来越严重。

|

|基本上症状是,当用户试图访问该页面时,它是

|加载需要很长时间。但是,经过长达1小时的网站,

|将照常恢复正常。

|

|这个问题一直存在于该网站上。我通常只问系统

|管理员重新启动IIS服务。但是,问题开始发生

|最近很频繁(每天最多3次和工作时间)。

|

|因此,我正在使用

|上的相同应用程序进行负载测试可以在内部访问的不同框。我尝试点击页面

|我可以使用这些工具(1000个用户同时访问页面

|同时),但我仍然不能在
上发生同样的问题
|测试盒。

|

|但是,我发现的一件事是,在测试盒上,当

|时请求当前计数器(ASP .NET Counter)可以高达1000,

|而请求执行(ASP .NET应用程序计数器)最多只有1.

|这不是生产箱上发生的情况。我打电话给

|系统管理员看看性能计数器,他说

|请求当前计数器大约250,请求执行是

|大约相同的数字(250)。

|

|我试图搜索网络,没有运气找到问题的原因。如果

|这里的任何人都可以提供帮助,我会非常感激,因为这个问题非常好。

|紧急,需要尽快修复。

|

|干杯。

|

Hi Sir,

Welcome to ASPNET newsgroup.
From your description, you''re encountering some low perfomance issue on
your asp.net application in production environment, the application. The
symptom occurs up to 3 times a day recently ,yes?

Based on my experience, such low performance problem which turn normal
after certain period is possibly caused by the asp.net process recycle and
restarting which will cause the ASP.NET runtime being initializing (also
pages recompiling...)
Have you checked the server''s application event log to see whether there
some ASP.NET worker process recycles log entries according to the times
that problem occur?

In addition, for general performance throubleshooting, we can check the
following things:

1. Whether CPU utilize is high when low performance occurs(such as
throughput lowdown..). If not high, there must have some long run task
which blocks threads....

2. We can also check whether the slow responding is cauesd by asp.net
processing or the response''s output... sometimes when we the response
page''s size being too large will cause slow response ,too...

BTW, for the different result you got in test environment, I think maybe
related to the testing tool you used which is not quite accurate for the
product envionment.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Date: Thu, 10 Nov 2005 16:07:01 +1100
| From: 57R4N63R <un*****@unknown.com>
| User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Performance issue of ASP .NET
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Message-ID: <ui**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ppp157-241.static.internode.on.net 150.101.157.241
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:356917
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I''m currently building a website for one of the client. There has been
| few errors here and there, but just recently the problem is getting worse.
|
| Basically the symptoms is that when the user try to access the page, it
| takes really long time to load. However, after up to 1 hour, the website
| will run fine again as normal.
|
| This issue has been there with the site. I usually just ask the system
| admin to restart the IIS Service. However, the problem starts to occur
| quite frequently recently (up to 3 times a day and during business hour).
|
| Therefore, I''m doing a load testing using the same application on a
| different box which can be accessed internally. I try to hit the page as
| hard as I can with the tools (1000 user accessing the pages
| simultaneously), but I still can''t have the same problem occuring on the
| testing box.
|
| However, 1 thing that I found is that, on the testing box, when the
| Requests Current counter (ASP .NET Counter) can go up as high as 1000,
| while Requests Executing (ASP .NET Application Counter) only up to 1.
| This is not the case that happen on the production box. I called the
| system admin to have a look at the performance counter, and he said that
| the Requests Current counter is around 250 with Requests Executing is
| about the same number (250).
|
| I try to search the net and no luck to find the cause of the problem. If
| anyone here could help, I''d be very grateful, since the problem is very
| urgent and need to be fixed ASAP.
|
| Cheers.
|


57R4N63R写道:
57R4N63R wrote:
我正在建立一个网站客户之一。这里和那里几乎没有错误,但最近问题变得越来越严重。

基本上症状是,当用户试图访问页面时,它需要真的很长时间加载。然而,在长达1小时后,网站
会正常运行。

这个问题一直存在于网站上。我通常只是要求系统管理员重启IIS服务。然而,问题最近经常发生(每天最多3次和工作时间)。

因此,我正在使用相同的应用程序进行负载测试一个可以在内部访问的不同盒子。我尝试使用工具尽可能地点击页面(1000个用户同时访问页面),但我仍然无法在
测试中遇到同样的问题但是,我发现的一件事是,在测试框中,当
请求当前计数器(ASP .NET计数器)可以高达1000时,
请求执行时(ASP .NET应用程序计数器)最多只有1.
生产盒上不会发生这种情况。我打电话给
系统管理员查看性能计数器,他说,请求当前计数器大约250,请求执行是大约相同的数字(250)。

我试图搜索网络,没有运气找到问题的原因。如果这里的任何人都可以提供帮助,我会非常感激,因为问题非常紧急,需要尽快修复。

干杯。
I''m currently building a website for one of the client. There has been
few errors here and there, but just recently the problem is getting worse.

Basically the symptoms is that when the user try to access the page, it
takes really long time to load. However, after up to 1 hour, the website
will run fine again as normal.

This issue has been there with the site. I usually just ask the system
admin to restart the IIS Service. However, the problem starts to occur
quite frequently recently (up to 3 times a day and during business hour).

Therefore, I''m doing a load testing using the same application on a
different box which can be accessed internally. I try to hit the page as
hard as I can with the tools (1000 user accessing the pages
simultaneously), but I still can''t have the same problem occuring on the
testing box.

However, 1 thing that I found is that, on the testing box, when the
Requests Current counter (ASP .NET Counter) can go up as high as 1000,
while Requests Executing (ASP .NET Application Counter) only up to 1.
This is not the case that happen on the production box. I called the
system admin to have a look at the performance counter, and he said that
the Requests Current counter is around 250 with Requests Executing is
about the same number (250).

I try to search the net and no luck to find the cause of the problem. If
anyone here could help, I''d be very grateful, since the problem is very
urgent and need to be fixed ASAP.

Cheers.




有人可以帮忙吗?



Can anyone help?


嗨史蒂文,


感谢您的回复。你能告诉我如何检查服务器的

应用程序日志吗?是在事件查看器>申请?


关于你的故障排除,我认为这不是两个问题。 CPU的利用率相当低(大约10%是我们得到的),当

网站工作正常时,它实际上可以非常快地显示页面

内部局域网。


Budhi
Hi Steven,

Thanks for the reply. Could you tell me how to check the Server''s
Application Log? Is it on Event Viewer > Application?

Regarding your troubleshooting, I don''t think it''s both issue. The CPU
utilization for pretty low (about 10% is as high as we get) and when the
site works fine, it actually can display the pages pretty fast on
Internal LAN.

Budhi


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

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