My interpretation of your results is that you do not have a memory leak.

This is partly evidenced that all of the memory in the summary is "still reachable"; a leak is defined as memory you have not freed but can not reach.

I also know for a fact that SQLite maintains an in-memory cache to speed things up, and that is probably why your memory usage increased over time.

I don't see a problem.

-- Darren Duncan

At 10:11 AM -0700 6/25/04, kenneth long wrote:
Hi all,
I'm curious if anyone has experience a memory leak
with sqlite? Here is the program outline:

---- Output:
Number of Mallocs: 101882
Number of Free   : 66747
--- Also I ran this through valgrind on linux and had
the following output...

===========================================
==3457== LEAK SUMMARY:
==3457==    definitely lost: 0 bytes in 0 blocks.
==3457==    possibly lost:   0 bytes in 0 blocks.
==3457==    still reachable: 53791 bytes in 205 blocks.
==3457==         suppressed: 0 bytes in 0 blocks.

So, I'm curious if this is "normal and expected
behavior" It seems that the program grows pretty
rapidly when using the compile/reset methods.. And
that  the VM memory is being added to each time
through the loop.

Its starts at rough size of about 2m of Virtual Memory
and grows to 30M of VM through the execution of the
loop. Any ideas on how to reclaim this memory?

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to