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
|