LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Physical Memory leaked by user application process Is not reclaimed back after exit (https://www.linuxquestions.org/questions/linux-software-2/physical-memory-leaked-by-user-application-process-is-not-reclaimed-back-after-exit-805580/)

ravikumarv 05-02-2010 11:27 PM

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.

paulsm4 05-02-2010 11:31 PM

Duplicate post?

Tinkster 05-02-2010 11:34 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread will be closed because it is a duplicate.

Dupe of
http://www.linuxquestions.org/questi...r-exit-805576/
and
http://www.linuxquestions.org/questi...r-exit-805577/


All times are GMT -5. The time now is 05:17 AM.