Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2007 12:05:11 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        "Janos Dohanics" <web@3dresearch.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Out of memory during request
Message-ID:  <20070524120511.b41c16c2.wmoran@potentialtech.com>
In-Reply-To: <LqvpJ9Dj.1180020789.2530400.janos@imap.3dresearch.com>
References:  <LqvpJ9Dj.1180020789.2530400.janos@imap.3dresearch.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to "Janos Dohanics" <web@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070524120511.b41c16c2.wmoran>