SQLite Forum

Clear shared memory DB and backup problem
That's right, but in some point it should be stabilized (like you mentioned - balanced point).
I don't expect that memory will match exactly.

Using it this way (like described above) I see almost continues increase over time.
There are some visible memory cleanups (probably memory defragmentation) but it still grows.

The question is how to clean up shared memory DB before backup. https://www.sqlite.org/backup.html says that destination data is overwritten but I observe continuous increase od memory size used.

I also will check VACCUM INTO option as alternative to backup data.