How do I find a memory leak in Unix?
Answer
Here are the steps that almost guarantee to find what is leaking memory:
Answer
Here are the steps that almost guarantee to find what is leaking memory:
- Find out the PID of the process which causing memory leak. …
- capture the /proc/PID/smaps and save into some file like BeforeMemInc. …
- wait till memory gets increased.
- capture again /proc/PID/smaps and save it has afterMemInc.txt.