Re: Out of memory during request for 32 bytes

2009-07-12 Thread Mel Flynn
On Friday 10 July 2009 06:06:06 Wojciech Puchar wrote:
 do uname -a

 if you are on 32-bit arch you may add

 kern.dfldsiz=2147483648
 kern.maxdsiz=2147483648


 to /boot/loader.conf


 but most likely you'll need to edit /etc/login.conf

 On Fri, 10 Jul 2009, Per olof Ljungmark wrote:
  Apache web server on 7-STABLE running nagios and OTRS. My problem is I
  cannot understand what I should increase to satisfy those memory-hungry
  Perl scripts?
 
  Out of memory during request for 32 bytes, total sbrk() is 17192960

This only shows ~16M in use, so process data size shouldn't be affected. Check 
the apache start up script for the limits args, login.conf for the user apache 
runs on and anything where default memory limit of 16MB triggers a hit in 
stuff you read somewhere when setting this up.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Out of memory during request for 32 bytes

2009-07-10 Thread Wojciech Puchar

do uname -a

if you are on 32-bit arch you may add

kern.dfldsiz=2147483648
kern.maxdsiz=2147483648


to /boot/loader.conf


but most likely you'll need to edit /etc/login.conf
On Fri, 10 Jul 2009, Per olof Ljungmark wrote:


Apache web server on 7-STABLE running nagios and OTRS. My problem is I
cannot understand what I should increase to satisfy those memory-hungry
Perl scripts?

Out of memory during request for 32 bytes, total sbrk() is 17192960 bytes!
Out of memory during request for 4072 bytes, total sbrk() is 17192960 bytes!
Global $r object is not available. Set:
   PerlOptions +GlobalRequest
in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.9/CGI/Carp.pm line 553.
Global $r object is not available. Set:
   PerlOptions +GlobalRequest
in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.9/CGI/Carp.pm line 553.

--
per
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Out of memory during request

2007-05-25 Thread web

At 05:59 PM 5/24/2007, you wrote:

Janos Dohanics wrote:

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?
To unsubscribe, send any mail to [EMAIL PROTECTED]


I forgot to say you probably need more RAM as well, at least I did. We are 
running a nightly imapsync run and the problem did not go away until we 
had 3GB.


Good luck,

Per olof


Bill and Per,

Thank you both. I tried ulimit -d 10, but that did change the 
values reported by ulimit.


So I did a little googling, and came across this:

http://people.lemis.com/grog/diary-mar2005.html - see the March 4 entry.

With this change, imapsync and 1 GB RAM could cope with the large mailbox...

Janos


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of memory during request

2007-05-24 Thread Bill Moran
In response to Janos Dohanics [EMAIL PROTECTED]:

 
 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 10 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 [EMAIL PROTECTED]


Re: Out of memory during request

2007-05-24 Thread Per olof Ljungmark

Janos Dohanics wrote:

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?


Search for my name and imapsync and you'll have the answer, had the same 
problem. You probably need to increase

kern.maxdsiz=

Per olof
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of memory during request

2007-05-24 Thread Tom Marchand
I've experienced this same type of problem while using grep to search large 
binary files.

 -- Original message --
From: Bill Moran [EMAIL PROTECTED]
 In response to Janos Dohanics [EMAIL PROTECTED]:
 
  
  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 10 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 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Out of memory during request

2007-05-24 Thread Per olof Ljungmark

Janos Dohanics wrote:

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?
To unsubscribe, send any mail to [EMAIL PROTECTED]


I forgot to say you probably need more RAM as well, at least I did. We 
are running a nightly imapsync run and the problem did not go away until 
we had 3GB.


Good luck,

Per olof
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]