Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
potential memory leaks in pmdaproc? #19
Comments
|
Which metrics? Is the issue reproducible by something as simple as "pmval -t 1 -i proc.psinfo.rss"? I've not been able to reproduce it on master with the above, but that doesn't mean its not still a problem of course - a minimal test case would be helpful here. |
marcliangma7
commented
May 8, 2015
|
Thank you for your reply. I'm reproducing with pmval and will update once it's done. Here is the code sample for my monitor client: |
marcliangma7
commented
May 8, 2015
|
Update: |
pcpemail
commented
May 13, 2015
|
Could we please have the full python code? (email to kenj@kenj.com.au if that is easier) |
marcliangma7 commentedMay 7, 2015
Hi,
I'm using PCP to fetch processes info at 1 second interval. My PCP monitor (same host) is in Python using PMAPI (pmFetch). It worked well except I've noticed the RSS of pmdaproc process has increased from 944K to 5Mb in 4 days period. Is there a potential memory leaks in pmdaproc or I missed something? Thanks for your helps.
/proc/pmdaproc_pid/smaps: (heap size increases by 4 bytes every few seconds)
02416000-028c8000 rw-p 00000000 00:00 0 [heap]
Size: 4808 kB
Rss: 4732 kB
Pss: 4732 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 4732 kB
Referenced: 4732 kB
Anonymous: 4732 kB
AnonHugePages: 0 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB