Physical Memory leaked by user application process Is not reclaimed back after exit
Whenever I'm running my application process, I've 1M physical memory usage is increasing for every 2 hours.This I observed using 'free -m' command.But 'top' command did not showing any increase 'RSS' size.It is same as it was started initially.
Even though I stopped my process,the increased memory was not released back. If I start my application process then again memory usage start increasing by 1M for every 2 hours. This increase of memory usage observer with 'free' and that too when my application is running, but top command is not showing any change in the RSS size
If my application is leaking any memory which is allocated by new/malloc, that should be released back whenever my application exit and the size increase will be show through top command for that process, right? This is not happening
This proves that there is no potential leaks in my process.
But why physical memory is increasing when only my process is running?
Do please some body could tell me what could problem ?
Also my application runs some commands using system() internally for every 15 minutes.But these process will terminated immediately with in span of a few seconds.
|