top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which is free best memory leak tool any suggestion?

+2 votes
348 views

Code is in C/C++ and some scripts in shell and PHP, any suggestion other then building inhouse tool.

posted Dec 16, 2014 by Salil Agrawal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+3 votes

There is a static code analysis tool
http://www.coverity.com/

I have used this and its pretty good.

answer Dec 16, 2014 by Saurabh Srivastava
Let me give a try thanks
+1 vote

To detect all the memory leaks in your code, I would recommend you to use Valgrind. Its a powerful tool.
Not only does it tell you about the mem leaks but also about the invalid read/writes, i.e., if you are trying to access a memory which you are not supposed to.

answer Dec 23, 2014 by Ankush Surelia
Similar Questions
+5 votes

My doubt is that doesn't Java virtual machine have a garbage collector that will collect and free all unreferenced memory automatically?

+3 votes

I have few questions about Cache Memory

1) My understanding of cache memory is, there are 3 type of cache memory,
1. Within RAM
2. Within CPU (L1,L2,L3)
3. Separate Hardware which is costlier than all others.

Please correct if I am wrong,

2) Who stores the data into cache? I mean, can we write a program which should use only cache memory? If yes then how to do it? if no then who manages that?
For example,
Cache memory within RAM, is it managed by Kernel?(Memory Management Unit)
Cache memory within CPU, is it managed by CPU itself?

3) Why cache memory is faster than RAM?

...