From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 04:16:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D492616A417 for ; Wed, 6 Feb 2008 04:16:18 +0000 (UTC) (envelope-from lachlan@lkla.org) Received: from paul.kawaguchichurch.org (pd5e374.sitmff01.ap.so-net.ne.jp [202.213.227.116]) by mx1.freebsd.org (Postfix) with ESMTP id 73C6113C43E for ; Wed, 6 Feb 2008 04:16:18 +0000 (UTC) (envelope-from lachlan@lkla.org) Received: from sm.lkla.org (localhost [127.0.0.1]) by paul.kawaguchichurch.org (8.14.2/8.14.2) with ESMTP id m164GDnA031564; Wed, 6 Feb 2008 13:16:13 +0900 (JST) (envelope-from lachlan@lkla.org) Received: from 137.153.0.42 (SquirrelMail authenticated user lachlan) by sm.lkla.org with HTTP; Wed, 6 Feb 2008 13:16:14 +0900 (JST) Message-ID: <38591.137.153.0.42.1202271374.squirrel@sm.lkla.org> In-Reply-To: <020B7CD9-7C91-409E-BCFA-0FF18FFF41DB@dpcsys.com> References: <1153.137.153.0.37.1202210274.squirrel@sm.lkla.org> <69739C80-0639-4808-B5EB-0D9553826559@dpcsys.com> <30396.137.153.0.36.1202264253.squirrel@sm.lkla.org> <020B7CD9-7C91-409E-BCFA-0FF18FFF41DB@dpcsys.com> Date: Wed, 6 Feb 2008 13:16:14 +0900 (JST) From: "Lachlan Michael" To: "Dan Busarow" User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: Memory Error using Mailman on FreeBSD. How to debug? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lachlan@lkla.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 04:16:19 -0000 > On Feb 5, 2008, at 7:17 PM, Lachlan Michael wrote: >>> On Feb 5, 2008, at 4:17 AM, Lachlan Michael wrote: >>> >>>> I have a question about debugging a memory error on FreeBSD. >>>> >>>> When a user sends an e-mail with an attachment above about 500kB to >>>> a very >>>> small mailing list (4 members), Mailman on my server aborts >>>> processing >>>> with the error >>>> MemoryError : out of memory >>> >>> [snip] >>> >>>> # limits >>>> Resource limits (current): >>>> cputime infinity secs >>>> filesize infinity kB >>>> datasize 524288 kB >>>> stacksize 65536 kB >>>> coredumpsize infinity kB >>>> memoryuse infinity kB >>>> memorylocked infinity kB >>>> maxprocesses 5547 >>>> openfiles 11095 >>>> sbsize infinity bytes >>>> vmemoryuse infinity kB >>> >>> Try running limits as the mailman user, not root. All the mailman >>> programs run as your mailman user. >> >> Ok, but mailman is a nologin user. Should I change this temporarily >> to check? >> >> # su mailman >> This account is currently not available. > > Yes, change it so that you can su to mailman and then run limits > again. You need to see what happens in the context of user mailman > since that is what all the mailman programs will get. Ok, with /bin/tcsh as the login shell the results are the same. Also tried csh and sh just to make sure. # su mailman %limits Resource limits (current): cputime infinity secs filesize infinity kB datasize 524288 kB stacksize 65536 kB coredumpsize infinity kB memoryuse infinity kB memorylocked infinity kB maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kB % These limits are pretty standard, right?