LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 05-02-2010, 11:27 PM   #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-02-2010, 11:31 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Duplicate post?
 
Old 05-02-2010, 11:34 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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/
 
  


Closed Thread



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-09-2010 11:55 PM
Physical Memory leaked by user application process Is not reclaimed back after exit ravikumarv Linux - Newbie 1 05-02-2010 11:31 PM
Reserving physical memory for a named process??? bortbortresson Linux - Server 12 12-09-2009 03:45 AM
how kernel process is loaded in the physical memory.. Kesavaraj Linux - Software 1 07-23-2008 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:23 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
Open Source Consulting | Domain Registration