How do I find a memory leak in Unix?

Ivanesn

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

Tìm kiếm

Back
Top