简体   繁体   English

内存分析

[英]Memory profiling

I'm using dotTrace Memory to trying to find out why an application leaks memory. 我正在使用dotTrace Memory尝试找出为什么应用程序会泄漏内存。

The problem is that the memory usage shown in the snapshot doesn't get anywhere near the memory which is used (private working set in perfmon). 问题在于快照中显示的内存使用率无法接近所使用的内存(perfmon中的私有工作集)。

Have I configured dotTrace incorrectly or does it mean that the extra memory is from unmanaged resources that dotTrace can't track? 我是否错误配置了dotTrace,或者这意味着多余的内存来自dotTrace无法跟踪的非托管资源?

That might be caused by several reasons: 这可能是由于以下几个原因造成的:

  • dotTrace Memory doesn't work with native memory, it supports only managed memory profiling, dotTrace内存不适用于本机内存,它仅支持托管内存配置文件,

  • Memory used by assemblies is not tracked, 程序集使用的内存未跟踪,

  • GC reclaims memory, but it's not logged as free. GC会回收内存,但不会将其记录为空闲。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM