From owner-freebsd-questions@FreeBSD.ORG Fri Jan 20 21:26:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7790F16A44D for ; Fri, 20 Jan 2006 21:26:18 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E48743D5F for ; Fri, 20 Jan 2006 21:26:17 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id k0KLOPKF084347; Fri, 20 Jan 2006 15:24:46 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <43D154FC.9030704@daleco.biz> Date: Fri, 20 Jan 2006 15:24:12 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051026 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <20060120194358.GA41039@xor.obsecurity.org> In-Reply-To: <20060120194358.GA41039@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Michael P. Soulier" , freebsd-questions@freebsd.org Subject: Re: out of swap? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 21:26:18 -0000 Kris Kennaway wrote: >On Fri, Jan 20, 2006 at 11:14:29AM -0500, Michael P. Soulier wrote: > > >>Hey people, >> >>I'm running 5.4, and I just found a ton of these in my daily security run. >> >>kanga.digitaltorque.ca kernel log messages: >> >> >>>swap_pager_getswapspace(6): failed >>>swap_pager_getswapspace(5): failed >>>swap_pager_getswapspace(3): failed >>>swap_pager_getswapspace(3): failed >>>swap_pager_getswapspace(3): failed >>>swap_pager_getswapspace(4): failed >>> >>> >>I'm running jdk 1.4.2 and tomcat 5.5.9, and I noticed that it was down >>this morning. My swap is fine now. >> >>[msoulier@kanga ~]$ swapinfo >>Device 1K-blocks Used Avail Capacity >>/dev/ad0s1b 482120 66268 415852 14% >> >>So I'm assuming that there's a memory leak in jdk 1.4.2, and it slowly >>used up all my memory. >> >>Sound right? >> >> > >Or you just don't have enough virtual memory (RAM + swap) to handle >your peak loads. This is perhaps more likely. > >Kris > > I'd almost offer "definitely more likely", as the amount of swap shown is less than 1/2 GB. Michael, how much RAM on this box? I once set up a box with 256M RAM and 512M swap, which was all good && fine until I got a few extra $$ and decided to up the RAM to 768M. After that, it died most every evening with Xorg running out of swapspace. If you've more RAM than swap, it's very possible that any process, but especially larger ones, could cause problems like this. Fortunately, it's not too difficult to add some swap --- provided you've some unformatted disk space available. Kevin Kinsey -- You have a reputation for being thoroughly reliable and trustworthy. A pity that it's totally undeserved.