memory-leak-detector

Visual C++ - Memory Leak Detection

让人想犯罪 __ 提交于 2019-12-17 18:10:14
问题 Any suggestions? This SO post talks about Visual Leak Detector, but I'm looking for other tools. Also, please don't recommend this. 回答1: I've used Visual Leak Detector quite recently and it works pretty well. It's very simple to build it in (just include vld.h ) and doesn't require any instrumentation. I found that I needed to write a couple of scripts though to parse the output into something more useful for my purposes (it is crying out for a decent GUI). Note the new website -- the project

Visual C++ - Memory Leak Detection

。_饼干妹妹 提交于 2019-12-17 18:08:04
问题 Any suggestions? This SO post talks about Visual Leak Detector, but I'm looking for other tools. Also, please don't recommend this. 回答1: I've used Visual Leak Detector quite recently and it works pretty well. It's very simple to build it in (just include vld.h ) and doesn't require any instrumentation. I found that I needed to write a couple of scripts though to parse the output into something more useful for my purposes (it is crying out for a decent GUI). Note the new website -- the project

Memory leak using pandas dataframe

感情迁移 提交于 2019-12-17 16:35:32
问题 I am using pandas.DataFrame in a multi-threaded code (actually a custom subclass of DataFrame called Sound ). I have noticed that I have a memory leak, since the memory usage of my program augments gradually over 10mn, to finally reach ~100% of my computer memory and crash. I used objgraph to try tracking this leak, and found out that the count of instances of MyDataFrame is going up all the time while it shouldn't : every thread in its run method creates an instance, makes some calculations,

Is there any working memory profiler for Python3 [closed]

好久不见. 提交于 2019-12-17 10:52:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . In Python 2 there's a couple of tools but everything seems to be old and out-of-dated. I've found PySizer and Heapy but everything seems to be Python2 oriented and would take a lot of effort to port. objgraph is interesting but still not a fully working profiler Which tool are using ? 回答1: Pympler is a Python

Why can't objgraph capture the growth of np.array()?

柔情痞子 提交于 2019-12-12 14:48:15
问题 See the code: import objgraph import numpy as np objgraph.show_growth() j = 20 y = [] for i in range(5): for l in range(j): y.append(np.array([np.random.randint(500),np.random.randint(500)])) print 'i:',i objgraph.show_growth() print '___' #objgraph.show_most_common_types(limit=100) j += 1 the result is: i: 1 wrapper_descriptor 1596 +3 weakref 625 +1 dict 870 +1 method_descriptor 824 +1 i: 2 i: 3 i: 4 For the 2,3 and 4 epoch, it shows nothing growing. But it should show that the number of

Problem with memory leak check tools in Linux [closed]

十年热恋 提交于 2019-12-12 06:57:14
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . 1) Is there also any memory leak tool called Boehmgc ? How is that tool compared to others? 2) I have used LeakTracer , mudflap and

Openmpi and vargrind

烂漫一生 提交于 2019-12-11 10:03:08
问题 I just use a valgrind to test an example provide in openmpi-1.4/example: mpirun.openmpi --np 2 valgrind --log-file=output.dat --leak-check=full --tool=memcheck ./ring_c then I found below in output.dat: ==30450== Syscall param writev(vector[...]) points to uninitialised byte(s) ==30450== at 0x54DC150: __writev_nocancel (syscall-template.S:81) ==30450== by 0x7E3B312: mca_oob_tcp_msg_send_handler (in /usr/lib/openmpi/lib/openmpi/mca_oob_tcp.so) ==30450== by 0x7E3C50A: mca_oob_tcp_peer_send (in

What is the difference between a direct and indirect leak?

限于喜欢 提交于 2019-12-10 13:18:53
问题 I got the following output from the LeakSanitizer tool. What is the difference between a direct and indirect leak, as the tool understands it? 13: ==29107==ERROR: LeakSanitizer: detected memory leaks 13: 13: Direct leak of 288 byte(s) in 6 object(s) allocated from: 13: #0 0x7f2ce0089050 in __interceptor_malloc (/nix/store/zahs1kwq4742f6l6h7yy4mdj44zzc1kd-gcc-7-20170409-lib/lib/libasan.so+0xd9050) 13: #1 0x7f2cdfb974fe in qdr_core_subscribe ../src/router_core/route_tables.c:149 13: #2

How to do memory check on a daemon program?

做~自己de王妃 提交于 2019-12-09 05:34:31
问题 I have written a C++ application, that runs forever until terminated manually. It monitors other important applications. As a result my Daemon application should not go down. Keeping that in mind, I want to see if there are any memory leaks in my application. I used valgrind but since this application keeps running forever the valgrind does not exit. if I do a control - C then I don't get complete info from the valgrind logfile. Is there a tool that can do what Valgrind does? 回答1: I believe

Tomcat memory leak warning on HttpURLConnection

守給你的承諾、 提交于 2019-12-05 21:40:56
I have the following warning in Tomcat 8.5 I'm not sure I can ignore WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [AppName] appears to have started a thread named [pool-20-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(SocketInputStream.java:116) java.net.SocketInputStream.read(SocketInputStream.java:171) java.net.SocketInputStream.read(SocketInputStream.java:141) sun