Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 10:35:52 -0700
From:      "Brian O'Shea" <boshea@ricochet.net>
To:        "G.B.Naidu" <gbnaidu@sasi.com>
Cc:        freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: Memory leakage...
Message-ID:  <20000810103552.O351@beastie.localdomain>
In-Reply-To: <Pine.LNX.4.21.0008101658240.1465-100000@pcd75.sasi.com>; from G.B.Naidu on Thu, Aug 10, 2000 at 05:05:26PM %2B0530
References:  <Pine.LNX.4.21.0008101658240.1465-100000@pcd75.sasi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.  <http://www.acm.org/classics/sep95/>;
;)

-- 
Brian O'Shea
boshea@ricochet.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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