LinuxQuestions.org
Review your favorite Linux distribution.
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


Reply
  Search this Thread
Old 05-08-2006, 11:30 PM   #1
vishalp
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Aplication process memory increases gradually


Hi all
We have our own application installed on our product (Time&Track)
which hav a size of 9.5MB while installation.But as it starts working, the size of application process(obtain by ps -aux - %MEM field ) start increasing gradually. After 2-3 days it shows aprox 20MB. This free mem decreas results into system hang after few days.
We dont have any dynamic allocation, also we r not using swap partition.
Size of RAM is 256MB and Flash memory is of 256MB.
As somebody stated that this free mem is converted in to cache and when any process needs the mem that memory get free, but this thing is not happening in our application.
Plz do the needful asap.

Vishal
 
Old 05-09-2006, 09:31 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
This really sounds like a memory leak. At least, when I have a program with a memory leak, I see this behaviour.

What language your program is written in?

There are situations in certain languages/libraries where a memory leak is quite disguised. For example, if you write text to a window in tcl/tk, and the window is not being displayed, the memory footprint increases gradually.

If your program is written in C, there are certain tools which can be compiled in to show memory allocation and usage. Yes, I read that you don't allocate memory dynamically. But since system memory disappear memory IS allocated by your process.

For example, when you call a function, memory is allocated on the stack. If the function does not return properly, or is called without return sometimes you have your leak.

If your program is called in C++ it is almost impossible to have a program without dynamic allocation, it happens every time when an object is created. (I think objects are called classes in C++?)

jlinkels
 
Old 05-12-2006, 01:53 AM   #3
vishalp
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your response.I m still facing the same problem.
I just want to know that what u had done when u was facing the same problem.
vishal
 
  


Reply


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
Converting (gradually) from Sid to Etch rickh Debian 3 01-30-2006 01:05 AM
process memory ecampos02 Linux - Newbie 5 11-18-2005 04:42 PM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM
Memory behviour - it just increases EcceVery Debian 1 05-10-2004 05:24 PM
memory used increases anikj Linux - General 3 11-05-2003 02:28 AM

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

All times are GMT -5. The time now is 08:06 AM.

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