English 中文(简体)
ASP. NET:如何测试服务器记忆的使用?
原标题:ASP.NET: How to test for server memory usage?

Is it possible to test for server memory usage on local machine? If so, what is the simplest way?

My scenario: I am using a gridview with default paging which is supposed to be memory intensive because each paging request retrieves the whole database table. Now I am trying to implement custom paging that retrieves only the few records from the database that are needed to display on one page of the gridview.

Obviously, I want to test and find out if my implementation works. If there are other better/more reliable ways to test, please let me know. Thanks.

最佳回答

它像你一样需要一种定性工具。 在个人方面,我建议从红门对ANTS记忆介绍器和ANTS性能简介进行考察:

ANTS Memory Profiler:
http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/

ANTS Performance Profiler:
http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/

自动取款机显示器在识别瓶颈和记忆泄露方面做了大量的工作。 它们不是免费的,而是能够重得起,提供完全有效的审判,以便你们能够评估产品。

问题回答

如果你重新关注KQ数据库的运行情况,就会发现一个ASP的绩效。 该网络应用后值得研究(免费!) MVC 小型材料:

http://code.google.com/p/mvc-mini-profiler/"rel=“nofollow noreferer”>http://code.google.com/p/mvc-mini-profiler/

Although it doesn t show memory consumption, it does show query execution time, and in particular highlights repeated queries that may be optimised.

我们把这一点用在我们的产品上,这确实是偶然的。

我的喜爱是杰特布内斯公司提供的特恩特雷斯工具:

http://www.jetbrains.com/profiler/features/index.html

“entergraph

Good memory profiling results grouping/sorting: enter image description here

也可使用以下基本代码:





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签