ASP.NET页面响应缓慢 [英] Slow Response for ASP.NET page

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

问题描述



我的简单Web应用程序遇到了性能问题。 (

包含非常简单直接的网页)。应用程序的主页

第一次在ASP.NET下运行需要15秒以上。好吧我

同意初始页面加载需要一段时间,因为JIT编译。


然而,在第一次加载后延迟消失,但它返回一些闲置后

时间。


任何建议,以提高性能?


请帮助!

-

通过DotNetMonster.com发布消息
http://www.dotnetmonster.com/Uwe/For...p-net/200509/1

推荐答案

这正是它应该如何。经过一段闲置时间之后,Web服务器
正在恢复未使用的资源,包括已编译的ASP.Net代码。这是
只是Web服务器垃圾收集和内存管理的一部分

并有助于保持Web服务器的健康。在Web服务器卸载应用程序之前,在最后一页请求之后大约需要20分钟




希望这有帮助,

Mark Fitzpatrick

Microsoft MVP - FrontPage


" Ramkumar T via DotNetMonster.com" < FO *** @ DotNetMonster.com>写在

消息新闻:53 *********** @ DotNetMonster.com ...
This is exactly how it should be. After a period of idle time the web server
is recovering unused resources including the compiled ASP.Net code. This is
just part of the garbage collection and memory management of the web server
and helps to keep the web server healthy. It should take about 20 minutes
after the last page request before the web server unloads the application.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Ramkumar T via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in
message news:53***********@DotNetMonster.com...

我遇到了性能问题使用我简单的Web应用程序。
(其中包含非常简单直接的网页)。应用程序的主页
需要超过15秒才能在ASP.NET下运行第一次。好吧
我同意初始页面加载需要一段时间,因为JIT
编译。

然而,在第一次加载后延迟消失,但它返回经过一段时间的空闲时间。

有什么建议可以提高性能吗?

请帮忙!

- -
通过DotNetMonster.com发布的消息
http://www.dotnetmonster.com/Uwe/For...p-net/200509/1



Mark Fitzpatrick <毫安****** @ fitzme.com>写在

新闻:u4 ************** @ TK2MSFTNGP14.phx.gbl:
"Mark Fitzpatrick" <ma******@fitzme.com> wrote in
news:u4**************@TK2MSFTNGP14.phx.gbl:
这是怎么回事它应该是。经过一段闲置时间后,Web服务器正在恢复未使用的资源,包括已编译的ASP.Net
代码。这只是Web服务器的垃圾收集和内存管理的一部分,有助于保持Web服务器的健康。

Web之前的最后一页请求后大约需要20分钟服务器卸载应用程序。
This is exactly how it should be. After a period of idle time the web
server is recovering unused resources including the compiled ASP.Net
code. This is just part of the garbage collection and memory
management of the web server and helps to keep the web server healthy.
It should take about 20 minutes after the last page request before the
web server unloads the application.




太糟糕了,服务器无法在没有任何黑客的情况下保持应用程序存活:(


-

Lucas Tam(RE********@rogers.com)

请在回复时从电子邮件地址中删除删除。


Newmarket Volvo Sucks! http://newmarketvolvo.tripod。 com


你真的想要运行一个没有被使用的应用程序吗?记住一个web应用程序的
全部静态和缓存项等保留在

物理内存中。服务器只是说,嘿,我的上一次会话已经超时,

我没被使用,所以我我会闭嘴拥有记忆保护的缘故。我知道

认为在应用程序级别的某处有一个标志会很酷

表示你​​想让应用程序一直运行。


HTH,

Ben

" Lucas Tam" < RE ******** @ rogers.com>在消息中写道

新闻:Xn *************************** @ 127.0.0.1 ...
Would you really want to run an application that isn''t being used? Remeber
for a web application all static and cache items etc are retained in
physical memory. The server simply says, hey my last session has timed out,
I''m not being used, so I''ll shut down for memory conservations sake. I do
think it would be cool to have a flag somewhere at the application level to
indicate that you want to keep the application running at all times.

HTH,
Ben
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
" Mark Fitzpatrick" <毫安****** @ fitzme.com>在
新闻中写道:u4 ************** @ TK2MSFTNGP14.phx.gbl:
"Mark Fitzpatrick" <ma******@fitzme.com> wrote in
news:u4**************@TK2MSFTNGP14.phx.gbl:
这正是它应该如何。经过一段闲置时间后,Web服务器正在恢复未使用的资源,包括已编译的ASP.Net
代码。这只是Web服务器的垃圾收集和内存管理的一部分,有助于保持Web服务器的健康。

Web之前的最后一页请求后大约需要20分钟服务器卸载应用程序。
This is exactly how it should be. After a period of idle time the web
server is recovering unused resources including the compiled ASP.Net
code. This is just part of the garbage collection and memory
management of the web server and helps to keep the web server healthy.
It should take about 20 minutes after the last page request before the
web server unloads the application.



太糟糕了,服务器无法在没有任何黑客的情况下保持应用程序活着:(

-
Lucas Tam (RE********@rogers.com)
请在回复时从电子邮件地址中删除删除。

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com


这篇关于ASP.NET页面响应缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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