调试模式下的ASP.NET性能 [英] ASP.NET performance in debug mode
问题描述
所有文档都说,将ASP.NET应用程序保留在调试状态下,
模式会有很大的性能损失。我无法发现
调试和非调试模式之间的任何区别。我错过了什么或者
文档错了吗?
我一直在加载测试一个ASP.NET网站(用C#构建的VS.NET 2003)。 br />
我用ACT在几分钟内产生了重负荷。调试
或没有调试产生几乎相同的性能结果。
为了确保我真的处于非调试模式,我有:
1 )在发布中重建解决方案(对于我所有包含的C#DLL)
模式。
2)更改为debug =" false"在web.config中。
还有什么可以关闭调试并从我的网站获得更多
的性能吗?
All the documentation says that leaving an ASP.NET application in debug
mode has a big performance hit. I can''t detect any difference between
debug and non-debug modes. Am I missing something or is the
documentation wrong?
I''ve been load testing an ASP.NET website (built in VS.NET 2003 in C#).
I''ve used the ACT to generate heavy loads over several minutes. Debug
or no debug produces almost identical performance results.
To ensure I''m really in non-debug mode I have:
1) rebuilt the solution (for all my included C# DLLs) in "release"
mode.
2) changed to debug="false" in web.config.
Is there something else to turn off debugging and get lots more
performance from my site?
推荐答案
除了增强保护和安全性之外,释放模式还为MSIL文件的大小减少贡献了
额外NOP IL指令不包括在内。
问候,
Jignesh Desai。
< no **** @ odysseyzone.com>在消息中写道
news:11 ********************** @ c13g2000cwb.googlegr oups.com ...
Apart from enhancing protection and security, release mode also contributes
to the size-reduction of MSIL files
Extra NOP IL instructions are excluded.
Regards,
Jignesh Desai.
<no****@odysseyzone.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
所有文档都说,将ASP.NET应用程序保留在调试模式中会有很大的性能影响。我无法检测到
调试和非调试模式之间的任何区别。我错过了什么或者
文档错了吗?
我一直在加载测试ASP.NET网站(用C#构建的VS.NET 2003)。
我已经使用ACT在几分钟内产生了重负荷。调试
或没有调试产生几乎相同的性能结果。
为了确保我真的处于非调试模式,我有:
1)重建解决方案(对于我所有的在发布模式中包含C#DLLs。
2)更改为debug =" false"在web.config中。
还有什么可以关闭调试并从我的网站获得更多的性能吗?
All the documentation says that leaving an ASP.NET application in debug
mode has a big performance hit. I can''t detect any difference between
debug and non-debug modes. Am I missing something or is the
documentation wrong?
I''ve been load testing an ASP.NET website (built in VS.NET 2003 in C#).
I''ve used the ACT to generate heavy loads over several minutes. Debug
or no debug produces almost identical performance results.
To ensure I''m really in non-debug mode I have:
1) rebuilt the solution (for all my included C# DLLs) in "release"
mode.
2) changed to debug="false" in web.config.
Is there something else to turn off debugging and get lots more
performance from my site?
是的 - 我可以看到非调试提供了一些边缘的改进,即一个较小的DLL和额外的速度。然而,
文件表明有一个很大的性能。除非我错过
文件是错误的。
这意味着我可以留在符号表中,所以我很好
代码错误消息。此外,我可以离开调试模式观看我的直播服务器 - 所有这些都没有任何重大的性能损失。两者都是非常有用的事情。
正如其他人对调试模式与非调试模式进行基准测试一样吗?
Yes - I can see the non-debug offers some marginal inprovements i.e. a
couple of percent smaller DLLs and extra speed. However the
documantation says there is a big perfromance hit. Unless I''m missing
something the documentation is wrong.
This would mean that I can leave in the symbol tables so I get nice
code-bug messages. Also I can leave on debug mode to watch my live
servers - all without any significant performance hit. Both are very
useful thing to do.
As anyone else benchmarked debug mode vs. non debug mode?
调试模式的最大问题是页面没有超时。如果
由于某种原因请求遇到麻烦并且正在旋转并且
等待数据库查询或webservice调用返回,那么
请求开始排队并被拒绝。
您始终可以在发布模式下构建和部署符号文件。
-
Scott
http://www.OdeToCode.com/blogs / scott /
2004年12月10日05:36:22 -0800,cic <无**** @ odysseyzone.com>写道:
This biggest problem with debug mode is that pages do not timeout. If
for some reason a request gets into trouble and is just spinning and
waiting for a database query or webservice call to return, then
requests start to queue and rejected.
You can always build and deploy symbol files in release mode.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On 10 Dec 2004 05:36:22 -0800, "cic" <no****@odysseyzone.com> wrote:
是的 - 我可以看到非调试提供了一些边缘的改进,即几个百分点的小DLL和额外的速度。然而,
文件说有一个很大的性能打击。除非我遗漏了某些文档是错误的。
这意味着我可以留在符号表中,这样我就可以获得很好的代码错误信息。此外,我可以离开调试模式观看我的实时服务器 - 所有这些都没有任何重大的性能损失。两者都是非常有用的事情。
正如其他人对调试模式与非调试模式进行基准测试一样?
Yes - I can see the non-debug offers some marginal inprovements i.e. a
couple of percent smaller DLLs and extra speed. However the
documantation says there is a big perfromance hit. Unless I''m missing
something the documentation is wrong.
This would mean that I can leave in the symbol tables so I get nice
code-bug messages. Also I can leave on debug mode to watch my live
servers - all without any significant performance hit. Both are very
useful thing to do.
As anyone else benchmarked debug mode vs. non debug mode?
这篇关于调试模式下的ASP.NET性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!