During initial db replication the memory grows up to 300MB. It does release most of the memory at the end of the replication however the app is getting memory warnings. The database that is being replicated is about 20MB.
--To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1AC9D6F2-DD0C-44D2-B171-15AFAA30B41E%40couchbase.com.
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/B06f5Pzo72Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
There's about 600 documents. No attachments. Not sure about the size of each document... anyway I can check the document size on the client?For memory usage I use 'memory report' in Xcode and also saw similar (although slightly less) memory increase in instruments.
On Thu, Jan 9, 2014 at 10:34 PM, Jens Alfke <je...@couchbase.com> wrote:
On Jan 9, 2014, at 7:10 PM, Yevgeniy Motov <ymo...@gmail.com> wrote:During initial db replication the memory grows up to 300MB. It does release most of the memory at the end of the replication however the app is getting memory warnings. The database that is being replicated is about 20MB.
How many documents are in the database, and what’s the average size? Are there attachments?Also, what are you using to measure the app’s memory usage?—Jens
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/B06f5Pzo72Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+unsubscribe@googlegroups.com.
I ran the app through instruments and saw that memory is being allocated inside [CBL_RevisionList revWithDocID:revID:].
Please, let me know if there's a way to optimize the replication and fix the memory hike? Thank you!
In my case I just turned off zombies in Xcode and everything just started working. Zombies on, crash. Zombies off, AOK.