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

Aleksander Machniak machniak at kolabsys.com
Tue Jul 30 14:20:56 CEST 2013


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


More information about the devel mailing list