LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 05-03-2010, 12:14 AM   #1
ravikumarv
LQ Newbie
 
Registered: Jun 2007
Posts: 27

Rep: Reputation: 15
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.
 
Old 05-03-2010, 12:31 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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 is being closed because it is a duplicate.

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


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Physical Memory leaked by user application process Is not reclaimed back after exit ravikumarv Programming 22 05-10-2010 12:55 AM
Reserving physical memory for a named process??? bortbortresson Linux - Server 12 12-09-2009 04:45 AM
how kernel process is loaded in the physical memory.. Kesavaraj Linux - Software 1 07-23-2008 09:53 AM
Free Memory Not Reclaimed By System Sheado Programming 3 09-28-2007 04:38 PM
mechanics of mapping process memory addresses to physical addresses on amd64 Tischbein Linux - Kernel 2 02-01-2007 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration