Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2007 17:02:15 +0000
From:      m0rchand@comcast.net (Tom Marchand)
To:        freebsd-questions@freebsd.org
Subject:   Re: Out of memory during request
Message-ID:  <052420071702.20277.4655C5170002F9D000004F3522007456720B020E080C9DCF03@comcast.net>

next in thread | raw e-mail | index | archive | help
I've experienced this same type of problem while using grep to search large binary files.

 -------------- Original message ----------------------
From: Bill Moran <wmoran@potentialtech.com>
> 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
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




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