I have a C++ application running all time (24 x 5) and I doubt there are memory leaks. How can I identify the memory leak. Are there any tools I can use ?
I have a set of files which have commands to change the state of the C++ application. When I replay those same files, I could see an increase in the memory occupied by the process during each iteration of the replay. I tried valgrind and it runs for more than 5 days for completing a single iteration of replaying them
valgrind --tool=memcheck --leak-check=yes \
--show-reachable=yes --num-callers=20 --track-fds=yes obj
I am new to this domain. Kindly suggest me a good tool to check the memory leak or give some ideas to identify it.