如何跟踪ASP.Net JIT编译?它的速度很慢 [英] How can I trace ASP.Net JIT Compilation? Its very slow

查看:165
本文介绍了如何跟踪ASP.Net JIT编译?它的速度很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何跟踪应用程序的JIT编译?我们有一个小asp.net应用程序是一个较大的网站的一部分(传统的ASP为code的其余部分),所以它不是很频繁访问,并且是(可能)超时或应用程序池回收后重新编译。重新编译正在长达2分钟!

How can I trace the JIT compilation of an application? We have a small asp.net application that is part of a larger website (classic asp for the rest of the code) so it's not accessed very frequently and is (likely) recompiling after a timeout or app pool recycle. The recompilation is taking up to 2 minutes!!

是否有一个的perfmon跟踪工具或专柜,可以帮助我追查究竟是怎么回事?

Is there a tracing tool or counters in perfmon that can help me trace what exactly is going on?

我要尝试和precompile但我认为超时和应用程序池回收将呈现无用。 (或者是一个坏的假设?)

I was going to try and precompile but I think timeouts and app pool recycles will render that useless. (or is that a bad assumption?)

Thx提前!

推荐答案

如果你真的相信这个问题是JIT,你可以使用.NET性能计数器。打开性能管理控制台(它由操作系统不同而异),然后单击+,然后添加 .NET CLR日新计数器:

If you truly believe that the problem is Jit, you can use .NET Performance Counters. Open the "Performance" Management Console (it varies by operating system) and click the +, then add the .NET CLR Jit counter:

这将让你获得有关JIT,多少时间它花费等一些简单的指标。

This will allow you to get some simple metrics about Jit, how much time is being spent in it, etc.

现在,我不认为这个问题是完全的日新。这可能是ASP.NET编译应用程序到 ASP.NET临时文件,它可能是强名称签名检查等我会考虑很多其他的事情除了CLR日新。

Now, I don't think the problem is entirely on "Jit". It might be ASP.NET compiling your application into Temporary ASP.NET Files, it might be Strong Name signature checking, etc. I would consider many other things besides the CLR Jit.

日新特别是当IL code由运行时编译到code或发现它在NGEN。整个应用程序没有得到JIT编译一次全部 - 每种方法是逐个JIT编译的情况下

Jit specifically is when IL code is compiled into native code by the runtime, or finds it in NGEN. Your whole application doesn't get JITed all at once - each method is JITed on a case by case basis.

我觉得你最好的拍摄是还看汇编总柜台下的 ASP.NET应用程序对象,并尝试pre-编译您的网站。

I think your best shot is to also look at the Compilations Total counter under the ASP.NET Applications object, and try pre-compiling your website.

这篇关于如何跟踪ASP.Net JIT编译?它的速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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