Out of memory during request

Bill Moran wmoran at potentialtech.com
Thu May 24 16:05:14 UTC 2007


In response to "Janos Dohanics" <web at 3dresearch.com>:

> 
> I'm using imapsync to transfer maildirs to a new server. One of the
> mailboxes is about 4.7 GB. While into the syncing to about 3 GB,
> imapsync quits with this message:
> 
> <END>
> while processing LITERAL
> Read: * 5330 FETCH (UID 5337 BODY[] )
> 12835 OK Fetch completed.
> 
> Out of memory during request for 80 bytes, total sbrk() is 536813568
> bytes!
> 
> I'm running imapsync on the target system, which is FreeBSD 6.2-STABLE
> with 1 GB RAM.
> 
> I'm wondering if I could adjust some resource settings to let the
> imapsync job finish?

Check the output from ulimit -a:
...
data seg size           (kbytes, -d) 524288
...

I'm pretty sure that limits the maximum amount of RAM a single process
can allocate, and it seems to match up with your error.  (That's the
default value)

ulimit -d 1000000000 should fix it.

Odd program that allocates all that memory ...

-- 
Bill Moran
http://www.potentialtech.com


More information about the freebsd-questions mailing list