Re: replicator: Panic: data stack: Out of memory when allocating 268435496 bytes

Aki Tuomi aki.tuomi at open-xchange.com
Fri Jan 6 10:24:55 UTC 2023



On January 6, 2023 12:21:45 PM GMT+02:00, justina colmena ~biz <justina at colmena.biz> wrote:
>On Thursday, January 5, 2023 10:53:13 PM AKST Aki Tuomi wrote:
>> On January 6, 2023 3:56:39 AM GMT+02:00, Gerben Wierda 
><gerben.wierda at rna.nl> wrote:
>> >Jan 06 00:50:31 replicator: Panic: data stack: Out of memory when
>> >allocating 268435496 bytes Jan 06 00:50:32 replicator: Fatal: master:
>>  ...
>> service replicator {
>>   vsz_limit = 2G
>> }
>> 
>> because replicator might have to use more memory, especially for larger
>> indexes.
>> 
>> Aki
>That's probably as good a short-term fix as any, but a longer term fix will 
>probably require effectively "going on a diet," losing weight, cracking down on 
>memory leaks, matching up every malloc() and free() and getting leaner and 
>meaner with the memory allocation and Big-O time & space complexity of 
>algorithms.

mmaps are counted against vsz_limit so if you got index+cache over 256M you will run against the limit. 

Aki


More information about the dovecot mailing list