随笔分类 -  C#内存分析

使用JetBrains dotMemory 4.0分析内存
摘要:安装下载地址:http://www.jetbrains.com/profiler/1.在本地启动web应用后,打开dotMemory,附加进程2.附加后会看到集中颜色得粗条,不断往左边走动,这是内存运行情况,3.Get snapshot,抓取两次快照,等自动信息收集完毕后,可以进行堆中数据的对比,抓... 阅读全文

posted @ 2015-03-03 16:48 Anthony.Zhao 阅读(2139) 评论(0) 推荐(0)

windbg 命令 gchandles
摘要:使用windbg导出dump文件.dump /ma D:\testdump.dmpgchandles命令列出句柄,同时列出句柄引用的对象,演示代码如下:using System;using System.Collections.Generic;using System.Linq;using Syst... 阅读全文

posted @ 2015-01-15 19:51 Anthony.Zhao 阅读(626) 评论(0) 推荐(0)

windbg sos版本不匹配问题解决
摘要:dumpheap 时提示: 0:105> !dumpheap -stat The garbage collector data structures are not in a valid state for traversal. It is either in the "plan phase," w 阅读全文

posted @ 2014-12-26 19:48 Anthony.Zhao 阅读(1806) 评论(0) 推荐(0)

使用dotTrace6.0进行内存分析
摘要:dotTrace6.0提供了内存分析功能,统计抓取的时间段内各个堆栈执行过程中使用的内存大小,按照堆栈执行情况树状排序;和它之前提供的时间统计类似,粗截了几个页面,希望对大家有所帮助。下载安装JetBrains dotTrace 6.0,http://www.jetbrains.com/profil... 阅读全文

posted @ 2014-12-19 16:33 Anthony.Zhao 阅读(5292) 评论(1) 推荐(0)