bulkopk.blogg.se

Linux monitor memory usage of a process
Linux monitor memory usage of a process








linux monitor memory usage of a process

I used gdb on running process to dump the memory to some file. Use GDB to dump memory on running process or get the coredump using gcore -o process VmFlags: rd wr mr mw me ac VmFlags: rd wr mr mw me ac KernelPageSize: 4 kB KernelPageSize: 4 kB

linux monitor memory usage of a process

Private_Dirty: 28 kB Private_Dirty: 36 kBĪnonymous: 28 kB Anonymous: 36 kB #INCREASE MEM

  • capture again /proc/PID/smaps and save it has afterMemInc.txtįind the difference between first smaps and 2nd smaps, e.
  • ps -auxĬapture the /proc/PID/smaps and save into some file like BeforeMemInc.txt.

    linux monitor memory usage of a process

    Here are the steps that almost guarantee to find what is leaking memory:įind out the PID of the process which causing memory leak.










    Linux monitor memory usage of a process