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

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

问题描述

大家好,


我在我的网站上写了一个非常简单的ASP.NET页面,根据场地显示了婚礼fayres的

结果用户选择的名称。


但是,当ASP页面第一次加载时,这需要相当长的时间

出现(约15- 20secs)。据我所知,ASP必须为IIS服务器生成一个进程,但无论如何都要加速这个

的初始进程吗?


任何帮助都会很棒。


谢谢

Paul

Hi all,

I have written a very simple ASP.NET page on my website that displays the
results of wedding fayres based on the Venue Name selected by the user.

However, when the ASP page loads for the 1st time, this takes quite a long
while to appear (approx 15-20secs). I understand that the ASP has to
generate a process to the IIS server, but is there anyway to speed this
initial process up?

Any help would be great.

Thanks
Paul

推荐答案

问题是JIT编译。在没有重新架构的情况下,如果没有重新架构,你可以在用户访问页面之前点击一次页面。在2.0中,你可以预编译,但是直到2005年你才能正式使用这个功能。对于程序集

而不是web应用程序本身,你可以使用ngen,将制作本机

二进制文件,避免对这些程序集进行JIT编译。


-

Gregory A. Beamer

MVP; MCP:+ I,SE,SD,DBA


**************************** ********************

在盒子外面思考!

********* *******************************************

保罗金QUOT; <き****** @ hotmail.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
The issue is the JIT compilation. IN 1.0, without rearchitecting, you have
to hit the page once before your users do. In 2.0, you can precompile, but
you will not have that capability, officially, until 2005. For assemblies
other than the web app itself, you can ngen, which will make native
binaries, avoiding JIT compilation on those assemblies.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Paul King" <ki******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
大家好,

我在我的网站上写了一个非常简单的ASP.NET页面,根据用户选择的场地名称显示婚礼的结果。
但是,当ASP页面第一次加载时,这需要很长时间才能显示(大约15-20秒)。我知道ASP必须为IIS服务器生成一个进程,但无论如何都要加快这个
初始进程的速度吗?

任何帮助都会很棒。

谢谢
Paul
Hi all,

I have written a very simple ASP.NET page on my website that displays the
results of wedding fayres based on the Venue Name selected by the user.

However, when the ASP page loads for the 1st time, this takes quite a long
while to appear (approx 15-20secs). I understand that the ASP has to
generate a process to the IIS server, but is there anyway to speed this
initial process up?

Any help would be great.

Thanks
Paul



呃.. Whatchawhaddawho?


你和一个刚拿起编程ASP.NET的人说话,这是一本关于

VB.net的书 - 不是技术架构师。


你在说什么简而言之,在用户点击该页面之前,代码无法自动编译




保罗。


Cowboy(Gregory A. Beamer)[MVP]" <否************ @ comcast.netNoSpamM>在消息新闻中写道

:OP ************** @ TK2MSFTNGP11.phx.gbl ...
Er.. Whatchawhaddawho?

Your speaking to a person whom just picked up a programming ASP.NET in
VB.net book - not a technical architect.

Are you saying in a nutshell that the code cannot be automatically compiled
before the user hits that page?

Paul.

"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:OP**************@TK2MSFTNGP11.phx.gbl...
问题是JIT汇编。在1.0中,没有重新架构,你可以在用户访问之前点击一次页面。在2.0中,您可以进行预编译,但是直到2005年才能正式使用该功能。对于除了Web应用程序本身之外的程序集,您可以使用ngen,它将生成本机
二进制文件,避免对这些集合进行JIT编译。

- Gregory A. Beamer
MVP; MCP:+ I,SE,SD,DBA

******************************** ****************
在盒子外面思考!
********************* *******************************
保罗金 <き****** @ hotmail.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
The issue is the JIT compilation. IN 1.0, without rearchitecting, you have
to hit the page once before your users do. In 2.0, you can precompile, but
you will not have that capability, officially, until 2005. For assemblies
other than the web app itself, you can ngen, which will make native
binaries, avoiding JIT compilation on those assemblies.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Paul King" <ki******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
大家好,

我在我的网站上写了一个非常简单的ASP.NET页面,根据用户选择的场地名称显示
结婚fayres的结果。

但是,当ASP页面第一次加载,这需要相当长的
(约15-20秒)。我知道ASP必须为IIS服务器生成一个进程,但无论如何都要加快这个
初始进程的速度吗?

任何帮助都会很棒。

谢谢
Paul
Hi all,

I have written a very simple ASP.NET page on my website that displays the results of wedding fayres based on the Venue Name selected by the user.

However, when the ASP page loads for the 1st time, this takes quite a long while to appear (approx 15-20secs). I understand that the ASP has to
generate a process to the IIS server, but is there anyway to speed this
initial process up?

Any help would be great.

Thanks
Paul




Paul King写道:
Paul King wrote:
大家好,

我在我的网站上写了一个非常简单的ASP.NET页面,根据所选的场地名称显示婚礼的结果用户。

然而,当ASP页面第一次加载时,这需要相当长的时间(大约15-20秒)。我知道ASP必须为IIS服务器生成一个进程,但无论如何都要加快这个
初始进程的速度吗?

任何帮助都会很棒。

谢谢
Paul
Hi all,

I have written a very simple ASP.NET page on my website that displays the
results of wedding fayres based on the Venue Name selected by the user.

However, when the ASP page loads for the 1st time, this takes quite a long
while to appear (approx 15-20secs). I understand that the ASP has to
generate a process to the IIS server, but is there anyway to speed this
initial process up?

Any help would be great.

Thanks
Paul




在2.0到达此处之前可以使用的解决方法是一种方法

保罗威尔逊首先分享。有人拿了他的例子并制作了WebToucher,

a HTTPModule,它可以帮助你在第一页打到
时编译所有文件(不幸的是,仍然需要第一页命中):<

http://www.xmlwebservices.cc/index_Samples.htm


看到Paul在那里的文章链接......


-

Craig Deelsnyder

Microsoft MVP - ASP / ASP.NET



Sort of a workaround you can use before 2.0 gets here is an approach
Paul Wilson first shared. Someone took his example and made WebToucher,
a HTTPModule that helps by compiling all files when the first page is
hit (unfortunately the very 1st page hit is still needed):

http://www.xmlwebservices.cc/index_Samples.htm

see the link to Paul''s article in there...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


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

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