Find the memory usage, footprint, leak
来源:互联网 发布:jdbc批量删除数据 编辑:程序博客网 时间:2024/05/16 06:54
Heap memory usage footprint:
Windows: Microsoft has UMDH tool to dump memory usage in heap. It contains the memory allocation, size and where(call statck to alloc this memory)
For example:
490 bytes + 30 at 1433D0 by BackTrace16
78EDD036
78D58EE6
78D57BAC
78D58E9E
78D57AC0
78EDEF73
78ED7946
78ED62D8
78ED6416
78EF3925
78D59630
628 bytes + 38 at 143890 by BackTrace17
78EDD036
78D58F18
78D57BAC
78D58E9E
78D57AC0
78EDEF73
78ED7946
78ED62D8
78ED6416
78EF3925
78D59630
Linux: /proc/pid/smaps or /proc/pid/maps has memory allocation and size information, but no call stack. smaps had more detail information than maps.
For example:
00110000-0012c000 r-xp 00000000 08:01 469893 /opt/CloudDesktopHost/lib/libcrutil.so
Size: 112 kB
Rss: 112 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 24 kB
Private_Dirty: 88 kB
Referenced: 112 kB
0012c000-0012d000 rw-p 0001c000 08:01 469893 /opt/CloudDesktopHost/lib/libcrutil.so
Size: 4 kB
Rss: 4 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 4 kB
Referenced: 4 kB
Memory leak check:
Purify, valgrind(Linux)
- Find the memory usage, footprint, leak
- The problem of Memory Leak
- Using the Kernel Debugger to Find a Kernel-Mode Memory Leak
- Optimize memory footprint with the string intern pool
- How to Find A Memory Leak
- Memory Leak
- memory leak
- Memory leak
- Howto find native code memory leak in Android
- pmap study: how to find a memory leak.
- The Leak of The Memory In C++ 1.1
- The Leak of The Memory in C++ 1.2
- the leak of the memory in c++ 03
- Memory leak in Windows 8.1 with Killer E2200 and Windows Network Data Usage Monitoring
- When is a Leak not a Leak? Using Heapshot Analysis to Find Undesirable Memory Growth
- When is a Leak not a Leak? Using Heapshot Analysis to Find Undesirable Memory Growth
- The mechanism and implementation of detecting memory leak
- The tools that check memory leak of python program
- 彻底解决MyEclipse中代码提示时假死问题
- AIX 常用命令
- 锁
- pure-ftp不得不爱之pure-ftpd.conf 中文说明 【转帖】
- 软件工程师不可不知的10个概念
- Find the memory usage, footprint, leak
- jsp脚本元素
- Javascript鼠标坐标
- 我
- delphi·返回当前机器名
- VC链接选项
- oscache缓存使用总结
- 面向对象的设计原则二-单一职责原则
- http