日期:2014-05-16 浏览次数:20464 次
步骤一:
UMEM_DEBUG=default UMEM_LOGGING=transaction LD_PRELOAD=libumem.so.1 ./spAgent &
步骤二:
-bash-3.00$ mdb -p 16546 //上面得到进程ID
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 ]
步骤三:
-bash-3.00$ mdb -p 16546
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 ]
> ::findleaks //查找内存泄露
CACHE LEAKED BUFCTL CALLER
00484008 11489 00a7f428 libstdc++.so.6.0.3`_Znwj+0x1c
----------------------------------
Total 11489 buffers, 5147072 bytes
步骤四: