From owner-freebsd-questions Thu Aug 10 10:35:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.rdc1.sfba.home.com (mail2.rdc1.sfba.home.com [24.0.0.75]) by hub.freebsd.org (Postfix) with ESMTP id E34FE37B8B6; Thu, 10 Aug 2000 10:35:22 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail2.rdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20000810173522.RTEH6679.mail2.rdc1.sfba.home.com@beastie.localdomain>; Thu, 10 Aug 2000 10:35:22 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id KAA01658; Thu, 10 Aug 2000 10:35:52 -0700 (PDT) (envelope-from brian) Date: Thu, 10 Aug 2000 10:35:52 -0700 From: "Brian O'Shea" To: "G.B.Naidu" Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: Memory leakage... Message-ID: <20000810103552.O351@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: "G.B.Naidu" , freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from G.B.Naidu on Thu, Aug 10, 2000 at 05:05:26PM +0530 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 10, 2000 at 05:05:26PM +0530, G.B.Naidu wrote: > > Hi, > > I have been getting this error message on my FreeBSD 3.3 system: > > swap_pager: Out of Swap space. After digging a little bit, we found that > there is a lot of memory leakage happening. This is how we went about > finding: > > ps -aux for the process showed that vsz column was increasing very > fast. But the rss column was almost stable( was not changing much). For what process? (what program was running that had such a large vsz?) > > pstat -S also showed drastic fall in available swap space. > > My question is what could be the reason for this drastic increase in vsz > column of ps -aux output? Is it because of unfreed malloced memory? Why > rss is stable? Somebody could help me when will the vsz(virtual > size) increases? Yes, it is because of unfreed malloc()'ed memory. If it is a memory leak, the only way to free the memory is to kill the process that is leaking it. > -- > Never trust an operating system you don't have sources for. ;-) Don't get too comfortable. ;) -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message