我如何prevent从IIS网站编译? [英] How do I prevent IIS from compiling website?

查看:168
本文介绍了我如何prevent从IIS网站编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在后台正在跟一个ASMX Web服务的ASP .NET Web应用程序。我们已计算,而且平均等待时间的初始请求是20秒。我想知道如果有一种方法我可以给Web服务到服务器precompiled,从而否定了编辑的需要。

I have an ASP .NET web application which on the backend is talking to an ASMX web service. We have counted and the average wait time for the initial request is 20s. I am wondering if there is a way I can send the web service up to the server precompiled, thus negating the need for compilation.

我们也注意到IIS倾向于回收的工作线程,这也导致汇编。该过程本身不访问非常频繁,但它需要更快时,它是

We have also noticed that IIS tends to recycle its worker threads and this also causes a compilation. The process itself is not accessed terribly often, but it needs to be much quicker when it is.

有什么想法?

在此先感谢

更新:感谢所有的建议,我已经尝试了一些他们与这里是我所发现的。回电时间关机/修修补补是很危险的,因为我不想线程只是坐在那里无所事事。经进一步检查该网站有上升precompiled,所以我的问题是,为什么是初始旋转时间为Web服务?

Update: thanks to all the suggestions, I have tried a number of them and here is what I have found. Recycle time shutdown/tinkering is dangerous cause I dont want threads to just sit around doing nothing. Upon further inspection the site is going up precompiled, so my question is why is there an initial spin up time for a web service?

现在:朝热身脚本建议靠在下面

Right now: Leaning towards the warmup script suggestion below

更新:该服务正在从不同的机器上的Web服务器命中。我们看到,只有初始请求的问题。

Update: The service is being hit from a web server on a different machine. We are seeing problems with the initial request only.

推荐答案

一个替代方法是写一个热身脚本,这只是从您的应用程序执行一页。这将使服务器自旋向上为您和旁边的人会得到一个快速的打击。您还可以设置一个计划过程中偶尔(比如,如果您安排线程池凌晨4点回收,安排热身脚本在4:01运行)

One alternative approach is to write a "warm-up script" which simply executes one page from your app. This will make the server spin-up for you and the next person will get a fast hit. You could also set a scheduled process to run that script occasionally (like, if you schedule the thread pool to recycle at 4 am, schedule the warm-up script to run at 4:01 am)

这篇关于我如何prevent从IIS网站编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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