47 ms·
A short time before I met a memory leak problem in production environment. The process began memory leak after long-time running. So I need a tool to detect mem
by hellowub 10y ago
A short time before I met a memory leak problem in production environment. The process began memory leak after long-time running. So I need a tool to detect memory leak of a running process. I searched the web but didn't find one. Then I wrote such a tool myself. I wonder if the tool is useful for others. So I share it here, and wait for your advices.
- wazari972 10y agoInteresting idea, I'll give it a try tomorrow! Did you have any particular reason not to use GDB and its Python interface? I guess that the trick is to set a breakpoint on *alloc/free, and inc/decrement a counter on breakpoint hit? I'll try to implement it in my own tool, but in Python!
- hellowub 10y agoI did not know GDB and its Python interface. I think it may be a better way. Expect for your tool!