tags:

views:

119

answers:

2

Is continuous increase in virtual memory(private bytes) of process indicate memory leak...? I am using third party library. Continuous use of library leads to continuous increase of virtual memory.

So its a memory leak which can leads to continuous virtual memory increase or it can be any other reason.

+3  A: 

It's impossible for us to say. Some applications naturally increase in memory size as you use them. Think of a word processor - its memory usage increases as you write. But you should have a good idea of the memory usage pattern of your own application, so you should be able to answer this question yourself.

anon
+1  A: 

Based on number of iterations you use the library, is the increase linear, exponential or logarithmic? Depending on which it can be either a caching strategy, a memory leak, both or nothing.

ssg
continuous run of 30 min , Virtual memory increase by 32kB ...But if I run same appication under purify for one/multiple iteration , no memory leak is detected...
Manish
32K!? I really wouldn't worry about that. Thats a practically non-existent leak if it is one. Its most likely just a bit of memory fragmentation.
Goz
If 30 minutes means less than 32,768 iterations I wouldn't see a memory leak there. Memory leaks are usually deterministic :)
ssg
32 KB increase after every 30 min run ... after few hours virtual memory increase is in MBs..
Manish
After 16 hour of continuous run , VM increase from 1.9 MB to 13 MB.. is any chance of leak.. ?
Manish