Perl out of memory [sbrk()]

Per olof Ljungmark peo at intersonic.se
Wed Mar 2 14:24:53 GMT 2005


Dan Nelson wrote:
>>The following error occurs when a message has an attachment of more that 
>>approx 35MB in size:
>>"Out of memory during "large" request for 67112960 bytes, total sbrk() 
>>is 487512064 bytes at /usr/local/bin/imapsync line 790."
> 
> According to that output, perl was already using 464MB, and a malloc
> request for 64MB failed, which is reasonable since the default hard
> datasize limit on FreeBSD is 512MB.  To raise it, put this in
> /boot/loader.conf and reboot:
> 
> kern.maxdsiz="1024M"

That would be the cause yes, although I have to wait until the right 
moment to restart this box. Thank you for pointing this out.

Per olof


More information about the freebsd-questions mailing list