ASP.NET 应用程序启动速度非常慢

发布于 2024-08-26 12:45:09 字数 170 浏览 3 评论 0原文

我有一个页面数量很少的 ASP.NET 应用程序。我看到的问题是启动时间非常慢。据我所知,大部分时间都花在JIT上。根据 PerfMon 的报告,预编译应用程序对于减少 #methods JIT 似乎没有多大帮助。有人知道我可以做些什么来进一步缩短启动时间吗? 是否真的无法使用 NGEN 预编译 ASP.NET 应用程序?

I have an ASP.NET applications with quite small number of pages. The problem I see is that the startup time is quite slow. As far as I can tell, most of the time is spent in JIT. Pre-compiling the applications seem not very helpful in reducing the #methods JIT as reported thru PerfMon. Does anybody know what I can do to reduce the startup time further?
Is it true that there is no way to pre-jit an ASP.NET application using NGEN?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你丑哭了我 2024-09-02 12:45:09

您是否在 web.config 中设置了以下元素?

<compilation debug="false"/>

看一下 http://www.aspnetresources.com/articles/debug_code_in_Production.aspx 有关当调试模式设置为 true 时框架会执行哪些操作的一些有用信息:它相当旧,但其中很多内容仍然相关。

如果不进一步了解您的应用程序的用途、Application_Start 事件中发生的情况等,就很难为您提供更具体的建议。

Have you set the following element in your web.config?

<compilation debug="false"/>

Take a look at http://www.aspnetresources.com/articles/debug_code_in_production.aspx for some useful information on what the framework does when you have debug mode set to true: it's fairly old but a lot of it is still relevant.

Without knowing a little more about what your app does, what you've got going on in the Application_Start event etc, it will be difficult to give you more specific advice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文