Re: [Kolab-devel] Kolab-syncroton very big memory use at first sync

Aleksander Machniak <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <[email protected]>
On 07/23/2013 10:55 AM, Sergey Sidlyarenko wrote:
> I am test the syncroton (last git):
> 
> 1. Comment all _logger->debug with $response->saveXML() for economy memory
> 2. Create in one mailfolder over 1000 mail with size from 5kb to 29
> megabyte.
> 3. Set sync this folder over kolab-activesync plugin
> 4. Use Outlook 2013 for sync all mail
> 
> At sync return errors:
> [23-Jul-2013 08:35:24 UTC] PHP Warning:  DOMDocument::saveXML(): Memory
> allocation failed : growing buffer in
> /var/www/sync.tufkp.ru/lib/ext/Syncroton/Wbxml/Encoder.php on line 163
> [23-Jul-2013 08:35:24 UTC] PHP Warning:  DOMDocument::saveXML(): Memory
> allocation failed : growing buffer in
> /var/www/sync.tufkp.ru/lib/ext/Syncroton/Wbxml/Encoder.php on line 163
> [23-Jul-2013 08:35:24 UTC] PHP Warning:  DOMDocument::saveXML(): Memory
> allocation failed : growing buffer in
> /var/www/sync.tufkp.ru/lib/ext/Syncroton/Wbxml/Encoder.php on line 163
> 
> 
> How to limit the number of email messages synchronized at one request?

Outlook uses big WindowSize (512) and it's modified to 100 by Syncroton,
which is a value hardcoded in Syncroton/Command/Sync.php.
There's currently no config option to make it smaller. There's currently
also no code in kolab driver trying to detect memory issue and throwing
Syncroton_Exception_MemoryExhausted exception which could be handled
more nicely by Syncroton synchronization code.

-- 
Aleksander Machniak
Web Developer, Kolab Systems AG
-------------------------------------------------------
PGP:19359DC1 - http://www.kolabsys.com - http://alec.pl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.